/* =========================================================
   Grit Support v1.4 — official logo on the v1.3 brand design
   Calm off-white / sand / charcoal base, one accent orange (#CD6715)
   used only for CTAs, key links and small marks.
   Generous whitespace, hairline rules, quiet motion.
   ========================================================= */

@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zkgn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zkgn-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zkgn-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* color — brand palette */
  --accent: #CD6715;       /* accent orange: CTAs, key links, small marks, large numbers */
  --accent-deep: #A9530F;  /* same hue, darker: hover, and small orange text (5.3:1 on white, 4.9:1 on --bg) */
  --ink: #2E2E2E;          /* main text / logo charcoal */
  --ink-2: #4A4643;        /* body text */
  --muted: #6B625A;        /* labels: 5.5:1 on --bg, 4.7:1 on --sand */
  --bg: #F7F5F2;           /* base background */
  --sand: #ECE6DE;         /* section background (lightened from #D9D1C6 for large areas) */
  --sand-deep: #D9D1C6;    /* sub color: rules on sand, image backdrops */
  --line: #E3DCD2;         /* hairlines */
  --white: #FFFFFF;
  --ghost: rgba(46, 46, 46, .045); /* giant background words, works on any light background */

  /* type */
  --f-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Cormorant Garamond", "Times New Roman", serif;

  --fs-h1: clamp(2rem, 3.9vw, 4.3rem);
  --fs-h2: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  --fs-h3: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  --fs-body: clamp(.94rem, .9rem + .15vw, 1rem);
  --fs-small: .8125rem;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 192px);
  --header-h: 84px;
  --radius: 4px;

  /* motion: quiet, slightly slower than v1.2 */
  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-mask: cubic-bezier(.77, 0, .18, 1);
  --dur: 1s;
  --stagger: .12s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-jp);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Japanese line breaks at phrase boundaries where supported;
   a phrase longer than the line (e.g. at 320px) may still break instead of running past the edge */
h1, h2, h3, .problem__item p, .problem__close, .stat__label, .quotes li, .idea__key { word-break: auto-phrase; overflow-wrap: break-word; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 8px 14px; font-size: var(--fs-small); }
.skip-link:focus { top: 12px; }
.sp-only { display: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- shared type ---------- */
/* small English label: muted, letter-spaced, led by a short accent rule */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-en);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- buttons: pill, accent for the primary action, hairline for the rest ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 56px; padding: 0 30px;
  font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-decoration: none;
  border: 1px solid var(--accent); border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--solid { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(205, 103, 21, .18); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 6px 18px rgba(169, 83, 15, .22); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(46, 46, 46, .55); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--large { min-height: 64px; padding: 0 36px; font-size: 1rem; min-width: min(100%, 320px); }
.btn__arrow { position: relative; width: 20px; height: 1px; background: currentColor; flex: none; transition: transform .3s var(--ease); }
.btn__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn__arrow, .text-link:hover .btn__arrow { transform: translateX(4px); }
/* key text link: charcoal text, accent underline + arrow */
.text-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 6px; }
.text-link .btn__arrow { background: var(--accent); }
.text-link .btn__arrow::after { border-color: var(--accent); }
.text-link:hover { color: var(--accent-deep); }

/* ---------- photo tag (small English caption on photos) ---------- */
.photo-tag {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px);
  font-family: var(--f-en); font-weight: 500; font-size: .64rem; letter-spacing: .3em; line-height: 2;
  text-transform: uppercase; color: var(--white); text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
.photo-tag--left { right: auto; left: clamp(16px, 3vw, 40px); }

/* photos: one shared grade so the current set reads as one series (brightness / warmth) */
.idea__photo img, .about__photo img {
  filter: saturate(.86) sepia(.08) brightness(1.03) contrast(.97);
}

/* ---------- giant background words ---------- */
.ghost-word {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--f-serif); font-weight: 500; line-height: .8;
  font-size: clamp(6rem, 19vw, 19rem); letter-spacing: .01em;
  color: var(--ghost); white-space: nowrap;
  will-change: transform;
}
.js .ghost-word { opacity: 0; transition: opacity 1.6s var(--ease); }
.js .scene-in .ghost-word { opacity: 1; }

/* chapter rule: a hairline drawn across the top of each scene as it is entered */
.scene { position: relative; }
.scene::before {
  content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 1px;
  background: var(--ink); opacity: .14; transform: scaleX(0); transform-origin: left;
}
.js .scene::before { transition: transform 1.4s var(--ease-mask); }
.scene-in::before, html:not(.js) .scene::before { transform: scaleX(1); }
.hero.scene::before, .contact.scene::before { display: none; }


