/* ============================================================
   たかの整体院（架空・制作サンプル）
   トーン：ミニマル余白 × 木目ナチュラル
   配色：木目ブラウン #A88B6C ＋ 生成り ＋ 深緑 #2f5d4a ＋ LINE緑 #06C755
   ============================================================ */

:root {
  --bg:         #f8f6f1;   /* 生成り */
  --bg-kinari:  #f2ede3;   /* 生成り濃いめ（セクション交互用） */
  --bg-card:    #fdfcf9;
  --ink:        #35302a;   /* 純黒回避の墨色 */
  --ink-soft:   #6b6257;
  --wood:       #A88B6C;   /* 木目ブラウン */
  --wood-deep:  #8a6f52;   /* 文字用の濃い木目（コントラストAA対応） */
  --wood-soft:  #c4ad93;
  --wood-pale:  #e8dfd2;
  --green:      #2f5d4a;   /* 深緑（差し色1色）＝CTA帯・見出しキッカー・番号/アイコン・FAQのQ文字のみに使う。面で広く塗らない（木目と生成りが主役） */
  --line-green: #06C755;   /* LINE緑・固定 */
  --serif: 'Noto Serif JP', serif;
  --sans:  'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.02em;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ---------- サンプルバナー ---------- */
.sample-banner {
  background: var(--green);
  color: #f5f2ea;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 7px 10px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--wood-pale);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.header-contact {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- ボタン共通 ---------- */
.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: default;
  user-select: none;
  text-align: center;
}

.cta-line {
  background: var(--line-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.28);
}
/* LINEアイコン（吹き出し風・全cta-lineに一括・IGアイコンと形を揃える） */
.cta-line::before {
  content: "";
  width: 1.15em; height: 1.15em; flex: none;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 5px;
  margin-right: 0.5em;
}

.cta-outline-light {
  border: 1.5px solid rgba(250, 248, 243, 0.9);
  color: #faf8f3;
  background: rgba(53, 48, 42, 0.18);
}

.cta-outline-dark {
  border: 1.5px solid var(--green);
  color: var(--green);
  background: var(--bg-card);
}

.cta-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 10px 24px;
}
.cta-instagram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 8px;
}
.footer-ig-note {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- よくあるご質問 ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--wood-pale);
  border-radius: 10px;
  padding: 22px 26px;
}
.faq-q {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  margin-bottom: 10px;
}
.faq-q::before {
  content: "Q. ";
  color: var(--wood-deep);
}
.faq-a {
  font-size: 0.95rem;
  line-height: 1.9;
}
.faq-a::before {
  content: "A. ";
  color: var(--wood-deep);
  font-weight: 700;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero picture { display: contents; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  animation: heroFade 18s infinite;
}
.hero-slide:nth-child(1), .hero-slide:nth-child(1) img { animation-delay: 0s; }
.hero-slide:nth-child(2), .hero-slide:nth-child(2) img { animation-delay: 6s; }
.hero-slide:nth-child(3), .hero-slide:nth-child(3) img { animation-delay: 12s; }
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12);
  animation: heroZoom 18s infinite;
}
@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  39.3% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes heroZoom {
  0% { transform: scale(1.0); }
  39.3% { transform: scale(1.07); }
  100% { transform: scale(1.07); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(43, 36, 28, 0.58) 0%, rgba(43, 36, 28, 0.30) 55%, rgba(43, 36, 28, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 20px;
  width: 100%;
  color: #faf8f3;
  background: none;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  border: 1px solid rgba(250, 248, 243, 0.6);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.75;
  margin-bottom: 34px;
  text-shadow: 0 2px 18px rgba(43, 36, 28, 0.45);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* ---------- セクション共通 ---------- */
.section { padding: 5.5rem 0; }

.section.kinari { background: var(--bg-kinari); }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3.4rem;
}

.section-title .en {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--wood-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  color: var(--ink);
}

.section-title h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--wood);
  margin: 18px auto 0;
}

.section-title p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- お悩みチェック ---------- */
.worry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.worry-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.14);
}

.worry-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.worry-body { padding: 22px 24px 26px; }

.worry-body h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.worry-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.worry-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 選ばれる理由 ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.reason-card {
  background: var(--bg-card);
  border-top: 3px solid var(--wood);
  border-radius: 0 0 14px 14px;
  padding: 34px 28px 36px;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.12);
}

.reason-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reason-icon {
  width: 48px;
  height: 48px;
}

.reason-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--wood-soft);
  line-height: 1;
}

.reason-card h3 {
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.reason-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 施術のようす ---------- */
.seijutsu-block { margin-top: 72px; }

.seijutsu-title {
  text-align: center;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 30px;
}

.seijutsu-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--wood);
  margin: 14px auto 0;
}

.seijutsu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.seijutsu-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.16);
}

.seijutsu-item figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ---------- 院長 ---------- */
.director-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 44px;
  align-items: start;
}

