/* =========================================================
   Reset care conditioning gym — 共通スタイル
   ブレークポイント: 1024px（タブレット） / 768px（スマホ） / 480px（小型スマホ）
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f1f4f8;
  --text: #1a2430;
  --accent: #1256d3;
  --accent-100: #eef4ff;
  --accent-800: #0a2a66;
  --navy: #0a1526;
  --divider: rgba(26, 36, 48, .22);
  --line: #06c755;
  --insta: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);

  --pad-x: 40px;
  --pad-y: 56px;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-en: "Archivo", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

@media (max-width: 1024px) { :root { --pad-x: 32px; --pad-y: 48px; } }
@media (max-width: 768px)  { :root { --pad-x: 20px; --pad-y: 44px; --header-h: 60px; } }

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-en); margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-wrap {
  width: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}
.section { padding: var(--pad-y) var(--pad-x); border-bottom: 2px solid var(--divider); scroll-margin-top: var(--header-h); }
.section--tint { background: var(--accent-100); }
.en { font-family: var(--font-en); }
.muted { opacity: .7; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.sec-head .sub { font-size: 12px; font-weight: 700; letter-spacing: .16em; opacity: .55; }
.h2-sm { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 24px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 800; line-height: 1.2;
  padding: 14px 22px;
  border: 2px solid var(--text); color: var(--text); background: transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 rgba(26, 36, 48, .28); color: inherit; }
.btn:active { transform: none; box-shadow: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { color: #fff; }
.btn--ghost-w { border: 1px solid #fff; color: #fff; }
.btn--ghost-w:hover { background: #fff; color: var(--text); box-shadow: 4px 4px 0 rgba(255,255,255,.3); }
.btn--white { background: #fff; border-color: #fff; color: var(--accent-800); }
.btn--white:hover { color: var(--accent-800); }
.btn--line { background: var(--line); border-color: var(--line); color: #fff; }
.btn--insta { background: var(--insta); border: none; color: #fff; padding: 16px 24px; }
.btn--line:hover, .btn--insta:hover { color: #fff; }
.btn--lg { font-size: 16px; padding: 16px 26px; }
.btn svg { flex: none; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad-x);
  background: rgba(255,255,255,.96);
  border-bottom: 2px solid var(--divider);
  transition: height .3s var(--ease), box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 21, 38, .08); }
@supports (backdrop-filter: blur(8px)) {
  .header { background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.header__brand { display: flex; align-items: center; }
.header__brand img { height: 34px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .header__brand img { height: 28px; }

.gnav { margin-left: auto; display: flex; gap: 28px; }
.gnav a {
  position: relative; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 4px 0;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.gnav a[aria-current="page"] { color: var(--accent); }

.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text);
  transition: transform .35s var(--ease), opacity .2s ease, top .35s var(--ease);
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* スマホ用メニュー */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--navy); color: #fff;
  padding: 32px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease);
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer a.drawer__link {
  color: #fff; text-decoration: none; font-family: var(--font-en);
  font-size: 30px; font-weight: 800; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.drawer a.drawer__link small { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .55; }
.drawer.is-open a.drawer__link { opacity: 1; transform: none; }
.drawer.is-open a.drawer__link:nth-child(1) { transition-delay: .12s; }
.drawer.is-open a.drawer__link:nth-child(2) { transition-delay: .18s; }
.drawer.is-open a.drawer__link:nth-child(3) { transition-delay: .24s; }
.drawer__cta { margin-top: auto; display: grid; gap: 10px; opacity: 0; transition: opacity .4s ease .32s; }
.drawer.is-open .drawer__cta { opacity: 1; }
.drawer__cta .btn { width: 100%; }

@media (max-width: 768px) {
  .gnav { display: none; }
  .menu-btn { display: block; }
  .header__brand img { height: 28px; }
  .header.is-scrolled .header__brand img { height: 26px; }
}
@media (min-width: 769px) { .drawer { display: none; } }

/* ---------- 追従CTA ---------- */
.float-cta {
  position: fixed; right: 0; bottom: 24px; z-index: 40;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
  transform: translateX(110%);
  transition: transform .6s var(--ease);
}
.float-cta.is-visible { transform: none; }
.float-cta a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(10, 21, 38, .18);
  transition: padding .25s var(--ease);
}
.float-cta a:hover { padding-right: 32px; }
.float-cta .fc-insta { background: var(--insta); }
.float-cta .fc-line { background: var(--line); }

