/* ==========================================================================
   デジタルよろず屋 トップページ v2
   DESIGN.md のトークン・レイヤー構造・モーション仕様に準拠して実装。
   ========================================================================== */

/* ---- 1. トークン ---- */
:root {
  --bg: #F4F4F1;
  --surface: #FFFFFF;
  --ink: #1A1A1D;
  --ink-muted: #5C5C60;
  --line: #DEDED8;
  --ghost: #E6E6E1;

  --teal: #12B0AB;
  --teal-deep: #0A7A76;
  --orange: #F2662C;
  --orange-deep: #B8421A;
  --yellow: #F7D64A;
  --purple: #6B4FA0;

  --teal-tint: #D6F0EF;
  --orange-tint: #FDE3D6;
  --yellow-tint: #FCF3D2;
  --purple-tint: #E4DEF0;

  --illust-bg: #EFEFEC;

  --font-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-kaku: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 32px;
  --sp-4: 64px;
  --sp-5: clamp(96px, 18vw, 180px);

  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---- 2. リセット / ベース ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-kaku);
  font-size: 16px;
  color: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- 3. キーフレーム ---- */
@keyframes omPulse { from { transform: scale(.86) rotate(-6deg); } to { transform: scale(1.06) rotate(6deg); } }
@keyframes omCue {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes omMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes omIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;
  }
}

/* ---- 4. 共通デコレーション ---- */
.dotted {
  height: 2px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 6px 2px;
}
.dotted-dots {
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.blob { position: absolute; z-index: 0; }
.ghost {
  position: absolute;
  font: 800 clamp(3rem, 15vw, 9rem)/0.86 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ghost);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}
.marker {
  background-image: linear-gradient(transparent 62%, var(--yellow) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 2px 2px;
}
.marker.js-mark { background-size: 0% 100%; transition: background-size .6s var(--ease-out); }
.marker.js-mark.is-visible { background-size: 100% 100%; }

.tag--outline {
  display: inline-block;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font: 700 .75rem/1.4 var(--font-maru);
  letter-spacing: .12em;
}
.tag--marker {
  display: inline-block;
  background: var(--yellow);
  border-radius: 50%;
  padding: 8px 20px;
  font: 700 .75rem/1.4 var(--font-maru);
  letter-spacing: .12em;
  color: var(--ink);
  transform: rotate(-3deg);
}

/* ---- 5. 進捗バー / 追従CTA ---- */
.progress-bar {
  position: fixed; left: 0; top: 0; height: 3px; width: 0;
  background: var(--teal); z-index: 90; transition: width .1s linear;
}
.sticky-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: #FFFFFF;
  font: 700 13px/1 var(--font-maru); letter-spacing: .08em;
  box-shadow: 0 6px 0 rgba(26,26,29,.12);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { color: #FFFFFF; }

/* ---- 6. オープニングカーテン ---- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-out);
}
.curtain.is-hidden { transform: translateY(-101%); }
.curtain__inner { display: grid; place-items: center; gap: 22px; }
.curtain__blob {
  width: 92px; height: 92px;
  border-radius: 58% 42% 39% 61% / 47% 55% 45% 53%;
  background: var(--teal);
  animation: omPulse 1.1s ease-in-out infinite alternate;
}
.curtain__label {
  font: 700 12px/1 var(--font-maru); letter-spacing: .34em; color: var(--ink);
}
.curtain[hidden] { display: none; }

/* ---- 7. ヘッダー ---- */
.site-header {
  position: fixed; left: 0; right: 0; top: 0; height: 88px; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 5vw, 40px);
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-140%); }
.logo { display: flex; align-items: center; gap: 9px; flex: none; color: var(--ink); }
.logo__text { font: 700 15px/1 var(--font-maru); letter-spacing: .04em; }
.header__rule { flex: 1; }
.menu-btn {
  flex: none; position: relative; height: 48px; padding: 0 20px 0 24px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 700 13px/1 var(--font-maru); letter-spacing: .14em;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 6px 0 rgba(26,26,29,.12); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.menu-btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(26,26,29,.12); }