.director-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% center; /* 4:3素材・院長が右寄りのため */
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(168, 139, 108, 0.22);
}

.director-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--ink);
}

.director-name span {
  font-size: 0.8rem;
  color: var(--wood);
  display: block;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.director-text > p:not(.director-name) {
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.director-sub { margin-top: 26px; }

.director-sub img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.director-sub figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

/* ---------- 初めての方へ（流れ） ---------- */
.flow-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--wood-pale);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #f5f2ea;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.flow-icon {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto 12px;
}

.flow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: left;
}

.first-info {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--bg-kinari);
  border-radius: 12px;
  padding: 24px 28px;
  font-size: 0.92rem;
}

.first-info strong { color: var(--green); }

.first-info p + p { margin-top: 8px; }

/* ---------- 料金 ---------- */
.price-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.14);
}

.price-box table {
  width: 100%;
  border-collapse: collapse;
}

.price-box th,
.price-box td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--wood-pale);
  font-size: 0.98rem;
}

.price-box th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.price-box td {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--green);
  white-space: nowrap;
}

.price-box .tax {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-left: 4px;
}

.price-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- 中間CTA帯 ---------- */
.cta-band {
  background: var(--green);
  color: #f5f2ea;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 12px;
}

.cta-band > .container > p {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-band .cta-outline-light {
  border-color: rgba(245, 242, 234, 0.75);
  background: transparent;
}

.cta-note {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- 院内紹介 ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.room-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.16);
}

.room-item figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 12px;
  letter-spacing: 0.08em;
}

/* ---------- アクセス ---------- */
.access-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.access-info h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.access-table th,
.access-table td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--wood-pale);
  text-align: left;
  vertical-align: top;
}

.access-table th {
  width: 5.5em;
  color: var(--wood-deep);
  font-weight: 500;
  white-space: nowrap;
}

.map-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft, #6b6257);
}

.parking-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.access-icon {
  width: 40px;
  height: 40px;
}

.access-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--green);
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(168, 139, 108, 0.16);
}

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

/* ---------- フッター ---------- */
.site-footer {
  background: #3a332b;
  color: #d9d2c6;
  padding: 4rem 0 3rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand { margin-bottom: 28px; }

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #f5f2ea;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.disclaimer-list {
  list-style: none;
  border-top: 1px solid rgba(217, 210, 198, 0.25);
  border-bottom: 1px solid rgba(217, 210, 198, 0.25);
  padding: 20px 0;
  margin-bottom: 24px;
}

.disclaimer-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.8rem;
  line-height: 2;
}

.disclaimer-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--wood-soft);
}

.sample-note {
  font-size: 0.78rem;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 22px;
}

.footer-credit {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #f5f2ea;
}

/* ---------- スマホ追従フッターバー ---------- */
.mobile-cta { display: none; }

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
  .hero-slide img { animation: none; transform: none; }
}

/* ============================================================
   レスポンシブ（〜760px）
   ============================================================ */
@media (max-width: 760px) {

  body { padding-bottom: 56px; } /* 追従フッターバーの逃がし */

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 16px;
  }

  .header-contact { font-size: 0.78rem; white-space: normal; }

  .hero { min-height: 82vh; align-items: stretch; }

  /* SP素材は上部に余白・人物は中央〜下のため、コピーは上・CTAは最下部へ（顔に被せない）。
     暗さは上（コピー用）と下（CTA用）の両端に置き、中央の人物は明るく見せる */
  .hero-overlay {
    background: linear-gradient(180deg, rgba(43, 36, 28, 0.58) 0%, rgba(43, 36, 28, 0.28) 34%, rgba(43, 36, 28, 0.06) 52%, rgba(43, 36, 28, 0.12) 72%, rgba(43, 36, 28, 0.58) 100%);
  }

  .hero-slide img { object-position: center bottom; }

  .hero-content {
    display: flex;
    flex-direction: column;
    min-height: 82vh;
    padding: 52px 20px 22px;
  }

  .hero h1 { font-size: 1.42rem; line-height: 1.9; margin-bottom: 26px; }

  /* スマホはヒーローに大ボタン/注記を重ねない＝固定バーに任せる（design-rules §2.4） */
  .hero-btns, .hero-note { display: none; }

  .section { padding: 3.5rem 0; }

  .section-title { margin-bottom: 2.4rem; }

  .director-layout { grid-template-columns: 1fr; gap: 28px; }

  .access-layout { grid-template-columns: 1fr; gap: 28px; }

  .map-wrap iframe { height: 260px; }

  .cta-band { padding: 3.5rem 0; }

  .cta-btns { flex-direction: column; align-items: stretch; }

  /* 追従フッターバー：白い浮きバー＋ピル型ボタン（seitaiと同形） */
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 8px 14px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--wood-pale);
    box-shadow: 0 -12px 28px rgba(43, 36, 28, 0.12);
  }

  .mobile-cta .btn-disabled { min-height: 48px; padding: 0 10px; font-size: 0.88rem; }
}