@media (max-width: 768px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .float-cta {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0;
    transform: translateY(110%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
  }
  .float-cta a { flex: 1; justify-content: center; padding: 16px 8px; font-size: 14px; gap: 8px; box-shadow: none; }
  .float-cta a:hover { padding-right: 8px; }
  .float-cta .fc-line { order: -1; }
  .float-cta .arrow { display: none; }
}

/* ---------- トップ：ヒーロー ---------- */
.hero {
  position: relative; min-height: max(600px, 74vh); max-height: 820px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 28px var(--pad-x) 52px;
  border-bottom: 2px solid var(--divider); overflow: hidden; background: #141211;
}
.hero__img { position: absolute; inset: -4% 0 -4% 0; will-change: transform; }
.hero__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  filter: grayscale(1);
  animation: heroZoom 2.8s var(--ease) both;
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,18,17,.84) 0%, rgba(20,18,17,.55) 46%, rgba(20,18,17,0) 76%);
  animation: fadeIn 1.4s ease both;
}
.hero__logo {
  position: relative; align-self: flex-start; height: clamp(110px, 17vh, 160px); width: auto;
  animation: fadeDown 1.2s var(--ease) .2s both;
}
.hero__body { position: relative; max-width: 760px; }
.hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #fff; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeUp .9s var(--ease) .45s both;
}
.hero__eyebrow::before {
  content: ""; width: 32px; height: 2px; background: #fff;
  transform-origin: left; animation: lineGrow .9s var(--ease) .45s both;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 88px); line-height: 1.06; color: #fff; margin-bottom: 22px; }
.hero__lead { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 28px; animation: fadeUp .9s var(--ease) 1.05s both; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .9s var(--ease) 1.2s both; }

/* 見出しを1行ずつマスクから出す */
.lines .line { display: block; overflow: hidden; padding-bottom: .06em; }
.lines .line > span { display: block; animation: lineUp 1.1s var(--ease) both; }
.lines .line:nth-child(1) > span { animation-delay: .55s; }
.lines .line:nth-child(2) > span { animation-delay: .7s; }

.scroll-cue {
  position: absolute; right: var(--pad-x); bottom: 0; width: 2px; height: 72px;
  background: rgba(255,255,255,.25); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff;
  animation: cue 2s ease-in-out 1.6s infinite;
}

