/* ===============================================================
   鍼灸サロンAcus — 共通スタイルシート
   =============================================================== */

/* ━━━ RESET ━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ━━━ DESIGN TOKENS ━━━ */
:root {
  --bg:     #FDFCFA;
  --cream:  #F5F0E8;
  --dark:   #1A1A18;
  --mid:    #3D3A36;
  --sub:    #6B6560;
  --accent: #8C7256;
  --gold:   #D4B896;
  --line:   rgba(28,28,26,0.14);
  --hdr-h:  68px;
  --text:   #222222;
  --muted:  #444444;
  --sans:   'Noto Sans JP', sans-serif;
  --serif:  'Noto Serif JP', serif;
  /* 旧・黒背景セクション用（グリーン配色） */
  --forest: #2D5016;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--text);
}

p, li, dd, dt, span, a { color: var(--text); }

/* ━━━ TYPOGRAPHY: 見出しは Serif ━━━ */
h1, h2, h3 { font-family: 'Noto Serif JP', serif; }

/* ナビ・ヘッダー内の見出し/リンク、ボタンは Sans を維持（上書き） */
header h1, header h2, header h3, header a,
nav h1, nav h2, nav h3, nav a,
#drawer a,
button, [class*="btn"] {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ━━━ HEADER ━━━ */
#hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--hdr-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(45,80,22,0.14);
  display: flex;
  align-items: center;
  transition: box-shadow .25s;
}
#hdr.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,.45); }

.hdr-in {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.hdr-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 48px;
}
.hdr-logo img {
  height: 46px;
  width: auto;
  display: block;
  /* logo.png はダーク背景向けの淡色ロゴのため、ベージュ背景では暗いシルエット化して視認性を確保（暫定対応） */
  filter: brightness(0);
}

.hdr-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.hdr-nav a {
  display: flex;
  align-items: center;
  height: var(--hdr-h);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(45,80,22,.68);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.hdr-nav a:hover,
.hdr-nav a.active { color: var(--forest); border-bottom-color: var(--gold); }

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-line-h {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  font-size: 12px; font-weight: 400; letter-spacing: .1em;
  color: #fff; background: #06C755;
  text-decoration: none; border-radius: 2px;
  transition: opacity .2s;
}
.btn-line-h:hover { opacity: .82; }

.btn-rsv-h {
  padding: 9px 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em;
  color: #1A1A18; background: var(--gold);
  text-decoration: none; border-radius: 2px;
  transition: background .2s;
}
.btn-rsv-h:hover { background: #C4A882; }

.hdr-toggle {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; padding: 8px; margin-left: auto;
  background: none; border: none;
}
.hdr-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--forest); border-radius: 1px; transition: .3s;
}

/* ━━━ DRAWER ━━━ */
#drawer {
  display: none; position: fixed;
  top: var(--hdr-h); left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 190;
  overflow-y: auto; flex-direction: column;
}
#drawer.open { display: flex; }

.drw-nav a {
  display: block; padding: 22px 36px;
  font-size: 16px; font-weight: 400; letter-spacing: .16em;
  color: var(--forest); text-decoration: none;
  border-bottom: 1px solid rgba(45,80,22,0.12);
}
.drw-nav a:hover { color: var(--gold); }
.drw-cta { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.drw-cta a {
  display: block; text-align: center; padding: 16px;
  font-size: 14px; font-weight: 400; letter-spacing: .16em;
  text-decoration: none;
}
.drw-rsv { color: #1A1A18; background: var(--gold); }
.drw-line { color: #fff; background: #06C755; }

/* ━━━ PAGE HERO (内部ページ共通) ━━━ */
.page-hero { margin-top: var(--hdr-h); background: var(--cream); padding: 64px 0 56px; }
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(24px,2.8vw,36px);
  letter-spacing: .12em; color: var(--forest); margin-bottom: 10px;
}
.page-hero p { font-size: 12px; letter-spacing: .2em; color: rgba(45,80,22,.55); }

/* ━━━ COMMON LAYOUT ━━━ */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.sec { padding: 88px 0; }
.sec.cream { background: var(--cream); }
.sec.dark  { background: var(--cream); }

.sec-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 400; letter-spacing: .4em;
  color: var(--text); text-transform: uppercase;
  margin-bottom: 40px;
}
.sec-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line); max-width: 72px;
}