/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 245, 242, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  transition: height .35s var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--line); }
/* PC only: backdrop-filter makes the header the containing block of fixed children, which would trap the SP menu inside it */
@media (min-width: 861px) {
  .site-header { background: rgba(247, 245, 242, .9); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
}
.site-header.is-compact .site-header__inner { height: 66px; }

/* official logo (v1.4, "simple one-point" G): symbol + wordmark, one file for the header, the SP menu (the header stays on top of the menu) and the footer */
.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; flex: none; }
.logo__img { display: block; width: auto; height: 46px; transition: height .35s var(--ease); }
.site-header.is-compact .logo__img { height: 38px; }

.gnav__list { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 44px); }
.gnav a { font-family: var(--f-en); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.gnav a:not(.gnav__cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.gnav a:not(.gnav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.gnav .gnav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 600; transition: background-color .3s; }
.gnav .gnav__cta:hover { background: var(--accent-deep); }

.menu-btn { display: none; }

/* =========================================================
   01 HERO
   ========================================================= */
.hero { position: relative; padding-top: var(--header-h); background: var(--bg); overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: clamp(640px, calc(100svh - var(--header-h)), 880px); }
.hero__text {
  position: relative; z-index: 2; align-self: center;
  padding: clamp(56px, 6vw, 112px) 0 clamp(64px, 6vw, 112px) max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: clamp(16px, 2vw, 32px);
  min-width: 0;
}
.hero__title {
  font-size: var(--fs-h1); font-weight: 500; line-height: 1.5; letter-spacing: .08em; color: var(--ink);
  margin-bottom: clamp(28px, 2.8vw, 44px);
  width: max-content; max-width: 100%;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title em { color: var(--accent); }
.hero__lead { display: grid; gap: 10px; max-width: 31em; font-size: 1rem; margin-bottom: clamp(32px, 3.2vw, 48px); color: var(--ink-2); }

.hero__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; min-width: 0; z-index: 1; }
.hero__photo { position: absolute; inset: 0 0 0 0; overflow: hidden; }
/* off-white wash on the left so the copy sits on the photo; many stops so no edge is visible */
.hero__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,245,242,.97) 0%, rgba(247,245,242,.95) 22%, rgba(247,245,242,.89) 31%, rgba(247,245,242,.76) 39%, rgba(247,245,242,.56) 46%, rgba(247,245,242,.34) 53%, rgba(247,245,242,.16) 60%, rgba(247,245,242,.05) 66%, rgba(247,245,242,0) 72%); }
@media (max-width: 1180px) and (min-width: 861px) {
  .hero__photo::before { background: linear-gradient(90deg, rgba(247,245,242,.97) 0%, rgba(247,245,242,.95) 34%, rgba(247,245,242,.88) 46%, rgba(247,245,242,.7) 55%, rgba(247,245,242,.44) 63%, rgba(247,245,242,.2) 71%, rgba(247,245,242,.06) 78%, rgba(247,245,242,0) 84%); }
  .hero__photo img { object-position: 72% 50%; }
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__shape { position: absolute; pointer-events: none; }
.hero__tag { z-index: 3; right: clamp(24px, 3.2vw, 56px); bottom: clamp(40px, 5vw, 80px); text-align: right; }
/* the solid orange triangle of v1.2 is retired; one hairline diagonal remains as the accent */
.hero__shape--a { display: none; }
.hero__shape--b { right: 0; bottom: 0; width: 34%; height: 46%; z-index: 2; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(to top left, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) 50%, transparent 50%); opacity: .9; }
.scroll-cue { position: absolute; left: calc(var(--gutter) / 2 - 6px); bottom: 32px; writing-mode: vertical-rl; font-family: var(--f-en); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding-bottom: 56px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px; background: var(--muted); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   02 PROBLEM
   ========================================================= */
.problem { background: var(--white); }
.section-head { margin-bottom: clamp(44px, 5vw, 72px); }
.problem .section-head { text-align: center; }
.problem .section-head .eyebrow { justify-content: center; }
.problem__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.problem__item { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.problem__img { aspect-ratio: 696 / 360; overflow: hidden; background: #F7F4EF; }
.problem__item p { padding: 24px 26px 30px; font-weight: 500; font-size: 1rem; color: var(--ink); line-height: 1.8; letter-spacing: .06em; position: relative; }
.problem__item p::before { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); margin-bottom: 14px; }
.problem__close {
  margin-top: clamp(64px, 7vw, 112px); text-align: center;
  font-size: clamp(1.2rem, .9rem + 1.1vw, 1.9rem); font-weight: 500; color: var(--ink); letter-spacing: .1em; line-height: 1.8;
}

/* =========================================================
   03 SERVICE
   ========================================================= */
.service { background: var(--sand); overflow: hidden; }
.ghost-word--service { top: -.06em; right: -1.5vw; }
.service__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
.service__head .section-title { font-size: var(--fs-h2); }
.service__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 0 rgba(46,46,46,.04); }
.service-card__img { aspect-ratio: 688 / 392; overflow: hidden; background: #FAF8F5; }
.service-card__body { padding: 26px 28px 32px; display: grid; align-content: start; gap: 12px; font-size: .9rem; line-height: 1.9; }
.service-card__num { font-family: var(--f-en); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + .6vw, 1.9rem); color: var(--accent); line-height: 1; letter-spacing: .04em; }
.service-card__title { font-size: var(--fs-h3); font-weight: 500; color: var(--ink); line-height: 1.6; letter-spacing: .06em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tick-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.tick-list li { font-size: .76rem; font-weight: 500; line-height: 1.4; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg); }


/* =========================================================
   ILLUSTRATIONS (PROBLEM / SERVICE) — approved design artwork, part-animated
   Each illustration = the artwork with the moving parts removed (plate) + those parts as
   separate transparent images placed exactly where they were. At rest (no JS, before / after
   playing, reduced motion) the layers recombine into the approved artwork.
   Motion: only the named part moves, 3 times, then rests in the approved pose. Played once per
   page view (main.js adds .is-play the first time the illustration is in view).
   ========================================================= */
.illu { position: relative; overflow: hidden; container-type: size; }
/* the stage keeps the artwork's own ratio and covers the frame (like object-fit: cover, centered) */
.illu__stage { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 696 / 360; translate: -50% -50%; }
.service-card__img .illu__stage { aspect-ratio: 688 / 392; }
@supports (width: 1cqh) {
  .problem__img .illu__stage { width: max(100cqw, 100cqh * 696 / 360); }
  .service-card__img .illu__stage { width: max(100cqw, 100cqh * 688 / 392); }
}
.illu__plate { display: block; width: 100%; height: 100%; }
.illu__part { position: absolute; height: auto; max-width: none; pointer-events: none; }
/* the photo zoom of [data-reveal="mask"] would scale each layer separately: zoom the stage instead */
.js [data-reveal="mask"] .illu img { transform: none; transition: none; }
.js [data-reveal="mask"] .illu__stage { scale: 1.04; transition: scale 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-in .illu__stage { scale: 1; }

/* generated from the final illustration files (v1.6): part positions (% of the illustration) and pivots (% of the part) */
.illu--p1 .illu__part--worry { left: 12.141%; top: 4.583%; width: 12.356%; transform-origin: 50.0% 80.0%; }
.illu--p2 .illu__part--pin { left: 37.931%; top: 29.583%; width: 6.178%; transform-origin: 50.0% 100.0%; }
.illu--p3 .illu__part--q { left: 59.195%; top: 2.500%; width: 14.871%; transform-origin: 25.0% 90.0%; }
.illu--p4 .illu__part--lens { left: 23.420%; top: 48.333%; width: 16.451%; transform-origin: 50.0% 50.0%; }
.illu--p5 .illu__part--pen { left: 43.606%; top: 38.333%; width: 49.497%; transform-origin: 100.6% 102.5%; }
.illu--p6 .illu__part--hand { left: 75.072%; top: 24.583%; width: 5.747%; transform-origin: -8.8% 105.2%; }
.illu--s1 .illu__part--pin { left: 28.561%; top: 34.311%; width: 11.483%; transform-origin: 50.0% 100.0%; }
.illu--s1 .illu__part--walker { left: 74.346%; top: 44.898%; width: 17.369%; transform-origin: 50.0% 100.0%; }
.illu--s2 .illu__part--panel { left: 30.669%; top: 31.888%; width: 11.628%; transform-origin: 50.0% 50.0%; }
.illu--s2 .illu__part--arm { left: 59.811%; top: 50.255%; width: 17.369%; transform-origin: 92.9% 79.7%; }
.illu--s3 .illu__part--bars { left: 43.023%; top: 38.903%; width: 18.023%; transform-origin: 50.0% 100.0%; }
.illu--s3 .illu__part--bulb { left: 24.273%; top: 11.097%; width: 6.904%; transform-origin: 50.0% 50.0%; }

@media (prefers-reduced-motion: no-preference) {
  /* parts that travel into their approved pose start one step away while JS waits to play them */
  .js .illu--p6:not(.is-play) .illu__part--hand { transform: rotate(-18deg); }
  .js .illu--s1:not(.is-play) .illu__part--walker { transform: translateX(10%); }

  .illu.is-play .illu__part { animation-duration: 2.4s; animation-iteration-count: 3; animation-timing-function: var(--ease); animation-fill-mode: backwards; animation-delay: var(--illu-d, 0s); }
  /* PROBLEM */
  .illu--p1.is-play .illu__part--worry { animation-name: illu-worry; animation-duration: 2.8s; }
  .illu--p2.is-play .illu__part--pin { animation-name: illu-pin; animation-duration: 1.8s; }
  .illu--p3.is-play .illu__part--q { animation-name: illu-pop; animation-duration: 2.6s; }
  .illu--p4.is-play .illu__part--lens { animation-name: illu-glint; animation-duration: 2.6s; animation-timing-function: ease-in-out; }
  .illu--p5.is-play .illu__part--pen { animation-name: illu-write; animation-duration: 2s; animation-timing-function: ease-in-out; }
  .illu--p6.is-play .illu__part--hand { animation-name: illu-tick; animation-duration: 4.2s; animation-iteration-count: 1; }
  /* SERVICE */
  .illu--s1.is-play .illu__part--pin { animation-name: illu-pin; animation-duration: 1.8s; }
  .illu--s1.is-play .illu__part--walker { animation-name: illu-walk; animation-duration: 4.2s; animation-iteration-count: 1; animation-timing-function: linear; }
  .illu--s2.is-play .illu__part--panel { animation-name: illu-refresh; animation-duration: 2.6s; }
  .illu--s2.is-play .illu__part--arm { animation-name: illu-point; animation-duration: 2.6s; animation-timing-function: ease-in-out; }
  .illu--s3.is-play .illu__part--bars { animation-name: illu-grow; animation-duration: 2.6s; }
  .illu--s3.is-play .illu__part--bulb { animation-name: illu-glow; animation-duration: 2.6s; animation-timing-function: ease-in-out; }
}
/* every keyframe set starts and ends in the approved pose */
@keyframes illu-worry { 0%, 100% { opacity: 1; transform: none; } 30% { opacity: 0; transform: translateY(6%) scale(.9); } 65% { opacity: 1; transform: none; } }
@keyframes illu-pin { 0%, 70%, 100% { transform: none; } 28% { transform: translateY(-16%); } 48% { transform: translateY(0) scaleY(.94); } 58% { transform: translateY(-4%); } }
@keyframes illu-pop { 0%, 100% { opacity: 1; transform: none; } 22% { opacity: 0; transform: scale(.7); } 55% { opacity: 1; transform: scale(1.06); } 70% { transform: none; } }
@keyframes illu-glint { 0%, 100% { filter: none; } 45% { filter: brightness(1.4) contrast(1.06); } }
@keyframes illu-write { 0%, 100% { transform: none; } 25% { transform: translate(-1.4%, -1.2%) rotate(-1.2deg); } 50% { transform: translate(.4%, .3%) rotate(.4deg); } 75% { transform: translate(-.8%, -.6%) rotate(-.6deg); } }
/* three ticks of the minute hand, ending on the approved time */
@keyframes illu-tick { 0%, 24% { transform: rotate(-18deg); } 31%, 56% { transform: rotate(-12deg); } 63%, 88% { transform: rotate(-6deg); } 95%, 100% { transform: none; } }
/* a few steps toward the shop: three small strides, ending in the approved spot */
@keyframes illu-walk {
  0% { transform: translateX(10%); } 12% { transform: translate(8.3%, -1.2%); } 24% { transform: translateX(6.7%); }
  37% { transform: translate(5%, -1.2%); } 50% { transform: translateX(3.3%); } 63% { transform: translate(1.7%, -1.2%); }
  76%, 100% { transform: none; } }
@keyframes illu-refresh { 0%, 100% { opacity: 1; transform: none; } 30% { opacity: .12; transform: translateY(5%); } 60% { opacity: 1; transform: none; } }
@keyframes illu-point { 0%, 100% { transform: none; } 35% { transform: rotate(-4deg); } 65% { transform: rotate(1deg); } }
@keyframes illu-grow { 0%, 100% { clip-path: inset(0); } 12% { clip-path: inset(48% 0 0 0); } 75% { clip-path: inset(0); } }
@keyframes illu-glow { 0%, 100% { filter: none; } 45% { filter: brightness(1.12) drop-shadow(0 0 6px rgba(232, 150, 70, .55)); } }

/* =========================================================
   04 OUR IDEA
   ========================================================= */
.idea { position: relative; background: var(--bg); overflow: hidden; }
.ghost-word--idea { right: -2vw; bottom: -.12em; }
.idea__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: stretch; }
.idea__photo { position: relative; min-height: 720px; overflow: hidden; }
.idea__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idea__text { padding: var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--section-y) clamp(32px, 5vw, 88px); min-width: 0; }
.idea__text .section-title { margin-bottom: clamp(28px, 3vw, 44px); }
.idea__body { display: grid; gap: 14px; max-width: 36em; }
.idea__key { font-size: clamp(1.25rem, .9rem + 1.1vw, 1.9rem); font-weight: 500; color: var(--ink); letter-spacing: .12em; padding-block: 12px; }
.idea__key strong { font-weight: 500; background: linear-gradient(transparent 72%, rgba(205,103,21,.2) 72%); }

