/* =========================================================
   おうちで簡単ピラティス はまだ先生 — styles
   ========================================================= */

:root {
  /* palette — 青=信頼 / teal=単一アクセント / warm=バンドの抜き */
  --ink: #16304a;
  --ink-soft: #2b4a67;
  --muted: #55708a;
  --bg: #f7fbfd;
  --surface: #ffffff;
  --soft-blue: #e6f3fa;
  --blue: #2d8dcc;
  --deep-blue: #12588f;
  --deep-blue-dark: #0e4472;
  --teal: #23767f;
  --warm: #faf6f1;
  --warm-line: #e8ded2;
  --border: #d3e6f1;
  --border-strong: #b9d8e9;

  --shadow-sm: 0 2px 6px rgba(22, 48, 74, 0.05);
  --shadow-md: 0 10px 28px rgba(22, 48, 74, 0.09);
  --shadow-lg: 0 22px 54px rgba(22, 48, 74, 0.13);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;

  /* fluid type — 360px 〜 1440px で連続的に */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --fs-xl: clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.45rem, 1.15rem + 1.35vw, 2.25rem);
  --fs-hero: clamp(2rem, 1.2rem + 3.6vw, 3.3rem);

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 5rem;

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  /* sticky header 分だけアンカー位置をずらす */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--s3) var(--s5);
  color: var(--surface);
  background: var(--deep-blue);
}

.skip-link:focus {
  left: var(--s4);
  top: var(--s4);
}

/* ---------- 日本語の改行制御 ----------
   .nb = 文節スパン。折り返しはスパン境界でのみ起きる。
   overflow-wrap:anywhere は一文字改行の原因になるので使わない。 */
.nb {
  display: inline-block;
}

h1,
h2,
h3,
.eyebrow,
.hero-subline,
.button,
.header-cta,
.recommend-item,
.floating-note strong,
summary,
.number-label,
.selfcare-label {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

p,
dd,
.faq-answer p {
  line-break: strict;
  text-wrap: pretty;
}

h1 {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.35;
}

h3 {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.5;
}

.unit {
  margin-left: 0.1em;
  font-size: 0.62em;
  font-weight: 700;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--header-h);
  padding: var(--s3) var(--s6);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 700;
  line-height: 1.4;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
}