.menu-btn__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; transform: translateX(30%);
  filter: drop-shadow(0 10px 14px rgba(26,26,29,.22));
}
.menu-btn__icon span {
  display: block; width: 16px; height: 2px; background: var(--bg);
  box-shadow: 0 -5px 0 var(--bg), 0 5px 0 var(--bg);
}

/* ---- 8. ヒーロー ---- */
.hero { position: relative; min-height: 100dvh; overflow: hidden; padding-bottom: 0; }
.hero__head { position: relative; z-index: 3; padding: clamp(132px,26vw,190px) 24px 0; text-align: center; }
.hero__title {
  margin: 0 auto; max-width: 640px;
  font: 500 clamp(1.75rem,7.5vw,3rem)/1.6 var(--font-maru);
  letter-spacing: .06em;
}
.hero__title span { display: inline-block; opacity: 0; animation: omIn 1.1s var(--ease-out) both; }
.hero__title span:nth-child(1) { animation-delay: .15s; }
.hero__title span:nth-child(3) { animation-delay: .45s; }
.hero__rule {
  width: 120px; height: 2px; margin: clamp(22px,5vw,30px) auto 0;
  opacity: 0; animation: omIn .9s var(--ease-out) .75s both;
}
.hero__sub {
  margin: 22px auto 0; max-width: 560px;
  font: 400 clamp(.8125rem,3.4vw,1rem)/1.9 var(--font-kaku);
  letter-spacing: .06em; color: var(--teal-deep);
  word-break: auto-phrase;
  opacity: 0; animation: omIn 1.1s var(--ease-out) .95s both;
}

