@charset "UTF-8";
/* =============================================================
   TEGOU — 動きだした黄色い雑誌
   デザイントークン・基礎・コンポーネント（docs/02_デザイン設計.md 準拠）
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --yellow: #FFD800;
  --yellow-pale: #FFF3B8;
  --ink: #1A1A1A;
  --paper: #F7F2EA;
  --white: #FFFFFF;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.25);

  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Oswald", sans-serif;

  --fs-display: clamp(48px, 9vw, 128px);
  --fs-h1: clamp(36px, 5.5vw, 72px);
  --fs-h2: clamp(28px, 4vw, 48px);
  --fs-h3: clamp(20px, 2.5vw, 28px);
  --fs-body: 16px;
  --fs-small: 13px;

  --ls-display: 0.06em;
  --ls-h: 0.1em;
  --ls-h2: 0.12em;
  --ls-en: 0.2em;
  --ls-body: 0.05em;

  --sec-pad: clamp(120px, 16vw, 240px);
  --sec-pad-s: clamp(72px, 10vw, 140px);
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
  --maxw-text: 720px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.8s;
  --radius: 20px;
  --radius-pill: 999px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 2;
  letter-spacing: var(--ls-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
main { display: block; }

/* ---------- typography ---------- */
.en { font-family: var(--font-en); font-weight: 500; letter-spacing: var(--ls-en); text-transform: uppercase; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; }
.t-display { font-size: var(--fs-display); letter-spacing: var(--ls-display); line-height: 1.15; font-weight: 700; }
.t-h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h); line-height: 1.3; }
.t-h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); line-height: 1.4; }
.t-h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-h); line-height: 1.5; }
.t-small { font-size: var(--fs-small); line-height: 1.8; }
.t-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}
.t-outline--white { -webkit-text-stroke-color: var(--white); }
.t-marker { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%); }
.t-dot-yellow { color: var(--yellow); }

/* セクション見出しの共通型: 英字ラベル + 巨大見出し */
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); position: relative; }
.sec-head .en-label {
  font-family: var(--font-en); font-size: 13px; letter-spacing: var(--ls-en);
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.en-label::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.sec-num {
  position: absolute; top: -0.45em; right: 0; z-index: -1;
  font-family: var(--font-en); font-weight: 600; line-height: 1;
  font-size: clamp(120px, 22vw, 300px);
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none; user-select: none;
}
.on-dark .sec-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.14); }
.on-yellow .sec-num { -webkit-text-stroke-color: rgba(26, 26, 26, 0.16); }