/* =========================================================
   05 EXPERIENCE
   ========================================================= */
.experience { background: var(--white); }
.experience__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.experience__head .section-title { margin-bottom: 28px; }
.experience__note { max-width: 32em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
/* (v1.4) text-only cards: label on top, the number leads */
.stat { border-radius: var(--radius); padding: clamp(30px, 3vw, 44px) clamp(26px, 2.8vw, 40px) clamp(26px, 2.6vw, 38px); display: flex; min-height: clamp(200px, 17vw, 248px); background: var(--bg); position: relative; }
.stat__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 2.4vw, 32px); min-width: 0; }
.stat::before { content: ""; position: absolute; left: clamp(26px, 2.8vw, 40px); top: 0; width: 28px; height: 2px; background: var(--accent); }
.stat__label { font-weight: 500; color: var(--ink); font-size: .9rem; line-height: 1.7; letter-spacing: .06em; }
.stat__value { display: flex; align-items: baseline; gap: 6px; color: var(--accent); line-height: 1; }
.stat__pre, .stat__unit { font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.stat__num { font-family: var(--f-en); font-weight: 500; font-size: clamp(4rem, 2.4rem + 4.4vw, 7.2rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: .62em; text-align: center; }

/* =========================================================
   06 WORKS
   ========================================================= */
.works { background: var(--sand); overflow: hidden; }
.ghost-word--works { left: -2vw; top: -.08em; }
.works__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3.4fr); padding-top: clamp(40px, 7vw, 120px); gap: clamp(28px, 4vw, 64px); align-items: center; }
.works__devices { position: relative; aspect-ratio: 16 / 11; }
.works__head .section-title { white-space: nowrap; }
.works__name { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 500; color: var(--ink); margin-bottom: 18px; letter-spacing: .1em; }
.works__text { display: grid; gap: 12px; min-width: 0; }
.works__text p:last-child { margin-top: 16px; }

