@charset "UTF-8";
/* ========================================
   市川矯正歯科 新デザイン案（mockup-v2）
   base.css … トークン／リセット／共通パーツ／サイドバー・フッター等シェル
   デザイン言語：nijinowa-clinic.jp 準拠（左サイドバー型・余白過多・静かなモーション）
======================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  --color-text: #222222;
  --color-light: #666666;
  --color-border: #DADADA;
  --color-bg: #FFFFFD;
  --color-bg-light: #F8F9FA;
  --color-accent: #A8542A;        /* 濃ブラウン（旧terracotta-dark） */
  --color-accent-light: #C96939;  /* オレンジ（旧terracotta） */
  --color-pale: #F6F0E8;          /* セクション交互の淡ベージュ */
  --color-pale-deep: #EFE7DB;     /* フッター用の一段濃いベージュ */
  --color-sub: #B3A79B;           /* 英字ラベル用の淡色 */
  --color-point: #C96939;         /* 差し色。ごく小面積のみ */

  /* 右端の固定CTAタブ（ブランド外の機能色） */
  --color-cta-web: #EDB242;       /* 初診オンライン予約 */
  --color-cta-web-dark: #E0A32F;
  --color-cta-line: #06C755;      /* LINE予約（LINEブランドカラー） */
  --color-cta-line-dark: #05B34C; /* 同色のホバー用 */

  /* FV以下（yaizu-ortho.com 準拠）のページ地色 */
  --color-beige: #F4F4F0;
  --color-beige-dark: #E5E5D9;
  --color-ghost: #EFE4D5;         /* 縦組みゴースト文字用の極淡ブラウン */
  --color-gold: #E2C069;          /* 画像の背面にずらして覗かせる弧（参考：art-asada.jp） */
  /* フッターの流れる英字。地色(--color-pale-deep)から各チャンネル5〜8だけ落とし、
     参考サイト（yard-dental.com）と同じ「言われないと気づかない」濃度にする */
  --color-ghost-deep: #E7E0D6;

  --font-en: "Outfit", sans-serif;
  --font-sans: "Zen Kaku Gothic New", sans-serif;
  /* 縦組みの装飾英字用（参考サイトはセリフ体） */
  --font-serif-en: Georgia, "Times New Roman", serif;

  --header-h: 107px;
  --container-w: 1680px;
  --content-w: 1440px;
  --pad-x: clamp(40px, 5vw, 80px);
  --sec-pad: clamp(72px, 9vw, 88px);
  --sec-pad-lg: clamp(80px, 10vw, 160px);
  --radius-card: 20px;
  --radius-img: 10px;
  --ease-quiet: cubic-bezier(0.22, 1, 0.36, 1);
  /* セクション境界の波形（上辺が波打つマスク） */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 58' preserveAspectRatio='none'%3E%3Cpath d='M0,26 C180,2 330,4 540,24 C760,45 900,52 1080,38 C1230,26 1340,14 1440,6 L1440,58 L0,58 Z' fill='%23000'/%3E%3C/svg%3E");
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.15;
  letter-spacing: 0.1em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. レイアウトシェル ---------- */
body { padding-top: var(--header-h); }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- 4. 共通見出し（英字ラベル＋和文見出し＋丸ポチ） ---------- */
.section-eyebrow, .news-eyebrow {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-sub);
  line-height: 1.6;
}
.section-h2, .news-heading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.95;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-top: 10px;
}
.section-h2::before, .news-heading::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-point);
  margin-right: 14px;
  vertical-align: 0.32em;
}
.section-lead {
  margin-top: 24px;
  font-size: 16px;
  line-height: 2.2;
  color: var(--color-light);
}

