/* なかこうじ接骨院
   オレンジ：名刺のライオンの色 #E2643E / ブルー：ヒアリング指定 #0200F2 */
:root {
  --orange: #E2643E;
  --orange-ink: #B4461F;   /* 白地の文字に使う濃いめのオレンジ */
  --blue: #0200F2;
  --navy: #15154A;         /* 指定ブルーを落ち着かせた広い面用 */
  --sign: #0068B7;         /* ボタン：道路標識（案内標識）の青 */
  --ink: #2A2724;
  --muted: #77706A;
  --paper: #FBF8F3;
  --tint: #F4EEE6;
  --rule: #DDD4C9;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.95; font-size: 16px; letter-spacing: .03em; }
img, video { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.55; letter-spacing: .06em; margin: 0; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 32px; padding: 14px 0 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-slot { width: 48px; height: 48px; border: 1px dashed var(--rule); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-area { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: .12em; }
.header-hours { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); border-left: 1px solid var(--rule); padding-left: 20px; }
.header-tel { text-decoration: none; display: flex; flex-direction: column; line-height: 1.3; color: var(--ink); }
.tel-label { font-size: 11px; color: var(--muted); }
.tel-num { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .06em; color: var(--orange-ink); }
.nav-toggle { display: none; }
.gnav ul { list-style: none; display: flex; justify-content: space-between; margin-block: 0; padding: 0; }
.gnav a { display: block; padding: 10px 2px 12px; text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .08em; border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--orange-ink); }
.gnav a[aria-current] { border-bottom-color: var(--orange); }

/* ---------- Hero (video) ---------- */
.hero { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; background: #5B534C; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media-note { position: absolute; top: 20px; left: 20px; margin: 0; font-size: 12px; letter-spacing: .1em; opacity: .7; }
.hero.has-video .hero-media-note { display: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, .55) 0%, rgba(20, 16, 12, .1) 45%, rgba(20, 16, 12, 0) 70%); }
.hero-catch { position: absolute; top: 48px; right: max(32px, calc((100% - 1160px) / 2)); margin: 0; writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .3em; line-height: 2; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-copy { position: relative; padding-bottom: 56px; }
.hero-sub { margin: 0 0 12px; font-size: 14px; letter-spacing: .2em; }
.hero-title { font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .1em; line-height: 1.7; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero:not(.has-video) .hero-toggle { display: none; }
.hero-toggle { position: absolute; right: 16px; bottom: 16px; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.5); font-size: 12px; padding: 4px 12px; cursor: pointer; font-family: var(--sans); }

.info-strip { background: #fff; border-bottom: 1px solid var(--rule); }
.info-grid { display: grid; grid-template-columns: 1.5fr .9fr 1fr 1fr; }
.info-grid > div { padding: 22px 24px; border-left: 1px solid var(--rule); }
.info-grid > div:first-child { border-left: 0; padding-left: 0; }
.info-grid p { margin: 0; font-size: 14px; line-height: 1.8; }
.info-label { color: var(--orange-ink); font-size: 12px !important; letter-spacing: .15em; margin-bottom: 4px !important; }
.info-tel { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tinted { background: var(--tint); }
.sec-title { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 40px; padding-bottom: 18px; position: relative; }
.sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--orange); }
.more-link { margin: 40px 0 0; }

.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.intro-text p { margin: 0 0 1.2em; }
.sign { font-family: var(--serif); text-align: right; margin-top: 2em !important; letter-spacing: .15em; }

.features { list-style: none; padding: 0; margin: 0; counter-reset: f; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.features li { counter-increment: f; border-top: 1px solid var(--rule); padding: 32px 0 40px; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
.features li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 26px; color: var(--orange); line-height: 1.3; }
.features h3 { font-size: 19px; margin-bottom: 10px; }
.features p { margin: 0; font-size: 15px; color: #4A4540; }

.menu-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.menu-main { display: flex; flex-direction: column; gap: 8px; background: #fff; padding: 32px; text-decoration: none; color: var(--ink); border-top: 3px solid var(--orange); transition: background .2s; }
.menu-main:hover { background: #FFFDFA; color: var(--ink); }
.menu-main-title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.menu-main-desc { font-size: 15px; color: #4A4540; }
.menu-main .btn { margin-top: auto; align-self: flex-start; }
.menu-main:hover .btn-line { color: #fff; background-size: 100% 100%; }
.menu-main:hover .btn-line::after { transform: translateX(4px); border-color: #fff; }
.menu-sub { font-size: 18px; margin-bottom: 16px; }
.menu-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 64px; }
.menu-list li { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: 15px; }
.m-dots { flex: 1; }
.m-price { font-family: var(--serif); font-weight: 700; white-space: nowrap; font-size: 16px; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.access-grid .map { margin-top: 0; height: 100%; min-height: 420px; aspect-ratio: auto; }

/* ---------- Hours ---------- */
.hours-wrap, .table-wrap { overflow-x: auto; }
.hours { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; text-align: center; }
.hours caption { text-align: left; font-family: var(--serif); font-weight: 700; padding-bottom: 8px; }
.hours th, .hours td { border-bottom: 1px solid var(--rule); padding: 12px 4px; }
.hours thead th { font-weight: 500; border-bottom: 2px solid var(--navy); color: var(--navy); }
.hours tbody th { white-space: nowrap; font-weight: 500; text-align: left; padding-left: 12px; }
.hours td { color: var(--orange-ink); font-size: 16px; }
.hours .closed { color: #B9B0A6; }
.hours .sat { font-size: 12px; white-space: nowrap; color: var(--ink); }
.hours-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

dl.facts { display: grid; grid-template-columns: 6em 1fr; margin: 32px 0 0; font-size: 15px; }
dl.facts dt, dl.facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { color: var(--muted); }

.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.news-list li { display: flex; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.news-list time { color: var(--muted); font-size: 14px; flex: none; font-family: var(--serif); }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--orange-ink); }

details.faq { border-bottom: 1px solid var(--rule); }
details.faq:first-of-type { border-top: 1px solid var(--rule); }
details.faq summary { cursor: pointer; padding: 22px 40px 22px 40px; position: relative; list-style: none; font-weight: 500; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "Q."; position: absolute; left: 0; top: 20px; font-family: var(--serif); color: var(--orange); font-size: 18px; }
details.faq summary::after { content: ""; position: absolute; right: 8px; top: 32px; width: 10px; height: 10px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(-135deg); top: 36px; }
details.faq > div { padding: 0 0 24px 40px; position: relative; color: #4A4540; }
details.faq > div::before { content: "A."; position: absolute; left: 0; top: -2px; font-family: var(--serif); color: var(--navy); font-size: 18px; }
details.faq > div p { margin: 0; }

/* ---------- Lower pages ---------- */
.page-hero { border-bottom: 1px solid var(--rule); padding: 20px 0 56px; background: var(--tint); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 40px; letter-spacing: .12em; }
.page-hero .lead { margin: 16px 0 0; color: #4A4540; max-width: 40em; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }

.content { padding: 56px 0 96px; }
.content > p, .content li { font-size: 16px; }
.content h2 { font-size: 24px; margin: 72px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); position: relative; }
.content h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 1px; background: var(--orange); }
.content h3 { font-size: 18px; margin: 36px 0 8px; }
.content h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: 10px; vertical-align: middle; }
.points { border-left: 2px solid var(--orange); padding: 4px 0 4px 24px; margin: 0 0 40px; }
.points-label { font-family: var(--serif); font-weight: 700; margin: 0 0 6px; letter-spacing: .1em; }
.points ul { margin: 0; padding-left: 1.2em; color: #4A4540; }
.steps { counter-reset: s; list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--serif); font-size: 20px; color: var(--orange); }
ul.check, ul.cross { list-style: none; padding: 0; }
ul.check li, ul.cross li { padding-left: 1.6em; position: relative; margin-bottom: 8px; }
ul.check li::before { content: "○"; position: absolute; left: 0; color: var(--orange-ink); }
ul.cross li::before { content: "×"; position: absolute; left: 0; color: var(--muted); }
.info-box { background: #fff; border: 1px solid var(--rule); padding: 24px 28px; }
.info-box p:first-child { margin-top: 0; }
.info-box p:last-child { margin-bottom: 0; }
.note { font-size: 13px; color: var(--muted); }
.updated { margin-top: 72px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; }
.todo { color: var(--muted); font-size: 14px; }

table.price { width: 100%; border-collapse: collapse; margin: 8px 0; background: #fff; }
table.price caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
table.price th, table.price td { border-bottom: 1px solid var(--rule); padding: 14px 12px; text-align: left; font-size: 15px; }
table.price thead th { font-weight: 500; color: var(--navy); border-bottom: 2px solid var(--navy); font-size: 13px; }
table.price tbody th { font-weight: 400; }
table.price .num { text-align: right; font-family: var(--serif); font-weight: 700; white-space: nowrap; }
dl.menu-notes dt { font-weight: 700; margin-top: 16px; }
dl.menu-notes dd { margin: 0; color: #4A4540; }

.profile { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.profile h2 { border: 0; padding: 0; margin: 4px 0 20px; font-size: 28px; }
.profile h2::after { display: none; }
.profile h2 small { display: block; font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 400; letter-spacing: .1em; }
.role { color: var(--orange-ink); font-size: 13px; letter-spacing: .15em; margin: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }

.map { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; margin: 24px 0 8px; filter: saturate(.85); }

/* 写真プレースホルダー */
.ph { aspect-ratio: 4 / 3; background: #E3DCD2; margin: 32px 0; position: relative; }
.ph figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #7A7168; }
.ph.portrait { aspect-ratio: 4 / 5; margin: 0; }
.ph.square { aspect-ratio: 1; margin: 0; }

/* ---------- CTA / Footer ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.cta-band p { margin: 0; opacity: .85; font-size: 15px; }
.cta-tel a { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); color: #fff; text-decoration: none; letter-spacing: .06em; font-weight: 700; border-bottom: 2px solid var(--orange); }
.cta-tel p { font-size: 13px; margin-top: 10px; }
.site-footer { background: #0E0E33; color: #CFCFDE; padding: 64px 0 40px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr .7fr; gap: 56px; }
.footer-name { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; color: #fff; letter-spacing: .12em; }
.site-footer address { font-style: normal; line-height: 2; }
.site-footer .hours { background: transparent; color: #fff; }
.site-footer .hours caption { color: #fff; }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(255,255,255,.15); }
.site-footer .hours thead th { color: #fff; border-color: rgba(255,255,255,.5); }
.site-footer .hours td { color: #F3A98F; }
.site-footer .hours .sat { color: #fff; }
.site-footer .hours .closed { color: rgba(255,255,255,.35); }
.site-footer .hours-note { color: #A9A9C0; }
.footer-nav { list-style: none; padding: 0; margin: 0; line-height: 2.2; }
.footer-nav a { text-decoration: none; }
.copyright { text-align: center; margin: 56px 0 0; font-size: 12px; opacity: .6; }
.fixed-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .header-hours { display: none; }
  .gnav ul { flex-wrap: wrap; justify-content: flex-start; gap: 0 20px; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .header-inner { padding: 10px 0; }
  .header-tel { display: none; }
  .nav-toggle { display: grid; gap: 6px; background: none; border: 0; padding: 10px 4px; cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 26px; height: 1px; background: var(--ink); display: block; }
  .gnav { display: none; border-top: 1px solid var(--rule); }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; padding: 8px 0 16px; }
  .gnav a { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .brand-name { font-size: 19px; }
  .logo-slot { width: 40px; height: 40px; }
  .hero { height: 74vh; min-height: 480px; }
  .hero-catch { top: 28px; right: 20px; font-size: 20px; }
  .hero-copy { padding-bottom: 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > div, .info-grid > div:first-child { display: grid; grid-template-columns: 5.5em 1fr; align-items: baseline; padding: 12px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .info-grid > div:first-child { border-top: 0; }
  .info-label { margin: 0 !important; }
  .info-tel { font-size: 20px; }
  .section { padding: 64px 0; }
  .intro-grid, .access-grid, .menu-lead, .footer-grid, .profile { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .menu-list { columns: 1; }
  .access-grid .map { min-height: 300px; }
  .profile .ph { max-width: 260px; }
  .cta-band { padding: 56px 0 64px; }
  .site-footer { padding-bottom: 100px; }
  .fixed-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transition: transform .4s ease; }
  .fixed-bar.hide { transform: translateY(100%); }
  .fixed-tel { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.3; background: var(--orange); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 20px; padding: 8px 12px 10px; text-decoration: none; letter-spacing: .06em; }
  .fixed-tel span { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .1em; }
  .fixed-insta { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--navy); color: #fff; text-decoration: none; font-size: 10px; letter-spacing: .05em; }
  .fixed-insta .ico { width: 24px; height: 24px; }
  .fixed-tel:hover, .fixed-insta:hover { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  details.faq summary::after { transition: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 20px; font-family: var(--sans); font-size: 14px; letter-spacing: .12em; text-decoration: none; cursor: pointer; transition: color .35s ease, background-size .35s ease, border-color .35s; }
.btn::after { content: ""; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transition: transform .35s ease; flex: none; }
.btn:hover::after { transform: translateX(4px) rotate(45deg); }
.btn-line { color: var(--sign); border: 1px solid var(--sign); padding: 14px 28px 14px 32px; min-width: 240px; justify-content: space-between;
  background: linear-gradient(var(--sign), var(--sign)) no-repeat left / 0% 100%; }
.btn-line:hover, .btn-line:focus-visible { color: #fff; background-size: 100% 100%; }
.menu-main:hover .btn-line::after { transform: translateX(4px) rotate(45deg); }
@media (max-width: 860px) { .btn-line { width: 100%; } }

/* ---------- Animations ---------- */
/* スクロール表示（JSが .js-anim を付けたときだけ隠す＝JS無効でも内容は見える） */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .sec-title.reveal::after { width: 0; transition: width .8s .4s ease; }
.js-anim .sec-title.reveal.in::after { width: 32px; }
.js-anim .ph.reveal, .js-anim .map.reveal { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1), opacity .4s; }
.js-anim .ph.reveal.in, .js-anim .map.reveal.in { clip-path: inset(0 0 0 0); }

/* ヒーロー */
.hero-video { animation: heroZoom 14s ease-out both; }
.hero-sub, .hero-title { animation: fadeUp 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-sub { animation-delay: .3s; }
.hero-title { animation-delay: .5s; }
.hero-catch { animation: inkDown 1.8s 1s cubic-bezier(.6,0,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes inkDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.page-hero h1 { animation: fadeUp 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .lead { animation: fadeUp 1s .3s cubic-bezier(.2,.7,.2,1) both; }

/* ヘッダー：スクロールで少し詰める */
.header-inner, .brand-name, .tel-num { transition: padding .3s, font-size .3s; }
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(42, 39, 36, .08); }
.site-header.scrolled .header-inner { padding: 8px 0 6px; }
.gnav a { position: relative; border-bottom: 0; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* FAQ：開くときにふわっと */
details.faq[open] > div { animation: fadeUp .45s ease both; }

/* カード・メニュー */
.menu-main { transition: background .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.menu-main:hover { transform: translateY(-4px); }
.menu-list li { transition: padding-left .3s; }
.menu-list li:hover { padding-left: 6px; }
.news-list li { transition: background .3s; }
.cta-tel a { background: linear-gradient(var(--orange), var(--orange)) no-repeat left bottom / 0% 2px; border-bottom-color: rgba(226,100,62,.4); transition: background-size .5s ease; }
.cta-tel a:hover { background-size: 100% 2px; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .reveal { opacity: 1; transform: none; clip-path: none; }
}
@media (max-width: 860px) {
  .gnav li { border-bottom: 1px solid var(--rule); }
  .gnav a::after { display: none; }
}

/* ---------- お知らせバー（ヒーロー下） ---------- */
.news-bar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.news-bar-inner { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.news-bar-title { font-size: 14px; letter-spacing: .15em; color: var(--orange-ink); flex: none; padding-right: 32px; border-right: 1px solid var(--rule); }
.news-bar-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.news-bar-list li { display: flex; gap: 24px; font-size: 14px; line-height: 1.9; }
.news-bar-list time { color: var(--muted); font-family: var(--serif); flex: none; }
.news-bar-list a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-bar-list a:hover { color: var(--orange-ink); text-decoration: underline; }
.news-bar-more { flex: none; font-size: 13px; letter-spacing: .1em; color: var(--sign); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.news-bar-more::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s; }
.news-bar-more:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 860px) {
  .news-bar-inner { flex-wrap: wrap; gap: 6px 16px; padding: 14px 0; }
  .news-bar-title { border-right: 0; padding-right: 0; }
  .news-bar-more { margin-left: auto; order: 2; }
  .news-bar-list { flex-basis: 100%; order: 3; }
  .news-bar-list li { gap: 12px; }
}

.news-item { padding: 8px 0 32px; border-bottom: 1px solid var(--rule); scroll-margin-top: 140px; }
.news-item time { color: var(--muted); font-family: var(--serif); font-size: 14px; }
.news-item h2 { margin-top: 4px !important; }

/* 料金表：列幅をそろえ、金額は見出しごと右寄せ */
table.price { table-layout: fixed; }
table.price col.c-num { width: 7.5em; }
table.price col.c-unit { width: 4.5em; }
table.price thead th.num { text-align: right; }
table.price .unit { text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  table.price col.c-num { width: 5.6em; }
  table.price col.c-unit { width: 3.5em; }
  table.price th, table.price td { padding: 12px 8px; font-size: 14px; }
}

/* 重要なお知らせ（保険と自費ページ冒頭） */
.notice { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--orange); padding: 32px 36px 28px; margin: 0 0 48px; }
.notice-label { margin: 0 0 6px; font-size: 12px; letter-spacing: .2em; color: var(--orange-ink); }
.content .notice h2 { margin: 0 0 20px; padding: 0; border: 0; font-size: 22px; }
.content .notice h2::after { display: none; }
.notice p:last-child { margin-bottom: 0; }
.step-detail { display: block; margin-top: 8px; padding: 10px 14px; background: var(--tint); font-size: 14px; line-height: 1.9; }
@media (max-width: 860px) { .notice { padding: 24px 20px 20px; } }

/* 用語説明・出典 */
dl.term { background: var(--tint); padding: 14px 18px; margin: 0 0 1.2em; }
dl.term dt { font-weight: 700; font-size: 14px; }
dl.term dd { margin: 4px 0 0; font-size: 15px; }
sup a { font-size: 11px; text-decoration: none; margin-left: 2px; }
ol.sources { padding-left: 1.4em; font-size: 14px; color: #4A4540; }
ol.sources li { margin-bottom: 12px; scroll-margin-top: 140px; }
ol.sources cite { font-style: normal; font-weight: 500; color: var(--ink); }
ol.sources a { word-break: break-all; font-size: 13px; }

/* Instagram 3列×2段 */
.insta-lead { margin: -16px 0 32px; color: #4A4540; }
.insta-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.insta-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: #E3DCD2; position: relative; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.insta-grid a:hover img { transform: scale(1.05); }
.insta-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(21, 21, 74, 0); transition: background .4s; }
.insta-grid a:hover::after { background: rgba(21, 21, 74, .15); }
.insta-ph { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #7A7168; }
@media (max-width: 860px) { .insta-grid { gap: 4px; } }

.footer-insta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-insta .ico { width: 18px; height: 18px; }

/* フッター下部リンク・ポリシーページ */
.footer-sub { text-align: center; margin: 48px 0 0; font-size: 13px; }
.footer-sub a { color: #CFCFDE; }
.footer-sub + .copyright { margin-top: 12px; }
.policy ul { padding-left: 1.4em; }
.policy li { margin-bottom: 6px; }

/* 料金表：初回の目安の行 */
table.price tr.total th, table.price tr.total td { background: var(--tint); border-top: 2px solid var(--navy); font-weight: 700; }
table.price tr.total th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
table.price tr.total td { color: var(--orange-ink); }

/* 写真 */
.photo { margin: 32px 0; }
.photo img { display: block; width: 100%; height: auto; }
.photo.portrait { margin: 0; }
.photo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo.square { margin: 0; }
.photo.square img { aspect-ratio: 1; object-fit: cover; }
.photo.wide { margin: 56px 0 0; }
.photo.wide img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; }
.profile .photo { max-width: 260px; }
.js-anim .photo.reveal { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1), opacity .4s; }
.js-anim .photo.reveal.in { clip-path: inset(0 0 0 0); }
@media (max-width: 860px) { .photo.wide img { aspect-ratio: 16 / 10; } }

/* 院長の資格 */
dl.credentials { margin: 0 0 24px; grid-template-columns: 6em 1fr; }

/* 院長の経歴（年表） */
.career-block { margin: 56px 0 72px; }
ol.career { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
ol.career li { position: relative; display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 14px 0 14px 24px; font-size: 15px; }
ol.career li::before { content: ""; position: absolute; left: -7px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
ol.career li:last-child::before { background: var(--orange); }
ol.career .yr { color: var(--orange-ink); font-family: var(--serif); font-weight: 700; letter-spacing: .04em; }
ol.career li:last-child .ev { font-weight: 700; }
@media (max-width: 560px) { ol.career li { grid-template-columns: 1fr; gap: 2px; } ol.career .yr:empty { display: none; } }

/* ---------- 追従フッター（PC・スマホ共通で画面下に固定） ---------- */
.fixed-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); color: #fff; border-top: 2px solid var(--orange); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 16px rgba(14, 14, 51, .18); }
.fixed-inner { width: min(1160px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 40px; padding: 12px 0; }
.fixed-lead { margin: 0 auto 0 0; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .1em; line-height: 1.5; }
.fixed-lead span { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .05em; opacity: .8; }
.fixed-tel { display: flex; flex-direction: column; line-height: 1.2; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .06em; }
.fixed-tel span { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .12em; color: #F3A98F; }
.fixed-tel:hover { color: #fff; }
.fixed-insta { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .05em; padding: 10px 16px; border: 1px solid rgba(255,255,255,.4); transition: background .3s; }
.fixed-insta .ico { width: 20px; height: 20px; }
.fixed-insta:hover { color: #fff; background: rgba(255,255,255,.1); }
.site-footer { padding-bottom: 120px; }
@media (max-width: 1000px) { .fixed-lead span { display: none; } }
@media (max-width: 860px) {
  .fixed-bar { display: flex; background: var(--orange); box-shadow: none; border-top: 0; }
  .fixed-inner { display: contents; }
  .fixed-lead { display: none; }
  .fixed-tel { flex: 1; align-items: center; font-size: 20px; padding: 8px 12px 10px; background: var(--orange); }
  .fixed-tel span { color: #fff; }
  .fixed-insta { flex: none; width: 76px; flex-direction: column; justify-content: center; gap: 2px; padding: 0; border: 0; background: var(--navy); font-size: 10px; }
  .fixed-insta .ico { width: 24px; height: 24px; }
  .site-footer { padding-bottom: 100px; }
}
