﻿/* ==========================================================================
   ひだまり整体院 style.css (最適化版)
   ========================================================================== */

:root {
  --color-primary: #4A7C59;     /* ディープグリーン */
  --color-secondary: #F7F4EF;   /* ナチュラルベージュ */
  --color-accent: #D98A5E;      /* テラコッタオレンジ */
  --color-text-main: #333333;   /* 本文テキスト */
  --color-text-sub: #666666;    /* 補足テキスト */
  --color-white: #FFFFFF;

  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  --radius-button: 50px;
  --radius-card: 12px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);

  --content-width: 1100px;
  --section-padding: 96px 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text-main);
  background-color: var(--color-secondary);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

figure {
  margin: 0;
}

.font-en {
  font-family: var(--font-en);
}

.inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section--white {
  background-color: var(--color-white);
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading__eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading__title {
  font-size: 28px;
  line-height: 1.5;
  color: var(--color-primary);
  font-weight: 700;
}

.section-heading__lead {
  margin-top: 16px;
  color: var(--color-text-sub);
  font-size: 15px;
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 138, 94, 0.3);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--large {
  padding: 18px 48px;
  font-size: 16px;
}

/* ---- カード共通 ---- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---- ヘッダー ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.header__logo span {
  color: var(--color-accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list {
  display: flex;
  gap: 28px;
}

.header__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  padding-bottom: 4px;
}

.header__nav-list a:hover,
.header__nav-list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__tel {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header__tel-label {
  font-size: 11px;
  color: var(--color-text-sub);
}

.header__tel-number {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* ---- フッター ---- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 56px 24px 28px;
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 320px;
}

.footer__nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__nav-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.footer__nav-list li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer__nav-list a:hover {
  text-decoration: underline;
}

.footer__copyright {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-en);
}

/* ---- ページタイトルヘッダー（下層ページ用） ---- */
.page-hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 64px 24px;
  text-align: center;
}

.page-hero__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-hero__en {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
}

/* ===== index.html スタイル ===== */
.hero {
  position: relative;
  color: var(--color-white);
}

.hero__image-wrap {
  position: relative;
}

.hero__image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 124, 89, 0.55) 0%, rgba(51, 51, 51, 0.55) 100%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero__catch {
  font-size: 50px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__sub {
  font-size: 25px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__btn-menu {
  background-color: rgba(255, 255, 255, 0.9);
}

/* メインビジュアルの画像サイズ */
.hero__image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* 選ばれる理由の画像サイズ */
.reason-card__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* 院長あいさつの画像・アクセストラフィックボタン */
.greeting__photo img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 340 / 400;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.greeting__action {
  margin-top: 32px; /* インラインスタイルからCssへ移行 */
}

/* ---- News ---- */
.news {
  background-color: var(--color-white);
}

.news__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.news__label {
  flex-shrink: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-button);
}

.news__list {
  flex: 1;
  min-width: 260px;
}

.news__item {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2ddd2;
  font-size: 14px;
}

.news__item:last-child {
  border-bottom: none;
}

.news__date {
  font-family: var(--font-en);
  color: var(--color-text-sub);
  flex-shrink: 0;
}

/* ---- 3 Reasons ---- */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.reason-card {
  text-align: center;
  padding-bottom: 32px;
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.reason-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.reason-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reason-card__number {
  font-family: var(--font-en);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 24px 0 8px;
}

.reason-card__title {
  font-size: 19px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 20px;
}

.reason-card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  padding: 0 24px;
}

/* ---- Flow ---- */
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-step {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  text-align: center;
}

.flow-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.flow-step__text {
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ---- Access Preview ---- */
.access-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.access-preview__map {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 320px;
}

.access-preview__map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.access-preview__info {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
}

.access-preview__info h3 {
  color: var(--color-primary);
  font-size: 19px;
  margin-bottom: 20px;
}

.info-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid #eee5d8;
  vertical-align: top;
}

.info-table th {
  width: 110px;
  color: var(--color-text-sub);
  font-weight: 500;
}

.access-preview__info .btn {
  margin-top: 24px;
  width: 100%;
}

/* ===== menu.html スタイル ===== */
.course__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.course-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card__body {
  padding: 28px;
}

.course-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-button);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.course-card__title {
  font-size: 19px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.course-card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 18px;
}

.course-card__price {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
}