/* ---------- 5. ボタン（白背景・1px枠・角丸なし・矢印→） ---------- */
.c-btn, .btn-primary, .btn-outline,
.faq-more-btn, .footer-reserve-btn, .features-top-btn, .news-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 230px;
  padding: 22px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--color-text);
  transition: border-color .4s var(--ease-quiet), color .4s var(--ease-quiet), background-color .4s var(--ease-quiet);
}
.c-btn::after, .btn-primary::after, .btn-outline::after,
.faq-more-btn::after, .footer-reserve-btn::after, .features-top-btn::after, .news-more::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 300;
  transition: transform .4s var(--ease-quiet);
}
.c-btn:hover, .btn-outline:hover,
.faq-more-btn:hover, .features-top-btn:hover, .news-more:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.c-btn:hover::after, .btn-primary:hover::after, .btn-outline:hover::after,
.faq-more-btn:hover::after, .footer-reserve-btn:hover::after, .features-top-btn:hover::after, .news-more:hover::after {
  transform: translateX(6px);
}
/* 塗りバリエーション（予約CTA用） */
.c-btn--fill, .btn-primary, .footer-reserve-btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}
.c-btn--fill:hover, .btn-primary:hover, .footer-reserve-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #FFFFFF;
}
/* 電話番号ボタンは数字を欧文フォントに */
.btn-outline { font-family: var(--font-en); letter-spacing: 0.08em; }

/* ボタン内の旧装飾アイコンは使わない */
.c-btn svg, .btn-primary svg, .btn-outline svg,
.faq-more-btn .faq-more-arrow, .footer-reserve-btn svg, .features-top-btn svg,
.news-more-icon, .news-arrow { display: none; }

/* ---------- 6. モーション ---------- */
/* スクロール時のfade-up（IntersectionObserverでis-inviewを付与） */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease-quiet), transform 1.1s var(--ease-quiet);
}
.reveal.is-inview { opacity: 1; transform: none; }

/* 見出しのせり上がり（.reveal内のh2に連動） */
.reveal .section-h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  transition: clip-path 1.4s var(--ease-quiet) .15s, transform 1.4s var(--ease-quiet) .15s;
}
.reveal.is-inview .section-h2 {
  clip-path: inset(0 0 -8% 0);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .section-h2 {
    opacity: 1; transform: none; transition: none; clip-path: none;
  }
}

/* ---------- 7. ヘッダー（PC・横並び上部バー） ---------- */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 11px var(--pad-x);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
}

.header-brand { flex: none; }
.header-brand .logo { display: block; }
.header-brand .logo img { width: clamp(160px, 20.5vw, 320px); height: auto; }

.hamburger-btn { display: none; }

.header-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.header-utility { display: flex; align-items: baseline; gap: 18px; }
.header-main-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 40px);
}

.gnav { display: flex; gap: clamp(14px, 1.8vw, 34px); }
.gnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gnav-ja {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  white-space: nowrap;
  transition: color .3s var(--ease-quiet);
}
.gnav-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--color-sub);
  line-height: 1.7;
  white-space: nowrap;
}
.gnav a:hover .gnav-ja { color: var(--color-accent); }

.sidebar-tel { display: flex; align-items: baseline; gap: 6px; }
.sidebar-tel-label {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-sub);
}
.sidebar-tel-num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--color-text);
}
.sidebar-hours {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--color-light);
}
.sidebar-cta {
  flex: none;
  min-width: 0;
  padding: 10px 20px;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- 8. タブレット・SPヘッダー（上部バー＋ドロワー） ----------
   ナビ5項目＋TEL＋CTAを横一列に置ける下限が約1180px。それ未満はドロワーに切替 */
@media (max-width: 1180px) {
  :root { --pad-x: clamp(20px, 5vw, 40px); --header-h: 64px; }

  .header-inner {
    height: var(--header-h);
    padding: 0 var(--pad-x);
  }

  .header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
  }
  .header-brand .logo img { width: 150px; }

  .hamburger-btn {
    display: block;
    flex: none;
    width: 32px; height: 32px;
    position: relative;
    z-index: 2;
  }
  .hamburger-btn span,
  .hamburger-btn::before,
  .hamburger-btn::after {
    content: "";
    position: absolute; left: 4px; right: 4px;
    height: 1px; background: var(--color-text);
    transition: transform .3s ease, opacity .3s ease, top .3s ease;
  }
  .hamburger-btn::before { top: 10px; }
  .hamburger-btn span { top: 15px; }
  .hamburger-btn::after { top: 20px; }
  #header.is-nav-open .hamburger-btn::before { top: 15px; transform: rotate(45deg); }
  #header.is-nav-open .hamburger-btn span { opacity: 0; }
  #header.is-nav-open .hamburger-btn::after { top: 15px; transform: rotate(-45deg); }

  .header-bottom {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex: none;
    align-items: stretch;
    gap: 0;
    padding: 100px 32px 48px;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform .45s var(--ease-quiet);
    overflow-y: auto;
  }
  #header.is-nav-open .header-bottom { transform: translateX(0); }

  /* ドロワー内の並び：ナビ → 電話・受付時間 → 予約ボタン */
  .header-main-row { display: contents; }
  .sidebar-nav { order: 1; }
  .header-utility {
    order: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 36px;
  }
  .sidebar-cta { order: 3; margin-top: 22px; width: 100%; }

  .gnav { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--color-border); }
  .gnav a { align-items: flex-start; text-align: left; padding: 16px 4px; }
  .gnav-ja { font-size: 17px; letter-spacing: 0.12em; }
  .gnav-en { font-size: 10px; }
}

