/*
Theme Name: Original Theme
Description: はじめて作るオリジナルテーマです。
Version: 1.0
*/

*{
  box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;
}

body {
margin: 0;
font-family: sans-serif;
line-height: 1.8;
color: #222;
background: #fff;
}

a {
color: inherit;
text-decoration: none;
}

img {
max-width: 100%;
height: auto;
}

.site-header {
height: 65px;
display: flex;
align-items: center;
background: #fff;
position: sticky;         /* 画面一番上にピタッと追従・固定させる */
top: 0;                   /* 画面の一番上（0px）に固定 */
z-index: 9999;            /* 他の要素より必ず前面に重ねる */
}

.header-logo {
display: flex;
align-items: center;
gap: 10px;
padding-left: 20px;
flex-shrink: 0;
}

.header-logo a {
display: block;
flex-shrink: 0;
}

.header-logo img {
width: 76px;
display: block;
}

.site-title {
margin: 0;
font-size: 11px;
font-weight: normal;
line-height: 1.2;
color: #333;
white-space: nowrap;
}

.header-nav-area {
flex: 1;
display: flex;
justify-content: flex-end;
padding: 0 16px;
}

.global-nav {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0;
}

.main-menu,
.sub-menu {
display: flex;
align-items: center;
margin: 0;
padding: 0;
list-style: none;
}

.main-menu {
gap: 17px;
line-height: 1;
}

.sub-menu {
gap: 12px;
line-height: 1;
margin-top: 6px;
}

.main-menu a {
font-size: 13px;
font-weight: bold;
line-height: 1;
}

.sub-menu a {
font-size: 10px;
font-weight: normal;
line-height: 1;
color: #333;
}

.sub-menu li {
display: flex;
align-items: center;
gap: 6px;
}

.sub-menu li::before {
content: "";
display: block;
width: 0;
height: 0;
border-left: 5px solid #ccc;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
}

.main-menu a:hover,
.sub-menu a:hover {
opacity: 0.7;
}

.header-button {
width: 116px;
height: 65px;
display: flex;
align-items: center;
justify-content: center;
background: #000;
color: #fff;
font-size: 13px;
font-weight: bold;
line-height: 1;
white-space: nowrap;
}

.header-button:hover {
opacity: 0.85;
}

.first-view {
 width: 100%;
 background: #ffffff;
}

.first-view-inner {
 max-width: 1650px;
 height: auto;
 margin: 0 auto;
 overflow: hidden;
}

.first-view-inner img {
 width: 100%;
 height: auto;
 object-fit: cover;
 display: block;
}

.site-footer {
 padding: 24px;
 background: #222;
 color: #fff;
 text-align: center;
}

.site-footer p {
 margin: 0;
}

.siter-footer small {
 font-size: 12px;
}

.opening-section {
 padding: 40px 0;
 background: #fff;
 text-align: center;
}

.section-inner {
 max-width: 1080px;
 width: calc(100% - 40px);
 margin: 0 auto;   
}

.section-label {
 margin: 0 0 14px;
 font-size: 14px;
 font-weight: bold;
 color: #777;
 letter-spacing: 0.12em;
}

/* テキストリンクの装飾*/
.inline-cta-link {
  color: #da6505;
  text-decoration: underline; /* 下線 */
  transition: opacity 0.3s ease;
}

.inline-cta-link:hover {
  opacity: 0.7;
}

/*==============オファーセクション==============*/

.specialoffer-section {
 padding: 40px 0;
 background-color: #fff;
 background-image: url("images/bg-offer.png");
 background-size: 120% auto;
 background-position: center;
 text-align: center;
}

