/* ─────────────────────────────────────────────
   いわもと接骨院 — 共通スタイル
   トークン / リセット / ヘッダー / ドロワー /
   フローティングCTA / フッター / リビール
   全ページで読み込む。
   Palette is strictly white / pale yellow / dark yellow.
   ───────────────────────────────────────────── */
:root{
  /* surfaces */
  --bg-white: #FFFFFF;
  --bg-cream: #FFF8E1;     /* pale yellow */
  --bg-soft : #FFFDF4;     /* almost-white tinted */
  --bg-warm : #FBEFC2;     /* slightly stronger pale yellow */

  /* accents (logo yellow family) */
  --y-50 : #FFF8E1;
  --y-100: #FBEAB4;
  --y-200: #F4D67A;
  --y-300: #EDC04A;
  --y-400: #E5A823;        /* brand */
  --y-500: #C98C0F;
  --y-600: #9A6A09;        /* deep accent */
  --y-700: #6E4C05;        /* sub-text */
  --y-800: #4A3304;        /* body text (deep gold, reads like text) */
  --y-900: #2E1F00;        /* heading max */

  /* lines */
  --line : #F0E1AE;
  --line-soft: #FAEFCB;

  /* type */
  --ff-base: "Noto Sans JP", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-disp: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;

  /* radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* shadows */
  --sh-card: 0 4px 24px rgba(154,106,9,.06), 0 1px 2px rgba(154,106,9,.04);
  --sh-soft: 0 12px 40px rgba(154,106,9,.08);
  --sh-pop:  0 18px 50px rgba(154,106,9,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top: 72px;}
body{
  margin:0;
  font-family: var(--ff-base);
  color: var(--y-800);
  background: var(--bg-white);
  font-weight: 400;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}

/* ─────────────────────────────────────────────
   Type
   ───────────────────────────────────────────── */
.display{
  font-family: var(--ff-disp);
  font-weight: 500;
  color: var(--y-900);
  letter-spacing: .04em;
  line-height: 1.4;
}
.eyebrow{
  font-family: var(--ff-disp);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--y-500);
  text-transform: uppercase;
  display:inline-flex;
  align-items:center;
  gap:14px;
}
.eyebrow::before{
  content:"";
  width:32px; height:1.5px;
  background: var(--y-400);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────── */
.wrap{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
section{ padding: 140px 0; }
.section-head{
  text-align:center;
  margin-bottom: 80px;
}
.section-head .eyebrow{ margin-bottom: 24px; }
.section-head h2{
  font-family: var(--ff-disp);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--y-900);
  margin: 0 0 18px;
  letter-spacing: .06em;
  line-height: 1.45;
}
.section-head p{
  max-width: 620px;
  margin: 0 auto;
  color: var(--y-700);
  font-size: 15px;
}

/* ─────────────────────────────────────────────
   Fixed site header (always on top)
   ───────────────────────────────────────────── */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 28px;
}
.site-header__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.site-header__brand img{ width: 40px; height: auto; }
.site-header__brand span{
  font-family: var(--ff-disp);
  font-size: 17px;
  letter-spacing: .14em;
  color: var(--y-900);
}
.site-header__nav{
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 24px;
}
.site-header__nav a{
  font-family: var(--ff-disp);
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--y-800);
  padding: 10px 18px;
  position: relative;
  transition: color 1s ease;
}
.site-header__nav a + a::before{
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 1px; height: 14px;
  background: var(--line);
}
.site-header__nav a:hover{ color: var(--y-500); }
.cta-glass--header{
  margin-left: auto;
  padding: 11px 22px;
  font-size: 13px;
}

/* simple glass yellow CTA (logo yellow, gentle glass) */
.cta-glass{
  background: rgba(229,168,35,.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--ff-disp);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .12em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.5);
  display:inline-flex; align-items:center; gap: 10px;
  transition: background 1s ease;
}
.cta-glass:hover{
  background: rgba(237,192,74,.92);
}
.cta-glass .arr{
  width:18px; height:18px; border-radius:50%;
  background: rgba(255,255,255,.32);
  display:inline-flex; align-items:center; justify-content:center;
}