/* 縦書きの柱 */
.pillar {
  writing-mode: vertical-rl; font-family: var(--font-en); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.55;
}

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: var(--maxw-text); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-pad); position: relative; }
.section--s { padding-block: var(--sec-pad-s); }
.bg-paper { background: var(--paper); }
.bg-yellow { background: var(--yellow); }
.bg-ink { background: var(--ink); color: var(--white); }
.on-dark { color: var(--white); }
.grid { display: grid; gap: clamp(24px, 3.5vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1079px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 抽象図形（SVG共通・装飾） ---------- */
.shape { position: absolute; pointer-events: none; z-index: 0; }
.shape--q { opacity: 0.9; }
.shape--dash circle { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 8; }
.section > .container { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
  padding-block: 18px;
}
.site-header.is-scrolled { background: rgba(255, 216, 0, 0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(26, 26, 26, 0.15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; margin-inline: 0; padding-inline: clamp(16px, 2vw, 32px); }
.site-header__logo img { width: clamp(96px, 9vw, 128px); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a:not(.btn) { font-size: 14px; font-weight: 500; letter-spacing: 0.08em; position: relative; padding-block: 6px; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

@media (max-width: 1079px) {
  .site-nav {
    position: fixed; inset: 0; background: var(--ink); color: var(--white);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .site-nav a:not(.btn) { font-size: 20px; }
  .site-nav a:not(.btn)::after { background: var(--yellow); }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .menu-toggle {
    display: grid; place-items: center; gap: 0; width: 48px; height: 48px;
    position: relative; z-index: 110; border-radius: 50%; background: var(--ink);
  }
  .menu-toggle span { position: absolute; width: 20px; height: 2px; background: var(--white); transition: transform 0.35s var(--ease-out); }
  .menu-toggle span:nth-child(1) { transform: translateY(-4px); }
  .menu-toggle span:nth-child(2) { transform: translateY(4px); }
  body.nav-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 34px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em; line-height: 1.4;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--yellow);
  clip-path: polygon(0 100%, 18% 100%, 0 130%, -18% 130%);
  transition: clip-path 0.5s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { clip-path: polygon(-20% -30%, 130% -30%, 130% 130%, -20% 130%); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--yellow::before { background: var(--ink); }
.btn--yellow:hover { color: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.on-dark .btn--ghost { --btn-fg: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--l { padding: 20px 44px; font-size: 16px; }

.textlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; position: relative; padding-bottom: 4px; }
.textlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.textlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- reveal（出現アニメ・JSが .is-inview を付与） ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="mask"] { transform: none; overflow: hidden; }
[data-reveal="mask"] > * { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="mask"].is-inview > * { transform: none; }

/* ---------- MV ---------- */
.mv { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.mv__bg { position: absolute; inset: 0; z-index: 0; }
.mv__bg canvas, .mv__bg svg { width: 100%; height: 100%; display: block; }
.mv__inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; }
.mv__copy { font-size: var(--fs-display); font-weight: 700; letter-spacing: var(--ls-display); line-height: 1.2; }
.mv__copy .line { display: block; }
.mv__sub { margin-top: 28px; font-size: clamp(13px, 1.4vw, 16px); font-weight: 500; max-width: 34em; }
.mv__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.mv__scroll { position: absolute; right: clamp(20px, 3vw, 44px); bottom: 40px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mv__scroll .bar { width: 2px; height: 64px; background: var(--line-strong); overflow: hidden; position: relative; }
.mv__scroll .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scrollbar 2s var(--ease-out) infinite; }
@keyframes scrollbar { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.mv__meta { position: absolute; left: clamp(20px, 3vw, 44px); bottom: 40px; z-index: 2; font-size: 11px; }

/* ---------- marquee ---------- */
.marquee { overflow: clip; display: grid; gap: 20px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee var(--mq-dur, 42s) linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: calc(var(--mq-dur, 42s) * 1.25); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-card { position: relative; width: clamp(240px, 26vw, 380px); aspect-ratio: 16 / 10.5; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line); flex-shrink: 0; }
.mq-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mq-card figcaption {
  position: absolute; inset: auto 10px 10px 10px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.82); color: var(--white); font-size: 11px; letter-spacing: 0.06em; line-height: 1.5;
  opacity: 0; transform: translateY(6px); transition: 0.35s var(--ease-out);
}
.mq-card:hover figcaption { opacity: 1; transform: none; }

/* ---------- 動画帯 ---------- */
.movieband { position: relative; overflow: clip; background: var(--ink); }
.movieband video { width: 100%; height: min(78vh, 720px); object-fit: cover; display: block; will-change: transform; }
.movieband__label { position: absolute; top: 28px; left: clamp(20px, 4vw, 56px); color: var(--white); z-index: 2; display: flex; align-items: center; gap: 16px; }
.movieband__sound { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); color: var(--white); font-size: 12px; letter-spacing: 0.1em; }
.movieband__sound:hover { background: var(--yellow); color: var(--ink); }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(26, 26, 26, 0.28); }
.card__icon { display: block; width: 52px; height: 52px; }
.card__icon svg { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* アイコンはゆっくり線描画→保持→消去を定期ループ（M17改・2026-08-18修正） */
.card__icon path, .card__icon circle, .card__icon rect, .card__icon line, .card__icon polyline,
.anim-icon path, .anim-icon circle, .anim-icon rect, .anim-icon line, .anim-icon polyline {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawloop 9s var(--ease-out) infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawloop {
  0% { stroke-dashoffset: 240; }
  28% { stroke-dashoffset: 0; }
  78% { stroke-dashoffset: 0; }
  96% { stroke-dashoffset: -240; }
  100% { stroke-dashoffset: -240; }
}
.card__num { position: absolute; top: 20px; right: 26px; font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: 0.15em; opacity: 0.35; }
.card h3 { font-size: 20px; letter-spacing: 0.08em; }
.card p { font-size: 14px; line-height: 1.9; }
.card .textlink { margin-top: auto; font-size: 14px; }
.card--mini { padding: 24px 28px; flex-direction: row; align-items: center; gap: 18px; }
.card--mini h3 { font-size: 16px; }
.card--mini p { font-size: 12px; line-height: 1.7; }

/* ---------- works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.work-card { grid-column: span 4; display: block; }
.work-card:nth-child(6n + 1), .work-card:nth-child(6n + 4) { grid-column: span 8; }
@media (max-width: 767px) { .work-card, .work-card:nth-child(n) { grid-column: span 12; } }
.work-card__thumb { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out); }
.work-card:hover .work-card__thumb img { transform: scale(1.045); }
.work-card__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 16px; }
.work-card__body h3 { font-size: 17px; letter-spacing: 0.06em; }
.tag { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 11px; letter-spacing: 0.06em; line-height: 1.7; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag--fill { background: var(--yellow); box-shadow: none; font-weight: 700; }

.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filterbar button { padding: 8px 20px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 13px; letter-spacing: 0.06em; transition: 0.3s; }
.filterbar button:hover { background: var(--yellow-pale); }
.filterbar button.is-active { background: var(--ink); color: var(--white); box-shadow: none; }

/* 実績詳細 */
.workdetail-tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
@media (max-width: 767px) { .workdetail-tables { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table caption { text-align: left; font-family: var(--font-en); letter-spacing: var(--ls-en); font-size: 12px; text-transform: uppercase; margin-bottom: 12px; opacity: 0.6; }
.spec-table th, .spec-table td { padding: 13px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.spec-table th { width: 32%; font-weight: 700; white-space: nowrap; }
.point-list { counter-reset: pt; display: grid; gap: clamp(24px, 3vw, 40px); }
.point-list > li { position: relative; padding-left: 84px; min-height: 60px; }
.point-list > li::before {
  counter-increment: pt; content: "0" counter(pt);
  position: absolute; left: 0; top: -6px;
  font-family: var(--font-en); font-weight: 600; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.point-list h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: 0.08em; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 数字バンド ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); text-align: center; }
@media (max-width: 767px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.numbers .nicon { display: block; width: 44px; height: 44px; margin-inline: auto; }
.numbers .nicon svg { width: 100%; height: 100%; stroke: var(--yellow); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.numbers dt { font-size: 13px; letter-spacing: 0.1em; order: 2; opacity: 0.8; }
.numbers dd { order: 1; font-family: var(--font-en); font-weight: 600; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.1; color: var(--yellow); }
.numbers dd .unit { font-size: 0.38em; font-family: var(--font-ja); font-weight: 700; color: var(--white); margin-left: 6px; letter-spacing: 0.1em; }
.numbers .item { display: flex; flex-direction: column; gap: 8px; }

/* ---------- price ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: stretch; }
@media (max-width: 1023px) { .price-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.price-card { background: var(--white); border-radius: var(--radius); padding: clamp(30px, 3vw, 44px); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; position: relative; }
.price-card--hot { box-shadow: 0 0 0 2.5px var(--ink); }
.price-card__badge { position: absolute; top: -14px; left: 28px; background: var(--yellow); padding: 4px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.price-card h3 { font-size: 19px; letter-spacing: 0.08em; }
.price-card .price { font-family: var(--font-en); font-weight: 600; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.1; }
.price-card .price .unit { font-family: var(--font-ja); font-size: 0.42em; font-weight: 700; letter-spacing: 0.06em; }
.price-card ul { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.8; }
.price-card ul li { padding-left: 22px; position: relative; }
.price-card ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 7px; border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg) translateY(-30%); }
.price-note { font-size: 12px; opacity: 0.7; line-height: 1.9; }

.rate-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rate-table th, .rate-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; line-height: 1.7; }
.rate-table thead th { font-size: 12px; letter-spacing: 0.1em; opacity: 0.6; border-bottom: 2px solid var(--ink); }
.rate-table td.num { font-family: var(--font-en); font-weight: 500; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

/* 割引バンド */
.discount { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
@media (max-width: 767px) { .discount { grid-template-columns: 1fr; } }
.discount__card { position: relative; border-radius: var(--radius); padding: clamp(30px, 3.5vw, 48px); background: var(--ink); color: var(--white); overflow: clip; }
.discount__card .off { font-family: var(--font-en); font-weight: 600; font-size: clamp(52px, 6vw, 84px); line-height: 1; color: var(--yellow); }
.discount__card .off .sup { font-size: 0.4em; }
.discount__card h3 { font-size: 22px; margin: 10px 0 12px; letter-spacing: 0.1em; }
.discount__card p { font-size: 13.5px; line-height: 1.9; opacity: 0.9; }
.discount__card .shape { right: -40px; top: -40px; opacity: 0.14; }

/* ---------- flow ---------- */
.flow-steps { counter-reset: fs; display: grid; gap: 0; position: relative; }
.flow-step { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: clamp(16px, 3vw, 40px); padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.flow-step::before {
  counter-increment: fs; content: "0" counter(fs);
  font-family: var(--font-en); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.flow-step:nth-child(-n+9):nth-child(n+10)::before { content: counter(fs); }
.flow-step h3 { font-size: 19px; letter-spacing: 0.08em; margin-bottom: 6px; }
.flow-step p { font-size: 14px; line-height: 1.9; }
.flow-step .period { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.1em; padding: 6px 16px; border-radius: var(--radius-pill); background: var(--yellow-pale); white-space: nowrap; font-weight: 500; }
@media (max-width: 767px) { .flow-step { grid-template-columns: 64px 1fr; } .flow-step .period { grid-column: 2; justify-self: start; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 32px; gap: 16px;
  align-items: baseline; padding: clamp(20px, 2.5vw, 30px) 4px; font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { font-family: var(--font-en); font-weight: 600; font-size: 22px; color: transparent; -webkit-text-stroke: 1.3px var(--ink); }
.faq-item summary .x { position: relative; width: 20px; height: 20px; justify-self: end; align-self: center; transition: transform 0.4s var(--ease-out); }
.faq-item summary .x::before, .faq-item summary .x::after { content: ""; position: absolute; inset: 50% auto auto 0; width: 100%; height: 2px; background: var(--ink); }
.faq-item summary .x::after { transform: rotate(90deg); }
.faq-item[open] summary .x { transform: rotate(45deg); }
.faq-item .a { padding: 0 4px clamp(20px, 2.5vw, 30px) 60px; font-size: 14.5px; line-height: 2; }
@media (max-width: 767px) { .faq-item .a { padding-left: 4px; } }

/* ---------- CTA（共通下部） ---------- */
.cta { position: relative; overflow: clip; background: var(--ink); color: var(--white); }
.cta__bg { position: absolute; inset: 0; opacity: 0.35; display: grid; align-content: center; gap: 20px; z-index: 0; filter: saturate(0.9); }
.cta__inner { position: relative; z-index: 1; text-align: center; padding-block: var(--sec-pad); background: radial-gradient(ellipse at center, rgba(26, 26, 26, 0.86) 0%, rgba(26, 26, 26, 0.55) 60%, rgba(26, 26, 26, 0.32) 100%); }
.cta__inner h2 { font-size: clamp(30px, 4.5vw, 56px); letter-spacing: var(--ls-h2); }
.cta__inner p { margin-top: 20px; font-size: 15px; opacity: 0.9; }
.cta__btns { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 80px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .flogo img { width: 120px; margin-bottom: 20px; }
.site-footer .fcol h3 { font-family: var(--font-en); font-size: 12px; letter-spacing: var(--ls-en); text-transform: uppercase; opacity: 0.5; margin-bottom: 16px; }
.site-footer .fcol ul { display: grid; gap: 10px; font-size: 13.5px; }
.site-footer .faddr { font-size: 12.5px; line-height: 2; opacity: 0.85; font-style: normal; }
.site-footer .fbottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 11px; opacity: 0.6; }
.badge-soon { font-size: 10px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.14); margin-left: 8px; vertical-align: 1px; }

/* ---------- FAB（ページトップ） ---------- */
.fab {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.85); pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab svg.ring circle { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; }
.fab .arr { position: relative; width: 14px; height: 14px; }
.fab .arr::before { content: ""; position: absolute; left: 50%; top: 2px; width: 9px; height: 9px; border-top: 2.5px solid currentColor; border-left: 2.5px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.fab .arr::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2.5px; height: 11px; background: currentColor; transform: translateX(-50%); }
.fab:hover .arr { animation: fab-jump 0.7s var(--ease-out); }
@keyframes fab-jump { 0% { transform: translateY(0); } 45% { transform: translateY(-22px); opacity: 0; } 46% { transform: translateY(22px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* ---------- 診断フローティングバナー ---------- */
.diag-banner {
  position: fixed; left: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-pill); padding: 10px 18px 10px 12px;
  box-shadow: 0 0 0 1.5px var(--ink), 0 14px 30px -12px rgba(26, 26, 26, 0.4);
  transform: translateY(140%); transition: transform 0.6s var(--ease-out);
}
.diag-banner.is-visible { transform: none; }
.diag-banner.is-hidden-temp { transform: translateY(140%); }
.diag-banner__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.diag-banner a { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; }
.diag-banner a small { display: block; font-size: 10px; font-weight: 500; opacity: 0.65; }
.diag-banner__close { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; opacity: 0.55; }
.diag-banner__close:hover { opacity: 1; background: var(--paper); }
@media (max-width: 767px) { .diag-banner a small { display: none; } }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; background: var(--ink); margin: -4px 0 0 -4px; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: width 0.3s, height 0.3s, margin 0.3s, background-color 0.3s, border-color 0.3s;
  font-size: 0; font-family: var(--font-en); letter-spacing: 0.1em; color: var(--ink);
}
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 243, 150, 0.92); border-color: transparent; font-size: 10px; }
.cursor-ring.is-media { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(255, 243, 150, 0.95); border-color: transparent; font-size: 10px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- ローディング ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--paper); }
.loader__logo { width: clamp(64px, 8vw, 96px); opacity: 0; animation: loader-in 0.9s var(--ease-out) 0.15s forwards; }
@keyframes loader-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.loader__curtain { position: absolute; inset: 0; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; }
.loader.is-leaving .loader__curtain { animation: curtain 0.9s var(--ease-out) forwards; }
.loader.is-leaving .loader__logo { animation: loader-out 0.4s ease forwards; }
@keyframes curtain { 0% { transform: scaleY(0); transform-origin: bottom; } 48% { transform: scaleY(1); transform-origin: bottom; } 52% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }
@keyframes loader-out { to { opacity: 0; transform: translateY(-14px); } }
.loader.is-done { display: none; }

/* ---------- page hero（下層共通） ---------- */
.page-hero { padding: calc(96px + var(--sec-pad-s)) 0 var(--sec-pad-s); position: relative; overflow: clip; }
.page-hero .en-label { font-family: var(--font-en); font-size: 13px; letter-spacing: var(--ls-en); text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-h); }
.page-hero .lead { margin-top: 24px; max-width: 40em; font-size: 15.5px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; opacity: 0.65; margin-bottom: 28px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.form-row label .req { display: inline-block; margin-left: 8px; font-size: 10px; background: var(--ink); color: var(--yellow); padding: 2px 8px; border-radius: var(--radius-pill); vertical-align: 2px; }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; letter-spacing: 0.04em; padding: 14px 18px; border: 1.5px solid var(--line-strong);
  border-radius: 12px; background: var(--white); width: 100%;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--yellow-pale); }
.form-row textarea { min-height: 160px; resize: vertical; }

/* ---------- misc ---------- */
.note-band { background: var(--yellow-pale); border-radius: 14px; padding: 20px 26px; font-size: 13.5px; line-height: 1.9; }
.check-table td.ok { color: var(--ink); font-weight: 700; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: clamp(48px, 6vw, 88px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-reveal="mask"] > * { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- SP調整 ---------- */
@media (max-width: 767px) {
  :root { --sec-pad: clamp(88px, 20vw, 140px); --fs-body: 15px; }
  .mv__copy { font-size: clamp(40px, 12vw, 64px); }
  .sec-num { font-size: clamp(90px, 30vw, 160px); }
}

/* ---------- top page 固有 ---------- */
.concept-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); max-width: 920px; }
.concept-grid p + p { margin-top: 1em; }
@media (max-width: 767px) { .concept-grid { grid-template-columns: 1fr; } .concept-grid .pillar { writing-mode: horizontal-tb; } }

.reason-list { display: grid; gap: clamp(28px, 4vw, 48px); max-width: 880px; }
.reason-list li { position: relative; padding-left: clamp(84px, 10vw, 130px); }
.reason-list .rn { position: absolute; left: 0; top: -10px; font-size: clamp(48px, 6vw, 80px); font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.reason-list h3 { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: 0.08em; margin-bottom: 8px; }
.reason-list p { font-size: 14.5px; line-height: 2; }

.sim-banner {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius); background: var(--yellow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: clip;
}
.sim-banner::after { content: "?"; position: absolute; right: 5%; top: 50%; transform: translateY(-56%); font-family: var(--font-en); font-weight: 600; font-size: clamp(120px, 13vw, 180px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(26,26,26,.22); pointer-events: none; }

.flow-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.flow-strip li { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: var(--radius-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; white-space: nowrap; }
.flow-strip li .fn { font-size: 13px; opacity: .5; letter-spacing: .1em; }
.flow-strip li:not(:last-child)::after { content: "→"; margin-left: -2px; margin-right: -10px; opacity: .4; }

/* =============================================================
   2026-08-18 修正対応（TEGOUリニューアルプロンプト（修正））
   ============================================================= */

/* ---------- ナビ: 英字大文字＋ホバーで日本語に切替（不透明度スワップ） ---------- */
.nav-flip { position: relative; display: inline-block; line-height: 1.5; }
.nav-flip span { display: block; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.nav-flip .l-en { font-family: var(--font-en); font-weight: 500; font-size: 13.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-flip .l-jp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; opacity: 0; transform: translateY(8px); pointer-events: none; }
.site-nav a:hover .nav-flip .l-en { opacity: 0; transform: translateY(-8px); }
.site-nav a:hover .nav-flip .l-jp { opacity: 1; transform: none; }
@media (max-width: 1079px) {
  .nav-flip .l-en { font-size: 20px; }
  .nav-flip .l-jp { position: static; transform: none !important; opacity: 0.6 !important; font-size: 11px; justify-content: flex-start; }
  .site-nav a:hover .nav-flip .l-en { transform: none; opacity: 1; }
}

/* ---------- 実績マーキー: 初期は黄フィルター・ホバーでフルカラー ---------- */
.mq-card { background: var(--yellow); }
.mq-card img { filter: grayscale(1) contrast(1.02); transition: filter 0.5s var(--ease-out); }
.mq-card::after { content: ""; position: absolute; inset: 0; background: var(--yellow); mix-blend-mode: multiply; opacity: 0.8; transition: opacity 0.5s var(--ease-out); pointer-events: none; }
.mq-card:hover img { filter: none; }
.mq-card:hover::after { opacity: 0; }
.mq-card figcaption { z-index: 2; }
.cta .mq-card::after { opacity: 0.55; } /* CTA背景は減光と併用 */

/* ---------- セクション背景アニメ（02黄・04濃色） ---------- */
.secbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.secbg canvas { width: 100%; height: 100%; display: block; }

/* ---------- WORKSピックアップ 6枚グリッドの整列 ---------- */
.works-grid--six .work-card:nth-child(5), .works-grid--six .work-card:nth-child(6) { grid-column: span 6; }
@media (max-width: 767px) { .works-grid--six .work-card:nth-child(n) { grid-column: span 12; } }
.on-dark .tag { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.on-dark .tag--fill { box-shadow: none; color: var(--ink); }
.on-dark .work-card__thumb { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* ---------- FLOWダイジェスト（カード＋接続ライン＋アイコン） ---------- */
.flow-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); position: relative; padding-top: 64px; counter-reset: fc; }
.flow-cards::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 86px; height: 2px; background: var(--ink); }
.flow-card { position: relative; background: var(--white); border-radius: 18px; padding: 48px 20px 28px; text-align: center; box-shadow: 0 0 0 1px var(--line); }
.flow-card::before { counter-increment: fc; content: "0" counter(fc); position: absolute; top: -64px; left: 50%; transform: translateX(-50%); font-family: var(--font-en); font-weight: 600; font-size: 34px; letter-spacing: 0.08em; }
.flow-card::after { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--paper); }
.flow-card .ficon { display: block; width: 56px; height: 56px; margin: 0 auto 16px; }
.flow-card .ficon svg { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-card h3 { font-size: 16.5px; letter-spacing: 0.08em; margin-bottom: 8px; }
.flow-card p { font-size: 12.5px; line-height: 1.9; text-align: left; }
@media (max-width: 1023px) { .flow-cards { grid-template-columns: repeat(2, 1fr); row-gap: 84px; } .flow-cards::before { display: none; } }
@media (max-width: 599px) { .flow-cards { grid-template-columns: 1fr; } }

/* ---------- ご依頼の流れ: 巨大番号アコーディオン ---------- */
.step-panel { background: var(--white); border-radius: 28px; padding: clamp(8px, 1.5vw, 20px) clamp(20px, 3vw, 44px); box-shadow: 0 0 0 1px var(--line); }
.step-acc { border-bottom: 1.5px dashed var(--line-strong); }
.step-acc:last-child { border-bottom: 0; }
.step-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: clamp(96px, 13vw, 170px) 1fr 40px; gap: clamp(12px, 2vw, 28px); align-items: center; overflow: hidden; max-height: 104px; padding-block: 8px; }
.step-acc summary::-webkit-details-marker { display: none; }
.step-acc .num { font-family: var(--font-en); font-weight: 600; font-size: clamp(88px, 11vw, 148px); line-height: 0.94; letter-spacing: 0.02em; color: var(--ink); transform: translateY(26%); transition: transform 0.5s var(--ease-out); }
.step-acc[open] summary { max-height: none; overflow: visible; }
.step-acc[open] .num { transform: none; }
.step-acc .ttl { display: flex; align-items: center; gap: 14px; font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: 0.08em; }
.step-acc .ttl .sicon { width: 40px; height: 40px; flex-shrink: 0; }
.step-acc .ttl .sicon svg { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.step-acc .chev { justify-self: end; width: 14px; height: 14px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.4s var(--ease-out); }
.step-acc[open] .chev { transform: rotate(-135deg); }
.step-acc .body { padding: 0 40px clamp(24px, 3vw, 36px) clamp(108px, 15vw, 198px); font-size: 14.5px; line-height: 2; }
.step-acc .body .period { display: inline-block; margin-top: 12px; font-family: var(--font-en); font-size: 12.5px; letter-spacing: 0.1em; padding: 5px 16px; border-radius: var(--radius-pill); background: var(--yellow-pale); font-weight: 500; }
@media (max-width: 767px) { .step-acc .body { padding-left: 4px; } .step-acc summary { max-height: 84px; } .step-acc .num { font-size: 72px; } }

/* ---------- FAQ 白パネル ---------- */
.faq-panel { background: var(--white); border-radius: 28px; padding: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 40px); box-shadow: 0 0 0 1px var(--line); }
.faq-panel .faq-list { border-top: 0; }
.faq-anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 56px); }
.faq-anchors a { padding: 9px 22px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; transition: 0.3s; }
.faq-anchors a:hover { background: var(--yellow); box-shadow: none; }

/* ---------- CTA: ゴーストボタンを白に・スクロール拡張 ---------- */
.cta .btn--ghost { --btn-fg: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.cta .btn--ghost:hover { color: var(--ink); }
.cta__inner { display: grid; align-content: center; will-change: min-height; }

/* ---------- 割引カードのアニメアイコン ---------- */
.discount__card .dicon { display: block; width: 52px; height: 52px; margin-bottom: 14px; }
.discount__card .dicon svg { width: 100%; height: 100%; stroke: var(--yellow); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- シミュレーター: 共通デザインへの調整 ---------- */
.sim-page .tgs { background: transparent; }
.sim-page .tgs__paper, .sim-page .tgs-head { display: none; }
.sim-page .tgs__inner { padding-top: 0; }