@media (max-width: 768px) {
  .hero { min-height: 0; max-height: none; padding: 0; gap: 0; justify-content: flex-start; }
  .hero__img { position: relative; inset: auto; height: 64vw; min-height: 250px; max-height: 420px; }
  .hero__img img { object-position: 72% center; }
  .hero__shade { bottom: auto; height: 64vw; min-height: 250px; max-height: 420px; background: linear-gradient(180deg, rgba(20,18,17,.1) 0%, rgba(20,18,17,.25) 55%, #141211 100%); }
  .hero__logo { position: absolute; height: 88px; top: 18px; left: var(--pad-x); }
  .hero__body { padding: 0 var(--pad-x) 40px; margin-top: -28px; }
  .hero__eyebrow { font-size: 11px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); margin-bottom: 16px; }
  .hero__lead { font-size: 16px; margin-bottom: 24px; }
  .hero__actions .btn { flex: 1 1 140px; padding: 14px 10px; font-size: 14px; }
  .scroll-cue { display: none; }
}

/* ---------- 強み帯 ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--divider); border-bottom: 2px solid var(--divider);
}
.strip > div { background: var(--bg); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.strip .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; opacity: .6; }
.strip .v { font-size: 15px; font-weight: 800; }
@media (max-width: 768px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div { padding: 20px; }
}

/* 線で区切るグリッド（gap 1px + 背景色で罫線を表現。どの画面幅でも罫線が崩れない） */
.rule-grid { display: grid; gap: 1px; background: var(--divider); }
.rule-grid > * { background: var(--bg); }

/* ---------- 最大の強み ---------- */
.features { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; border-bottom: 2px solid var(--divider); scroll-margin-top: var(--header-h); }
.features__intro { padding: var(--pad-y) 32px var(--pad-y) var(--pad-x); border-right: 1px solid var(--divider); }
.features__intro h2 { font-size: clamp(28px, 3.2vw, 34px); line-height: 1.15; margin-bottom: 18px; }
.features__intro p { font-size: 14px; line-height: 1.95; }
.features__grid { grid-template-columns: 1fr 1fr; }
.feature { padding: 40px 32px; position: relative; transition: background-color .35s ease; }
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.feature:hover { background: var(--accent-100); }
.feature:hover::before { transform: scaleX(1); }
.num { font-family: var(--font-en); font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; font-family: var(--font-ja); }
.feature p { font-size: 13.5px; line-height: 1.85; }
@media (max-width: 1024px) {
  .features { grid-template-columns: 1fr; }
  .features__intro { border-right: 0; border-bottom: 1px solid var(--divider); padding: var(--pad-y) var(--pad-x) 36px; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature { padding: 28px var(--pad-x); }
}

/* ---------- カード列（姿勢の変化・分析ステップ・回数券） ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--divider); }
.cards.rule-grid { background: transparent; }
.card { box-shadow: 0 0 0 1px var(--divider); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--divider), 0 14px 30px rgba(18, 86, 211, .12); position: relative; z-index: 1; }
.card .num { margin: 0; font-size: 13px; }
.card .t { font-size: 17px; font-weight: 800; line-height: 1.6; }
.card .d { font-size: 13.5px; line-height: 1.85; }
@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card { padding: 22px 18px; gap: 10px; }
  .card .t { font-size: 15px; }
}
@media (max-width: 480px) {
  .cards--stack { grid-template-columns: 1fr; }
  .cards--stack .card { flex-direction: row; align-items: baseline; gap: 16px; }
}

/* ---------- 施設写真 ---------- */
.facility { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--bg); scroll-margin-top: var(--header-h); }
.facility figure { margin: 0; aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; position: relative; }
.facility img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); transform: scale(1);
  transition: filter .7s ease, transform 1.1s var(--ease);
}
.facility figure:hover img { filter: grayscale(0); transform: scale(1.05); }
@media (max-width: 768px) {
  .facility {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .facility::-webkit-scrollbar { display: none; }
  .facility figure { flex: 0 0 84%; scroll-snap-align: start; aspect-ratio: 1 / 1; }
  .facility img { filter: none; }
}
.swipe-hint { display: none; }
@media (max-width: 768px) {
  .swipe-hint { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
  .swipe-hint i { width: 14px; height: 3px; background: var(--divider); transition: background-color .3s ease, width .3s var(--ease); }
  .swipe-hint i.on { background: var(--accent); width: 30px; }
}

/* ---------- 2カラム（料金 + FAQ など） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--divider); }
.split > * { padding: var(--pad-y) var(--pad-x); scroll-margin-top: var(--header-h); }
.split > * + * { border-left: 1px solid var(--divider); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > * + * { border-left: 0; border-top: 1px solid var(--divider); }
}

.big-prices { display: flex; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.big-prices .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; opacity: .6; }
.big-prices .v { font-family: var(--font-en); font-size: 34px; font-weight: 800; line-height: 1.2; }

/* 料金表（ラベル・金額のペアを並べる。スマホでは1列） */
.price-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-flow: column; column-gap: 32px; margin: 0; border-top: 2px solid var(--text); }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--divider); }
.price-list dt { font-size: 14px; }
.price-list dd { margin: 0; font-family: var(--font-en); font-weight: 800; font-size: 15px; white-space: nowrap; }
.price-list--lg dt { font-size: 16px; }
.price-list--lg dd { font-size: 20px; }
.price-list--lg > div { padding: 18px 4px; }
.price-list--one { grid-template-columns: 1fr; grid-auto-flow: row; }
@media (max-width: 600px) { .price-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.note { font-size: 12px; opacity: .7; margin-top: 16px; line-height: 1.85; }

/* ---------- FAQ（アコーディオン） ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: 15px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent);
  transition: transform .35s var(--ease);
}
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .a { overflow: hidden; }
.faq .a p { font-size: 13.5px; line-height: 1.85; padding: 0 0 20px; }

/* ---------- 利用ステップ ---------- */
.steps { display: flex; flex-direction: column; }
.steps li { display: flex; gap: 16px; border-top: 1px solid var(--divider); padding: 16px 0; }
.steps li:last-child { border-bottom: 1px solid var(--divider); }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps .n { font-family: var(--font-en); font-size: 14px; font-weight: 800; color: var(--accent); min-width: 1em; }
.steps .t { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.steps .d { font-size: 13px; opacity: .75; }

/* ---------- お問合せ帯 ---------- */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; scroll-margin-top: var(--header-h); }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); }
.contact .btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .contact .btns { width: 100%; }
  .contact .btns .btn { flex: 1 1 100%; }
}