.specialoffer-section h2 {
 margin: 0 0 20px;
 font-size: 36px;
 line-height: 1.5;
  filter: drop-shadow(0 0 4px #ffffff)
          drop-shadow(0 0 8px #ffffff)
          drop-shadow(0 0 12px #ffffff);
}

.specialoffer-section h2 span {
  background: linear-gradient(45deg, rgb(208, 35, 35), #c2700c);
  -webkit-background-clip: text;
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  color: transparent; 
}

.specialoffer-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 2;
    filter: drop-shadow(0 0 4px #ffffff)
          drop-shadow(0 0 8px #ffffff)
          drop-shadow(0 0 12px #ffffff);
}

/*==============Openingセクション==============*/

.opening-section h2 {
 margin: 0 0 20px;
 font-size: 36px;
 line-height: 1.5;
}

.section-lead {
 max-width: 720px;
 margin: 0 auto 38px;
 font-size: 16px;
 line-height: 2;
}

.opening-section ul {
 display: flex;
 gap: 24px;
 margin: 0;
 padding: 0;
 list-style: none;
 text-align: left;
}

.opening-section li {
 flex: 1;
 padding: 32px;
 background: #ebf4fd;
 border-radius: 20px;
}

.opening-section li img {
 width: 100%;
 height: 180px;
 object-fit: contain;
 display: block;
 margin: 0 0 20px;
 border-radius: 14px;
}

.opening-section li h3 {
 margin: 0 0 16px;
 font-size: 22px;
 line-height: 1.5;
}

.opening-section li h2 {
 margin: 0 0 16px;
 font-size: 18px;
 line-height: 1.5;
}

.opening-section li p {
 margin: 0;
 font-size: 15px;
 line-height: 1.9;    
}
/*==============conceptセクション==============*/

.concept-section {
 padding: 80px 0;
 background: #9dd4e3;
}

.concept-section .section-inner {
 display: flex;
 align-items: center;
 gap: 56px;   
}

.concept-section .section-inner > img {
  width: 50%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 20px;  
  margin-top:5%;
}

.concept-section .section-inner > div {
  flex: 1;  
}

.concept-section .section-label {
  margin: 0 0 14px;  
}

.concept-section h2 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.5;  
}

.concept-section .section-inner > div > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 2;
}

.concept-section .section-inner > div > p:last-child {
  margin-bottom: 0;  
}

/*==============Bodyセクション==============*/

.body-section {
 padding: 20px 30px;
 background: #9dd4e3;
}

.body-section .section-inner {
 display: flex;
 align-items: center;
 gap: 30px;      
}

.body-section .section-inner > img {
/* padding: 60px 0 20px; */
  width: 50%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 20px;  
}

.body-section .section-inner > div {
  flex: 1;  
}

.body-section .section-label {
  margin: 0 0 14px;  
}

.body-section h2 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.5;  
}

.body-section .section-inner > div > p {
  margin: 0 30px 18px;
  font-size: 16px;
  line-height: 2;
}

.body-section .section-inner > div > p:last-child {
  margin-bottom: 0;  
}

/* センタリング用に追加 */
.body-section .section-inner2 {
 text-align: center;
 margin-bottom: 40px; /* 画像エリアとの間に少し余白を開けます */
}

.body-section .section-inner2 > div > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 2;
}

/* 「3つの大切にしていること」のリスト設定 */
.policy-list {
  list-style: none; 
  counter-reset: policy-number; /* カウンターをリセットして準備（名前は自由） */
  padding: 0;
  margin: 0 0 20px;
}

.policy-list li {
  display: flex; /* Flexboxを有効にする */
  align-items: baseline; /* 文字の下のライン（ベースライン）でピタッと揃える */
  gap: 12px;
  counter-increment: policy-number;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.8;
}

/* 自動で入る数字のデザイン */
.policy-list li::before {
  content: counter(policy-number, decimal-leading-zero);
  color: #fff;
  font-weight: bold;
  font-size: 24px;
}

.policy-message {
  text-align: center;
  margin-top: 40px; /* 上の要素（画像など）との間に余白を開ける */
}

.policy-message span {
  background: linear-gradient(transparent 60%, #fcd4d8 60%); 
}

/*==============Servisセクション==============*/

.service-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.service-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.service-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.service-section dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-radius: 20px;
  overflow: hidden;
}

.service-section dt, 
.service-section dd {
  margin: 0;
  padding: 24px 28px;
  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.service-section dt {
  font-weight: bold;
  background: #9dd4e3;
}

.service-section dd {
  background: #f4fdff;
  line-height: 2;
}

/* リストの間に白の点線を引く（最後の項目以外） */
.policy-list li:not(:last-child) {
  border-bottom: 1px dotted #ffffff; /* 白の点線（太さ1px） */
  padding-bottom: 16px; /* 文字と線の間の余白 */
  margin-bottom: 16px;  /* 線と次の項目の間の余白 */
}

/*==============Worksセクション==============*/

.works-section {
  padding: 80px 0;
  background: #f9fcfe;
  text-align: center;
  background-image: url("images/bg-price.webp"); /* 画像のファイル名に合わせて変更してください */
  background-repeat: repeat; /* 画像を縦横に繰り返し配置する（デフォルトなので省略も可） */
  background-size: 150px auto;
}

.works-section h2 {
 margin: 0 0 20px;
 font-size: 36px;
 line-height: 1.5;
}

.works-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.works-section ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.works-section li {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

.works-section li img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.works-section li h3 {
  margin: 24px 24px 12px;
  font-size: 20px;
  line-height: 1.5;
}

.works-section li p {
  margin: 0 24px 28px;
  font-size: 15px;
  line-height: 1.9;
}

/*==============フローセクション==============*/

.flow-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.flow-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.flow-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.flow-section ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-number;
  text-align: left;
}

.flow-section li {
  position: relative;
  padding: 32px 24px 28px;
  background: #ebf4fd;
  border-radius: 20px;
  counter-increment: flow-number;
}

.flow-section li::before {
  content: counter(flow-number, decimal-leading-zero);
  display: block;
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  color: #cccccc;
}

.flow-section li h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
}

.flow-section li p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

 /*==============Priceセクション==============*/

.price-section {
  padding: 80px 0;
  background: #9dd4e3;
  text-align: center;
}

.price-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.price-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.price-section ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.price-section li {
  padding: 36px 28px;
  background: #ffffff;
  border-radius: 20px;
}

.price-section li h3 {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.price-section .price {
  display: table;        /* 追加：箱のサイズを文字の長さにぴったり合わせる */
  margin: 0 auto 10px;   /* 変更：箱ごとカードの中央に配置する */
  text-align: left;      /* 変更：箱の中の文字はすべて左揃えにする */
  line-height: 1.2;
}

.price-section .price strong {
  font-size: 30px;
  line-height: 1;
}

.price-section .price span {
  font-size: 14px;
  font-weight: bold;
}

.price-section li small {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #666666;
}

.price-section li p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}

.price-section li p:last-child {
  margin-bottom: 0;
}

.price-section .section-inner > p:last-child {
  margin: 0;
}

.price-section .section-inner > p:last-child small {
 font-size: 12px;
 line-height: 1.8;
 color: #666666;
}

/* 価格の「設計」「月額」ラベルを左揃えにして縦ラインを合わせる */
.price-section .price .label {
  display: inline-block; /* 幅を指定できるようにする */
  width: 3em; /* 3文字分の幅を確保 */
  text-align: left; /* 左揃えにする */
}

 /*==============CTAセクション==============*/

.cta-section {
  padding: 80px 0;
  background-image: url("images/closing.webp");
  background-repeat: no-repeat; /* ←★追加：画像の繰り返し（タイル表示）を禁止 */
  background-size: cover;       /* ←★変更：スマホの縦長画面でもエリア全体を隙間なく覆う */
  background-position: center;
  background-color: #ffffff;
  text-align: center;
}

.cta-section .section-label {
  color: #cccccc;
}

.cta-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
  filter: drop-shadow(0 0 4px #ffffff)
          drop-shadow(0 0 8px #ffffff)
          drop-shadow(0 0 12px #ffffff);
}

.cta-section .section-lead {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 2;
  filter: drop-shadow(0 0 4px #ffffff)
          drop-shadow(0 0 8px #ffffff)
          drop-shadow(0 0 12px #ffffff);
}

/* 2個のボタンを横に並べる枠組み */
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;           /* ボタン同士の隙間 */
  margin: 0 auto 10px; /* 上・左右・下の余白 */
  flex-wrap: wrap;     /* 画面が狭いときは自動で上下に折り返す */
}

/* ボタン共通のスタイル（元々のオレンジボタンのデザインを継承） */
.cta-section a.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 18px 36px;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px; /* お好みだった角丸をキープ */
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.cta-section a.cta-btn:hover {
  opacity: 0.8;
}

/* ① LINEボタンの色（公式LINEのきれいな緑） */
.cta-section a.btn-line {
  background: #06C755;
}

/* ② メールフォームボタンの色（今までのオレンジ） */
.cta-section a.btn-mail {
  background: #da6505;
}

.cta-section small {
  display: block;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #2e2e2e;
}

/* ==================================
 * TOPへ戻る追従ボタン
 * ================================== */
.page-top-btn {
  position: fixed;
  bottom: 24px;       /* 画面下からの距離 */
  right: 24px;        /* 画面右からの距離 */
  width: 50px;
  height: 50px;
  background-color: #ac7676; /* ボタンの色 */
  border-radius: 50%; /* 丸いボタン */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;       /* 他のコンテンツより手前に表示 */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: opacity 0.4s ease, transform 0.4s ease;
  
  /* 最初は画面外に隠しておく（スクロールしたらJSで表示させる） */
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
}

.page-top-btn span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;  /* 矢印の線の色 */
  border-left: 2px solid #ffffff;
  transform: rotate(45deg);       /* 四角を45度回転させて↑にする */
  margin-top: 4px;                /* 位置を少し下に微調整 */
}

/* マウスを乗せたときの動き */
.page-top-btn:hover {
  opacity: 0.85;
}

/* ★JSで「.is-show」クラスがついた時だけ表示する設定 */
.page-top-btn.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

  /*==============全体の仕上げ==============*/

.opening-section,
.specialoffer-section,
.concept-section,
.service-section,
.works-section,
.flow-section,
.price-section,
.cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.body-section,
.body-section2 {
  padding-top: 30px;
  padding-bottom: 60px;
}



.opening-section h2,
.specialoffer-section h2,
.concept-section h2,
.body-section h2,
.service-section h2,
.works-section h2,
.flow-section h2,
.price-section h2,
.cta-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.opening-section li,
.works-section li,
.flow-section li,
.price-section li {
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/*=======第13章：レスポンシブ対応=======*/

@media (max-width: 768px) {
  .section-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
  }

  .opening-section,
  .specialoffer-section,
  .service-section,
  .works-section,
  .flow-section,
  .price-section,
  .cta-section,
  .body-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .opening-section h2,
  .specialoffer-section h2,
  .service-section h2,
  .works-section h2,
  .flow-section h2,
  .price-section h2,
  .cta-section h2,
  .body-section h2 {
    font-size: 28px;
    line-height: 1.5;
  }

  .section-lead {
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.9;
  }

  /* FV: スマホではスマホ用画像を比率のまま表示 */
  .first-view {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .first-view-inner {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .first-view-inner picture {
    display: block;
    width: 100%;
  }

  .first-view-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  /* Header */
  .site-header {
    height: auto;
    padding: 14px 0;
  }

  .site-header .section-inner {
    display: block;
  }

  .site-title {
    margin: 0 0 10px;
    text-align: center;
  }

  .site-title img {
    max-height: 36px;
  }

  .site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
  }

  .site-nav a {
    font-size: 11px;
  }

  /* Opening: スマホでは必ず1列 */
  .opening-section ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .opening-section li {
    width: 100%;
    margin: 0 0 20px;
    padding: 24px;
  }

  .opening-section li:last-child {
    margin-bottom: 0;
  }

  .opening-section li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
  }

  .opening-section li h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
  }

  .opening-section li h2 {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.5;
  }

  .opening-section li p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
  }
  /* concept */
  .concept-section .section-inner {
    display: block;
  }

  .concept-section .section-inner > img {
    width: 100%;
    height: 260px;
    margin-bottom: 28px;
  }

  .concept-section .section-inner > div > p {
    font-size: 15px;
    line-height: 1.9;
  }

  /* Body */
  .body-section .section-inner {
    display: block;
  }

  .body-section .section-inner > img {
    width: 100%;
    height: 260px;
    margin-bottom: 28px;
  }

  .body-section .section-inner > div > p {
    font-size: 15px;
    line-height: 1.9;
  }

  /* Service */
  .service-section .section-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .service-section dl {
    display: block;
    width: 100%;
  }

  .service-section dt,
  .service-section dd {
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border-right: 1px solid #dddddd;
  }

  /* Works */
  .works-section ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .works-section li img {
    width: 100%;
    height: auto;
  }

  /* Flow */
  .flow-section ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .flow-section li {
    padding: 28px 24px;
  }

  /* Price */
  .price-section ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
  }

  .price-section li {
    padding: 32px 24px;
  }

  /* CTA */
  .cta-section a.cta-btn  {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    max-width: 320px;
  }
}
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  /* TOPへ戻るボタン */
.page-top-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

/*=======第14章：ハンバーガーメニュー=======*/

/* PCではハンバーガーボタンを非表示 */
.menu-toggle {
  display: none;
}

/*PC用:header-nav-areaの中でナビとボタンを横並びにする*/
.header-nav-area {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0;
}

.header-nav-area .global-nav {
  margin-right: 30px;
}

.header-nav-area .header-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*スマホ表示*/
@media (max-width: 768px) {

 .site-header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .header-logo a {
    display: block;
    line-height: 1;
  }
  
   .header-logo img {
    width: 70px;
    height: auto;
    display: block;
   }

   .site-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
   }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #333333;
  }

  /* ナビゲーションを非表示にする */
  .header-nav-area {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 0 16px 20px;
    box-sizing: border-box;
    background: #f7f7f7; 
    z-index: 1001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .header-nav-area.is-open {
    display: block;
  }

  .header-nav-area .global-nav {
    margin-right: 0;
  }

  .main-menu,
  .sub-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0; 
  }

  .main-menu li,
  .sub-menu li {
    display: block;
    border-bottom: 1px solid #e3e3e3;
  }

  .main-menu a,
  .sub-menu a {
    display: block;
    padding: 22px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
  }

  .sub-menu {
    margin-top: 0;
  }

  .sub-menu li {
    gap: 0;
  }

  .sub-menu li::before {
    display: none;
  }

  .header-nav-area .header-button {
    width: 100%;
    max-width: none;
    height: 56px;
    margin-top: 20px;
    font-size: 14px;
  }

}