.sec-h2 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: .1em; line-height: 1.7;
  color: var(--dark); margin-bottom: 36px;
}
.sec-h2.lt { color: var(--forest); }

/* ━━━ BUTTONS ━━━ */
.btn-fill {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 400; letter-spacing: .18em;
  color: #fff; background: var(--dark);
  padding: 15px 32px; text-decoration: none;
  transition: background .2s;
}
.btn-fill:hover { background: var(--accent); }

.btn-stroke {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 400; letter-spacing: .18em;
  color: var(--dark); border: 1.5px solid var(--dark);
  padding: 14px 32px; text-decoration: none;
  transition: all .2s;
}
.btn-stroke:hover { background: var(--dark); color: #fff; }

.btn-line-g {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; letter-spacing: .14em;
  color: #fff; background: #06C755;
  padding: 15px 32px; text-decoration: none;
  border-radius: 2px; transition: opacity .2s;
}
.btn-line-g:hover { opacity: .85; }

/* ━━━ FOOTER ━━━ */
footer {
  background: var(--cream);
  padding: 64px 0 40px;
}
.ftr-in {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(45,80,22,0.15);
}
.ftr-logo {
  text-decoration: none;
  display: block; margin-bottom: 14px;
}
.ftr-logo img {
  height: 62px; width: auto; display: block;
  /* logo.png はダーク背景向けの淡色ロゴのため、ベージュ背景では暗いシルエット化して視認性を確保（暫定対応） */
  filter: brightness(0);
}
.ftr-addr {
  font-size: 13px; line-height: 2;
  letter-spacing: .08em; color: rgba(45,80,22,.68);
}
.ftr-cols { display: flex; gap: 40px; }
.ftr-col h4 {
  font-size: 11px; font-weight: 400; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(45,80,22,.5);
  margin-bottom: 18px;
}
.ftr-col ul { list-style: none; }
.ftr-col li { margin-bottom: 12px; }
.ftr-col a {
  font-size: 14px; letter-spacing: .08em;
  color: rgba(45,80,22,.8); text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.ftr-col a:hover { color: var(--forest); }

/* ページ固有の Instagram ボタン CSS を footer 内でリセット */
.ftr-col a[href*="instagram.com"] {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: none !important;
  color: rgba(45,80,22,.8) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  letter-spacing: .08em !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
.ftr-col a[href*="instagram.com"]:hover {
  color: var(--forest) !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}
.ftr-btm {
  margin-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .1em;
  color: rgba(45,80,22,.4);
}

/* ━━━ REVEAL ━━━ */
.r { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.r.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .22s; }

/* ━━━ RESPONSIVE (共通ブレークポイント) ━━━ */
@media (max-width: 1060px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-toggle { display: flex; }
  .wrap { padding: 0 24px; }
  .ftr-in { flex-direction: column; }
  .ftr-cols { flex-wrap: wrap; gap: 32px; }
  .ftr-btm { flex-direction: column; gap: 8px; text-align: center; }
}

/* ━━━ FOCUS VISIBLE（アクセシビリティ） ━━━ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ━━━ BACK TO TOP ━━━ */
.back-top {
  position: fixed; bottom: 28px; right: 24px; z-index: 250;
  width: 44px; height: 44px;
  background: rgba(26,26,24,.90); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
  transform: translateY(10px);
}
.back-top.vis { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--dark); }
.back-top svg {
  width: 16px; height: 16px; fill: none;
  stroke: var(--gold); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 900px) { .back-top { bottom: 80px; right: 16px; } }

/* ━━━ STICKY MOBILE CTA ━━━ */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,249,247,.97);
  border-top: 1px solid rgba(232,227,220,1);
  padding: 10px 16px 14px; gap: 8px;
}
@media (max-width: 640px) { .sticky-cta { display: flex; } }
.sticky-cta a {
  flex: 1; text-align: center; font-size: 13px; font-weight: 500;
  padding: 13px 0; border-radius: 8px; text-decoration: none;
}
.sticky-rsv { background: #3a3a3a; color: #fff; }
.sticky-line { background: #06b25d; color: #fff; }