.scroll-cue {
  position: relative; z-index: 4; display: flex; justify-content: flex-end;
  padding: clamp(28px,7vw,44px) clamp(20px,6vw,48px) 0;
}
.scroll-cue__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue__label { font: 400 .75rem/1 var(--font-kaku); letter-spacing: .12em; color: var(--ink-muted); }
.scroll-cue__track { position: relative; display: block; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue__dot {
  position: absolute; left: -1.5px; top: 0; width: 4px; height: 22px; border-radius: 2px;
  background: var(--ink); animation: omCue 1.9s ease-in-out infinite;
}

.hero__display { position: relative; z-index: 3; margin-top: clamp(20px,5vw,40px); }
.hero__display-blob {
  position: absolute; right: -12vw; top: -34%;
  width: min(78vw,540px); height: min(72vw,500px);
  background: var(--teal); border-radius: 68% 32% 55% 45% / 38% 62% 38% 62%; z-index: -1;
}
.hero__marquee-wrap { overflow: hidden; font: 800 clamp(3rem,15vw,9rem)/.86 var(--font-display); letter-spacing: -.02em; }
.hero__marquee-track { display: flex; width: max-content; }
.hero__marquee-track--a { animation: omMarquee 28s linear infinite; }
.hero__marquee-track--b { animation: omMarquee 34s linear infinite reverse; }
.hero__marquee-track span.word {
  display: flex; align-items: center; gap: .28em; padding-right: .28em; white-space: nowrap;
}
.hero__marquee-track .dot { width: .16em; height: .16em; border-radius: 50%; flex: none; }
.hero__script {
  position: absolute; left: 12%; top: 44%;
  font: 400 clamp(2.6rem,11.5vw,6.5rem)/1 var(--font-script);
  color: var(--orange); transform: rotate(-9deg);
  filter: drop-shadow(0 12px 16px rgba(26,26,29,.18));
  z-index: 2;
}
.hero__photo-wrap { position: relative; z-index: 3; margin-top: clamp(24px,6vw,48px); height: clamp(180px,44vw,340px); }
.hero__photo {
  position: absolute; left: -5vw; width: 110vw; height: clamp(230px,52vw,420px);
  object-fit: cover; border-radius: 20px; transform: rotate(-3deg) scale(1.07);
  filter: brightness(.96); box-shadow: 0 -16px 40px -20px rgba(26,26,29,.32);
}
.hero__photo.is-visible { transform: rotate(-3deg) scale(1); }

/* ---- 9. セクション見出しブロック ---- */
.section { position: relative; overflow: hidden; padding: var(--sp-5) 0; }
.section-head { position: relative; z-index: 2; padding: 0 24px; text-align: center; }
.section-head__eyebrow {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 700 .9375rem/1 var(--font-maru); color: var(--orange-deep); letter-spacing: .04em;
}
.section-head__eyebrow .sep { color: var(--line); }
.section-head__eyebrow .label { font-weight: 400; color: var(--ink-muted); letter-spacing: .08em; }
.section-head__title {
  margin: 16px auto 0; max-width: 640px;
  font: 700 clamp(1.75rem,7vw,2.75rem)/1.35 var(--font-maru); letter-spacing: .04em;
}
.js-wipe {
  -webkit-mask-image: linear-gradient(90deg,#000 0 30%, rgba(0,0,0,0) 64%);
  mask-image: linear-gradient(90deg,#000 0 30%, rgba(0,0,0,0) 64%);
  -webkit-mask-size: 330% 100%; mask-size: 330% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.2s var(--ease-out), mask-position 1.2s var(--ease-out);
}
.js-wipe.is-visible { -webkit-mask-position: 0 0; mask-position: 0 0; }

/* ---- 10. 登場アニメ共通 ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1.is-visible { transition-delay: .08s; }
.reveal--d2.is-visible { transition-delay: .16s; }

.js-fade-img { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); }
.js-fade-img.is-visible { opacity: 1; }

/* ---- 11. ABOUT ---- */
.about { padding-top: var(--sp-5); padding-bottom: 0; }
.about__blob { left: -24vw; top: 14vh; width: min(80vw,520px); height: min(76vw,480px); background: var(--purple); border-radius: 58% 42% 39% 61% / 47% 55% 45% 53%; opacity: .12; }
.about__ghost { right: -6vw; top: clamp(40px,10vw,90px); }
.about__body { position: relative; z-index: 2; margin: clamp(64px,12vw,96px) auto 0; max-width: 640px; padding: 0 24px; }
.about__body p { margin: 32px 0 0; font: 400 1rem/1.9 var(--font-kaku); letter-spacing: .04em; word-break: auto-phrase; }
.about__body p:first-child { margin-top: 0; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.about__photo-wrap { position: relative; z-index: 2; margin-top: clamp(64px,12vw,96px); display: flex; justify-content: flex-start; }
.about__photo {
  width: min(86vw,520px); aspect-ratio: 5/6; object-fit: cover; margin-left: -8vw;
  border-radius: 50% 50% 16px 16px / 32% 32% 4% 4%; transform: rotate(-2deg) scale(1.07);
  box-shadow: 0 24px 48px -26px rgba(26,26,29,.4);
}
.about__photo.is-visible { transform: rotate(-2deg) scale(1); }

/* ---- 12. STATEMENT ---- */
.statement { padding: var(--sp-5) 24px; }
.statement__dots { position: absolute; right: 6vw; top: clamp(40px,10vw,80px); width: 126px; height: 126px; }
.statement__text {
  position: relative; margin: 0 auto; max-width: 720px; text-align: center;
  font: 500 clamp(1.0625rem,4.4vw,1.375rem)/2.2 var(--font-maru); letter-spacing: .06em;
}
.statement__line {
  display: block; opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.statement__line.is-visible { opacity: 1; transform: none; }
.statement__line:nth-child(2).is-visible { transition-delay: .12s; }
.statement__line:nth-child(3).is-visible { transition-delay: .24s; }
.statement__line:nth-child(4).is-visible { transition-delay: .36s; }

/* ---- 13. マーキー帯 ---- */
.marquee-band { overflow: hidden; padding: clamp(20px,5vw,32px) 0; }
.marquee-band__track {
  display: flex; width: max-content; align-items: center;
  padding-top: clamp(14px,3vw,22px);
  animation: omMarquee 34s linear infinite;
}
.marquee-band__group { display: flex; align-items: center; gap: clamp(16px,4vw,34px); padding-right: clamp(16px,4vw,34px); }
.marquee-band__word--gothic { font: 800 clamp(2.4rem,9vw,4.5rem)/1 var(--font-display); letter-spacing: -.02em; }
.marquee-band__word--maru { font: 700 clamp(2rem,7.5vw,3.6rem)/1 var(--font-maru); letter-spacing: .04em; }
.marquee-band__word--script { font: 400 clamp(2.4rem,9vw,4.5rem)/1 var(--font-script); }
.marquee-band__dot { width: clamp(20px,4vw,34px); height: clamp(20px,4vw,34px); border-radius: 50%; flex: none; }

/* ---- 14. ティッカー ---- */
.ticker {
  overflow: hidden; height: 48px; display: flex; align-items: center; background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line);
}
.ticker__track { display: flex; width: max-content; animation: omMarquee 54s linear infinite; }
.ticker__group {
  display: flex; gap: 34px; padding-right: 34px;
  font: 400 .8125rem/1 var(--font-kaku); letter-spacing: .06em; color: var(--ink-muted); white-space: nowrap;
}

/* ---- 15. SERVICES ---- */
.services__blob { right: -26vw; top: 8vh; width: min(84vw,600px); height: min(80vw,560px); background: var(--teal); border-radius: 41% 59% 67% 33% / 62% 41% 59% 38%; }
.services__ghost { left: -4vw; top: clamp(30px,8vw,70px); }
.services__vertical {
  position: absolute; right: clamp(10px,4vw,28px); top: clamp(300px,54vw,420px); z-index: 3;
  writing-mode: vertical-rl; font: 500 clamp(.875rem,3.6vw,1rem)/1.7 var(--font-maru); letter-spacing: .1em;
}
.card-grid {
  position: relative; z-index: 2; margin: clamp(64px,12vw,96px) auto 0; max-width: 1120px;
  padding: 0 clamp(24px,7vw,56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(32px,6vw,56px);
}
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px,5vw,34px); box-shadow: 0 12px 28px -12px rgba(26,26,29,.16);
}
.service-card--01 { transform: rotate(.8deg); }
.service-card--02 { transform: rotate(-1.2deg); }
.service-card--03 { transform: rotate(-.9deg); }
.service-card--04 { transform: rotate(1.1deg); }
.service-card__num { margin: 24px 0 0; font: 700 .75rem/1.4 var(--font-maru); letter-spacing: .12em; color: var(--orange-deep); }
.service-card__title { margin: 10px 0 0; font: 700 clamp(1.125rem,4.5vw,1.5rem)/1.5 var(--font-maru); letter-spacing: .03em; }
.service-card__text { margin: 14px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; word-break: auto-phrase; }
.service-card__photo {
  width: clamp(120px,32vw,168px); aspect-ratio: 1; object-fit: cover; background: var(--illust-bg);
  transform: scale(1.07);
}
.service-card__photo.is-visible { transform: scale(1); }
.service-card__photo--02 { border-radius: 68% 32% 55% 45% / 38% 62% 38% 62%; }
.service-card__photo--03 { border-radius: 41% 59% 67% 33% / 62% 41% 59% 38%; }
.service-card__triangle {
  position: absolute; right: clamp(18px,5vw,32px); top: -46px; width: 100px; height: 92px;
  background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* イラスト（正円マスク） */
.illust-circle {
  position: relative; width: clamp(120px,32vw,168px); aspect-ratio: 1; border-radius: 50%;
  background: var(--illust-bg); overflow: hidden; display: grid; place-items: center;
}
.illust-circle > * { position: absolute; }
/* 01: ブラウザ画面イラスト */
.illust--site .bg1 { left: -14%; bottom: -18%; width: 62%; height: 62%; border-radius: 50%; background: var(--teal-tint); }
.illust--site .bg2 { right: 8%; top: 10%; width: 16%; height: 16%; border-radius: 50%; background: var(--yellow); }
.illust--site .screen {
  position: relative; width: 70%; background: var(--surface); border-radius: 10px;
  box-shadow: 0 10px 18px -8px rgba(26,26,29,.28); overflow: hidden; transform: rotate(-2deg);
}
.illust--site .screen__bar { display: flex; align-items: center; gap: 4px; padding: 7px 8px; background: var(--ink); }
.illust--site .screen__bar span { width: 5px; height: 5px; border-radius: 50%; }
.illust--site .screen__body { display: block; padding: 10px 10px 14px; }
.illust--site .screen__hero { display: block; height: 22px; border-radius: 5px; background: var(--teal); }
.illust--site .screen__row { display: flex; gap: 5px; margin-top: 7px; }
.illust--site .screen__row .bar-a { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.illust--site .screen__row .bar-b { width: 22%; height: 8px; border-radius: 4px; background: var(--orange); }
.illust--site .screen__line { display: block; width: 72%; height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; }
/* 04: AIフェイス・イラスト */
.illust--ai .ring-a { width: 84%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); }
.illust--ai .ring-b { width: 58%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--teal); }
.illust--ai .dot-y { top: 8%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.illust--ai .dot-t { right: 20%; bottom: 20%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--teal); }
.illust--ai .core {
  position: relative; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); box-shadow: 0 10px 18px -8px rgba(26,26,29,.45);
}
.illust--ai .core span { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--teal); }
.illust--ai .lines { left: 10%; bottom: 14%; display: flex; flex-direction: column; gap: 5px; }
.illust--ai .lines span { display: block; border-radius: 3px; }
.illust--ai .lines .l1 { width: 30px; height: 5px; background: var(--ink); }
.illust--ai .lines .l2 { width: 18px; height: 5px; background: var(--line); }

/* ---- 16. FOR YOU ---- */
.foryou__blob { left: -22vw; top: 20vh; width: min(76vw,480px); height: min(72vw,440px); background: var(--purple); border-radius: 58% 42% 39% 61% / 47% 55% 45% 53%; }
.foryou-grid {
  position: relative; z-index: 2; margin: clamp(64px,12vw,96px) auto 0; max-width: 1120px;
  padding: 0 clamp(24px,7vw,56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(24px,5vw,40px);
}
.foryou-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px,5vw,32px); box-shadow: 0 12px 28px -12px rgba(26,26,29,.16);
}
.foryou-card:nth-child(1) { transform: rotate(-1deg); }
.foryou-card:nth-child(2) { transform: rotate(.7deg); }
.foryou-card:nth-child(3) { transform: rotate(-.6deg); }
.foryou-card__num { margin: 0; font: 800 1.75rem/1 var(--font-display); color: var(--orange-deep); }
.foryou-card__title { margin: 14px 0 0; font: 700 clamp(1.0625rem,4.2vw,1.25rem)/1.5 var(--font-maru); letter-spacing: .03em; word-break: auto-phrase; }
.foryou-card__text { margin: 12px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; color: var(--ink-muted); word-break: auto-phrase; }

