/* ==========================================================================
   はせ整骨院 サンプルLP — style.css
   トークン正典: 10_事業・販売/04_Web制作代行/hase-seikotsuin/05_設計_トップページ.md セクション4
   ========================================================================== */

:root {
  /* カラー（本文色除き5色＋補助シェード） */
  --brand: #42230C;
  --accent: #9C5518;
  --bg: #FFFFFF;
  --bg-alt: #F7F3EE;
  --line: #E4DDD3;
  --brand-dark: #2E1908;
  --accent-dark: #7D4413;
  --ink: #2B2420;

  /* 余白スケール */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* 角丸・影 */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(66, 35, 12, .08);
  --shadow-md: 0 12px 28px -10px rgba(66, 35, 12, .20);

  /* レイアウト */
  --shell: 1120px;
  --font-heading: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ==========================================================================
   リセット・基礎
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}
img { max-width: 100%; height: auto; display: block; }
ul, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--brand);
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.5;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.5;
}
h3 {
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
}
p { margin: 0; }
strong { font-weight: 500; }

.kicker {
  display: inline-block;
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ==========================================================================
   レイアウト共通
   ========================================================================== */
.section-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section-shell.narrow { max-width: 720px; }
.section-shell.center { text-align: center; }

main > section { padding-block: clamp(64px, 8vw, 96px); scroll-margin-top: 96px; }

.section-head { margin-bottom: var(--space-6); }
.section-intro { margin-top: var(--space-3); color: var(--ink); max-width: 60ch; }

/* ==========================================================================
   アクセシビリティ：skip-link／focus-visible
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   サンプル注記バー
   ========================================================================== */
.sample-banner {
  background: var(--brand);
  color: #f2e9df;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.sample-banner strong { color: #fff; }

/* ==========================================================================
   ボタン共通
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-line { background: var(--accent); color: #fff; }
.btn-line:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--line); box-shadow: none; white-space: normal; text-align: center; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn-outline:hover { box-shadow: none; }
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   ヘッダー（sticky）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px clamp(20px, 5vw, 40px);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 24vw, 168px);
  aspect-ratio: 168 / 40;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.logo-placeholder span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
}
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--brand); white-space: nowrap; }
.global-nav { display: none; gap: 20px; }
.global-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--accent); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-tel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--brand);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.header-tel-icon svg { width: 19px; height: 19px; }
.header-cta { display: none; }
.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu[open] > summary { background: var(--brand); color: #fff; border-color: var(--brand); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.menu-panel a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.menu-panel a:hover { background: var(--bg-alt); color: var(--accent); }
.menu-panel .menu-cta {
  margin-top: 6px;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.menu-panel .menu-cta:hover { background: var(--brand-dark); color: #fff; }

/* ==========================================================================
   ファーストビュー
   ========================================================================== */
.hero-section { background: var(--bg-alt); overflow-x: hidden; }
.hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-7);
}
.hero-shell > * { min-width: 0; }
.hero-copy { max-width: 640px; }
.hero-lead { display: block; margin-top: var(--space-4); font-size: 16px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-tel-number { margin-top: var(--space-3); font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.hero-tel-number a { text-decoration: none; color: var(--brand); }
.hero-visual { position: relative; margin-top: var(--space-6); }
.hero-blob {
  position: absolute;
  inset: -8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 35, 12, .18), rgba(66, 35, 12, 0) 70%);
  filter: blur(28px);
  animation: hero-breathe 8s ease-in-out infinite;
}
.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@keyframes hero-breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.02); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   選ばれる理由
   ========================================================================== */
.reasons-shell { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.reasons-shell > * { min-width: 0; }
.reasons-list { display: flex; flex-direction: column; }
.reasons-list li {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.reasons-list li:last-child { border-bottom: 1px solid var(--line); }
.reasons-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
}
.reasons-icon svg { width: 22px; height: 22px; }
.reasons-text { min-width: 0; }
.reasons-text strong { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--brand); font-size: 1.02rem; }
.reasons-text p { margin-top: var(--space-1); color: var(--ink); font-size: .95rem; }

/* ==========================================================================
   施術メニュー（ジグザグ）
   ========================================================================== */
.menu-rows { display: flex; flex-direction: column; gap: var(--space-5); }
.menu-row { display: flex; flex-direction: column; gap: var(--space-4); }
.menu-row > * { min-width: 0; }
.menu-row-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.menu-row-body h3 { margin-bottom: var(--space-3); }
.menu-row-body p { color: var(--ink); }
.menu-note { margin-top: var(--space-3); font-size: 13px; color: var(--ink); line-height: 1.6; }

/* ==========================================================================
   院長・スタッフ紹介
   ========================================================================== */
.staff-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.staff-grid > * { min-width: 0; }
.staff-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: var(--space-4);
}
.staff-avatar-brand { background: rgba(66, 35, 12, .12); color: var(--brand); }
.staff-avatar-neutral { background: var(--bg-alt); color: var(--accent); border: 1px solid var(--line); }
.staff-card h3 { margin-bottom: var(--space-2); }
.staff-cert { font-size: 13px; color: var(--ink); margin-bottom: var(--space-3); }
.staff-card > p:last-child { color: var(--ink); }

/* ==========================================================================
   料金
   ========================================================================== */
.price-shell { max-width: 840px; }
.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.price-list .price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row dt { flex: 1 1 0%; min-width: 0; font-weight: 500; color: var(--ink); }
.price-row dd { flex: 0 0 auto; font-weight: 700; color: var(--accent); font-family: var(--font-heading); text-align: right; white-space: nowrap; }
.price-tax-note { margin-top: var(--space-4); font-size: 13px; color: var(--ink); }
.price-supplement { margin-top: var(--space-3); color: var(--ink); }
.price-more { margin-top: var(--space-2); font-size: 13px; color: var(--ink); }