.course-card__price span {
  font-size: 12px;
  font-family: var(--font-jp);
  color: var(--color-text-sub);
  font-weight: 400;
  margin-left: 4px;
}

/* ---- Price Table ---- */
.price-table-wrap {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table caption {
  text-align: left;
  padding: 20px 24px 16px;
　font-size:18px;
  font-weight: 700;
  color: var(--color-primary);
}

.price-table th,
.price-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #f0ece2;
}

.price-table thead th {
  background-color: var(--color-secondary);
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 700;
}

.price-table td.price {
  font-family: var(--font-en);
  font-weight: 700;
  white-space: nowrap;
}

.price-table__note {
  padding: 16px 24px 24px;
  font-size: 12px;
  color: var(--color-text-sub);
}

/* ---- FAQ ---- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  font-family: var(--font-jp);
}

.faq-item__q-mark {
  font-family: var(--font-en);
  color: var(--color-white);
  background-color: var(--color-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.faq-item__icon {
  margin-left: auto;
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 24px 24px 68px;
  font-size: 14px;
  color: var(--color-text-sub);
}

/* ===== access.html スタイル ===== */
.greeting {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.greeting__photo img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
}

.greeting__role {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.greeting__name {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 20px;
}

.greeting__name span {
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 400;
  margin-left: 10px;
}

.greeting__text {
  font-size: 15px;
  margin-bottom: 24px;
}

.greeting__quals {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.greeting__quals li {
  margin-bottom: 6px;
}

.overview-table-wrap {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 8px 32px;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.overview-table th,
.overview-table td {
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid #f0ece2;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

.overview-table th {
  width: 140px;
  color: var(--color-primary);
  font-weight: 700;
  vertical-align: top;
}

.map-block {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
　margin-bottom: 48px;
}

.map-block iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.route__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.route-step {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.route-step__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
　object-position: top;
}

.route-step__body {
  padding: 24px;
  display: flex;
  gap: 16px;
}

.route-step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
}

.route-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.route-step__text {
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ---- 決済案内エリア ---- */
.payment-info {
  display: flex;
  flex-wrap: wrap;             /* スマホで折り返せるように設定 */
  align-items: center;          /* 上下の中央揃え */
  justify-content: center;     /* 左右の中央揃え */
  gap: 8px 6px;                 /* 要素同士の間隔 */
  margin-top: 24px;            /* 上の表との余白 */
  font-size: 18px;             /* 全体の文字サイズを少し大きく */
  font-weight: 500;
  color: var(--color-text-main);
}

.payment-info__list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.payment-info__text,
.payment-info__bracket {
  line-height: 1.4;
}

/* バッジ（見た目の調整） */
.badge {
  display: inline-block;
  padding: 6px 12px;           /* バッジを少し大きめに調整 */
  background-color: #f0ece2;
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: bold;
}
/* --------------------------------------------------------------------------
   4. レスポンシブ対応（767px以下 = スマホ）
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --section-padding: 64px 20px;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  body.nav-open .header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .header__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }

  .header__actions .btn {
    width: 100%;
  }

  .hero__image-wrap img {
    height: 480px;
  }

  .hero__catch {
    font-size: 28px;
  }

  .hero__sub {
    font-size: 14px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .reasons__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow__list {
    grid-template-columns: 1fr;
  }

  .access-preview {
    grid-template-columns: 1fr;
  }

  .course__grid {
    grid-template-columns: 1fr;
  }

  .greeting {
    grid-template-columns: 1fr;
  }

  .greeting__photo {
    max-width: 240px;
    margin: 0 auto;
  }
.greeting__action {
    margin-top: 24px;
    text-align: center; /* スマホ時はボタンを中央寄せ */
  }
  .route__list {
    grid-template-columns: 1fr;
  }

  .overview-table-wrap {
    padding: 8px 20px;
  }

  .overview-table th {
    width: 96px;
    font-size: 13px;
  }

  .section-heading__title {
    font-size: 24px;
  }

  .page-hero__title {
    font-size: 26px;
  }
.map-block {
    margin-bottom: 32px;
  }
  
  .map-block iframe,
  .map-block--dummy {
    height: 300px; /* スマホで縦長になりすぎないよう調整 */
  }

  .route-step__image img {
    height: 180px; /* スマホ時の道順画像サイズ調整 */
  }
}
