:root {
  --bg: #fff;
  --text: #111;
  --muted: #6b6b6b;
  --accent: #1a1a1a;
  --container: 1100px;
  font-family: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin:0;
  color: var(--text);
  background: var(--bg);
  line-height:1.6;
}

.container {
  max-width: var(--container);
  margin:0 auto;
  padding:0 20px;
  text-align:center;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top:0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom:1px solid #eee;
  z-index:40;
}
.header-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:68px;
}
.logo {
  font-weight:800;
  letter-spacing:1px;
  color:var(--accent);
  text-decoration:none;
}
.site-nav ul {
  display:flex;
  gap:18px;
  margin:0;
  padding:0;
  list-style:none;
}
.site-nav a {
  color: var(--muted);
  text-decoration:none;
  font-weight:500;
}

/* ヒーロー */
.hero {
  position: relative;
  height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  background: url('./imgs/insoletop.jpeg') center/cover no-repeat;
  margin-bottom:50px;
}
.hero::after {
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.3);
  z-index:1;
}
.hero-content {
  position: relative;
  z-index:2;
  max-width:800px;
  padding:0 20px;
}
.hero-content h1 {
  font-size: clamp(28px,6vw,48px);
  margin-bottom:12px;
  text-shadow:0 2px 10px rgba(0,0,0,0.5);
}
.hero-content .menu-intro {
  font-size:1.2rem;
  line-height:1.6;
  text-shadow:0 1px 6px rgba(0,0,0,0.5);
}




/*==================== ハンバーガーメニュー ===================*/

@media screen and (max-width:1000px) {

  /* ナビ本体（隠れている状態） */
  #site-nav {
      position: fixed;
      top: 0;
      left: -120%;           /* ← right ではなく left に */
      right: -120%;           
      width: 100%;
      height: 100vh;
      background: #ffffff;
      transition: all 0.6s;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
  }

  #site-nav.panelactive {
      left: 0;               /* ← こっちにスライドイン */
      opacity: 1;            /* ← 透明解除 */
      pointer-events: auto;  /* ← クリック可能 */
  }

  #site-nav ul {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      gap: 20px;
      text-align: center;
  }

  #site-nav li a {
      color: #111;
      font-size: 1.3rem;
      text-decoration: none;
      letter-spacing: 0.1em;
  }

  /* ハンバーガー本体 */
  .openbtn {
      position: absolute;
      right: 20px;
      top: 14px;
      cursor: pointer;
      width: 45px;
      height: 45px;
      z-index: 300;
  }

  .openbtn span {
      position: absolute;
      left: 8px;
      width: 60%;
      height: 3px;
      background: #111;
      border-radius: 2px;
      transition: 0.4s;
  }

  .openbtn span:nth-of-type(1) { top: 12px; }
  .openbtn span:nth-of-type(2) { top: 21px; }
  .openbtn span:nth-of-type(3) { top: 30px; }

  /* × に変化 */
  .openbtn.active span:nth-of-type(1) {
      transform: rotate(45deg);
      top: 21px;
  }
  .openbtn.active span:nth-of-type(2) {
      opacity: 0;
  }
  .openbtn.active span:nth-of-type(3) {
      transform: rotate(-45deg);
      top: 21px;
  }
}

/* ===================================== */
/* 悩み */
/* ===================================== */

#foot-problems .section-title {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}


.problems-list li {
  margin-bottom: 12px;
  padding-left: 20px; /* ディスクとの間隔 */
}

.problems-list {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none; /* ディスクマークを消す */
  line-height: 1.8;
  color: #555;
}

.problems-list li {
  margin-bottom: 12px;
  padding-left: 0; /* 左の余白もなし */
}

/* コンテナを横並びにする */
.problems-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* 上揃え */
  gap: 40px; /* タイトルとリストの間隔 */
}

/* タイトルを左寄せ */
.problems-flex .section-title {
  flex: 1 1 200px; /* 最小幅200px、必要に応じて伸縮 */
  text-align: left;
  margin-bottom: 0; /* flex内なので余白は調整 */
}

/* リストを右側に */
.problems-flex .problems-list {
  flex: 2 1 400px; /* 最大幅を設定して右側に寄せる */
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
  color: #555;
}

.problems-flex .problems-list li {
  margin-bottom: 12px;
  padding-left: 0;
}




/* ===================================== */
/* 選ばれる理由 */
/* ===================================== */


#reasons {
  text-align: center;
}

#reasons .section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #333;
}

#reasons .reason-item {
  max-width: 700px;
  margin: 0 auto 30px auto;
  text-align: left;
}

#reasons .reason-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a73e8; /* 見出し色 */
}

#reasons .reason-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}


/* ===================================== */
/* インソール横並びカード・セクション */
/* ===================================== */
#insole-menu {
  background-color: #f9f9f9;
  padding: 50px 20px;
}

.insole-flex {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* カード全般 */
.insole-card {
  flex: 1 1 300px;      /* 最小幅300px、伸縮可 */
  max-width: 400px;     /* 幅広め */
  aspect-ratio: 1 / 1;  /* 高さ＝幅で正方形風 */
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* タイトル→内容縦並び */
  justify-content: flex-start;
  margin-bottom: 20px;
}

/* タイトル・料金・年齢範囲 */
.insole-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a73e8;
}

