/*
Theme Name: iwate-kotoba
Description:いわて　ことばの相談室　言語聴覚士による個別レッスン
Author:miki
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --logo-green:   #5aaa68;  /* リーフグリーン（ロゴ文字・pill） */
  --burger-teal:  #72b9c0;  /* ミュートティール（ハンバーガー円） */
  --sage:         #6aab99;
  --sage-dark:    #4a8a78;
  --cream:        #fef8f0;
  --brown:        #5c4a3a;
  --line-green:   #06C755;
  --cta-teal:     #4a9080;
  --header-h:     60px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

h2 {
  font-size: 24px;
}

main{
  padding-bottom: 57px;
}
main > section {
  padding-top: 30px;
  padding-bottom: 30px;
}

h3 {
  font-size: 20px;
}

p {
  font-size: 16px;
  line-height: 2;
}

body {
  font-family: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  background: var(--cream);
  color: var(--brown);
  padding-top: var(--header-h);
  padding-bottom: 57px;
  min-height: 100dvh;
}

/* WordPress Admin Bar対応 */
body.admin-bar {
  padding-bottom: calc(57px + 32px) !important;
}

.site-footer {
  z-index: 999999;
}

/* 利用規約ページ: CTAサイドバー/フッターを使わないため予約スペースを解除 */
body.terms-page {
  padding-bottom: 0;
}

/* ===== Fixed Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* Logo pill — warm ivory bg, green text, wide tracking */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf7ec;
  border-radius: 999px;
  padding: 7px 20px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--logo-green);
  letter-spacing: 0.15em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}

.site-logo__leaf {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

.site-logo .divider {
  margin: 0 6px;
  color: #c8a060;
  font-weight: 400;
  letter-spacing: 0;
}

.site-logo .logo-sub {
  color: #654908;
}

/* ===== Global Nav（PC 専用・モバイルでは非表示） ===== */
.global-nav {
  display: none;
}

.global-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.global-nav__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.global-nav__link:hover {
  color: #11a895;
}

/* Hamburger button — SVG画像をそのまま使用、背景なし */
.nav-toggle {
  width: 48px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s;
}

.nav-toggle:active {
  transform: scale(0.9);
}

/* SVG画像（通常状態） */
.burger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ✕ 閉じるアイコン（メニュー開時に表示） */
.close-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: #6fa8a6;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  line-height: 1;
}

/* 開いた状態：SVGを隠して✕を表示 */
.nav-toggle[aria-expanded="true"] .burger-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .close-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ===== Full-screen Menu Overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;        /* ヘッダーより前面、CTAバー(970)より後 */
  background: #fdf7ec;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* オーバーレイ上部: ロゴ + 閉じるボタン */
.overlay-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 72px 16px 20px; /* 右側に閉じるボタン分の余白 */
  gap: 8px;
  flex-shrink: 0;
}

/* グリーンのロゴpill */
.overlay-logo-pill {
  background: #6aab96;
  border-radius: 999px;
  padding: 10px 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.overlay-logo-pill .leaf { font-size: 0.85em; }

/* サブタイトル */
.overlay-tagline {
  color: #6aab96;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* 閉じるボタン */
.overlay-close-btn {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--brown);
  font-size: 1.4rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.35s ease 0.1s;
}

.nav-overlay.is-open .overlay-close-btn {
  opacity: 1;
}

.overlay-close-btn:active { opacity: 0.6; }

/* ナビゲーション */
.overlay-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

/* 各アイテムの行 */
.nav-row {
  border-bottom: 1px solid rgba(106, 171, 153, 0.22);
}

.nav-row:first-child {
  border-top: 1px solid rgba(106, 171, 153, 0.22);
}

/* 通常リンク / アコーディオン親ボタン 共通スタイル */
.nav-row-link,
.nav-row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 18px 48px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a3828;
  letter-spacing: 0.14em;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity    0.38s ease,
    transform  0.38s ease,
    color      0.2s,
    background 0.2s;
}

.nav-overlay.is-open .nav-row-link,
.nav-overlay.is-open .nav-row-btn { opacity: 1; transform: translateY(0); }

/* スタガーディレイ */
.nav-overlay.is-open .nav-row:nth-child(1) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(1) .nav-row-btn { transition-delay: 0.06s; }
.nav-overlay.is-open .nav-row:nth-child(2) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(2) .nav-row-btn { transition-delay: 0.12s; }
.nav-overlay.is-open .nav-row:nth-child(3) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(3) .nav-row-btn { transition-delay: 0.18s; }
.nav-overlay.is-open .nav-row:nth-child(4) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(4) .nav-row-btn { transition-delay: 0.24s; }
.nav-overlay.is-open .nav-row:nth-child(5) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(5) .nav-row-btn { transition-delay: 0.30s; }
.nav-overlay.is-open .nav-row:nth-child(6) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(6) .nav-row-btn { transition-delay: 0.36s; }
.nav-overlay.is-open .nav-row:nth-child(7) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(7) .nav-row-btn { transition-delay: 0.42s; }
.nav-overlay.is-open .nav-row:nth-child(8) .nav-row-link,
.nav-overlay.is-open .nav-row:nth-child(8) .nav-row-btn { transition-delay: 0.48s; }

.nav-row-link:hover,
.nav-row-link:focus,
.nav-row-btn:hover,
.nav-row-btn:focus {
  color: #11a895;
  background: rgba(106, 171, 153, 0.07);
  outline: none;
}

/* シェブロン */
.nav-chevron {
  position: absolute;
  right: 22px;
  font-size: 0.78rem;
  color: #7a6a5a;
  transition: transform 0.3s ease;
}

.nav-row-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* アコーディオン サブメニュー */
.nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s ease;
  background: rgba(106, 171, 153, 0.04);
}

.nav-sub.is-open {
  max-height: 300px;
}

.nav-sub-link {
  display: block;
  text-align: center;
  padding: 13px 24px;
  color: #6a5a48;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-top: 1px solid rgba(106, 171, 153, 0.15);
  transition: color 0.2s, background 0.2s;
}

.nav-sub-link:hover,
.nav-sub-link:focus {
  color: #11a895;
  background: rgba(106, 171, 153, 0.1);
  outline: none;
}

