/* =====================================================================
   治療院サイト「premium」テンプレ
   深紺×ゴールド / 明朝系見出し / 自費・高単価メニュー向け
   _parts/ は standard / clinical と共通。CSS のみで差し替え。
   ===================================================================== */

:root {
  --c-primary: #1e3a8a;          /* indigo-900 */
  --c-primary-hover: #1e40af;    /* indigo-800 */
  --c-accent: #b45309;           /* amber-700 (gold) */
  --c-accent-hover: #92400e;     /* amber-800 */
  --c-ink: #0c0a09;              /* stone-950 */
  --c-body: #292524;             /* stone-800 */
  --c-muted: #57534e;            /* stone-600 */
  --c-line: #e7e5e4;             /* stone-200 */
  --c-bg: #fafaf9;               /* stone-50 */
  --c-bg-muted: #f5f5f4;         /* stone-100 */
  --c-bg-band: #1e3a8a;          /* hero/footer のダーク帯 */

  --radius: 2px;                 /* よりシャープ */
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, 0.05);
  --shadow-md: 0 8px 32px rgba(12, 10, 9, 0.08);

  --fs-hero: clamp(1.85rem, 5.5vw, 2.6rem);
  --fs-h2: clamp(1.3rem, 3.2vw, 1.7rem);
  --fs-h3: 1.15rem;

  --ff: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic Medium", "Meiryo", system-ui, sans-serif;
  --ff-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho",
              "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  /* Hero 軽量化トークン (2026-05-08): 黒オーバーレイ廃止 + 写真主役。
     白文字を維持するため bottom 側だけ palette 色で fade、top は素の写真。 */
  --hero-overlay-warm: linear-gradient(180deg,
    rgba(75, 52, 40, 0.0) 0%,
    rgba(75, 52, 40, 0.18) 35%,
    rgba(75, 52, 40, 0.55) 100%);
  --hero-overlay-cool: linear-gradient(180deg,
    rgba(15, 23, 42, 0.0) 0%,
    rgba(15, 23, 42, 0.20) 35%,
    rgba(15, 23, 42, 0.58) 100%);
  --hero-overlay-soft: linear-gradient(180deg,
    rgba(31, 41, 55, 0.0) 0%,
    rgba(31, 41, 55, 0.18) 35%,
    rgba(31, 41, 55, 0.52) 100%);
  --hero-photo-filter: saturate(1.0) contrast(1.02);
}

/* ---- reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-body);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); text-decoration: underline; }
h1, h2, h3 { color: var(--c-ink); line-height: 1.4; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---- layout --------------------------------------------------------- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- site header ---------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--c-accent);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-title {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.site-header .tel {
  font-size: 0.95rem;
  color: var(--c-accent);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.site-header .tel::before { content: "☎ "; }

/* ---- hero (ダーク帯で上質感) -------------------------------------- */
.hero {
  background: var(--c-bg-band);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(180, 83, 9, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  color: #fefce8;
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--c-accent);
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-hero);
  font-weight: 600;
  color: #fefce8;
  margin-bottom: 0.5em;
  letter-spacing: 0.08em;
}
.hero-sub {
  color: rgba(254, 252, 232, 0.85);
  margin-bottom: 1.8em;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.05s ease-out, background 0.15s ease-out, color 0.15s;
}
.btn:active { transform: translateY(1px); }
/* btn-primary はダーク紺ヒーローと cta-panel(=primary 紺) の両方に乗るため、
   --c-accent (#b45309 dark amber) ではコントラスト 3.48 で AA 未達。
   amber-500 を直接指定してダーク文字でコントラスト 9.74 を確保 */
.btn-primary {
  background: #f59e0b;
  color: #1c1917;
  font-weight: 700;
}
.btn-primary:hover {
  background: #fbbf24;
  color: #0c0a09;
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fefce8;
  border: 1px solid rgba(254, 252, 232, 0.55);
}
.btn-secondary:hover {
  background: rgba(254, 252, 232, 0.14);
  color: #fefce8;
  border-color: #fefce8;
  text-decoration: none;
}
.btn-link {
  color: var(--c-accent);
  font-weight: 600;
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  letter-spacing: 0.04em;
}

/* ---- sections ------------------------------------------------------- */
section {
  padding: 56px 0;
  background: var(--c-bg);
}
section:nth-of-type(even) {
  background: #fff;
}
section h2 {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 1.4em;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  position: relative;
  padding-bottom: 0.6em;
}
section h2::after {
  content: "◆";
  display: block;
  color: var(--c-accent);
  font-size: 0.6rem;
  margin: 0.7em 0 0;
  letter-spacing: 0;
}