/* ---------- フッター ---------- */
.footer {
  padding: 32px var(--pad-x); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px 32px; font-size: 13px;
}
.footer img { height: 40px; width: auto; }
.footer .info { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer .info a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.footer .copy { width: 100%; font-size: 11px; opacity: .5; }
@media (max-width: 600px) {
  .footer { flex-direction: column; align-items: flex-start; }
  .footer .info { flex-direction: column; align-items: flex-start; }
}

/* ---------- 下層ページ：紺色ヒーロー ---------- */
.subhero {
  background: var(--navy); color: #fff; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center;
  min-height: 320px; border-bottom: 2px solid var(--divider);
}
.subhero__body { padding: var(--pad-y) var(--pad-x); max-width: 40em; position: relative; z-index: 1; }
.subhero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; opacity: .8; margin-bottom: 24px; animation: fadeUp .8s var(--ease) .1s both; }
.subhero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.1; margin-bottom: 22px; }
.subhero .lines .line:nth-child(1) > span { animation-delay: .2s; }
.subhero .lines .line:nth-child(2) > span { animation-delay: .32s; }
.subhero p { font-size: 15px; line-height: 1.95; margin-bottom: 30px; animation: fadeUp .9s var(--ease) .5s both; }
.subhero p:last-child { margin-bottom: 0; }
.subhero .actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .9s var(--ease) .62s both; }
/* 背景のグリッド線 */
.subhero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
  animation: fadeIn 1.6s ease both;
}
.subhero--compact { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .subhero { grid-template-columns: 1fr; min-height: 0; }
  .subhero__body { padding-bottom: 36px; }
  .subhero .actions .btn { flex: 1 1 150px; }
}