/* ===== FV カルーセル ===== */
.fv {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

/* スライドトラック */
.carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 資格テキスト（画像の下に配置） */
.fv-heading {
  margin-top: 0;
  padding: 4px 20px 16px;
  background: #fdf3e3;
  text-align: center;
}

.fv-heading .fv-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 9px;
}

/* 画像の下のメインコピー */
.fv-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--logo-green);
  letter-spacing: 0.06em;
  line-height: 1.3;
  background: #fdf3e3;
  padding: 0;
  margin: 0;
}

/* FVテキスト: 1文字ずつ左から浮き上がるアニメーション */
.fv-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-0.3em);
  animation: charIn 0.8s ease-out forwards;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-heading .char {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 相談内容カード: スクロールで下からふわっとフェードイン */
.guidance-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.guidance-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .guidance-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* 料金カード: スクロールで下からふわっとフェードイン */
.fee-accordion__item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fee-accordion__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fee-accordion__item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Instagram投稿: スクロールで下からふわっとフェードイン */
.sns__post {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sns__post.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sns__post {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== SNS Instagram セクション ===== */
.sns-news-wrap {
  background: linear-gradient(to bottom, #f0e9fd, #fffaee);
  border-radius: 0;
  overflow: hidden;
  margin-top: 0;
}

.sns {
  background: transparent;
}

.sns__inner {
  padding: 48px 24px 0;
}

.sns__title {
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sns__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

.sns__desc {
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 28px;
  text-align: center;
}

.sns__posts {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding-bottom: 28px;
}

.sns__post {
  display: block;
  width: 40%;
  max-width: 160px;
}

.sns__post img {
  width: 100%;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.sns__hashtag {
  background: #8ad4ce;
  color: var(--brown);
  text-align: center;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== 相談の流れセクション ===== */
.flow {
  padding: 44px 28px 52px;
  background: #ffefdb;
}

.flow__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.flow__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}

.flow__phase {
  margin-bottom: 44px;
}

.flow__phase-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brown);
  margin-bottom: 28px;
}

.flow__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 16px;
}

.flow__step-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  width: 100%;
}

/* 吹き出し数字バッジ */
.flow__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-image: url('image/Vector.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.flow__step-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brown);
  white-space: nowrap;
}

.flow__step-body {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: center;
  flex: 1;
}

/* カルーセル */
.flow-carousel {
  position: relative;
  overflow: hidden;
}

.flow-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #6fa8a6;
  cursor: pointer;
  padding: 8px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.flow-carousel__arrow:hover { opacity: 1; }

.flow-carousel__arrow--prev { left: 0; }
.flow-carousel__arrow--next { right: 0; }

.flow-carousel__arrow-icon {
  width: 22px;
  height: 13px;
  display: block;
}

.flow-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.flow__step-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  margin-bottom: 8px;
}

.flow__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.flow__img {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 8px;
}


/* ===== お知らせセクション ===== */
.news {
  padding: 44px 24px 52px;
  background: transparent;
}

.news__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.news__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}

.news__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news__item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(92, 74, 58, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news__item:first-child {
  border-top: 1px solid rgba(92, 74, 58, 0.15);
}

.news__date {
  font-size: 0.78rem;
  color: #a09080;
  letter-spacing: 0.05em;
}

.news__text {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.7;
}

.guidance__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--brown);
  text-align: center;
  line-height: 2;
}

/* ===== 料金セクション ===== */
.fee {
  padding: 44px 20px 52px;
  background: #cfffef;
  position: relative;
  text-align: center;
}

.fee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fcfcfc;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.fee__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.fee__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}

/* セクションタイトルの上下ライン: ルール一式はファイル末尾に集約 */

.fee-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.fee-accordion__item {
  background: #fcfcfc;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(92, 74, 58, 0.25);
}

.fee-accordion__btn {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #98ebe5;
  border: none;
  margin: 24px auto 0;
  padding: 14px 44px;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
}

.fee-accordion__body {
  background: transparent;
  padding: 16px 20px 20px;
  color: #000;
}

.fee-accordion__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* 教室カード: place情報がある場合は縦積みにして、イラスト+テーブル行はオンラインと同じ横並びに揃える */
.fee-accordion__inner:has(.fee-accordion__place) {
  flex-direction: column;
  align-items: stretch;
}

.fee-accordion__img {
  width: 40%;
  max-width: 130px;
  flex-shrink: 0;
}

.fee-accordion__table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.fee-accordion__table td {
  padding: 4px 8px;
  white-space: nowrap;
}

.fee-accordion__table td:last-child {
  text-align: center;
}

.fee-accordion__hours {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
}

.fee-accordion__hours td {
  padding: 3px 8px;
  line-height: 1.7;
}

.fee-accordion__hours td:last-child {
  text-align: center;
}

/* オンライン・自宅訪問カード: 冒頭の1文だけ強調(教室の場所タイトルと同サイズ) */
.fee-accordion__note-title {
  font-size: 1rem;
  font-weight: 700;
}

/* 教室カード: 場所テキスト */
.fee-accordion__place {
  margin-bottom: 12px;
}

/* オンライン・自宅訪問カード: 教室の場所テキスト分の高さを確保するダミー（PCのみ表示） */
.fee-accordion__spacer {
  display: none;
}

