@charset "utf-8";

/* =========================================
   ほうなん町整骨院 サンプル / style.css
   モック準拠リデザイン（中央揃え見出し・3列カード・番号付き理由・横並びフロー）
   基調: 緑 #2E7D46（現行サイトの差し色 #5BB531 の彩度を落とした系統）
   ========================================= */

:root {
  --brand: #2E7D46;
  --brand-deep: #235C34;
  --brand-soft: #E8F1E6;
  --brand-tint: #F2F8F0;
  --footer-bg: #2F6B41;
  --surface: #FFFFFF;
  --surface-alt: #F6FAF4;
  --ink: #1C2B21;
  --muted: #55625A;
  --line: #DCE5DA;
  --line-soft: #E9EFE7;
  --accent: #8A5116;
  --radius: 12px;
  --shell: 1120px;
  --pad-x: clamp(20px, 5vw, 40px);
  --sec-y: clamp(52px, 7.5vw, 88px);
  --font-jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-en: "Inter", var(--font-jp);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.5; margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; }

.shell { width: min(100% - (var(--pad-x) * 2), var(--shell)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- skip link / sample banner ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.sample-banner {
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 12px; line-height: 1.7;
  padding: 6px var(--pad-x);
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  justify-content: center; text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.sample-banner strong { background: var(--brand-deep); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 11px; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad-x);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; overflow: hidden; }
.logo-placeholder {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: #EDF1EC; border: 1px dashed #B9C2B6; border-radius: 8px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .08em; color: #7A857A;
}
.brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.global-nav { display: flex; gap: clamp(8px, 1.3vw, 18px); margin-inline: auto; }
.global-nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.global-nav a:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tel { display: flex; align-items: center; gap: 5px; text-decoration: none; color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
.header-tel svg { width: 17px; height: 17px; flex: none; }
.header-tel-num { font-family: var(--font-en); font-size: 15.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-ico { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--brand-deep); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: #fff; color: var(--muted); border-color: var(--line); }
.btn-ghost.is-disabled { cursor: default; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-tel { padding: 12px 26px; text-align: left; }
.btn-tel span { display: flex; flex-direction: column; line-height: 1.35; }
.btn-tel strong { font-family: var(--font-en); font-size: 24px; letter-spacing: .01em; }
.btn-tel small { font-size: 11px; font-weight: 400; opacity: .92; }

/* ---------- mobile menu ---------- */
.menu { display: none; position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; color: var(--ink); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(78vw, 280px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 34px rgba(28,43,33,.14); padding: 8px; display: flex; flex-direction: column;
}
.menu-panel a { text-decoration: none; padding: 11px 12px; border-radius: 6px; font-size: 15px; }
.menu-panel a:hover { background: var(--surface-alt); }
.menu-cta { margin-top: 6px; background: var(--brand); color: #fff; text-align: center; font-weight: 700; }
.menu-cta:hover { background: var(--brand-deep); }

/* ---------- section common ---------- */
section { padding-block: var(--sec-y); }
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker {
  font-family: var(--font-en); font-weight: 500; font-size: 11.5px; letter-spacing: .18em;
  color: var(--brand); margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(1.35rem, 3.2vw, 1.85rem); position: relative; display: inline-block; padding-bottom: 14px; }
.sec-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 2px; background: var(--brand); }
.sec-note { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fff, var(--surface-alt)); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 48%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 22%);
}
.hero-inner { position: relative; z-index: 2; width: min(100% - (var(--pad-x) * 2), var(--shell)); margin-inline: auto; padding-block: clamp(40px, 4.6vw, 64px); }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.55; }
.hero-lead { margin-top: 16px; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-badges li {
  font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px;
}
.hero-badges .is-strong { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: stretch; }

/* ---------- symptoms ---------- */
.symptoms { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li {
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface-alt);
  padding: 8px 18px; font-size: 14px; font-weight: 500;
}

/* ---------- cards (menu) ---------- */
.menu-sec { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 20px 20px 24px; }
.card-body h3 { font-size: 1.05rem; }
.card-body p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- reasons ---------- */
.reasons { background: var(--surface-alt); }
.reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.reason-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.reason-list li:nth-child(1), .reason-list li:nth-child(2) { padding-top: 0; }
.reason-list li:nth-child(5) { border-bottom: none; }
.reason-num { font-family: var(--font-en); font-size: 17px; font-weight: 500; color: var(--brand); flex: none; padding-top: 2px; }
.reason-list strong { display: block; font-size: 16px; }
.reason-list p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- flow ---------- */
.flow { background: var(--surface); }
.flow-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; text-align: center; }
.flow-list::before {
  content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 2px; background: var(--line);
}
.flow-list li { position: relative; min-width: 0; }
.flow-num {
  display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-family: var(--font-en); font-weight: 500; font-size: 15px; position: relative; z-index: 1;
}
.flow-list strong { display: block; font-size: 14.5px; }
.flow-list p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* ---------- price ---------- */
.price { background: var(--surface-alt); }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }
.price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.price-list > div {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); min-width: 0;
}
.price-list dt { font-weight: 500; font-size: 15px; min-width: 0; }
.price-list dd { margin: 0; font-weight: 700; font-size: 16px; color: var(--brand-deep); text-align: right; min-width: 0; }
.price-list dd span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.price-foot { margin-top: 18px; }
.price-foot p { font-size: 12.5px; color: var(--muted); }
.note-check { margin-top: 6px; color: var(--accent); font-weight: 500; }

/* ---------- staff ---------- */
.staff { background: var(--surface); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.photo {
  display: grid; place-items: center; background: #EDF1EC; border: 1px dashed #B9C2B6; border-radius: 8px;
  color: #86917F; font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; aspect-ratio: 1 / 1;
}
.photo-portrait { aspect-ratio: 3 / 4; }
.staff-main { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.2vw, 24px); }
.staff-main-body { min-width: 0; }
.staff-role { font-size: 12.5px; color: var(--muted); }
.staff-main h3 { font-size: 1.2rem; }
.staff-main .ruby { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.badge-license { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); border-radius: 4px; padding: 3px 10px; }
.license-list { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.license-list li { font-size: 13px; color: var(--muted); padding-left: 14px; position: relative; }
.license-list li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.staff-text { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.staff-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.staff-sub li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; min-width: 0; }
.staff-sub .photo { margin-bottom: 12px; }
.staff-sub strong { display: block; font-size: 15px; }
.staff-sub p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- news ---------- */
.news { background: var(--surface-alt); }
.news-list { border-top: 1px solid var(--line); }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-en); font-size: 13.5px; color: var(--muted); flex: none; }
.news-list span { font-size: 14.5px; }