.brand-logo {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--deep-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
  content: "";
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- buttons ---------- */
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  min-height: 2.9rem;
  padding: var(--s3) var(--s5);
  border-radius: 999px;
  font-size: clamp(0.9rem, 0.82rem + 0.35vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease;
}

.header-cta,
.button-primary {
  color: var(--surface);
  background: var(--deep-blue);
  box-shadow: var(--shadow-sm);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--deep-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-primary:active,
.header-cta:active {
  transform: translateY(0);
}

.button-secondary {
  color: var(--deep-blue);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.button-secondary:hover {
  background: var(--soft-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button:focus-visible,
.header-cta:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.section {
  padding: var(--s9) var(--s6);
}

.section-inner,
.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  color: var(--deep-blue);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow .sep {
  margin: 0 0.5em;
  opacity: 0.5;
}

.eyebrow-hero {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  padding: var(--s2) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: grid;
  gap: var(--s2);
  max-width: 42rem;
  margin-bottom: var(--s7);
}

.section-heading::after,
.split-head h2::after,
.schedule-head h2::after,
.faq-head h2::after {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: var(--s4);
  background: var(--blue);
  border-radius: 2px;
  content: "";
}

/* ---------- hero ---------- */
.hero {
  padding: var(--s8) var(--s6) var(--s7);
  background:
    radial-gradient(
      120% 90% at 82% 18%,
      color-mix(in srgb, var(--blue) 26%, transparent) 0%,
      transparent 62%
    ),
    linear-gradient(180deg, var(--soft-blue), var(--bg) 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.92fr);
  gap: var(--s8);
  align-items: center;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: var(--s4);
}

/* grid にすると子が必ずブロック化され、desktop の1行組みができないので block */
.hero-title {
  display: block;
  margin: var(--s1) 0 var(--s2);
  color: var(--ink);
}

/* 行を構造的に固定 → 単語途中改行が起きえない */
.hero-title .line {
  display: block;
  white-space: nowrap;
}

.hero-title .line-small {
  color: var(--deep-blue);
  font-size: 0.56em;
  line-height: 1.3;
}

/* デスクトップは「無理なく体を整える」を1行に */
.hero-title .line-a,
.hero-title .line-b {
  display: inline-block;
}

.hero-title .line-accent {
  position: relative;
  width: fit-content;
  padding: 0 0.14em 0.04em;
  isolation: isolate;
}

.hero-title .line-accent::after {
  position: absolute;
  right: 0;
  bottom: 0.1em;
  left: 0;
  z-index: -1;
  height: 0.34em;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--teal) 26%, var(--soft-blue)),
    var(--soft-blue)
  );
  border-radius: 999px;
  content: "";
}

.hero-subline {
  color: var(--teal);
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.75;
}

.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 30rem;
  margin: var(--s4) 0 0;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-stats div {
  padding: var(--s3) var(--s2);
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.hero-stats dd {
  margin: var(--s1) 0 0;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.floating-note {
  position: absolute;
  right: calc(-1 * var(--s4));
  bottom: var(--s5);
  max-width: 17rem;
  padding: var(--s4);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.floating-note-label {
  display: block;
  color: var(--deep-blue);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.floating-note strong {
  display: block;
  margin-top: var(--s1);
  font-family: var(--serif);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---------- intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(19rem, 1.18fr);
  gap: var(--s7);
  align-items: start;
}

.text-stack {
  display: grid;
  gap: var(--s4);
  color: var(--ink-soft);
}

/* ---------- こんな方へ ---------- */
.warm-band {
  background: var(--warm);
  border-top: 1px solid var(--warm-line);
  border-bottom: 1px solid var(--warm-line);
}

.recommend-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(21rem, 1.15fr);
  gap: var(--s7);
  align-items: center;
}

.recommend-layout .section-heading {
  margin-bottom: var(--s5);
}

.recommend-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}

.recommend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--warm-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.ic {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.recommend-item .ic {
  margin-top: 0.28em;
  color: var(--teal);
}

/* ---------- features ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(19rem, 1fr);
  gap: var(--s8);
  align-items: center;
  margin-top: var(--s8);
}

.feature-row:first-of-type {
  margin-top: 0;
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.feature-copy {
  display: grid;
  justify-items: start;
  gap: var(--s3);
}

.feature-copy p,
.schedule-lead,
.faq-answer p,
.faq-note,
.final-cta-copy p,
.entry-box p {
  color: var(--ink-soft);
}

.number-label {
  padding: var(--s1) var(--s4);
  color: var(--deep-blue);
  background: var(--soft-blue);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.selfcare-panel {
  display: grid;
  gap: var(--s3);
  padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.selfcare-label {
  color: var(--teal);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.selfcare-panel h3 {
  font-size: var(--fs-lg);
}

.selfcare-panel p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* ---------- schedule ---------- */
.schedule-band {
  color: var(--surface);
  background: linear-gradient(135deg, var(--deep-blue-dark), var(--teal) 130%);
}

.schedule-band .eyebrow {
  color: var(--soft-blue);
}

.schedule-head h2::after {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(19rem, 1.1fr);
  gap: var(--s7);
  align-items: center;
}

.schedule-head h2 {
  margin-top: var(--s2);
}

.schedule-lead {
  margin-top: var(--s4);
  color: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: var(--fs-sm);
}

.schedule-card {
  padding: var(--s5) var(--s6);
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.schedule-card dl {
  margin: 0;
}

.schedule-card div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}

.schedule-card div:last-child {
  border-bottom: 0;
}

.schedule-card dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.schedule-card dd {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 800;
}

/* ---------- faq ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.62fr) minmax(19rem, 1.38fr);
  gap: var(--s7);
  align-items: start;
}

.faq-head h2 {
  margin-top: var(--s2);
}

.faq-note {
  margin-top: var(--s5);
  font-size: var(--fs-sm);
}

.faq-list {
  display: grid;
  gap: var(--s3);
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease;
}

details[open] {
  border-color: var(--border-strong);
}

summary {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.65;
  list-style: none;
}

/* デフォルトの三角マーカーを消す（2行になると行頭に落ちて崩れるため） */
summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: "";
}

.q-mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05em;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--deep-blue);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: var(--fs-xs);
  line-height: 1;
}

.q-text {
  flex: 1 1 auto;
}

summary .chev {
  flex: none;
  margin-top: 0.15em;
  color: var(--muted);
  transition: transform 240ms ease;
}

details[open] summary .chev {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--s5) var(--s5) calc(var(--s5) + 1.5rem + var(--s3));
  font-size: var(--fs-sm);
}

/* ---------- final cta ---------- */
.final-cta {
  color: var(--surface);
  background: linear-gradient(135deg, var(--ink), var(--deep-blue) 120%);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) minmax(18rem, 0.72fr);
  gap: var(--s7);
  align-items: center;
}

.final-cta .eyebrow {
  color: var(--soft-blue);
}

.final-cta h2 {
  margin-top: var(--s2);
}