.fee-accordion__place-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fee-accordion__place-note {
  font-size: 0.82rem;
  color: #000;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fee-accordion__online-note {
  font-size: 0.82rem;
  font-weight: 400;
  color: #000;
  line-height: 1.8;
  margin-bottom: 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 教室カード: イラスト+テーブルの横並び行 */
.fee-accordion__detail {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.fee-accordion__detail > div {
  flex: 1;
  min-width: 0;
}

.fee-card {
  background: #f6efe5;
  padding: 0 0 24px;
  position: relative;
}

.fee-card__heading {
  display: block;
  background: #60f5c1;
  color: var(--brown);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 24px;
  margin-bottom: 16px;
  text-align: center;
}

.fee-card__body {
  padding: 0 20px 4px;
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.9;
}

.fee-card__location {
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.7;
  text-align: center;
}

.fee-card__location span {
  font-size: 0.8rem;
  color: #7a6a5a;
}

.fee-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fee-card__img {
  width: 45%;
  flex-shrink: 0;
}

.fee-card__table {
  flex: 1;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-weight: 700;
}

.fee-card__table td {
  padding: 4px 6px;
  white-space: nowrap;
}

.fee-card__table td:last-child {
  text-align: right;
}

.fee-card__transport {
  font-size: 0.82rem;
  font-weight: 400;
  padding-top: 8px;
}

.fee-card__transport-note {
  font-size: 0.82rem;
  font-weight: 400;
  color: #000;
  line-height: 1.6;
}

.fee-card__hours {
  border-collapse: collapse;
  font-size: 0.82rem;
  width: 100%;
}

.fee-card__hours td {
  padding: 3px 6px;
  line-height: 1.7;
}

.fee-card__hours td:last-child {
  text-align: right;
}

.fee__note {
  margin-top: 32px;
  background: #ffefdb;
  border-radius: 20px;
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--brown);
  line-height: 1.7;
  min-height: 44px;
  text-align: center;
  font-weight: 700;
  width: 140px;
  margin-inline: auto;
  box-shadow: 0 4px 8px rgba(92, 74, 58, 0.25);
}

.fee__link {
  margin-top: 20px;
  background: #249fba;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 10px 0;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(92, 74, 58, 0.4);
  min-width: 144px;
}

/* ===== 経歴セクション ===== */
.career {
  padding: 40px 24px 48px;
  background: #fff;
}

.career__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-align: center;
}

.career__body {
  font-size: 16px;
  color: var(--brown);
  line-height: 1.8;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.career__body p {
  margin: 0;
}

/* ===== 相談内容セクション ===== */
.guidance {
  padding: 44px 24px 52px;
  background: #fcfcfc;
}

.guidance__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.guidance__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 36px;
}

.guidance__cards {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.guidance-card {
  position: relative;
  padding-top: 17px;
}

.guidance-card__heading {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: #11a895;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 8px 28px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  margin-bottom: -17px;
}

.guidance-card__heading-en {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-align: center;
  font-weight: 400;
  border-bottom: 1px solid #fff;
  padding-bottom: 3px;
  margin-bottom: 3px;
}

.guidance-card__heading {
  line-height: 1.6;
}

.guidance-card__body {
  background: #fcfcfc;
  border: 1.5px solid #9b2703;
  padding: 32px 20px 20px;
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.9;
  box-shadow: 0 4px 8px rgba(92, 74, 58, 0.25);
}

/* ===== よくある質問セクション ===== */
.faq {
  padding: 44px 16px 52px;
  background: #f0f9fd;
}

.faq__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.faq__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  border-radius: 3px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: #ffd8cc;
  border: none;
  padding: 12px 48px 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown);
  cursor: pointer;
  text-align: left;
  gap: 8px;
  border-radius: 3px;
  transition: background 0.2s;
}

.faq__question:hover { background: #ffc9b8; }

.faq__icon {
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
  position: absolute;
  right: 16px;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fff8f6;
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.85;
}

.faq__answer.is-open {
  max-height: 400px;
  padding: 14px 16px;
}

.faq__answer p {
  text-align: left;
}

/* ===== ごあいさつセクション ===== */
.greeting {
  padding: 44px 24px 52px;
  background: #fff;
}

.greeting__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.greeting__title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 28px;
}

.greeting__body {
  font-size: 0.92rem;
  color: var(--brown);
  line-height: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.greeting__sign {
  text-align: right;
  font-weight: 700;
  margin-top: 8px;
}

/* ===== About セクション ===== */
.about {
  padding: 40px 24px 44px;
  background: #fdf3e3;
}

.about__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.about__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.28em;
  margin-bottom: 24px;
  line-height: 1.4;
}

.about__leaf {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.about__body {
  font-size: 0.92rem;
  color: var(--brown);
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Site Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  height: 57px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
/*.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 970;
  display: grid;
  grid-template-columns: 1fr 2.5fr 2.8fr;
  height: 57px;
}*/

.site-footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  gap: 2px;
  padding: 4px;
  flex: 1;
  transition: filter 0.2s;
}

.site-footer a:hover  { filter: brightness(1.1); }
.site-footer a:active { filter: brightness(0.9); }

.site-footer__line {
  background: var(--line-green);
  order: 3;
  flex: none;
  width: 70px;
}

.site-footer__line-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-footer__first {
  background: #EF9540;
  order: 1;
  font-size: 16px;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.site-footer__repeat {
  background: #10B69D;
  order: 2;
  font-size: 16px;
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(57px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(57px + env(safe-area-inset-bottom)) !important;
  }
  body.admin-bar {
    padding-bottom: calc(57px + 32px + env(safe-area-inset-bottom)) !important;
  }
}

/*@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(57px + env(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(57px + env(safe-area-inset-bottom));
  }
}*/

/* ===== お問い合わせセクション（ベース） ===== */
.contact {
  padding: 44px 24px 52px;
  background: #f0f7f4;
  text-align: center;
}

.contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 10px;
}

.contact__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.contact__lead {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.9;
  margin-bottom: 36px;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__method {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(92, 74, 58, 0.08);
}

.contact__method-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__method-icon-wrap--line {
  background: var(--line-green);
}

.contact__method-icon-wrap--mail {
  background: var(--sage);
}

.contact__method-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.contact__method-icon-char {
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}

.contact__method-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.1em;
  margin: 0;
}

.contact__method-desc {
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.75;
}

.contact__method-email {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown);
  background: #f6efe5;
  padding: 8px 18px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.contact__at {
  color: #c8a060;
  font-weight: 400;
}

.contact__email-note {
  font-size: 0.78rem;
  color: #a09080;
  line-height: 1.6;
}

.contact__btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: filter 0.2s;
  margin-top: 4px;
}

.contact__btn:hover {
  filter: brightness(1.08);
}

.contact__btn--line {
  background: var(--line-green);
  color: #fff;
}

/* ブランドロゴアイコン（LINE・Gmail） */
.contact__method-icon-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact__method-icon-link:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.contact__method-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

/* ===================================================================
   PCレイアウト（768px 以上）
   デザインカンプ「予約・問い合わせ.svg」準拠:
   縦書きサイドバーCTAを画面右端に固定配置
=================================================================== */