/* ---------- access ---------- */
.access { background: var(--surface); }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.access-points { display: flex; flex-direction: column; gap: 12px; }
.access-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.access-points a { font-family: var(--font-en); font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.pt-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); }
.pt-ico svg { width: 18px; height: 18px; }

.hours-wrap { margin-top: 24px; overflow-x: auto; }
.hours { width: 100%; font-size: 13.5px; min-width: 340px; }
.hours th, .hours td { border-bottom: 1px solid var(--line); padding: 9px 4px; text-align: center; font-weight: 500; }
.hours thead th { color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.hours tbody th { text-align: left; white-space: nowrap; padding-right: 12px; font-weight: 500; }
.hours td { color: var(--brand); font-size: 14px; }
.hours-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.access-map {
  display: grid; place-items: center; align-content: center; gap: 6px;
  min-height: 320px; height: 100%;
  background: var(--surface-alt); border: 1px dashed #B9C2B6; border-radius: var(--radius);
  color: var(--muted); font-size: 13.5px; padding: 20px; text-align: center;
}
.map-pin svg { width: 30px; height: 30px; color: var(--brand); }

/* ---------- contact band ---------- */
.contact { position: relative; background: var(--brand-tint); overflow: hidden; }
.leaf { position: absolute; color: #BDD9BC; opacity: .55; pointer-events: none; }
.leaf svg { width: 100%; height: 100%; }
.leaf-l { left: -10px; top: 10px; width: 130px; height: 130px; }
.leaf-r { right: -10px; bottom: 0; width: 130px; height: 130px; }
.contact-shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); align-items: center; justify-content: center; }
.contact-copy { text-align: center; }
.contact-title { font-size: 15px; font-weight: 700; }
.contact-tel a { font-family: var(--font-en); font-size: clamp(2rem, 4.4vw, 2.6rem); font-weight: 700; color: var(--brand-deep); text-decoration: none; letter-spacing: .01em; line-height: 1.3; }
.contact-note { font-size: 12.5px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #EAF2EA; padding-block: 36px 20px; }
.footer-shell { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-name { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.footer-brand p { font-size: 13.5px; line-height: 1.85; }
.footer-access { margin-top: 6px; color: #C7DCC6; font-size: 12.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-brand a { font-family: var(--font-en); font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font-size: 13.5px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; }
.copyright { font-family: var(--font-en); font-size: 12px; color: #C7DCC6; }
.footer-note { font-size: 11.5px; color: #C7DCC6; }

/* ---------- SP floating CTA ---------- */
.sp-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.sp-cta .btn { flex: 1 1 0; min-width: 0; padding: 12px 8px; font-size: 14.5px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* =========================================
   responsive
   ========================================= */
/* 幅が足りなくなったら電話番号テキストのみ畳み、タップ発信のアイコンは全幅で残す */
@media (max-width: 1340px) {
  .header-tel-num { display: none; }
  .header-tel { padding: 8px; }
}

@media (max-width: 1180px) {
  .global-nav { gap: 10px; }
  .global-nav a { font-size: 13px; }
  .header-contact { display: none; }
}

@media (max-width: 1024px) {
  .global-nav { display: none; }
  .menu { display: block; }
  .header-actions .btn-sm { display: none; }
  .hero-media { width: 42%; }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .flow-list::before { display: none; }
  .staff-grid { grid-template-columns: minmax(0, 1fr); }
  .staff-sub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); align-items: center; }
  .card-media img { height: 100%; }
  .access-grid { grid-template-columns: minmax(0, 1fr); }
  .access-map { min-height: 220px; }
  .reason-list { grid-template-columns: minmax(0, 1fr); }
  .reason-list li:nth-child(2) { padding-top: 20px; }
  .reason-list li:nth-child(5) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .sp-cta { display: flex; }
  .sample-banner { text-align: left; justify-content: flex-start; }
  .hero { background: var(--surface-alt); }
  .hero-media { position: static; width: auto; height: clamp(200px, 46vw, 280px); }
  .hero-media::before { display: none; }
  .hero-inner { padding-block: 28px 40px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(1.45rem, 6.2vw, 1.85rem); }
  .hero h1 br, .hero-lead br { display: none; }
  .hero-actions .btn { width: 100%; }
  .btn-tel { justify-content: center; }
  .card { grid-template-columns: minmax(0, 1fr); display: flex; flex-direction: column; }
  .card-media img { aspect-ratio: 16 / 9; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-list { grid-template-columns: minmax(0, 1fr); }
  .staff-main { grid-template-columns: minmax(0, 1fr); }
  .staff-main .photo-portrait { aspect-ratio: 4 / 3; max-height: 220px; }
  .staff-sub { grid-template-columns: minmax(0, 1fr); }
  .staff-sub li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; text-align: left; align-items: center; }
  .staff-sub .photo { margin-bottom: 0; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .leaf { width: 92px; height: 92px; opacity: .4; }
  .footer-shell { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .flow-list { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .flow-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; }
  .flow-num { margin: 0; grid-row: span 2; }
  .flow-list p { margin-top: 2px; }
}