.insole-price,
.age-range {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.insole-note {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

/* 内訳・補足（プレーンテキスト風） */
.insole-details,
.insole-supplement {
  list-style: none;     /* ディスクなし */
  padding-left: 0;
  margin-bottom: 10px;
  color: #555;
  line-height: 1.6;
}

.insole-details li,
.insole-supplement li {
  margin-bottom: 6px;
  padding-left: 0;
}

/* セクションタイトル */
#insole-menu .section-title {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.total {
  color: #000 !important;
  font-weight: 700; /* 太字にしたい場合 */
}


/* ===================================== */
/* レスポンシブ調整 */
/* ===================================== */
@media screen and (max-width: 768px) {
  .insole-flex {
    flex-direction: column;  /* スマホは縦並び */
    gap: 20px;
  }

  .insole-card {
    max-width: 100%;   /* 幅いっぱい */
    aspect-ratio: auto; /* 高さ自動調整 */
  }
}




/* ===================================== */
/* サービスメニュー共通CSS */
/* ===================================== */

.services.container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}

/* 各サービス行 */
.services .service-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

/* 偶数行は左右反転 */
.services .service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

/* 左右50% */
.services .service-text,
.services .service-image {
  flex: 0 0 50%;
}

/* 見出し */
.services .service-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* 箇条書き */
.services .service-text ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
  color: #333;
}
.services .service-text ul li::before {
  content: "•";
  color: #ff6600;
  margin-right: 4px;
}

/* 画像 */
.services .service-image {
  display: flex;
  justify-content: center;
}
.services .service-photo {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .services .service-detail {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .services .service-text,
  .services .service-image {
    flex: 0 0 100%;
  }

  .services .service-photo {
    width: 90%;
  }

  .services .service-text h2 {
    font-size: 1.5rem;
  }

  /* 🔥 追加：スマホでは反転を無効化する */
  .service-detail:nth-child(even) {
    flex-direction: column !important;
  }
}


/* ============================ */
/* インソール作成の流れ */
/* ============================ */

#insole-flow {
  padding: 80px 0;
  background-color: #f7f7f7;
  text-align: center;
}

#insole-flow .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.flow-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.flow-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 0 0 30px; /* ← 画像が上に来るので上の余白はゼロに */
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  overflow: hidden; /* ← 画像角丸が綺麗に見える */
}

.flow-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 追加：flow画像 */
.flow-img {
  width: 100%;
  height: 220px;   /* ← 好きな高さに調整してOK */
  object-fit: cover;
  object-position: center;
  display: block;
}


.flow-number {
  width: 50px;
  height: 50px;
  background: #b5f5cf;
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 15px;
}

.flow-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.flow-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  padding: 0 15px;
}

/* スマホ用 */
@media (max-width: 900px) {
  .flow-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .flow-wrapper {
    grid-template-columns: 1fr;
  }
}
/* スマホ用 */
@media (max-width: 768px) {
  #insole-flow .flow-img {
    width: 100%;
    height: 320px;   /* ← ここで縦幅を大きくする（お好みで調整可能） */
    object-fit: cover;
    border-radius: 12px;
  }

  /* スマホではカード同士の間隔を少し詰めるなら */
  #insole-flow .flow-item {
    margin-bottom: 40px;
  }
}





/* ============================ */
/* Q&Aセクション */
/* ============================ */
.qa-section {
  width: 100%;
  background: #fff;
  padding: 60px 20px;
}

.qa-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル */
.qa-section .section-header {
  margin-bottom: 40px;
  text-align: center;
}

.qa-section .section-title {
  font-size: 30px;
  font-weight: 700;
}

/* Q&Aリスト */
.qa-item {
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 20px;
}

.qa-question {
  font-size: 18px;
  font-weight: 600;
  cursor: default;
  margin: 0 0 10px 0;
}

.qa-answer p {
  margin: 0;
  line-height: 1.7;
  color: #555;
  font-size: 15px;
}

/* スマホ対応 */
@media (max-width: 420px) {
  .qa-section .section-title { font-size: 22px; }
  .qa-question { font-size: 16px; }
  .qa-answer p { font-size: 14px; }
}




/* ============================= */
/* --- 予約セクション --- */
/* ============================= */

/* 締めセクション文章 */
.final-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  margin-bottom: 60px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-buttons .btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  min-width: 120px;
  text-align: center;
}






/* 予約セクション */
#contact {
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:50px 20px;
  background:#f9f9f9;
  margin-bottom:60px;
}
.contact-buttons {
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:20px;
}
.contact-buttons .btn {
  padding:10px 18px;
  border-radius:6px;
  font-weight:700;
  text-decoration:none;
  min-width:120px;
  text-align:center;
}
.line-btn { background:#00c300; color:#fff; }
.line-btn:hover { background:#009900; }
.phone-btn { background:#1a73e8; color:#fff; }
.phone-btn:hover { background:#155ab6; }

/* ホームに戻る */
.back-home {
  text-align:center;
  margin:30px 0;
}
.back-home .home-btn {
  display:inline-block;
  background:rgba(173,216,230,0.2);
  color:#111;
  padding:10px 20px;
  border-radius:20px;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
}
.back-home .home-btn:hover { background:rgba(173,216,230,0.4); }

/* フッター */
.site-footer {
  background:#111;
  color:#fff;
  padding:20px 0;
  font-size:0.9rem;
  text-align:center;
}
.footer-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.footer-links {
  list-style:none;
  display:flex;
  gap:16px;
  padding:0;
  margin:0;
}
.footer-links a {
  color:#fff;
  text-decoration:none;
}
.footer-links a:hover { text-decoration:underline; }