/* ==========================================================================
   お知らせ
   ========================================================================== */
.news-list li { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.news-list time { font-family: var(--font-heading); font-weight: 700; color: var(--accent); font-size: .9rem; }
.news-list p { color: var(--ink); }

/* ==========================================================================
   アクセス
   ========================================================================== */
.access-section { background: var(--bg-alt); }
.access-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.access-grid > * { min-width: 0; }
.access-detail { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.access-detail dt { font-weight: 700; color: var(--brand); font-size: .85rem; margin-bottom: var(--space-1); }
.access-detail dd { color: var(--ink); }
.access-note { display: inline-block; margin-top: var(--space-2); font-size: 13px; color: var(--ink); line-height: 1.6; }
.access-tel { margin-top: var(--space-5); }
.access-tel a {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--accent);
  text-align: center;
  padding: var(--space-4);
}
.map-placeholder svg { width: 34px; height: 34px; }
.map-placeholder p { font-size: 13px; color: var(--ink); max-width: 22ch; }

/* ==========================================================================
   SNS
   ========================================================================== */
.sns-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-5); }
.sns-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink);
  width: 92px;
}
.sns-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sns-link:hover .sns-badge { background: var(--brand); color: #fff; border-color: var(--brand); }
.sns-label { font-size: 13px; }

/* ==========================================================================
   ページ末尾CTA
   ========================================================================== */
.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  grid-template-areas: "head" "tel" "form" "line";
}
.contact-grid > * { min-width: 0; }
.contact-head { grid-area: head; text-align: center; }
.contact-sub { margin-top: var(--space-3); color: var(--ink); }
.contact-tel { grid-area: tel; text-align: center; }
.contact-tel-number { margin-top: var(--space-3); font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.contact-tel-number a { color: var(--brand); text-decoration: none; }
.contact-hours { margin-top: var(--space-2); font-size: 13px; color: var(--ink); }
.contact-form-wrap { grid-area: form; }
.contact-line { grid-area: line; text-align: center; }
.contact-form { display: flex; flex-direction: column; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.form-field label { font-weight: 500; font-size: 15px; color: var(--ink); }
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(156, 85, 24, .12);
}
.field-note { margin: 0; font-size: 13px; color: var(--ink); }
.contact-form .btn { width: 100%; margin-top: var(--space-2); }
.form-sample-note { margin-top: var(--space-3); font-size: 13px; color: var(--ink); }
.contact-line .btn { width: 100%; max-width: 320px; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { background: var(--brand); color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-block: var(--space-7);
  text-align: center;
}
.footer-col p { margin-bottom: var(--space-2); font-size: 14px; color: #f2e9df; }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: #fff; }
.footer-col a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-col a:hover { text-decoration: underline; }
.footer-note { font-size: 13px; color: #d9c7b7; }
.footer-sns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.footer-sns a { font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.footer-privacy { color: #d9c7b7; font-size: 13px; }
.footer-copyright { font-size: 13px; color: #d9c7b7; margin-bottom: 0; }

/* ==========================================================================
   フローティングCTA（SPのみ）
   ========================================================================== */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: var(--space-2);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(66, 35, 12, .10);
}
.fc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.fc-tel { background: var(--brand); color: #fff; flex: 1.1; }
.fc-tel svg { width: 16px; height: 16px; }
.fc-sub { background: var(--bg-alt); color: var(--brand); border: 1px solid var(--line); }

/* ==========================================================================
   ブレークポイント：タブレット（768px〜）
   ========================================================================== */
@media (min-width: 768px) {
  main > section { scroll-margin-top: 100px; }

  .reasons-shell { grid-template-columns: 35fr 65fr; gap: var(--space-8); align-items: start; }

  .menu-row { display: grid; grid-template-columns: 45fr 55fr; gap: var(--space-6); align-items: center; }
  .menu-row.flip { grid-template-columns: 55fr 45fr; }
  .menu-row.flip .menu-row-media { order: 2; }
  .menu-row.flip .menu-row-body { order: 1; }

  .staff-grid { grid-template-columns: 1fr 1fr; }

  .access-grid { grid-template-columns: 45fr 55fr; align-items: start; }
  .access-text { order: 2; }
  .access-map { order: 1; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .footer-sns { justify-content: flex-start; }
}

/* ==========================================================================
   ブレークポイント：PC（1024px〜）
   ========================================================================== */
@media (min-width: 1024px) {
  .global-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .header-tel-icon { display: none; }
  .menu { display: none; }

  .hero-shell { grid-template-columns: 55fr 45fr; gap: var(--space-8); padding-block: var(--space-8); }
  .hero-visual { margin-top: 0; }
  .hero-image { aspect-ratio: 4 / 3; }

  .menu-rows { gap: var(--space-8); }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "head head" "form tel" "form line";
    align-items: start;
  }
  .contact-tel { align-self: start; }

  .footer-inner { grid-template-columns: 1.1fr 1fr 1fr; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-image { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   ブレークポイント：SP（〜767px）
   ========================================================================== */
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .floating-cta { display: flex; }
  main > section { scroll-margin-top: 80px; }
  .price-row dt, .price-row dd { font-size: 13px; }
}

/* ==========================================================================
   極小幅の保険（320px級：tim-yoga前例あり、念入りに余白確保）
   ========================================================================== */
@media (max-width: 359px) {
  .header-tel-icon, .menu > summary { width: 38px; height: 38px; }
  .header-tel-icon svg { width: 17px; height: 17px; }
  .brand-name { font-size: .95rem; }
  .floating-cta { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .fc-btn { padding-inline: 8px; font-size: 13px; }
  .price-row dt, .price-row dd { font-size: 12px; }
}