@media (min-width: 768px) {

  /* ---- ボディ: 右サイドバー分の余白 ---- */
  body {
    padding-right: 60px !important;
    background: #f0f7f4;
  }

  body.terms-page {
    padding-right: 0 !important;
  }

  /* ---- ヘッダー: 画面幅いっぱいに ---- */
  .site-header {
    padding: 0 16px;
    right: 0;
    width: 100%;
    left: 0;
  }

  /* ---- PC: グローバルナビ表示 / ハンバーガー非表示 ---- */
  .global-nav {
    display: block;
    margin-right: 16px;
  }

  /* ---- 相談内容: ホバーでサブメニュー表示 ---- */
  .global-nav__list > li.has-sub {
    position: relative;
  }

  .global-nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--cream);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 950;
  }

  .has-sub:hover .global-nav__sub,
  .has-sub:focus-within .global-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .global-nav__sub li + li {
    border-top: 1px solid #ccc;
  }

  .global-nav__sub a {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brown);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .global-nav__sub a:hover {
    background: #f6efe5;
    color: #11a895;
  }

  .nav-toggle {
    display: none;
  }

  /* ---- オーバーレイ: PC では完全に封じる ---- */
  .nav-overlay {
    display: none !important;
  }

  /* ---- FV: viewport 全幅表示 ---- */
  /* body に left padding がないため left オフセット不要。
     margin-right: -60px で右サイドバー分の余白を相殺し全幅に伸ばす */
  .fv {
    width: 100vw;
    margin-right: -60px;
  }

  .carousel-track {
    aspect-ratio: 16 / 6;
  }

  /* fv-heading: 資格テキストとタイトルを横1行に並べる */
  .fv-heading {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px 20px;
  }

  .fv-heading .fv-sub {
    margin-bottom: 0;
  }

  .fv-title {
    font-size: 2rem;
  }

  /* ---- セクション共通: 最大幅・余白 ---- */
  .about,
  .guidance,
  .fee,
  .flow,
  .faq,
  .greeting,
  .career {
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left:  max(32px, calc((100% - 820px) / 2));
    padding-right: max(32px, calc((100% - 820px) / 2));
  }

  /* ---- 相談内容: 1列レイアウト ---- */
  .guidance__cards {
    flex-direction: column;
    gap: 24px;
  }

  /* ---- 料金: PC 3カラムカードレイアウト ---- */

  /* カード3枚が収まるようセクション横幅を拡張 + 右CTAサイドバー分まで全幅に */
  .fee {
    margin-right: -60px;
    width: calc(100% + 60px);
    padding-left:  max(32px, calc((100% - 980px) / 2));
    padding-right: calc(60px + max(32px, calc((100% - 980px) / 2)));
  }

  /* アコーディオン → 3列グリッドに切り替え */
  .fee-accordion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: none;
    margin-inline: 0;
    margin-bottom: 40px;
  }

  /* カード全体 */
  .fee-accordion__item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(92, 74, 58, 0.25);
    display: flex;
    flex-direction: column;
    background: #fcfcfc;
  }

  /* カードヘッダー */
  .fee-accordion__btn {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    padding: 18px 48px;
    background: #98ebe5;
    justify-content: center;
  }

  /* カードボディ: flex列コンテナにしてinnerが高さを埋められるようにする */
  .fee-accordion__body {
    padding: 24px 20px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* イラスト: 全カード統一サイズ */
  .fee-accordion__img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* 教室イラスト: 横長のため高さを大きくして幅はアスペクト比に合わせる */
  .fee-accordion__img--wide {
    width: auto;
    height: 120px;
  }

  /* テキスト・画像を全カード共通で縦積み・中央揃え */
  /* place ブロックが flex:1 で伸びることで画像の開始位置を全カード統一 */
  .fee-accordion__inner {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    text-align: center;
  }

  .fee-accordion__inner > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 料金テーブル */
  .fee-accordion__table {
    width: 100%;
    margin-bottom: 10px;
  }

  .fee-accordion__table td,
  .fee-accordion__table td:last-child {
    padding: 5px 8px;
    font-size: 0.95rem;
    text-align: center;
  }

  /* 交通費・駐車料金の注記は本文と同じサイズに */
  .fee-accordion__table td.fee-card__transport,
  .fee-accordion__table td.fee-card__transport-note {
    font-size: 0.82rem;
  }

  /* 曜日・時間テーブル */
  .fee-accordion__hours {
    width: 100%;
    border-top: 1px solid rgba(92, 74, 58, 0.12);
    padding-top: 10px;
    margin-top: 0;
  }

  .fee-accordion__hours td,
  .fee-accordion__hours td:last-child {
    padding: 4px 6px;
    font-size: 0.82rem;
    color: #000;
    text-align: center;
  }

  a.fee__note,
  .fee__note {
    max-width: 420px;
    margin-inline: auto;
  }

  /* ---- 教室カード: place情報あり → inner を縦積みに ---- */
  .fee-accordion__inner:has(.fee-accordion__place) {
    flex-direction: column;
    text-align: center;
  }

  /* オンライン・自宅訪問カード: 教室のplace情報と同じ高さを確保して画像位置を揃える */
  .fee-accordion__spacer {
    display: block;
    visibility: hidden;
    margin-bottom: 12px;
  }

  /* 説明文ブロック: 伸びることで画像の開始位置を全カードで揃える */
  .fee-accordion__place {
    flex: 1;
    justify-content: flex-start;
  }

  /* 詳細行（イラスト+テーブル）の PC スタイル: 縦積み・中央揃え */
  .fee-accordion__detail {
    flex: none;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .fee-accordion__detail > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  /* ---- FAQ ---- */
  .faq__list {
    max-width: 720px;
    margin: 0 auto;
  }

  /* ---- SNS: PC 4カラムグリッド ---- */
  .sns__posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 820px;
    margin-inline: auto;
    padding-bottom: 32px;
  }

  .sns__post {
    width: 100%;
    max-width: none;
  }

  .sns__post img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }

  /* ---- 右サイドバーCTA（デザインカンプ準拠） ----
     上: 初回無料相談（オレンジ）
     中: 継続の方（ティール）
     下: LINE
  ------------------------------------------------- */
  .site-footer {
    /* 位置: 画面右端・縦方向中央 */
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);

    /* サイズ・形状 */
    width: 60px;
    height: auto;
    border-radius: 14px 0 0 14px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.14);

    /* レイアウト: 縦並び */
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    overflow: hidden;
    gap: 0;
    padding: 0;

    /* PC版: ページ読み込み直後は非表示 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  /* CTAバー: 表示状態 */
  .site-footer.is-sidebar-visible {
    opacity: 1;
    visibility: visible;
  }

  /* 共通リンクスタイル */
  .site-footer a {
    width: 60px;
    padding: 12px 8px;
    gap: 6px;
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1.3;
    border-radius: 0;
    flex: none;
  }

  /* 並び順: 初回 → 継続 → LINE */
  /* 初回無料相談ボタン: ページ読み込み直後は非表示、#about 到達でフェードイン */
  .site-footer__first  {
    order: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
  }
  .site-footer__first.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .site-footer__repeat { order: 2; }
  .site-footer__line   { order: 3; }

  /* 初回無料相談: 縦書き大ボタン
     .site-footer a (0,1,1) より強い (0,2,1) で flex-direction 上書き */
  .site-footer a.site-footer__first {
    height: 210px;
    flex-direction: row;  /* writing-mode:vertical-rl では row = 上→下 */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 6px;
    letter-spacing: 0.2em;
    font-size: 16px;
    color: #fff !important;
    background-color: #EF9540;
    -webkit-text-fill-color: #fff;
  }

  .site-footer a.site-footer__first span {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  /* 継続の方: 縦書き大ボタン */
  .site-footer a.site-footer__repeat {
    height: 210px;
    flex-direction: row;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 6px;
    letter-spacing: 0.2em;
    font-size: 16px;
    white-space: nowrap;
  }

  /* LINE: コンパクト横書き（最下部） */
  .site-footer__line {
    height: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
  }

  .site-footer__line-img {
    width: 44px;
    height: 44px;
  }

  /* ---- 各セクション: 背景を画面幅いっぱいに拡張 ----
     body の padding-right: 60px（右サイドバーCTA用の余白）で
     セクション本体の右端が画面端より60px手前で止まるため、
     box-shadow で背景色だけを画面端まで塗り広げる（コンテンツ位置には影響しない） */
  /* ---- ご挨拶・経歴: ラッパーごと右60px拡張 ---- */
  .career,
  .greeting {
    margin-right: -60px;
    width: calc(100% + 60px);
    padding-right: calc(60px + max(32px, calc((100% - 820px) / 2)));
  }

  /* ---- 相談の流れ: overflow:visible のためラッパーごと右60px拡張 ---- */
  .flow {
    margin-right: -60px;
    width: calc(100% + 60px);
    padding-right: calc(60px + max(32px, calc((100% - 820px) / 2)));
  }

  .about {
    box-shadow: 100vw 0 0 #fdf3e3, -100vw 0 0 #fdf3e3;
  }

  /* ---- 相談内容: overflow なし → ラッパーごと右60px拡張 ---- */
  .guidance {
    margin-right: -60px;
    width: calc(100% + 60px);
    padding-right: calc(60px + max(32px, calc((100% - 880px) / 2)));
  }


  .faq {
    box-shadow: 100vw 0 0 #f0f9fd, -100vw 0 0 #f0f9fd;
  }


  /* ---- インスタ・お知らせ: overflow:hidden のためラッパーごと拡張 ---- */
  .sns-news-wrap {
    margin-right: -60px;
    width: calc(100% + 60px);
  }

  /* ---- 相談の流れ: PC 横並びステップ表示 ---- */
  .flow-carousel {
    overflow: visible;
  }

  .flow-carousel__arrow {
    display: none;
  }

  /* JS がインラインで transform を付けるため !important で上書き */
  .flow-carousel__track {
    transform: none !important;
    transition: none;
    gap: 36px;
    align-items: stretch;
  }

  .flow-carousel__slide {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    position: relative;
  }

  /* ステップ間の矢印 */
  .flow-carousel__slide:not(:last-child)::after {
    content: '›';
    position: absolute;
    top: 50%;
    right: 0;
    /* 右端から gap(36px) 分だけ外側にずらしてギャップ中央に配置 */
    transform: translateX(100%) translateY(-50%);
    width: 36px;
    text-align: center;
    font-size: 2.6rem;
    color: rgba(92, 74, 58, 0.28);
    z-index: 1;
    line-height: 1;
    pointer-events: none;
  }

  /* ステップカード: 上40px、左右・下24px */
  .flow__step {
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px 24px;
    box-shadow: 0 6px 20px rgba(92, 74, 58, 0.18);
    height: 100%;
    box-sizing: border-box;
  }

  /* タイトル: 大きめにして階層を明確に。
     番号バッジと並べても1行に収まるサイズ・字間に調整 */
  .flow__step-name {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }

  /* フェーズ見出し(-初回- / -2回目以降-): カードタイトルと同サイズ。
     見出し→カードの余白を、カード→見出しの余白(44px)と揃える */
  .flow__phase-title {
    font-size: 1.2rem;
    margin-bottom: 44px;
  }

  /* タイトル行: 番号バッジとの間隔を詰めて横幅を確保
     タイトルと画像の間は16px */
  .flow__step-head {
    gap: 10px;
    height: 44px;
    margin-bottom: 16px;
  }

  /* 画像エリア(アイコン用): 高さ150pxの共通枠
     画像と本文の間は16px */
  .flow__step-icons {
    min-height: 150px;
    height: 150px;
    margin-bottom: 16px;
  }

  /* イラスト: 高さ150pxの共通枠に縦横比を保ったまま収める
     → 全カードで画像の占める高さが揃い、本文の開始位置も一致 */
  .flow__img {
    height: 150px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto 16px;
  }

  /* 宿題メモのお渡し(pen.png): 画像のみ134pxに縮小。
     枠は150pxのままなので本文の開始位置は変わらない。
     視覚的に左寄りに見えるため4px右に補正 */
  .flow__img[src*="pen.png"] {
    padding: 8px 0;
    transform: translateX(6px);
  }

  /* アイコン: イラストとのバランスで拡大 */
  .flow__icon {
    width: 80px;
    height: 80px;
  }

  /* 本文: 左揃え・16px */
  .flow__step-body {
    font-size: 16px;
    text-align: left;
    line-height: 1.9;
  }

  /* ステップカード: 左から順にスライドイン */
  .flow-carousel__slide {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .flow-carousel__slide.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .flow-carousel__slide {
      transition: none;
      opacity: 1;
      transform: none;
    }
  }

  /* ---- FAQ: PC スタイル調整 ---- */
  .faq__list {
    max-width: 720px;
    margin: 0 auto;
  }

  .faq__question {
    font-size: 1rem;
    padding: 16px 52px 16px 24px;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
  }

  .faq__icon {
    right: 20px;
  }

  .faq__answer p {
    text-align: left;
  }

  .faq__answer.is-open {
    padding: 16px 24px;
  }

  /* ---- お問い合わせ: PC 2列レイアウト + 右60px拡張 ---- */
  .contact {
    margin-right: -60px;
    width: calc(100% + 60px);
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left:  max(32px, calc((100% - 820px) / 2));
    padding-right: calc(60px + max(32px, calc((100% - 820px) / 2)));
  }

  .contact__methods {
    flex-direction: row;
    gap: 32px;
    max-width: 760px;
    margin-inline: auto;
  }

  .contact__method {
    flex: 1;
  }

  /* safe-area 上書き（PCでは不要） */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    body        { padding-bottom: 0 !important; }
    .site-footer { padding-bottom: 0; height: auto; }
  }
}