html {
  scroll-behavior: smooth;
}

/*固定ページ*/
.page-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 1.5;
  text-align: center;
}

.page-body {
  font-size: 16px;
  line-height: 1.9;
}

.page-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid #ddd;
}

.page-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.5;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
  margin-bottom: 24px;
  padding-left: 1.5em;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body table {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.page-body th,
.page-body td {
  padding: 14px 16px;
  border: 1px solid #dddddd;
  text-align: left;
  vertical-align: top;
}

.page-body th {
  width: 30%;
  background: #f7f7f7;
  font-weight: 700;
}

@media screen and (max-width: 768px) {

  .page-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-content {
    max-width: 100%;
  }

  .page-title {
    margin-bottom: 24px;
    font-size: 26px;
  }

  .page-body {
    font-size: 15px;
  }

  .page-body h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .page-body h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .page-body table {
    font-size: 14px;
  }

  .page-body th,
  .page-body td {
    display: block;
    width: 100%;
  }

}

/*ブログ一覧*/
.blog-main,
.archive-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.blog-heading,
.archive-heading {
  margin-bottom: 40px;
  text-align: center;
}

.blog-title,
.archive-title {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.5;
}

.blog-lead {
  font-size: 16px;
  line-height: 1.8;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
  
.blog-card { 
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 3 / 2;
  background: #f7f7f7;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-date {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #777;
}

.blog-card-title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.blog-excerpt {
  font-size: 15px;
  line-height: 1.8;
}

.blog-pagination {
  margin-top: 40px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.blog-pagination .current {
  background: #333;
  color: #fff;
}

/*記事詳細*/
.single-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.single-content {
  max-width: 800px;
  margin: 0 auto;
}

.single-header {
  margin-bottom: 40px;
  text-align: center;
}

.single-date {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #777;
}

.single-title {
  font-size: 32px;
  line-height: 1.5;
}

.single-eyecatch {
  margin-bottom: 40px;
}

.single-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
 }

.single-body {
  font-size: 16px;
  line-height: 1.9;
}

.single-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid #ddd;
}

.single-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.5;
}