/* ---- 17. PRICE & FLOW ---- */
.price__blob { right: -24vw; top: 6vh; width: min(80vw,520px); height: min(76vw,480px); background: var(--teal); border-radius: 68% 32% 55% 45% / 38% 62% 38% 62%; }
.price-grid {
  position: relative; z-index: 2; margin: clamp(64px,12vw,96px) auto 0; max-width: 1120px;
  padding: 0 clamp(24px,7vw,56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(24px,5vw,40px);
}
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px,6vw,38px); box-shadow: 0 12px 28px -12px rgba(26,26,29,.16); }
.price-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-card__head h3 { margin: 0; font: 700 clamp(1.125rem,4.5vw,1.5rem)/1.5 var(--font-maru); letter-spacing: .03em; }
.price-card__desc { margin: 18px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; word-break: auto-phrase; }
.price-card__rows { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.price-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.price-card__row .label { font: 400 .9375rem/1.7 var(--font-kaku); letter-spacing: .06em; color: var(--ink-muted); }
.price-card__row .value { font: 700 clamp(1.375rem,5.5vw,1.75rem)/1.2 var(--font-maru); letter-spacing: .02em; }
.price-card__note { margin: 22px 0 0; font: 400 .8125rem/1.7 var(--font-kaku); letter-spacing: .06em; color: var(--ink-muted); word-break: auto-phrase; }

.value-block { position: relative; z-index: 2; margin: clamp(72px,13vw,110px) auto 0; max-width: 1120px; padding: 0 clamp(24px,7vw,56px); }
.value-block__title, .flow-block__title {
  margin: 0; text-align: center; font: 700 clamp(1.125rem,4.5vw,1.5rem)/1.5 var(--font-maru); letter-spacing: .03em;
}
.value-grid { margin-top: clamp(32px,6vw,48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(20px,4vw,32px); }
.value-item__num { margin: 0; font: 700 .75rem/1.4 var(--font-maru); letter-spacing: .12em; color: var(--orange-deep); }
.value-item__title { margin: 10px 0 0; font: 700 1.125rem/1.5 var(--font-maru); letter-spacing: .03em; }
.value-item__text { margin: 10px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; color: var(--ink-muted); word-break: auto-phrase; }

.flow-block { position: relative; z-index: 2; margin: clamp(72px,13vw,110px) auto 0; max-width: 720px; padding: 0 clamp(24px,7vw,56px); }
.flow-list { margin-top: clamp(32px,6vw,48px); display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: clamp(16px,4vw,26px); padding: clamp(20px,4vw,26px) 0; }
.flow-step__num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font: 800 1.125rem/1 var(--font-display); display: grid; place-items: center;
}
.flow-step__title { margin: 10px 0 0; font: 700 1.0625rem/1.5 var(--font-maru); letter-spacing: .03em; }
.flow-step__text { margin: 10px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; color: var(--ink-muted); word-break: auto-phrase; }

/* ---- 18. CONTACT ---- */
.contact { padding-bottom: clamp(80px,14vw,140px); }
.contact__blob { left: -42vw; top: 44vh; width: min(84vw,560px); height: min(80vw,520px); background: var(--teal); border-radius: 41% 59% 67% 33% / 62% 41% 59% 38%; }
.contact__ghost { right: 2vw; top: clamp(30px,8vw,64px); }
.contact__lead { margin: 28px auto 0; max-width: 560px; font: 400 1rem/1.9 var(--font-kaku); letter-spacing: .04em; color: var(--ink-muted); word-break: auto-phrase; }
.contact-form-wrap { position: relative; z-index: 2; margin: clamp(48px,9vw,72px) auto 0; max-width: 560px; padding: 0 24px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font: 700 .75rem/1.4 var(--font-maru); letter-spacing: .12em; }
.field__req { color: var(--orange-deep); }
.field__opt { color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 16px; font: 400 16px/1.6 var(--font-kaku); color: var(--ink);
}
.field textarea { line-height: 1.8; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint);
}
.field__error { display: none; font: 400 .8125rem/1.7 var(--font-kaku); color: var(--orange-deep); }
.field.has-error input, .field.has-error textarea { border-color: var(--orange-deep); }
.field.has-error .field__error { display: block; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.btn {
  border: none; border-radius: 999px; font: 700 1rem/1 var(--font-maru); letter-spacing: .08em;
  box-shadow: 0 6px 0 rgba(26,26,29,.12); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(26,26,29,.12); }
.btn--primary { background: var(--ink); color: #FFFFFF; }
.contact-form__submit { align-self: center; margin-top: 6px; min-height: 48px; padding: 16px 40px; }

/* サンクスページ用カード */
.thanks-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(32px,7vw,48px); box-shadow: 0 12px 28px -12px rgba(26,26,29,.16); text-align: center;
}
.thanks-card__badge {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: var(--yellow); font: 800 1.5rem/1 var(--font-display);
}
.thanks-card__title { margin: 22px 0 0; font: 700 1.125rem/1.7 var(--font-maru); letter-spacing: .04em; }
.thanks-card__text { margin: 12px 0 0; font: 400 .9375rem/1.9 var(--font-kaku); letter-spacing: .04em; color: var(--ink-muted); }
.thanks-page { min-height: 100dvh; display: grid; place-items: center; padding: 48px 24px; }
.thanks-page__inner { width: 100%; max-width: 560px; }
.thanks-page__back { display: block; text-align: center; margin-top: 24px; font: 700 .875rem/1.6 var(--font-maru); letter-spacing: .06em; }

/* ---- 19. フッター ---- */
.site-footer {
  position: relative; overflow: hidden; background: var(--ink); color: var(--bg);
  padding: clamp(64px,12vw,96px) clamp(24px,7vw,56px) clamp(40px,8vw,64px);
}
.site-footer__ghost {
  position: absolute; right: -8vw; bottom: -6vh;
  font: 800 clamp(3rem,15vw,9rem)/.86 var(--font-display); color: rgba(244,244,241,.07); letter-spacing: -.02em;
}
.footer-grid {
  position: relative; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(32px,6vw,56px);
}
.footer-avatar { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--illust-bg); overflow: hidden; margin-bottom: 22px; object-fit: cover; display: block; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand__text { font: 700 15px/1 var(--font-maru); letter-spacing: .04em; }
.footer-org { margin: 20px 0 0; font: 400 .8125rem/1.9 var(--font-kaku); letter-spacing: .06em; color: rgba(244,244,241,.72); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-links a { color: var(--bg); font: 500 .9375rem/1.6 var(--font-maru); letter-spacing: .08em; }
.footer-nav a:hover, .footer-links a:hover { color: var(--yellow); }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font: 400 .8125rem/1.6 var(--font-kaku); letter-spacing: .06em; }
.footer-copy { position: relative; max-width: 1120px; margin: clamp(40px,8vw,64px) auto 0; font: 400 .75rem/1.6 var(--font-kaku); letter-spacing: .08em; color: rgba(244,244,241,.5); }

/* ---- 20. ナビゲーションオーバーレイ ---- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay__ghost { position: absolute; left: -6vw; bottom: 4vh; }
.nav-overlay__blob {
  position: absolute; right: -16vw; top: -14vh; width: min(70vw,460px); height: min(66vw,420px);
  background: var(--teal); border-radius: 58% 42% 39% 61% / 47% 55% 45% 53%;
}
.nav-overlay__head { position: absolute; left: 0; right: 0; top: 0; height: 88px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(16px,5vw,40px); }
.nav-overlay__close {
  height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 700 13px/1 var(--font-maru); letter-spacing: .14em;
  box-shadow: 0 6px 0 rgba(26,26,29,.12); cursor: pointer;
}
.nav-overlay__nav { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(14px,3vw,20px); padding: clamp(120px,22vw,180px) clamp(28px,8vw,64px) 0; }
.nav-overlay__nav a {
  color: var(--ink); font: 700 1.5rem/1.4 var(--font-maru); letter-spacing: .1em;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .2s ease;
}
.nav-overlay.is-open .nav-overlay__nav a { opacity: 1; transform: none; }
.nav-overlay__nav a:hover { color: var(--teal-deep); }
.nav-overlay.is-open .nav-overlay__nav a:nth-child(1) { transition-delay: .05s; }
.nav-overlay.is-open .nav-overlay__nav a:nth-child(2) { transition-delay: .13s; }
.nav-overlay.is-open .nav-overlay__nav a:nth-child(3) { transition-delay: .21s; }
.nav-overlay.is-open .nav-overlay__nav a:nth-child(4) { transition-delay: .29s; }
.nav-overlay.is-open .nav-overlay__nav a:nth-child(5) { transition-delay: .37s; }
body.nav-open { overflow: hidden; }

/* ---- 21. 未確定プレースホルダー ---- */
.tbd { color: var(--orange-deep); }