/* AI姿勢分析：スキャン演出 */
.scan { position: relative; padding: 32px var(--pad-x) 32px 0; }
.scan svg { width: 100%; height: auto; max-height: 360px; overflow: visible; }
.scan .bone { stroke: rgba(255,255,255,.75); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) .5s forwards; }
.scan .joint { fill: #fff; opacity: 0; animation: pop .5s var(--ease) forwards; }
.scan .plumb { stroke: #7ba4ef; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0; animation: fadeIn .6s ease 1.8s forwards; }
.scan .tilt { stroke: #ffb020; stroke-width: 1.5; opacity: 0; animation: fadeIn .6s ease 2.1s forwards; }
.scan .tag { font-family: var(--font-en); font-size: 11px; font-weight: 700; fill: #fff; opacity: 0; animation: fadeIn .6s ease 2.3s forwards; }
.scan .tag--warn { fill: #ffb020; }
.scan .beam { fill: url(#beamGrad); animation: beam 3.2s ease-in-out 1s infinite; }
.scan .frame { stroke: rgba(255,255,255,.4); stroke-width: 2; fill: none; }
@media (max-width: 900px) {
  .scan { padding: 0 var(--pad-x) 40px; }
  .scan svg { max-height: 260px; }
}

/* アイコン帯（AI姿勢分析） */
.iconband { grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.28); border-bottom: 2px solid var(--divider); }
.iconband > div { background: var(--accent); color: #fff; padding: 28px 24px; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 800; line-height: 1.5; }
.iconband small { font-size: 12px; font-weight: 700; opacity: .85; display: block; }
@media (max-width: 900px) { .iconband { grid-template-columns: 1fr 1fr; } .iconband > div { padding: 20px; font-size: 15px; } }

/* わかること 3ポイント */
.points { grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--divider); }
.points > div { padding: 32px 28px 16px; }
.points > div:first-child { padding-left: 0; }
.points h3 { font-size: 22px; margin-bottom: 12px; font-family: var(--font-ja); }
.points p { font-size: 14px; line-height: 1.9; }
@media (max-width: 900px) {
  .points { grid-template-columns: 1fr; }
  .points > div, .points > div:first-child { padding: 24px 0; }
}

/* 料金ページ：大きい金額 */
.fees { grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--divider); }
.fees > div { padding: 48px var(--pad-x); display: flex; flex-direction: column; gap: 10px; }
.fees .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .6; }
.fees .v { font-family: var(--font-en); font-size: clamp(44px, 6vw, 64px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fees .v--accent { color: var(--accent); }
.fees .d { font-size: 13px; opacity: .75; }
@media (max-width: 600px) {
  .fees { grid-template-columns: 1fr; }
  .fees > div { padding: 32px var(--pad-x); }
}
.ticket .v { font-family: var(--font-en); font-size: clamp(32px, 4vw, 40px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket .v--accent { color: var(--accent); }
.ticket .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .6; }
.ticket .d { font-size: 13px; opacity: .75; }
.badge { align-self: flex-start; font-size: 11px; font-weight: 800; background: var(--accent); color: #fff; padding: 3px 8px; }
@media (max-width: 768px) { .cards--tickets { grid-template-columns: 1fr; } .cards--tickets .card { padding: 24px 20px; } }

/* ---------- スクロールで現れる演出 ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { transform: none; opacity: 1; }
.js [data-reveal="clip"] > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) var(--d, 0s), filter .7s ease, transform 1.1s var(--ease); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 見出し下の線が伸びる */
.sec-head h2, .features__intro h2, .h2-sm { position: relative; }
.js .draw-line::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: 14px;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s;
}
.js .draw-line.is-in::after { transform: scaleX(1); }

/* ---------- マウス追従カーソル（PCのみ） ---------- */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 2px solid var(--accent); border-radius: 50%; opacity: 0;
  transition: width .2s ease, height .2s ease, margin .2s ease, background-color .2s ease, opacity .2s ease;
}
#cursor.on { opacity: 1; }
#cursor.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(18, 86, 211, .14); }

/* ---------- キーフレーム ---------- */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: .95; transform: none; } }
@keyframes lineUp   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes cue      { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }
@keyframes draw     { to { stroke-dashoffset: 0; } }
@keyframes pop      { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes beam     { 0% { transform: translateY(-10px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
.scan .joint { transform-box: fill-box; transform-origin: center; }

/* ---------- 動きを減らす設定の方へ ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .scan .beam { display: none; }
  #cursor { display: none; }
}

/* ---------- WordPress 管理バー（ログイン中のみ表示）との重なり対策 ---------- */
.admin-bar .header { top: 32px; }
.admin-bar .drawer { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
  .admin-bar .drawer { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .header { top: 0; }
}

/* ---------- 整骨院サイトへ戻るリンク ---------- */
.gnav .gnav__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); opacity: .7;
  padding-left: 22px; border-left: 1px solid var(--divider);
}
.gnav .gnav__back:hover { opacity: 1; }
.gnav .gnav__back::after { left: 22px; width: calc(100% - 22px); }
.drawer .drawer__back {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  color: #fff; opacity: .8; font-size: 14px; font-weight: 700; text-decoration: none;
  opacity: 0; transition: opacity .4s ease .3s;
}
.drawer.is-open .drawer__back { opacity: .8; }
@media (max-width: 1024px) and (min-width: 769px) {
  .gnav { gap: 20px; }
  .gnav .gnav__back { padding-left: 16px; font-size: 12px; }
  .gnav .gnav__back::after { left: 16px; width: calc(100% - 16px); }
}

/* ---------- トップ：マシン紹介への導線 ---------- */
.facility-more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; padding: 28px var(--pad-x) 32px; }
.facility-more span:last-child { font-size: 13px; opacity: .7; }
.facility-more .btn span { font-size: 11px; }

/* ---------- マシン紹介ページ ---------- */
.values { grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--divider); }
.values > div { padding: 28px var(--pad-x) 30px; display: flex; flex-direction: column; gap: 8px; }
.values b { font-size: 17px; line-height: 1.5; }
.values > div > span:last-child { font-size: 13.5px; line-height: 1.8; opacity: .8; }
.values .num { margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } .values > div { padding: 22px var(--pad-x); } }

.mfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mfilter button {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; background: #fff; color: var(--text); border: 2px solid var(--text);
  transition: background-color .2s ease, color .2s ease, transform .18s ease;
}
.mfilter button:hover { transform: translateY(-2px); }
.mfilter button[aria-pressed="true"] { background: var(--text); color: #fff; }
@media (max-width: 600px) {
  .mfilter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad-x) * -1) 24px; padding: 0 var(--pad-x) 4px; scrollbar-width: none; }
  .mfilter::-webkit-scrollbar { display: none; }
  .mfilter button { flex: none; font-size: 13px; padding: 8px 14px; }
}

.mlist { display: flex; flex-direction: column; border-top: 2px solid var(--text); }
.machine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 44px; padding: 36px 0; border-bottom: 1px solid var(--divider); align-items: center; }
.machine:nth-child(even of :not([hidden])) .machine__img { order: 2; }
.machine[hidden] { display: none; }
.machine.is-showing { animation: fadeUp .6s var(--ease) both; }
.machine__img { margin: 0; aspect-ratio: 1 / 1; background: #ececec; overflow: hidden; }
.machine__img img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); transition: filter .7s ease, transform 1.1s var(--ease); }
.machine:hover .machine__img img { filter: grayscale(0); transform: scale(1.04); }
.machine__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.machine__meta .num { margin: 0; font-size: 14px; }
.machine__cat { font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); padding: 3px 10px; }
.machine h3 { font-family: var(--font-ja); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.machine__en { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .5; margin: 6px 0 18px; }
.machine__parts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.machine__parts > span { font-size: 12px; font-weight: 700; opacity: .65; }
.machine__parts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.machine__parts li { font-size: 13px; font-weight: 700; border: 1.5px solid var(--text); padding: 2px 10px; }
.machine__desc { font-size: 14.5px; line-height: 1.95; margin-bottom: 16px; }
.machine__effects { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.machine__effects li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.75; font-weight: 500; }
.machine__effects li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; background: var(--accent); }
.machine__rec { background: var(--accent-100); padding: 14px 18px; font-size: 13.5px; line-height: 1.85; }
.machine__rec b { display: block; font-size: 12px; color: var(--accent); letter-spacing: .06em; margin-bottom: 2px; }
.mempty { padding: 40px 0; text-align: center; opacity: .6; }
@media (max-width: 768px) {
  .machine { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 32px; }
  .machine:nth-child(even of :not([hidden])) .machine__img { order: 0; }
  .machine__img { aspect-ratio: 4 / 3; }
  .machine__img img { filter: none; }
}