.final-cta-copy p {
  margin-top: var(--s4);
  color: color-mix(in srgb, var(--surface) 86%, transparent);
  font-size: var(--fs-sm);
}

.entry-box {
  padding: var(--s6);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.entry-box .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em;
  color: var(--ink);
  font-family: var(--serif);
}

.price-label {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.entry-box .price strong {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.6rem);
  line-height: 1.1;
}

.price-sub {
  flex: 1 0 100%;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--fs-xs);
}

.entry-meta {
  display: grid;
  gap: var(--s2);
  margin: var(--s4) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.entry-meta li {
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.7;
}

.entry-meta li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.36rem;
  height: 0.36rem;
  background: var(--teal);
  border-radius: 999px;
  content: "";
}

.entry-box .button {
  width: 100%;
  margin-top: var(--s5);
}

.entry-box .note {
  margin-top: var(--s4);
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.75;
}

/* ---------- footer ---------- */
.footer {
  padding: var(--s6);
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(22, 48, 74, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  transition:
    transform 300ms ease,
    opacity 300ms ease;
}

.mobile-cta.is-hidden {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}

.mobile-cta-price {
  flex: none;
  line-height: 1.25;
}

.mobile-cta-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.mobile-cta-price strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  white-space: nowrap;
}

.mobile-cta .button {
  flex: 1 1 auto;
  min-height: 2.9rem;
  margin: 0;
}

/* =========================================================
   Animation — 1要素1レイヤーのみ。入れ子の二重フェード禁止。
   JSが動かない場合は .js-reveal が付かず、常時表示のまま。
   ========================================================= */
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* ヒーローはIOを待たず、読み込み直後に自走 */
.hero-copy > *,
.hero-visual {
  animation: fadeUp 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.hero-copy > *:nth-child(2) { animation-delay: 110ms; }
.hero-copy > *:nth-child(3) { animation-delay: 180ms; }
.hero-copy > *:nth-child(4) { animation-delay: 250ms; }
.hero-copy > *:nth-child(5) { animation-delay: 320ms; }
.hero-copy > *:nth-child(6) { animation-delay: 390ms; }
.hero-visual { animation-delay: 160ms; }
.floating-note { animation: fadeUp 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 520ms both; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .hero-inner {
    gap: var(--s6);
  }

  .floating-note {
    right: var(--s3);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4.25rem;
  }

  .site-header {
    padding: var(--s3) var(--s4);
  }

  .nav,
  .header-cta {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  /* 固定CTAバーの高さぶん、末尾に余白を確保 */
  body {
    padding-bottom: 5.25rem;
  }

  .section {
    padding: var(--s7) var(--s4);
  }

  .hero {
    padding: var(--s6) var(--s4) var(--s7);
  }

  .hero-inner,
  .split,
  .recommend-layout,
  .feature-row,
  .schedule-layout,
  .faq-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  /* スマホの並び: 見出し → 写真 → リード → CTA。
     hero-copy を display:contents にして hero-inner の flex 子として並べ替える。 */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
    text-align: center;
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow-hero { order: 1; }
  .hero-title { order: 2; margin: 0; }
  .hero-subline { order: 3; }
  .hero-visual { order: 4; width: 100%; margin-top: var(--s2); }
  .lead { order: 5; }
  .hero-actions { order: 6; }
  .hero-stats { order: 7; }

  .feature-row.reverse .feature-image {
    order: 0;
  }

  .feature-row {
    gap: var(--s5);
    margin-top: var(--s7);
  }

  /* スマホは「無理なく」「体を整える」を別行に */

  .hero-title .line-a,
  .hero-title .line-b {
    display: block;
  }

  .lead {
    max-width: 32rem;
    font-size: var(--fs-base);
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 5 / 4;
    object-position: center 22%;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: var(--s3);
    text-align: left;
  }

  .section-heading {
    margin-bottom: var(--s5);
  }

  .recommend-photo img,
  .feature-image img {
    aspect-ratio: 16 / 10;
  }

  .schedule-card {
    padding: var(--s4) var(--s5);
  }

  .faq-answer {
    padding-left: var(--s5);
  }

  .entry-box {
    padding: var(--s5);
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .brand-name {
    font-size: 0.8rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  /* 3カラムのまま維持（縦積みにすると間延びするため） */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats div {
    padding: var(--s3) var(--s1);
  }

  .hero-stats dt {
    font-size: 0.68rem;
  }

  .hero-stats dd {
    font-size: 0.98rem;
  }

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

  .schedule-card div {
    grid-template-columns: 5.5rem 1fr;
    gap: var(--s3);
  }

  .selfcare-panel {
    padding: var(--s5);
  }
}