/* hamburger — hidden on desktop, shown on mobile (≤ 1080) */
.site-header__hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(229,168,35,.08);
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  transition: background-color .6s ease;
}
.site-header__hamburger:hover{ background: rgba(229,168,35,.18); }
.site-header__hamburger span{
  display: block;
  width: 18px; height: 1.8px;
  margin: 0 auto;
  background: var(--y-800);
  border-radius: 2px;
  transition: transform .35s ease, opacity .35s ease;
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(5.8px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-5.8px) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(255,253,244,.98);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-drawer.open{ opacity: 1; pointer-events: auto; }
.mobile-drawer__close{
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(229,168,35,.12);
  color: var(--y-800);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .6s ease;
}
.mobile-drawer__close:hover{ background: rgba(229,168,35,.22); }
.mobile-drawer__nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
}
.mobile-drawer__nav a{
  font-family: var(--ff-disp);
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--y-900);
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: color .6s ease;
}
.mobile-drawer__nav a:hover{ color: var(--y-500); }
.mobile-drawer__nav a:last-child{ border-bottom: none; }

/* ─────────────────────────────────────────────
   Floating mobile CTA
   visible on mobile by default
   ───────────────────────────────────────────── */
.floating-cta{
  display: none;
  position: fixed;
  z-index: 95;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(229,168,35,.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--ff-disp);
  font-weight: 500;
  letter-spacing: .12em;
  border: 1px solid rgba(255,255,255,.5);
  transition: background-color .6s ease, transform .6s ease, box-shadow .6s ease;
}
.floating-cta:hover{ background: rgba(237,192,74,.95); }
.floating-cta .arr{
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  display: inline-flex; align-items: center; justify-content: center;
}

/* default — small pill bottom-right (with attention pulse) */
body[data-fcta="pill"] .floating-cta,
.floating-cta{
  right: 18px; bottom: 18px;
  padding: 18px 30px;
  font-size: 15px;
  border-radius: 100px;
  box-shadow: 0 10px 28px rgba(229,168,35,.32);
  animation: fcta-pulse 2.4s ease-in-out infinite;
}
.floating-cta .arr{
  width: 22px; height: 22px;
}
@keyframes fcta-pulse{
  0%, 100% { box-shadow: 0 10px 28px rgba(229,168,35,.45), 0 0 0 0 rgba(229,168,35,.55); }
  60%      { box-shadow: 0 10px 28px rgba(229,168,35,.45), 0 0 0 16px rgba(229,168,35,0); }
}

/* ─────────────────────────────────────────────
   Shared pill button (used by subpages / utilities)
   ───────────────────────────────────────────── */
.btn-pill{
  display:inline-flex; align-items:center; gap: 14px;
  padding: 18px 36px;
  background: #fff;
  border: 1.5px solid var(--y-300);
  border-radius: 100px;
  font-family: var(--ff-disp);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--y-700);
  transition: background 1s ease, color 1s ease, border-color 1s ease;
}
.btn-pill:hover{
  background: var(--y-400);
  color: #fff;
  border-color: var(--y-400);
}
.btn-pill .arr{
  width: 28px; height: 28px; border-radius:50%;
  background: var(--y-100);
  color: var(--y-600);
  display:inline-flex; align-items:center; justify-content:center;
  transition: background 1s ease, color 1s ease;
}
.btn-pill:hover .arr{ background: rgba(255,255,255,.25); color:#fff; }

/* ─────────────────────────────────────────────
   Footer — pale cream
   ───────────────────────────────────────────── */
footer{
  background: var(--bg-cream);
  color: var(--y-800);
  padding: 80px 0 36px;
}
footer .wrap{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
footer .brand{
  display:flex; align-items:center; gap: 16px;
}
footer .brand .lg{
  width: 56px; height: 56px;
  display:flex; align-items:center; justify-content:center;
}
footer .brand .lg img{ width:100%; height:auto; }
footer .brand .nm{
  font-family: var(--ff-disp);
  font-size: 18px;
  letter-spacing: .14em;
  color: var(--y-900);
}
footer .brand .sb{
  display:block;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--y-500);
  margin-top: 4px;
}
footer p{ font-size: 13px; color: var(--y-800); margin: 4px 0;}
footer ul{ list-style:none; margin:0; padding:0; }
footer ul li{
  font-family: var(--ff-disp);
  font-size: 13px;
  padding: 6px 0;
  letter-spacing: .1em;
  color: var(--y-800);
}
footer ul li a{ transition: color 1s ease; }
footer ul li a:hover{ color: var(--y-500); }
footer .copyright{
  border-top: 1px solid var(--line);
  margin-top: 56px; padding-top: 28px;
  text-align:center;
  font-size: 11px;
  color: var(--y-500);
  letter-spacing: .14em;
}

/* footer socials */
.footer-social{
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--ff-disp);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--y-700);
}
.footer-social a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 1s ease;
}
.footer-social a:hover{ color: var(--y-500); }
.footer-social svg{ flex: 0 0 auto; }