/* ---- タブレット幅: グローバルナビが収まりきらず右側が欠けるため詰める ---- */
@media (min-width: 768px) and (max-width: 929px) {
  .site-header {
    padding: 0 16px;
  }

  .site-logo {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .global-nav {
    margin-right: 16px;
  }

  .global-nav__list {
    gap: 14px;
  }

  .global-nav__link {
    font-size: 12.5px;
  }
}

/* ===================================================================
   利用規約ページ専用スタイル
   クラス名はすべて terms- プレフィックスで既存スタイルと分離
=================================================================== */

/* 利用規約専用カラー変数（既存の --cream 等を優先し、専用色のみ追加） */
:root {
  --terms-green:          #7FA687;
  --terms-green-deep:     #5D8A68;
  --terms-green-pale:     #E4EEE1;
  --terms-peach:          #F6C9B4;
  --terms-peach-pale:     #FBE7DC;
  --terms-mint:           #B7DDC7;
  --terms-mint-pale:      #E3F3E9;
  --terms-sky:            #B9D3E0;
  --terms-sky-pale:       #E5F0F4;
  --terms-lavender:       #CBC2DE;
  --terms-lavender-pale:  #EEEAF6;
  --terms-butter:         #F0DBA0;
  --terms-butter-pale:    #FBF3DD;
  --terms-blush:          #EFC2C2;
  --terms-blush-pale:     #FBE9E9;
  --terms-text-mid:       #96876F;
  --terms-text-mid2:      #837563;
  --terms-border:         #E9E1D2;
}

/* 料金セクションの「利用規約はこちら」をリンク化した際のスタイル調整 */
a.fee__note {
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}
a.fee__note:hover { background: #fde5c4; }

/* ----- ヒーローバナー ----- */
.terms-hero {
  position: relative;
  background: var(--terms-green);
  padding: 3.5rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* 下部の波型カーブ */
.terms-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 48px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* バブル装飾 */
.terms-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.terms-bubble--1 { width: 70px; height: 70px; background: var(--terms-mint);   top: 15%; left: 8%;   }
.terms-bubble--2 { width: 40px; height: 40px; background: var(--terms-peach);  top: 55%; left: 18%;  }
.terms-bubble--3 { width: 55px; height: 55px; background: var(--terms-butter); top: 20%; right: 10%; }
.terms-bubble--4 { width: 30px; height: 30px; background: var(--terms-sky);    top: 60%; right: 20%; }

.terms-hero__inner {
  position: relative;
  z-index: 2;
}

.terms-hero__site-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.terms-hero__leaf-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.terms-hero__title {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.3;
}

.terms-hero__subtitle {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ----- コンテンツコンテナ ----- */
.terms-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
}

/* ----- 目次 ----- */
.terms-toc {
  background: #fff;
  padding: 1.8rem;
  margin: 1.5rem 0 3rem;
  border-radius: 24px;
  box-shadow: 0 8px 30px -10px rgba(93, 138, 104, 0.18);
}

.terms-toc__heading {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--terms-green-deep);
  letter-spacing: 0.15em;
}

.terms-toc__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.terms-toc__link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--terms-green-pale);
  border-radius: 999px;
  text-decoration: none;
  color: var(--terms-green-deep);
  transition: all 0.25s ease;
  font-weight: 700;
  font-size: 0.85rem;
}