.single-body p {
  margin-bottom: 20px;
}

.single-body ul,
.single-body ol {
  margin-bottom: 24px;
  padding-left: 1.5em;
}

.single-body li {
  margin-bottom: 8px;
}

.single-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
}

.single-nav a,
.back-to-blog a {
 text-decoration: underline;
}

.back-to-blog {
  margin-top: 32px;
  text-align: center;
}

@media screen and (max-width: 768px) {

  .blog-main,
  .archive-main,
  .single-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .blog-heading,
  .archive-heading {
    margin-bottom: 32px;
  }

  .blog-title,
  .archive-title,
  .single-title {
    font-size: 26px;
  }

  .blog-list {
    grid-template-columns:  1fr;
    gap: 20px;
  }

  .blog-card-body {
    padding: 20px;
  }

  .single-header {
    margin-bottom: 32px;
  }

  .single-eyecatch {
    margin-bottom: 32px;
  }

  .single-body {
    font-size: 15px;
  }
  
  .single-body h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .single-body h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .single-nav {
    display: block;
  }
  
  .single-nav-prev,
  .single-nav-next {
    margin-bottom: 16px;
  }
}

/*お問い合わせフォーム*/
.page-body .wpcf7 {
  max-width: 640px;
  margin: 0 auto;
}

.page-body .wpcf7-form p {
  margin-bottom: 20px;
}

.page-body .wpcf7-form label {
  display: block;
  font-weight: 700;
}

.page-body .wpcf7-form input[type="text"],
.page-body .wpcf7-form input[type="email"],
.page-body .wpcf7-form input[type="tel"],
.page-body .wbcf7-form select,
.page-body .wpcf7-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.6;
}

.page-body .wpcf7-form textarea {
  min-height: 180px;
}

.page-body .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.page-body .wpcf7-form input[type="submit"]:hover {
  opacity: 0.8;
}

.page-body .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: #c00;
}

.page-body .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
}

.page-body .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
}