/* ─────────────────────────────────────────────
   Pagination (prev/next) — shared by every下層ページ
   ───────────────────────────────────────────── */
.article-nav{
  max-width: 720px;
  margin: 80px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.article-nav a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--ff-disp);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--y-700);
  transition: background-color .6s ease, border-color .6s ease, color .6s ease;
}
.article-nav a:hover{
  background: var(--y-400);
  color: #fff;
  border-color: var(--y-400);
}
@media (max-width: 720px){
  .article-nav{ flex-direction: column-reverse; padding: 0 20px;}
  .article-nav a{ justify-content: center;}
}

/* ─────────────────────────────────────────────
   Reveal on scroll
   ───────────────────────────────────────────── */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease;}
.reveal.in{ opacity:1; transform: none; }

/* ─────────────────────────────────────────────
   Responsive — shared chrome only
   ───────────────────────────────────────────── */
@media (max-width: 1080px){
  .wrap{ padding: 0 28px; }
  section{ padding: 110px 0; }

  /* fixed header — hide nav + desktop CTA, show hamburger */
  .site-header{ padding: 0 16px; gap: 12px; height: 64px; }
  .site-header__nav{ display: none; }
  .site-header__brand span{ font-size: 14px; }
  .site-header__brand img{ width: 32px; }
  .cta-glass--header{ display: none; }
  .site-header__hamburger{ display: flex; }
  .floating-cta{ display: inline-flex; }

  /* footer 2-col */
  footer .wrap{ grid-template-columns: 1fr 1fr; gap: 32px;}
  footer .brand{ grid-column: 1 / -1; }
}

@media (max-width: 720px){
  .wrap{ padding: 0 20px; }
  section{ padding: 80px 0; }
  .section-head{ margin-bottom: 56px; }
  .section-head h2{ font-size: clamp(22px, 6vw, 30px); }

  /* header — keep brand wordmark visible */
  .site-header{ height: 60px; padding: 0 16px; }
  .site-header__brand img{ width: 28px; }
  .site-header__brand span{ font-size: 13px; letter-spacing: .1em; }
  .cta-glass--header{ padding: 9px 14px; font-size: 11px; letter-spacing: .08em; }
  .cta-glass--header .arr{ display: none; }
  html{ scroll-padding-top: 60px; }

  /* footer */
  footer{ padding: 60px 0 28px;}
  footer .wrap{ grid-template-columns: 1fr; gap: 28px; padding: 0 20px;}
  footer .brand{ grid-column: auto; }

  /* btn-pill */
  .btn-pill{ padding: 14px 24px; font-size: 12px; }
}

@media (max-width: 480px){
  .wrap{ padding: 0 16px; }
  section{ padding: 64px 0; }

  /* header — collapse brand text */
  .site-header{ padding: 0 12px; height: 56px; }
  .site-header__brand span{ display: none; }
  .cta-glass--header{ padding: 8px 12px; font-size: 10.5px; letter-spacing: .06em; }
  html{ scroll-padding-top: 56px; }
}