.terms-toc__link:hover {
  background: var(--terms-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(93, 138, 104, 0.5);
}

/* ----- セクション ----- */
.terms-section {
  margin-bottom: 2.2rem;
  /* 固定ヘッダー分オフセット */
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.terms-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.8rem 1.9rem;
  box-shadow: 0 6px 22px -12px rgba(93, 138, 104, 0.15);
}

/* セクションラベル（pill型） */
.terms-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  line-height: 1.4;
}

/* ラベルカラーバリエーション */
.terms-card__label--lavender { background: var(--terms-lavender-pale); color: #6E5F94; }
.terms-card__label--blush    { background: var(--terms-blush-pale);    color: #A05C5C; }
.terms-card__label--butter   { background: var(--terms-butter-pale);   color: #93762C; }
.terms-card__label--sky      { background: var(--terms-sky-pale);      color: #4A7A93; }
.terms-card__label--peach    { background: var(--terms-peach-pale);    color: #B0613C; }
.terms-card__label--mint     { background: var(--terms-mint-pale);     color: #3E8A5F; }

/* カード内リスト */
.terms-card ul {
  list-style: none;
  padding-left: 0;
}

.terms-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--terms-text-mid2);
  line-height: 1.85;
  font-size: 0.95rem;
}

.terms-card li:last-child { margin-bottom: 0; }

.terms-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown);
}

/* アラートボックス */
.terms-alert {
  background: var(--cream);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--terms-text-mid2);
  line-height: 1.7;
}

.terms-alert strong {
  color: var(--terms-green-deep);
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* 重要語ハイライト */
.terms-highlight {
  background: linear-gradient(180deg, transparent 60%, var(--terms-mint-pale) 60%);
  padding: 0.05em 0.15em;
  color: var(--brown);
  font-weight: 700;
}

/* ----- CTAエリア ----- */
.terms-cta {
  text-align: center;
  margin: 3rem 0 2rem;
}

.terms-cta__btn {
  display: inline-block;
  background: var(--terms-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(93, 138, 104, 0.45);
  transition: all 0.25s ease;
}

.terms-cta__btn:hover {
  background: var(--terms-green-deep);
  transform: translateY(-2px);
}

/* ----- ページ内フッター（著作権・ナビエリア） ----- */
.terms-page-footer {
  background: #fff;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-top: 1px solid var(--terms-border);
  margin-top: 1rem;
  border-radius: 16px 16px 0 0;
}

.terms-page-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terms-green-deep);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.terms-page-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  list-style: none;
}

.terms-page-footer__links a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.terms-page-footer__links a:hover { color: var(--terms-green-deep); }

.terms-page-footer__copy {
  font-size: 0.72rem;
  color: var(--terms-text-mid);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid var(--terms-border);
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ----- 利用規約ページ レスポンシブ ----- */
@media (max-width: 768px) {
  .terms-hero         { padding: 3rem 1.2rem 4.5rem; }
  .terms-hero__title  { font-size: 1.6rem; letter-spacing: 0.12em; }
  .terms-container    { padding: 0.3rem 1.1rem 2rem; }
  .terms-toc          { padding: 1.5rem 1.3rem; margin-bottom: 2.4rem; }
  .terms-card         { padding: 1.5rem 1.4rem; }
  .terms-toc__list    { gap: 0.5rem; }
}

/* ===================================================================
   セクションタイトルの上下ライン(全画面幅共通・経歴を除く)
   線の長さ: タイトル文字幅の1.2倍 / 太さ1px / 下方向の影
   ※後方の基本スタイルに上書きされないよう、ファイル末尾に配置
=================================================================== */
.fee__label,
.about__label,
.guidance__label,
.flow__label,
.faq__label,
.greeting__label,
.news__label,
.contact__label {
  margin-bottom: 0;
}

.fee__title,
.about__title,
.guidance__title,
.flow__title,
.faq__title,
.greeting__title,
.sns__title,
.news__title,
.contact__title {
  width: fit-content;
  margin-inline: auto;
}

.sns__title {
  display: block;
  text-align: center;
}

.sns__title .sns__icon {
  vertical-align: middle;
  margin-left: 8px;
}

.fee__title::before,
.fee__title::after,
.about__title::before,
.about__title::after,
.guidance__title::before,
.guidance__title::after,
.flow__title::before,
.flow__title::after,
.faq__title::before,
.faq__title::after,
.greeting__title::before,
.greeting__title::after,
.sns__title::before,
.sns__title::after,
.news__title::before,
.news__title::after,
.contact__title::before,
.contact__title::after {
  content: "";
  display: block;
  height: 1px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(140%, calc(100vw - 40px));
  margin: 12px 0;
  background: #000;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.fee__title::before,
.about__title::before,
.guidance__title::before,
.flow__title::before,
.faq__title::before,
.greeting__title::before,
.sns__title::before,
.news__title::before,
.contact__title::before {
  margin-top: 0;
}

/* ===================================================================
   ブログ(一覧・記事ページ)
=================================================================== */
.blog {
  padding: 44px 20px 52px;
  background: var(--cream);
  text-align: center;
}

.blog__label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #a09080;
  margin-bottom: 0;
}

.blog__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
  width: fit-content;
  margin-inline: auto;
}

.blog__title::before,
.blog__title::after {
  content: "";
  display: block;
  height: 1px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(140%, calc(100vw - 40px));
  margin: 12px 0;
  background: #000;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.blog__title::before {
  margin-top: 0;
}

.blog__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog__item {
  border-bottom: 1px solid rgba(92, 74, 58, 0.2);
  padding-bottom: 22px;
}

.blog__date {
  display: block;
  font-size: 0.8rem;
  color: #7a6a5a;
  margin-bottom: 4px;
}

.blog__item-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.blog__item-title a {
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog__item-title a:hover {
  color: #11a895;
  text-decoration: underline;
}

.blog__excerpt {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__more {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #11a895;
  text-decoration: none;
}

.blog__more:hover {
  text-decoration: underline;
}

.blog__empty {
  font-size: 0.9rem;
  color: var(--brown);
}

.blog__pagination {
  margin-top: 36px;
}

.blog__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.blog__pagination .page-numbers {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--brown);
  font-size: 0.9rem;
  text-decoration: none;
}

.blog__pagination .page-numbers.current {
  background: #11a895;
  color: #fff;
}

/* ----- 記事ページ ----- */
.blog-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px 60px;
}

.blog-single__date {
  display: block;
  font-size: 0.8rem;
  color: #7a6a5a;
  margin-bottom: 6px;
}

.blog-single__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #11a895;
}