/* ---------- 9. フッター ---------- */
#footer { background: var(--color-bg); }

.footer-map-wide-wrap { position: relative; }
.footer-map-wide { width: 100%; aspect-ratio: 21 / 6; }
.footer-map-wide iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer-map-walk-badge {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  box-shadow: 0 6px 24px rgba(34, 34, 34, 0.08);
}
.footer-map-walk-station { font-size: 13px; letter-spacing: 0.1em; }
.footer-map-walk-row { display: flex; align-items: baseline; gap: 3px; }
.footer-map-walk-label, .footer-map-walk-unit { font-size: 12px; color: var(--color-light); }
.footer-map-walk-num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-accent);
  line-height: 1;
}

.footer-top { background: var(--color-bg-light); }
.footer-top-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--pad-x) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.footer-logo-wrap img { height: 42px; width: auto; }
.footer-addr { margin-top: 24px; font-size: 16px; letter-spacing: 0.08em; color: var(--color-light); }
.footer-tel { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.footer-tel-label {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--color-sub);
}
.footer-tel-num {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.06em;
}
.footer-hours-table { margin-top: 24px; font-size: 16px; width: 100%; max-width: 440px; }
.footer-hours-table th, .footer-hours-table td {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
}
.f-open { color: var(--color-accent-light); }
.f-close { color: var(--color-border); }
.f-star { color: var(--color-accent); }
.footer-note { margin-top: 14px; font-size: 16px; color: var(--color-light); line-height: 2; }
.footer-reserve-btn { margin-top: 28px; }

.footer-map-col {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow: hidden;
}
.footer-map-col iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

.footer-nav-section { border-top: 1px solid var(--color-border); }
.footer-nav-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 48px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 80px);
}
.footer-nav-col { display: flex; flex-direction: column; gap: 14px; }
.footer-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: color .3s var(--ease-quiet);
}
.footer-nav-item svg { color: var(--color-sub); transition: transform .4s var(--ease-quiet); }
.footer-nav-item:hover { color: var(--color-accent); }
.footer-nav-item:hover svg { transform: translateX(4px); }

/* ※コピーライト帯は、流れる英字をページ下端に揃えるためHTMLから外した。
   戻す場合に備えてスタイルは残置（.footer-copy も同様） */
.footer-bottom {
  text-align: center;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.footer-copy {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-light);
}

@media (max-width: 860px) {
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-map-wide { aspect-ratio: 4 / 3; }
}

/* ---------- 10. 検証用バナー（納品時に削除） ---------- */
.dev-banner {
  position: fixed;
  bottom: 0; left: 0;
  z-index: 300;
  background: #3A2E28;
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 4px 10px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .dev-banner { bottom: 56px; }
}

/* ---------- 11. 追従CTA（SP） ---------- */
.side-cta { display: none; }
.floating-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90;
}
@media (max-width: 700px) {
  .floating-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .floating-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 56px; font-size: 14px; letter-spacing: 0.1em; color: #FFFFFF;
  }
  .f-tel { background: var(--color-text); }
  .f-web { background: var(--color-accent); }
  body { padding-bottom: 56px; }
}