/* ---- info list (基本情報) ------------------------------------------ */
.info-list {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-primary);
  padding: 8px 24px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.info-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt {
  color: var(--c-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding-top: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.info-list dd {
  margin: 0;
  color: var(--c-ink);
}
.info-list .hours-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.info-list .hours-row + .hours-row { margin-top: 4px; }
.info-list .hours-label {
  color: var(--c-muted);
  font-size: 0.9rem;
  min-width: 3em;
}

/* ---- menu cards ----------------------------------------------------- */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 18px;
}
.menu-card {
  background: #fff;
  border: 1px solid var(--c-line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  transition: box-shadow 0.2s;
}
.menu-card:hover { box-shadow: var(--shadow-md); }
.menu-card img { width: 120px; height: 120px; object-fit: cover; }
.menu-card .body { padding: 16px 18px 16px 0; }
.menu-card h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.menu-card .price {
  font-size: 1rem;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.menu-card .desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.7;
}
.menu-card.no-image { grid-template-columns: 1fr; }
.menu-card.no-image .body { padding: 20px; }

/* ---- profile -------------------------------------------------------- */
.profile-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-primary);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.profile-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-line);
}
.profile-card .name {
  text-align: center;
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--c-ink);
}
.profile-card .qualifications {
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.profile-card .qualifications li {
  display: inline-block;
  padding: 3px 12px;
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: 0;
  margin: 3px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.profile-card .career {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin-bottom: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--c-line);
}
.profile-card .message {
  font-size: 0.95rem;
  color: var(--c-body);
}

/* ---- links / access ------------------------------------------------- */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.links-list a {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease-out, border-color 0.15s;
}
.links-list a:hover {
  background: #fefce8;
  border-left-color: var(--c-primary);
  text-decoration: none;
}

/* ---- photos gallery ------------------------------------------------- */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.photos-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

/* ---- notice --------------------------------------------------------- */
.notice-box {
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.notice-box .label {
  color: var(--c-accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.notice-box p { margin: 0; white-space: pre-wrap; }

/* ---- footer --------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: #d6d3d1;
  padding: 40px 0 32px;
  text-align: center;
  font-size: 0.88rem;
  border-top: 2px solid var(--c-accent);
}
.site-footer h3 {
  font-family: var(--ff-serif);
  color: #fefce8;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.6em;
}
.site-footer .footer-meta { margin-bottom: 14px; }
.site-footer .tel { color: var(--c-accent); font-weight: 700; }
.site-footer .copy {
  margin-top: 24px;
  font-size: 0.78rem;
  color: #78716c;
  letter-spacing: 0.08em;
}

/* ---- page: menu detail --------------------------------------------- */
.menu-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.menu-detail {
  background: #fff;
  border: 1px solid var(--c-line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-detail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.menu-detail .body { padding: 22px 24px; }
.menu-detail h3 {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}
.menu-detail .meta {
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.menu-detail .desc { margin: 0; }

/* ---- utility -------------------------------------------------------- */
.back-home {
  display: inline-block;
  margin: 28px 0 8px;
  color: var(--c-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.back-home:hover { color: var(--c-primary); }

/* ---- viewport wider than phone ------------------------------------- */
@media (min-width: 720px) {
  .hero { padding: 96px 0 80px; }
  section { padding: 72px 0; }
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .btn { min-width: 220px; }
  .menu-card { grid-template-columns: 160px 1fr; }
  .menu-card img { width: 160px; height: 140px; }
  .photos-grid { grid-template-columns: repeat(3, 1fr); }
  .info-list > div { grid-template-columns: 120px 1fr; }
}


/* conversion-focused clinic sections */
.hero { position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: var(--hero-photo-filter); }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay-warm); }
.hero-kicker { color: var(--c-accent); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; margin: 0 0 14px; }
.hero-tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tags li { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; color: #fff; background: rgba(255,255,255,0.12); font-size: 0.82rem; }
.cta-panel { display: grid; gap: 20px; align-items: center; background: var(--c-primary); color: #fff; border-radius: var(--radius); padding: 28px; }
.cta-panel h2 { color: #fff; text-align: left; margin-bottom: 0.4em; }
.cta-panel h2::before, .cta-panel h2::after { display: none; }
.cta-panel p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { background: var(--c-panel, #fff); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; color: var(--c-ink); }
.check-list li::before { content: "✓"; color: var(--c-accent); font-weight: 800; margin-right: 8px; }
.reason-grid, .voice-grid { display: grid; gap: 14px; }
.reason-card, .voice-card { background: var(--c-panel, #fff); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.reason-num { color: var(--c-accent); font-weight: 900; font-size: 0.82rem; margin-bottom: 8px; }
.reason-card p, .voice-card p { margin: 0; }
.lead-text { max-width: 760px; color: var(--c-body); }
.compare-table { display: grid; gap: 12px; margin-top: 18px; }
.compare-table > div { background: var(--c-panel, #fff); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }
.compare-table h3, .voice-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--c-ink); }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: step; }
.flow-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--c-panel, #fff); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
.flow-list span { color: var(--c-accent); font-weight: 900; min-width: 2.4em; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--c-panel, #fff); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
.faq-list summary { cursor: pointer; font-weight: 800; color: var(--c-ink); }
.faq-list p { margin: 10px 0 0; color: var(--c-body); }
.note-text { margin-top: 12px; font-size: 0.78rem; color: var(--c-muted); }
.center-link { text-align: center; margin-top: 18px; }
@media (min-width: 720px) {
  .hero-tags { justify-content: flex-start; }
  .cta-panel { grid-template-columns: 1fr auto; }
  .cta-actions { min-width: 260px; }
  .reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voice-grid, .compare-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* fixed-cta — 旧版は dark 背景の中に白ピルを入れる「二重ボタン」構造で
   ヒーロー CTA と視覚的にぶつかっていた。背景を透明にして、各ピルを
   独立した塗り CTA に変更。primary-ink で文字色を自動最適化する。
   iOS Safari のホームインジケータ / 下部 UI に隠されないよう
   safe-area-inset-bottom を加味した位置取りにする。 */
.fixed-cta {
  position: fixed; left: 12px; right: 12px; z-index: 9999;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-auto-flow: column; gap: 10px;
  padding: 0; background: transparent; border-radius: 0; box-shadow: none;
  pointer-events: none;
}
.fixed-cta a {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 14px;
  border-radius: 999px;
  background: var(--c-primary); color: var(--c-primary-ink, #fff);
  font-weight: 800; font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
}
.fixed-cta a:hover { color: var(--c-primary-ink, #fff); text-decoration: none; }
/* 固定 CTA (56px) + 下マージン (12px) + iOS 下部 UI を確保 */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .fixed-cta { display: none; } body { padding-bottom: 0; } }

/* ====== Phase 3a: 口コミ依頼 + 固定 CTA ============================== */
.section-reviews-cta { padding: 56px 0; background: var(--c-bg-muted, #f8fafc); }
.reviews-cta {
  max-width: 560px;
  margin: 0 auto;
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-line, #e2e8f0);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.reviews-cta h2 {
  font-size: 1.25rem;
  margin: 0 0 .6em;
  color: var(--c-ink, #0f172a);
}
.reviews-cta__message {
  color: var(--c-muted, #475569);
  margin: 0 0 1.4em;
  line-height: 1.75;
  font-size: 0.95rem;
}
.reviews-cta__button {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--c-primary, #0369a1);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background .15s, transform .15s;
}
.reviews-cta__button:hover { background: var(--c-primary-hover, #075985); transform: translateY(-1px); }
.reviews-cta__thanks {
  margin: 1.2em 0 0;
  font-size: .85rem;
  color: var(--c-muted, #64748b);
}

/* 固定 CTA バー */
.floating-cta {
  display: none; /* デスクトップでは非表示。モバイルだけ常時表示 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px;
  /* iOS Safari の home indicator に隠されないよう safe-area を加算 */
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  border-top: 1px solid var(--c-line, #e2e8f0);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .12);
}
@media (max-width: 720px) {
  .floating-cta { display: flex; }
  body { padding-bottom: 72px; } /* 固定 CTA 分のスペース確保 */
}
.floating-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: filter .15s;
}
.floating-cta__btn:hover { filter: brightness(1.06); }
/* colored: テンプレのプライマリ色 */
.floating-cta--colored .floating-cta__btn--phone { background: var(--c-primary, #0369a1); color: #fff; }
.floating-cta--colored .floating-cta__btn--line  { background: #06c755; color: #fff; }
.floating-cta--colored .floating-cta__btn--reservation { background: var(--c-accent, #0ea5e9); color: #fff; }
/* simple: 控えめ */
.floating-cta--simple .floating-cta__btn { background: var(--c-bg, #fff); color: var(--c-primary, #0369a1); border: 1px solid var(--c-line, #e2e8f0); }
.floating-cta--simple .floating-cta__btn--line { color: #06c755; }