/* device mockups. PC: the real えらぶピラティス top page (fv-1920, 3:2) shown whole — the screen is 3:2 so nothing is cropped.
   SP: the real えらぶピラティス phone screenshot, top-aligned (only the bottom ~2% falls outside the screen) */
.device-pc { position: absolute; left: 0; top: 4%; width: 86%; filter: drop-shadow(0 22px 30px rgba(46,46,46,.16)); }
.device-pc__screen {
  position: relative; aspect-ratio: 16 / 11.04; padding: 2.6% 2.6% 3.2%; /* inner screen = 3:2 */
  background: linear-gradient(180deg, #3A3836, #2E2E2E 60%);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.device-pc__cam { position: absolute; top: 1.1%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #474443; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.device-pc__screen img, .device-sp__screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.device-pc__screen img { background: #FAF7F1; border-radius: 2px; }
.device-pc__base {
  position: relative; height: 14px; margin-inline: -6%;
  background: linear-gradient(180deg, #ECEAE6 0%, #D3CEC8 55%, #B9B3AC 100%);
  border-radius: 0 0 12px 12px / 0 0 10px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.device-pc__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 5px; transform: translateX(-50%); background: linear-gradient(180deg, #C1BBB4, #D7D2CC); border-radius: 0 0 6px 6px; }
.device-sp {
  position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 18; padding: 1.5% 1.2%; /* % of the device area: thin bezel */
  background: linear-gradient(160deg, #474443, #2E2E2E 45%);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), -14px 20px 36px rgba(46,46,46,.22);
}
.device-sp::before { content: ""; position: absolute; z-index: 1; top: 5.2%; left: 50%; width: 30%; height: 2.4%; transform: translateX(-50%); border-radius: 99px; background: #2E2E2E; }
.device-sp__screen { position: relative; height: 100%; padding-top: 16%; border-radius: 15px; overflow: hidden; background: #FAF7F1; } /* top band = status bar under the notch */

/* =========================================================
   07 ABOUT
   ========================================================= */
.about { position: relative; background: var(--white); overflow: hidden; }
.ghost-word--about { left: -1vw; top: -.06em; font-size: clamp(6rem, 12vw, 12.5rem); }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); align-items: stretch; }
.about__text { padding: var(--section-y) clamp(32px, 5vw, 88px) var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2)); display: grid; gap: 22px; align-content: center; min-width: 0; }
.about__text .section-title { margin-bottom: 6px; }
.profile { border-top: 1px solid var(--ink); margin-top: 12px; max-width: 30em; }
.profile__row { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 500; color: var(--ink); font-size: .88rem; }
.profile dd { margin: 0; color: var(--ink-2); }
.about__photo { position: relative; min-height: 680px; overflow: hidden; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   08 CONTACT — dark charcoal band, one accent button
   ========================================================= */
.contact { position: relative; overflow: hidden; background: var(--ink); color: #E6E0D8; padding-block: clamp(110px, 12vw, 180px); }
.contact__plane { position: absolute; pointer-events: none; background: var(--accent); }
.contact__plane--left, .contact__plane--right { display: none; }
.contact__plane--bottom { left: 0; right: 0; bottom: 0; height: 3px; }
.contact__inner { position: relative; z-index: 1; max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: clamp(22px, 2.4vw, 32px); }
.contact .eyebrow { color: #BDB4AA; }
.contact__title { font-size: clamp(1.7rem, 1rem + 2.2vw, 3.1rem); font-weight: 500; color: var(--white); line-height: 1.55; letter-spacing: .08em; text-wrap: balance; }
.contact__title .line { display: block; }
.contact__title em { color: var(--accent); } /* large text: 3.6:1 on charcoal (AA large) */
.contact__body { display: grid; gap: 18px; }
.quotes { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--white); font-weight: 500; }
.quotes li { white-space: nowrap; }
.contact .btn--solid { box-shadow: none; }

/* photo framing for the current photo set (frames stay fixed; only the crop point moves) */
.hero__photo img { object-position: 62% 50%; }
.idea__photo img { object-position: 58% center; }
.about__photo img { object-position: 62% center; }

/* CONTACT: photo as a quiet layer on the right of the dark band */
.contact__photo { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 52%; pointer-events: none; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .3; filter: grayscale(.3); }
.contact__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(46,46,46,.85) 30%, rgba(46,46,46,.45) 70%, rgba(46,46,46,.3) 100%); }
.contact__plane { z-index: 1; }

/* =========================================================
   FOOTER — light, quiet
   ========================================================= */
.site-footer { background: var(--bg); color: var(--ink-2); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding: 56px var(--gutter) 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.logo--footer .logo__img { height: 60px; }
.fnav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-left: auto; }
.fnav a { font-family: var(--f-en); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-decoration: none; display: inline-block; padding: 8px 0; color: var(--ink); }
.fnav a:hover { color: var(--accent-deep); }
.copyright { width: 100%; font-family: var(--f-en); font-size: .7rem; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }

/* =========================================================
   SUB PAGES (contact / privacy) — same tokens and type as the top page
   ========================================================= */
.page-main { padding-top: var(--header-h); background: var(--bg); }
.page-head { position: relative; overflow: hidden; background: var(--sand); padding-block: clamp(64px, 8vw, 120px) clamp(52px, 6vw, 92px); }
.page-head__plane { position: absolute; right: 0; bottom: 0; width: clamp(80px, 14vw, 240px); height: 100%; pointer-events: none;
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) 50%, transparent 50%); opacity: .9; }
.page-head__inner { position: relative; max-width: calc(880px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.page-head__lead { margin-top: 24px; max-width: 36em; padding-right: clamp(64px, 12vw, 200px); }
.page-body { max-width: calc(880px + var(--gutter) * 2); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(88px, 10vw, 140px); }
.copyright { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.copyright__link { font-family: var(--f-jp); letter-spacing: .06em; text-decoration: none; color: var(--ink-2); }
.copyright__link:hover { color: var(--accent-deep); text-decoration: underline; }

/* form (appearance only — markup, names and the submit script are unchanged) */
.cform { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cform__note { font-size: .875rem; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cform__row { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 12px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.cform__label { font-weight: 500; color: var(--ink); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.5; }
.cform__field { min-width: 0; display: grid; gap: 6px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1; padding: 5px 8px; border: 1px solid var(--muted); border-radius: 999px; color: var(--ink-2); vertical-align: middle; }
.badge--req { border-color: var(--accent-deep); color: var(--accent-deep); }
.cform__note .badge, .cform__check .badge { margin-inline: 4px; }
.cform__input {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink);
  background: var(--white); border: 1px solid #8E857C; border-radius: var(--radius);
  padding: 13px 16px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
.cform__input--short { max-width: 20em; }
.cform__textarea { min-height: 200px; resize: vertical; }
.cform__input::placeholder { color: #736A62; }
.cform__input:hover { border-color: var(--ink-2); }
.cform__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205, 103, 21, .2); }
.has-error .cform__input { border-color: #B3261E; background: #FFF8F7; }
.cform__help { font-size: .82rem; color: var(--ink-2); }
.cform__error { font-size: .85rem; font-weight: 700; color: #B3261E; min-height: 0; }
.cform__error:empty { display: none; }
.cform__row--consent { grid-template-columns: 1fr; }
.cform__check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; color: var(--ink); min-height: 44px; }
.cform__check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.cform__check a, .doc__link { color: var(--accent-deep); font-weight: 700; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__submit { padding-top: 36px; display: flex; justify-content: center; }
.cform__btn { min-width: min(100%, 320px); cursor: pointer; font-family: inherit; }
.cform__btn:disabled { cursor: not-allowed; background: #8A8178; border-color: #8A8178; box-shadow: none; }
.cform__btn.is-sending { cursor: progress; background: var(--accent-deep); border-color: var(--accent-deep); }
.form-alert { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sand); color: var(--ink); font-weight: 500; }
.form-alert--error { border-left-color: #B3261E; background: #FFF4F2; color: #8C1D18; }
.form-done { border-top: 1px solid var(--ink); padding-top: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.form-done:focus { outline: none; }
.form-done__title { font-size: var(--fs-h2); font-weight: 500; color: var(--ink); line-height: 1.6; letter-spacing: .08em; }

/* privacy document */
.doc { display: grid; gap: clamp(36px, 4vw, 52px); }
.doc__sec { display: grid; gap: 14px; }
.doc__sec h2 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 500; color: var(--ink); letter-spacing: .06em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc__list { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.doc .profile { margin-top: 0; max-width: none; }

@media (max-width: 860px) {
  .cform__row { grid-template-columns: 1fr; gap: 10px; padding-block: 20px; }
  .cform__label { padding-top: 0; }
  .cform__input--short { max-width: none; }
  .cform__btn { width: 100%; }
  .page-head__plane { width: 64px; height: 96px; top: auto; }
  .page-head__lead { padding-right: 0; }
}

/* =========================================================
   MOTION (only when JS is running: html.js)
   Resting state of every element is fully visible.
   Quiet: short rise + fade for text and cards, a slow settle (fade + slight zoom-out) for photos.
   The replay logic lives in main.js (unchanged since v1.2).
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* photos (data-reveal="mask"): fade in while the image settles from 104% to 100% */
.js [data-reveal="mask"] { opacity: 0; transform: none; transition: opacity 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"] img { transform: scale(1.04); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-in { opacity: 1; }
.js [data-reveal="mask"].is-in img { transform: none; }
.curtain { position: relative; }

.js [data-reveal="shape"] { transform: translate3d(12%, 0, 0); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="shape"].is-in { transform: none; opacity: 1; }
.js .hero__shape--b[data-reveal="shape"].is-in { opacity: .9; }

.js [data-reveal="rise"] { transform: translate3d(0, 36px, 0); transition-duration: 1.1s; }
.js [data-reveal="rise-late"] { transform: translate3d(8%, 44px, 0); transition-duration: 1.1s; }

.js [data-reveal^="plane"] { opacity: 1; transition: transform 1.2s var(--ease-mask); transition-delay: var(--d, 0s); }
.js [data-reveal="plane-bottom"] { transform: scaleX(0); transform-origin: left; }
.js [data-reveal^="plane"].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal] img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero__shape--b[data-reveal] { opacity: .9 !important; }
  .scroll-cue::after { animation: none; }
  .ghost-word { transform: none !important; opacity: 1 !important; }
  .scene::before { transform: scaleX(1) !important; transition: none !important; }
  .illu__part { animation: none !important; }
  .js [data-reveal="mask"] .illu__stage { scale: 1 !important; transition: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .works__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .works__head { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .service__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header.is-compact .site-header__inner { height: 60px; }
  .logo__img, .site-header.is-compact .logo__img { height: 38px; }
  .logo--footer .logo__img { height: 52px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: var(--ink); cursor: pointer; position: relative; z-index: 2; }
  .menu-btn__bars { position: relative; width: 24px; height: 10px; }
  .menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu-btn__bars span:first-child { top: 0; }
  .menu-btn__bars span:last-child { top: 8px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:first-child { top: 4px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:last-child { top: 4px; transform: rotate(-45deg); }

  .gnav { position: fixed; inset: 0; z-index: 1; background: var(--bg); padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .gnav.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav__list li { border-bottom: 1px solid var(--line); }
  .gnav a { display: flex; align-items: center; min-height: 64px; font-size: .95rem; }
  .gnav a:not(.gnav__cta)::after { display: none; }
  .gnav__list li:last-child { border-bottom: 0; padding-top: 28px; }
  .gnav .gnav__cta { display: flex; justify-content: center; min-height: 58px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--bg); }

  /* hero (SP): heading → lead → photo → CTA.
     .hero__text dissolves into .hero__inner so the photo can sit between the lead and the buttons; PC is unchanged. */
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 48px 0 48px; }
  .hero__text { display: contents; }
  .hero__text > * { padding-inline: var(--gutter); }
  .hero__text > .hero__title { padding-inline: 0; margin-left: var(--gutter); max-width: calc(100% - var(--gutter) * 2); }
  .hero__text > .btn-row { order: 2; }
  .hero__lead { margin-bottom: 28px; }
  .hero__visual { position: relative; width: auto; order: 1; margin: 0 var(--gutter) 24px; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; }
  .hero__photo::before { display: none; }
  .hero__photo img { object-position: 100% 55%; }
  .hero__shape--b { width: 40%; height: 56%; }
  .hero__tag { right: 14px; bottom: 14px; font-size: .56rem; letter-spacing: .22em; }
  .scroll-cue { display: none; }

  .ghost-word { font-size: clamp(5rem, 22vw, 8rem); }
  .ghost-word--service { top: 24px; }
  .ghost-word--idea { bottom: auto; top: 16px; }
  .ghost-word--about { top: 16px; }
  .ghost-word--works { top: auto; bottom: 16px; }
  .works__grid { padding-top: 0; }
  .idea__photo, .about__photo { min-height: 0; }

  /* (v1.4.1) illustration whole on top of the card, as in the approved design (a side thumbnail would crop it) */
  .problem__list { grid-template-columns: 1fr; gap: 14px; }
  .problem__item { flex-direction: column; }
  .problem__img { width: auto; aspect-ratio: 696 / 360; }
  .problem__item p { padding: 16px 20px 20px; font-size: .92rem; min-width: 0; }
  .problem__item p::before { margin-bottom: 8px; }
  .sp-only { display: inline; }

  /* SERVICE (SP): illustration whole on top, then a compact text block */
  .service__list { grid-template-columns: 1fr; gap: 14px; }
  .service-card__img { aspect-ratio: 688 / 392; }
  .service-card__body { padding: 18px 18px 20px; gap: 6px; font-size: .86rem; line-height: 1.8; }
  .service-card__num { font-size: 1.35rem; }
  .service-card__title { font-size: 1rem; padding-bottom: 8px; }
  .tick-list { gap: 0; padding-top: 2px; }
  .tick-list li { border: 0; padding: 0; border-radius: 0; background: none; font-size: .8rem; color: var(--ink-2); }
  .tick-list li:not(:last-child)::after { content: "／"; margin: 0 .35em; color: var(--muted); }

  .idea__grid, .about__grid { grid-template-columns: 1fr; }
  .idea__photo { min-height: 0; aspect-ratio: 4 / 3; margin-right: var(--gutter); }
  .idea__text, .about__text { padding: clamp(56px, 12vw, 88px) var(--gutter); }
  .about__photo { min-height: 0; aspect-ratio: 4 / 3; margin-left: var(--gutter); order: 2; }

  .works__grid { grid-template-columns: 1fr; }
  .works__devices { max-width: 520px; width: 100%; }

  .contact { padding-block: 112px 120px; }
  .contact__photo { width: 100%; }
  .contact__photo::after { background: rgba(46,46,46,.82); }
  .contact__inner .btn--large { width: 100%; }

  .site-footer__inner { padding-top: 44px; }
  .fnav { margin-left: 0; width: 100%; }
}

/* tablet: PROBLEM as a 2-column card grid instead of the phone rows */
@media (min-width: 561px) and (max-width: 860px) {
  .problem__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .problem__item p { padding: 18px 20px 22px; }
}

@media (max-width: 560px) {
  /* (v1.5) phone spacing: a little more air between cards and around the text, same illustration size */
  .problem__list, .service__list { gap: 22px; }
  .problem__item p { padding: 18px 20px 22px; }
  .problem__item p::before { margin-bottom: 10px; }
  .service-card__body { padding: 20px 18px 24px; gap: 8px; }
  .problem__close { margin-top: 56px; }
  .stats { grid-template-columns: 1fr; }
  /* SP: label left, number right — one compact row per card */
  .stat { min-height: 0; padding: 30px 24px 24px; }
  .stat__body { flex-direction: row; align-items: flex-end; gap: 16px; }
  .stat::before { left: 24px; }
  .stat__num { font-size: clamp(3.6rem, 17vw, 4.6rem); }
  .hero__title { font-size: clamp(1.6rem, 7.2vw, 2rem); letter-spacing: .06em; }
  .hero__title em { display: block; }
  .btn-row .btn { flex: 1 1 100%; }
  .quotes { flex-direction: column; }
  .quotes li { white-space: normal; }
  .ghost-word { font-size: 5rem; }
}

/* very small phones: the label and the number stack, so the label keeps two clean lines */
@media (max-width: 374px) {
  .stat__body { flex-direction: column; align-items: flex-start; gap: 14px; }
}