/* ---------- 公式LINEボタン（2行の文言） ---------- */
.line-cta { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.line-cta > span:first-child { font-size: .8em; font-weight: 700; opacity: .92; }
.float-cta .fc-line { padding-top: 12px; padding-bottom: 12px; }
.drawer__cta .btn--line .line-cta { text-align: center; }
@media (max-width: 768px) {
  .float-cta .fc-line { padding: 9px 6px; gap: 6px; }
  .float-cta .fc-line svg { width: 18px; height: 18px; flex: none; }
  .float-cta .fc-line .line-cta { font-size: 11.5px; letter-spacing: -.01em; }
  .float-cta .fc-line .line-cta > span:first-child { font-size: 1em; }
  .float-cta .fc-insta { font-size: 13px; }
}

@media (max-width: 768px) {
  .float-cta .fc-line { flex: 1.6 1 0; padding: 8px 6px; }
  .float-cta .fc-insta { flex: 1 1 0; padding: 8px 6px; font-size: 12px; gap: 5px; }
  .float-cta .fc-line svg { display: none; }
  .float-cta .fc-insta svg { width: 16px; height: 16px; flex: none; }
  .float-cta .fc-line .line-cta { font-size: 11px; text-align: center; white-space: nowrap; }
  .float-cta .fc-insta { white-space: nowrap; }
}
@media (max-width: 360px) {
  .float-cta .fc-line .line-cta { font-size: 10px; }
  .float-cta .fc-insta { font-size: 11px; }
}

@media (max-width: 768px) { .float-cta { align-items: stretch; } .float-cta a { justify-content: center; } }