.blog-single__content {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.9;
}

.blog-single__content p {
  margin-bottom: 1em;
}

.blog-single__content img {
  max-width: 100%;
  height: auto;
}

.blog-single__content h2 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.6em;
  color: var(--brown);
}

.blog-single__content h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.5em;
  color: var(--brown);
}

.blog-single__back {
  display: inline-block;
  margin-top: 36px;
  color: #11a895;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-single__back:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .blog {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .blog-single {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

/* ===================================================================
   セクション上下余白の一元管理(スマホ32px / PC48px)
   ここを変えれば全セクションの間隔が一括で変わる
=================================================================== */
.about,
.guidance,
.fee,
.flow,
.faq,
.greeting,
.career,
.sns,
.news,
.contact,
.blog {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* 例外: FV直下の相談室についてだけ上を詰める */
.about {
  padding-top: 8px;
}

/* 例外: 料金は上部の斜め飾り(50px)の分を上乗せ、下はボタンの影(約12px)の分を上乗せ */
.fee {
  padding-top: calc(32px + 50px);
  padding-bottom: calc(32px + 12px);
}

/* Instagram: 内側要素の上余白を解消(セクション側の余白と二重になるため) */
.sns__inner {
  padding-top: 0;
}

@media (min-width: 768px) {
  .about,
  .guidance,
  .fee,
  .flow,
  .faq,
  .greeting,
  .career,
  .sns,
  .news,
  .contact,
  .blog {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about {
    padding-top: 16px;
  }

  .fee {
    padding-top: calc(48px + 50px);
    padding-bottom: calc(48px + 12px);
  }
}

/* 相談室について: タイトル削除に伴いFVテキストとの間隔を詰める */
.about {
  padding-top: 8px;
}

/* 相談室について: 受付停止のお知らせを強調 */
.about__notice {
  font-weight: 700;
  color: #0066cc;
  text-decoration: underline;
  text-decoration-color: #000;
  text-underline-offset: 4px;
}

/* 相談室について本文: FVテキスト完了後に下からふわっとフェードイン */
.about__body {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about__body.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about__body {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .about {
    padding-top: 16px;
  }
}

/* スマホ: 料金表を2列固定(50%ずつ)・各列中央揃え */
@media (max-width: 767px) {
  .fee-accordion__table,
  .fee-accordion__hours {
    table-layout: fixed;
    width: 100%;
  }

  .fee-accordion__table td,
  .fee-accordion__table td:last-child,
  .fee-accordion__hours td,
  .fee-accordion__hours td:last-child {
    width: 50%;
    text-align: center;
  }
}

/* ===================================================================
   PC3列表示: 料金カードの行(テキスト/イラスト/料金表/時間)を
   subgridで全カード共通の高さに揃える(内容が増減しても自動追従)
=================================================================== */
@media (min-width: 768px) {
  .fee-accordion {
    grid-template-rows: auto auto auto auto auto;
    column-gap: 24px;
    row-gap: 12px;
  }

  .fee-accordion__item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
  }

  .fee-accordion__body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
  }

  .fee-accordion__inner {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    justify-content: center;
  }

  .fee-accordion__detail {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    justify-items: center;
    justify-content: center;
  }

  .fee-accordion__detail > div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    justify-self: stretch;
  }

  /* 行番号を明示して確実に共通行へ配置 */
  .fee-accordion__btn {
    grid-row: 1;
  }

  .fee-accordion__body {
    grid-row: 2 / span 4;
  }

  .fee-accordion__inner {
    grid-row: 1 / span 4;
  }

  .fee-accordion__place {
    grid-row: 1;
  }

  .fee-accordion__detail {
    grid-row: 2 / span 3;
  }

  .fee-accordion__detail > .fee-accordion__img {
    grid-row: 1;
  }

  .fee-accordion__detail > div {
    grid-row: 2 / span 2;
  }

  .fee-accordion__detail > div > .fee-accordion__table {
    grid-row: 1;
  }

  .fee-accordion__detail > div > .fee-accordion__hours {
    grid-row: 2;
  }

  /* 各行の中で表を上端に固定(60分/40分と曜日の行が3カードで水平に揃う) */
  .fee-accordion__table,
  .fee-accordion__hours {
    align-self: start;
  }
}

/* 交通費・駐車料金の注記: 欠けないよう折り返しを許可(左右余白は他セルと同じ8px) */
.fee-accordion__table td.fee-card__transport,
.fee-accordion__table td.fee-card__transport-note {
  white-space: normal;
  overflow-wrap: break-word;
  padding-left: 8px;
  padding-right: 8px;
}

/* ===================================================================
   フッターナビゲーション
=================================================================== */
.footer {
  background: #fcfcfc;
  padding: 40px 24px 28px;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.footer__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.footer__heading a {
  color: var(--brown);
  text-decoration: none;
}

.footer__heading a:hover,
.footer__heading a:active {
  color: #11a895;
}

/* アコーディオン開閉ボタン: タップ・開いている間もナビと同色に */
.footer-accordion__btn:active,
.footer-accordion__btn[aria-expanded="true"] {
  color: #11a895;
}

/* ── フッターアコーディオン（見出し行） ──
   見出し幅を最長タイトル(相談室について=7文字)に固定し、
   開閉ボタンを見出しの直後・全行で縦一列に揃える */
.footer-accordion__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.footer-accordion__head > a,
.footer-accordion__head > span:not(.footer-accordion__chevron) {
  min-width: 7em;
}

.footer-accordion__btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px;
  padding: 0;
  background: none;
  border: none;
  color: #7a6a5a;
  cursor: pointer;
}

.footer-accordion__chevron {
  font-size: 0.72rem;
  transition: transform 0.3s ease;
}

.footer-accordion__btn[aria-expanded="true"] .footer-accordion__chevron {
  transform: rotate(180deg);
}

/* ── フッターアコーディオン（開閉本体・モバイル） ── */
.footer-accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s ease;
}

.footer-accordion__body.is-open {
  max-height: 300px;
}

/* モバイル: 開いたサブメニューを見出しから右にインデント */
.footer__list.footer-accordion__body {
  padding-left: 16px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__list a {
  font-size: 0.82rem;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover,
.footer__list a:active {
  color: #11a895;
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 36px;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--logo-green);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.footer__copy {
  font-size: 0.72rem;
  color: #7a6a5a;
  margin-top: 12px;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .footer {
    padding: 56px 32px 32px;
  }

  .footer__nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  /* PC幅ではアコーディオン化せず常に全項目を表示 */
  .footer-accordion__btn {
    display: none;
  }

  .footer-accordion__body {
    max-height: none;
    overflow: visible;
  }

  /* PC: サブメニューもモバイルと同じく16px右にインデント */
  .footer__list.footer-accordion__body {
    padding-left: 16px;
  }
}

/* 狭い画面(500px以下): 曜日1行+その下に時間の縦積みに切り替え */
@media (max-width: 500px) {
  .fee-accordion__hours tr {
    display: block;
    margin-bottom: 6px;
  }

  .fee-accordion__hours td,
  .fee-accordion__hours td:last-child {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    padding: 0;
  }
}
