/* =========================================================
   Laugh Mind AI研修 LP
   Theme : パンフレットと同じ「クリーム × イエロー × インク」
   Layout: desktop = fixed key-visual "stage" (left)
           + 480px SP column floating on a yellow channel (right) + menu rail.
           mobile  = single column, sticky top bar, bottom CV bar.
   One deliberate light look (brand). Every color is set explicitly.
   ========================================================= */
:root {
  --paper: #F7F6F1;      /* page / section A */
  --white: #FFFFFC;      /* section B / cards */
  --ink: #161513;        /* text, outlines */
  --ink-2: #3A3934;
  --ink-3: #6B6962;
  --ink-soft: #CFCBBE;   /* text on ink */
  --line: #DEDBD0;
  --line-2: #CFCBBE;
  --yellow: #FCEC2B;     /* brand */
  --pink: #EE1F5B;       /* accent fill */
  --pink-text: #C8104A;  /* accent text on light */
  --blue: #1FA3D8;
  --green: #34B26A;
  --lilac: #9B98FF;
  --ink-card: #24231F;
  --pop: 4px 4px 0 var(--ink);

  --f-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --f-latin: 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --f-hand: 'Yusei Magic', 'Noto Sans JP', 'Hiragino Maru Gothic ProN', sans-serif;

  --col: 480px;
  --rail: 96px;
  --gap-stage: 24px;
  --topbar: 60px;
  --radius-sec: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-break: strict;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, .jp-phrase, .msg-strong, .msg-close, .bridge p, .vc-quote { word-break: auto-phrase; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 日本語は文節の切れ目でだけ改行（assets/js/phrase.js が <wbr> を入れて付けるクラス） */
/* このLPの word-break: auto-phrase（Chromeだけが対応）より、BudouXの区切りを優先してブラウザごとの差をなくす */
.is-phrase { word-break: keep-all !important; overflow-wrap: anywhere; hanging-punctuation: allow-end; }
:where(.is-phrase) { text-wrap: pretty; }
/* 長い本文はふつうに詰めて改行（phrase.js が is-body を付け、最後の3文字だけ改行させない） */
.is-body { word-break: normal !important; overflow-wrap: break-word; } /* 見出しなど、text-wrap を指定している要素はその指定（balance など）を優先 */
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }


/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand span { white-space: nowrap; font-weight: 900; font-size: 13px; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 900; font-size: 16px; letter-spacing: .04em; line-height: 1.3;
  text-decoration: none; text-align: center;
  border: 2px solid var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); transform: translateY(-2px); }
.ico-arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.ico-arrow::after { content: ""; position: absolute; left: 8px; top: 9px; width: 7px; height: 7px; border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow); transform: rotate(45deg); }
.btn-primary:hover .ico-arrow::after { left: 9.5px; transition: left .25s var(--ease); }
.sticker {
  position: absolute; top: -18px; left: -10px; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--pink); color: #FFFFFF;
  font-weight: 900; font-size: 12px; letter-spacing: 0;
  clip-path: polygon(50.0% 0.0%, 60.6% 10.4%, 75.0% 6.7%, 79.0% 21.0%, 93.3% 25.0%, 89.6% 39.4%, 100.0% 50.0%, 89.6% 60.6%, 93.3% 75.0%, 79.0% 79.0%, 75.0% 93.3%, 60.6% 89.6%, 50.0% 100.0%, 39.4% 89.6%, 25.0% 93.3%, 21.0% 79.0%, 6.7% 75.0%, 10.4% 60.6%, 0.0% 50.0%, 10.4% 39.4%, 6.7% 25.0%, 21.0% 21.0%, 25.0% 6.7%, 39.4% 10.4%);
  transform: rotate(-14deg);
}
.cta-row { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Top bar (mobile) ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: calc(max(16px, env(safe-area-inset-right, 0px)) + 60px);
  background: rgba(247, 246, 241, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand img { width: 104px; }
@media (max-width: 359.98px) { /* 小さい画面：ロゴ・「AI研修」・資料DLを重ならずに1行に収める */
  .topbar .brand { gap: 6px; }
  .topbar .brand img { width: 84px; }
  .topbar .brand span { font-size: 11.5px; padding: 2px 6px; }
  .topbar-cta { padding: 0 10px; }
}
.topbar-cta { flex: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 900; font-size: 13px; text-decoration: none; }

/* ---------- Menu button & rail ---------- */
.menu-btn {
  position: fixed; z-index: 80;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); display: grid; place-content: center; gap: 4px;
  transition: transform .25s var(--ease);
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--yellow); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.rail-copy { display: none; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s .45s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(22, 21, 19, .4); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 90vw);
  background: var(--paper); border-left: 2px solid var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 80px) max(28px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 32px) 28px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-nav { display: grid; }
.drawer-nav a { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 11px 0; font-weight: 900; font-size: 17px; line-height: 1.5; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-nav small { font-family: var(--f-latin); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.drawer-nav a:hover { color: var(--pink-text); }
.drawer-cta { display: grid; gap: 14px; }
.drawer-contact { color: var(--ink-3); font-size: 13px; user-select: all; }

/* ---------- Stage (desktop only) ---------- */
.stage { display: none; }

/* ---------- Column & sections ---------- */
.column { position: relative; }
.sec {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-sec) var(--radius-sec) 0 0;
  margin-top: calc(var(--radius-sec) * -1);
  overflow: clip;
  scroll-margin-top: calc(var(--topbar) - var(--radius-sec));
}
.sec.is-white { background: var(--white); }
.sec.is-yellow { background: var(--yellow); }
.sec.is-ink { background: var(--ink); color: var(--paper); }
.sec-inner {
  position: relative;
  padding-block: 80px 104px;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 24px;
  container-type: inline-size;
}
.sec-head { display: grid; gap: 14px; }
.sec-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink-2); line-height: 1.4; }
.sec-en { font-family: var(--f-latin); font-weight: 800; font-size: 12px; letter-spacing: .16em; padding: 4px 10px; background: var(--yellow); color: var(--ink); }
.is-yellow .sec-en { background: var(--ink); color: var(--yellow); }
.is-ink .sec-label { color: var(--ink-soft); }
.sec-title { font-weight: 900; font-size: clamp(26px, 8.6cqi, 36px); line-height: 1.4; letter-spacing: -.01em; }
.lead { font-size: 15px; color: var(--ink-2); }
.is-ink .lead { color: var(--ink-soft); }
.sub-head { margin-top: 12px; font-weight: 900; font-size: 21px; line-height: 1.5; display: flex; align-items: center; gap: 12px; }
.sub-head::after { content: ""; flex: 1; height: 2px; background: var(--ink); min-width: 24px; }
.is-ink .sub-head::after { background: var(--ink-soft); }
.block-title { font-weight: 900; font-size: clamp(22px, 6.6cqi, 27px); line-height: 1.5; padding-top: 4px; }
.source { font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.marker { background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.sec-confetti { position: absolute; top: 0; right: -24px; width: 230px; pointer-events: none; }

/* image band at the top of a section */
.part-band { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.part-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.part-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 252, 0) 55%, var(--white) 100%); }
.part-band + .sec-inner { padding-top: 24px; }

/* ticks */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.65; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }

/* ---------- FV ---------- */
.fv { margin-top: 0; border-radius: 0; background: var(--paper); }
.fv-media { position: relative; aspect-ratio: 820 / 668; width: 100%; overflow: hidden; isolation: isolate; background: var(--paper); }
.fv-art { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; animation: fade 1s var(--ease) both; transform: scale(calc(1 + var(--fvz, 0) * .16)); transform-origin: 40% 100%; will-change: transform; }
.fv-inner { padding-top: 4px; gap: 22px; }
.fv-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--f-latin); font-weight: 800; font-size: 12px; letter-spacing: .22em; color: var(--ink-2); }
.fv-eyebrow span { font-family: var(--f-body); letter-spacing: .08em; font-size: 13px; padding: 2px 10px; background: var(--ink); color: var(--yellow); }
/* brush title bleeds past both edges (about 132% of the screen width), overlapping the art above */
.fv-title { --s: calc(100cqi + 44px); position: relative; z-index: 1; width: calc(var(--s) * 1.32); max-width: none; margin: calc(var(--s) * -0.17) 0 0 calc(var(--s) * -0.26 - 22px); }
.fv-title img { width: 100%; max-width: none; }
.fv-lead { font-weight: 900; font-size: min(28px, calc(100cqi / 14.2)); line-height: 1.6; letter-spacing: 0; animation: rise .9s var(--ease) .3s both; }
.fv-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; animation: rise .9s var(--ease) .45s both; }
.fv-points li { display: grid; align-content: center; justify-items: center; gap: 2px; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--white); border: 2px solid var(--ink); }
.fv-points b { font-weight: 900; font-size: min(27px, 6.8cqi); line-height: 1.2; }
.fv-points span { font-size: 11px; font-weight: 700; line-height: 1.45; color: var(--ink-3); letter-spacing: 0; }
.fv .cta-row { margin-top: 6px; animation: rise .9s var(--ease) .6s both; }
.fv-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---------- Theme ---------- */
.theme-pre { font-weight: 700; font-size: 18px; color: var(--ink-2); margin-top: 6px; }
.theme-title { display: grid; justify-items: start; gap: 8px; font-weight: 900; font-size: min(44px, calc((100cqi - 24px) / 10.4)); line-height: 1.35; letter-spacing: -.01em; text-wrap: initial; }
.theme-title span { background: var(--yellow); padding: 4px 10px; }
.theme-sub { font-weight: 700; font-size: 19px; line-height: 1.75; }

/* ---------- Issues ---------- */
.walls { display: grid; gap: 12px; }
.wall {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 18px 16px 18px 18px; border-radius: 18px; background: var(--white);
  border: 2px solid var(--line-2); cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.wall:hover { border-color: var(--ink); }
.wall input { position: absolute; opacity: 0; pointer-events: none; }
.wall:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.wall-no { font-family: var(--f-latin); font-weight: 800; font-size: 14px; color: var(--pink-text); }
.wall-text { font-weight: 900; font-size: 17px; line-height: 1.55; word-break: auto-phrase; }
.wall-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; transition: background-color .2s, border-color .2s; }
.wall-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.wall:has(input:checked) { background: var(--yellow); border-color: var(--ink); box-shadow: var(--pop); transform: translate(-2px, -2px); }
.wall:has(input:checked) .wall-no { color: var(--ink); }
.wall:has(input:checked) .wall-check { background: var(--ink); border-color: var(--ink); }
.wall:has(input:checked) .wall-check::after { transform: rotate(45deg) scale(1); }
.walls-count { text-align: right; font-weight: 700; font-size: 14px; margin-top: -8px; }
.walls-count b { font-family: var(--f-latin); font-weight: 900; font-size: 24px; color: var(--pink-text); }
.bridge { display: grid; justify-items: center; gap: 12px; text-align: center; margin-top: 8px; }
.bridge::before { content: ""; width: 2px; height: 40px; background: var(--ink); }
.bridge p { font-weight: 900; font-size: min(30px, calc((100cqi - 24px) / 10.4)); line-height: 1.65; }
.bridge em { font-style: normal; background: var(--ink); color: var(--yellow); padding: 2px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Answer ---------- */
.sec-answer .sec-inner { gap: 22px; }
.answer-hero { display: grid; }
.answer-runner { width: 86%; margin: -30px -16px -6px auto; transform: rotate(-3deg); filter: drop-shadow(6px 8px 0 rgba(22, 21, 19, .18)); }
.answer-title { position: relative; font-weight: 900; font-size: min(50px, calc(100cqi / 9.3)); line-height: 1.3; letter-spacing: -.02em; text-wrap: initial; }
.answer-key { justify-self: start; width: fit-content; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: min(30px, calc((100cqi - 40px) / 11.3)); line-height: 1.55; padding: 12px 18px; }
.answer-body { font-size: 15px; line-height: 1.95; color: var(--ink-2); font-weight: 500; }

/* ---------- Stance ---------- */
.compare { display: grid; gap: 12px; }
.cmp-row { display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.cmp-row dt { font-weight: 900; font-size: 13px; letter-spacing: .08em; color: var(--pink-text); }
.cmp-row dd { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.cmp-row dd span { justify-self: start; font-size: 11px; font-weight: 700; line-height: 1.6; padding: 0 8px; border-radius: 6px; white-space: nowrap; }
.cmp-old { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.cmp-old span { background: var(--line); color: var(--ink-3); }
.cmp-new { font-weight: 900; font-size: 17.5px; line-height: 1.55; color: var(--ink); }
.cmp-new span { background: var(--ink); color: var(--yellow); }

/* ---------- Program ---------- */
.goal { display: grid; gap: 10px; padding: 18px 18px 20px; border-radius: 18px; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--pop); }
.goal-tag { justify-self: start; font-family: var(--f-latin); font-weight: 800; font-size: 12px; letter-spacing: .2em; padding: 3px 10px; background: var(--ink); color: var(--yellow); }
.goal-text { font-weight: 900; font-size: clamp(19px, 5.8cqi, 23px); line-height: 1.75; }
.goal-text span { background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.timeline { position: relative; display: grid; gap: 14px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 29px; top: 20px; bottom: 20px; border-left: 2px dashed var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: start; }
.tl-when { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); font-weight: 900; font-size: 13.5px; line-height: 1; letter-spacing: 0; }
.tl-body { display: grid; gap: 4px; padding: 14px 16px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.tl-hand { font-family: var(--f-hand); font-size: 15px; line-height: 1.4; color: var(--ink-3); }
.tl-title { font-weight: 900; font-size: 17.5px; line-height: 1.5; }
.tl-out { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.timeline .is-practice .tl-when { background: var(--green); }
.timeline .is-practice .tl-body { border: 2px dashed var(--ink); border-top: 6px solid var(--c); background: var(--paper); }
.timeline .is-final .tl-when { background: var(--ink); color: var(--yellow); }
.timeline .is-final .tl-body { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.timeline .is-final .tl-hand, .timeline .is-final .tl-out { color: var(--ink-soft); }
.formula { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.8; }
.formula b { font-size: 21px; font-weight: 900; color: var(--ink); background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); }

/* ---------- Features ---------- */
.features { display: grid; gap: 12px; }
.features li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 20px 18px; border-radius: 18px; background: var(--paper); }
.ft-no { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); font-family: var(--f-latin); font-weight: 900; font-size: 17px; }
.features h3 { font-weight: 900; font-size: 19px; line-height: 1.5; align-self: center; }
.features li > p:last-child { font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ---------- Curriculum ---------- */
.cur-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.cur-tabs button { min-height: 48px; border-radius: 12px; font-weight: 900; font-size: 15px; color: var(--ink-3); transition: background-color .25s, color .25s; }
.cur-tabs button:hover { color: var(--ink); }
.cur-tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.cur-panel { margin-top: 14px; display: grid; gap: 18px; padding: 22px 20px 24px; border-radius: 20px; background: var(--white); border: 2px solid var(--ink); border-top: 10px solid var(--c); box-shadow: var(--pop); animation: flip .35s var(--ease); }
.cur-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 700; font-size: 13px; color: var(--ink-3); }
.cur-hand { font-family: var(--f-hand); font-weight: 400; font-size: 16px; color: var(--ink); }
.cur-title { font-weight: 900; font-size: 23px; line-height: 1.5; margin-top: -8px; }
.cur-block { display: grid; gap: 8px; }
.cur-label { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 12.5px; letter-spacing: .1em; color: var(--pink-text); }
.cur-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cur-block > p:not(.cur-label) { font-weight: 700; font-size: 15px; line-height: 1.7; }
.dots { display: grid; gap: 6px; }
.dots li { position: relative; padding-left: 18px; font-size: 14.5px; font-weight: 500; line-height: 1.65; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dots small { display: block; font-size: 12.5px; color: var(--ink-3); }
.cur-take { display: flex; flex-wrap: wrap; gap: 8px; }
.cur-take .cur-label { flex-basis: 100%; }
.take { font-weight: 900; font-size: 14.5px; line-height: 1.4; padding: 7px 14px; border-radius: 999px; background: var(--yellow); border: 1.5px solid var(--ink); }

/* ---------- Practice ---------- */
.part-title { font-weight: 900; font-size: min(58px, calc(100cqi / 7.6)); line-height: 1.25; letter-spacing: -.02em; text-wrap: initial; }
.part-lead { font-weight: 700; font-size: 17px; line-height: 1.75; }
.practice-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); }
.practice-meta > div { display: grid; gap: 2px; padding: 12px 8px; text-align: center; }
.practice-meta > div + div { border-left: 1px solid var(--line-2); }
.practice-meta dt { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.practice-meta dd { font-weight: 900; font-size: 15px; line-height: 1.4; }
.weeks { display: grid; gap: 12px; }
.weeks li { display: grid; gap: 8px; padding: 18px 18px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.wk-no { justify-self: start; font-family: var(--f-latin); font-weight: 800; font-size: 12px; letter-spacing: .16em; padding: 3px 12px; border-radius: 999px; background: var(--c); color: var(--ink); }
.wk-no b { font-size: 14px; }
.weeks h3 { font-weight: 900; font-size: 20px; line-height: 1.5; }
.weeks li > p:not(.wk-no) { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.wk-share { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-2); display: grid; gap: 2px; }
.wk-share p:first-child { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.wk-share p:last-child { font-size: 14px; font-weight: 700; line-height: 1.6; }
.report { display: grid; gap: 12px; padding: 20px 18px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.report-title { font-weight: 900; font-size: 19px; color: var(--yellow); }
.report-items { display: flex; flex-wrap: wrap; gap: 8px; }
.report-items li { font-size: 13.5px; font-weight: 700; line-height: 1.5; padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(247, 246, 241, .35); }
.report-reply { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.report-reply::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--yellow); font-weight: 900; }

/* ---------- Start ---------- */
.steps { display: grid; gap: 16px; }
.step { display: grid; gap: 12px; padding: 20px 18px 22px; border-radius: 20px; background: var(--white); border: 2px solid var(--ink); }
.step-no { justify-self: start; font-family: var(--f-latin); font-weight: 800; font-size: 12px; letter-spacing: .16em; padding: 3px 10px; background: var(--yellow); border: 1.5px solid var(--ink); }
.step h3 { font-weight: 900; font-size: 21px; line-height: 1.4; }
.step > p:not(.step-no):not(.hand-note) { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.talk { display: grid; gap: 8px; }
.talk li { justify-self: start; max-width: 90%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.talk li.is-r { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--yellow); border-color: var(--ink); }
.prompts { display: grid; gap: 8px; }
.prompts li { position: relative; padding: 11px 50px 11px 16px; border-radius: 18px; background: var(--white); border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; line-height: 1.6; }
.prompts li::after { content: ""; position: absolute; right: 10px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 18V6M6.5 11.5 12 6l5.5 5.5' fill='none' stroke='%23FCEC2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.hand-note { justify-self: end; font-family: var(--f-hand); font-size: 24px; line-height: 1.4; color: var(--pink-text); transform: rotate(-3deg); }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 359.98px) { .ideas { grid-template-columns: minmax(0, 1fr); } } /* 小さい画面では1列にして、アイデア名が途中で切れないように */
.ideas li { display: grid; align-content: start; gap: 6px; padding: 14px 14px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.idea-cat { font-size: 12px; font-weight: 700; color: var(--pink-text); }
.idea-text { font-weight: 900; font-size: 16px; line-height: 1.55; word-break: auto-phrase; }
.ideas-free { font-weight: 700; font-size: 16px; line-height: 1.8; }
.ideas-free b { font-weight: 900; background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); }

/* ---------- Expo ---------- */
.agenda { display: grid; gap: 16px; padding: 20px 18px; border-radius: 18px; background: var(--ink-card); }
.agenda-title { font-weight: 900; font-size: 16px; display: flex; align-items: baseline; gap: 10px; }
.agenda-title span { font-family: var(--f-latin); font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--yellow); }
.agenda-bar { display: flex; gap: 3px; height: 14px; }
.agenda-bar i { flex: var(--m) 1 0; background: var(--c); border-radius: 3px; }
.agenda-list { display: grid; gap: 12px; }
.agenda-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; column-gap: 10px; }
.agenda-list li::before { content: ""; grid-row: span 2; width: 12px; height: 12px; margin-top: 7px; border-radius: 3px; background: var(--c); }
.ag-name { font-weight: 900; font-size: 16px; line-height: 1.6; }
.ag-desc { grid-column: 2; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.ag-min { grid-column: 3; grid-row: 1 / span 2; font-family: var(--f-latin); font-weight: 800; font-size: 15px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.criteria li { display: grid; align-content: start; gap: 6px; padding: 16px 10px; border-radius: 16px; background: var(--ink-card); text-align: center; }
.cr-name { font-weight: 900; font-size: 28px; line-height: 1.2; color: var(--yellow); }
.criteria li p:last-child { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); word-break: auto-phrase; }
@media (max-width: 359.98px) { .criteria { grid-template-columns: minmax(0, 1fr); } } /* 小さい画面では1列にして、文が途中で切れないように */

/* ---------- Voice ---------- */
.voices { display: grid; gap: 14px; }
.voices li { position: relative; display: grid; gap: 10px; padding: 22px 20px 18px; border-radius: 22px 22px 22px 6px; background: var(--white); border: 1px solid var(--line); }
.voices li::before { content: "“"; font-family: var(--f-latin); font-weight: 900; font-size: 54px; line-height: .5; height: 22px; color: var(--pink); }
.vc-quote { font-weight: 900; font-size: 19px; line-height: 1.7; word-break: auto-phrase; }
.vc-role { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.vc-role::before { content: ""; width: 18px; height: 2px; background: var(--ink-3); }
.voices .vc-cta { background: var(--ink); border-color: var(--ink); color: var(--paper); gap: 16px; }
.voices .vc-cta::before { color: var(--yellow); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.team li { display: grid; align-content: start; gap: 2px; }
.team img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 16px; border: 2px solid var(--ink); margin-bottom: 10px; }
.tm-role, .roles dt { justify-self: start; font-size: 11.5px; font-weight: 900; line-height: 1.6; padding: 1px 10px; border-radius: 999px; background: var(--yellow); border: 1.5px solid var(--ink); }
.tm-role.is-mc, .roles dt.is-mc { background: var(--ink); color: var(--yellow); }
.tm-name { margin-top: 6px; font-weight: 900; font-size: 20px; line-height: 1.4; }
.tm-title { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.roles { display: grid; gap: 10px; }
.roles > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.roles dd { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- Message ---------- */
.msg-quote { font-weight: 900; font-size: min(40px, calc(100cqi / 11.6)); line-height: 1.55; letter-spacing: -.01em; text-wrap: initial; }
.msg-quote span { background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.msg-body { display: grid; gap: 16px; }
.msg-body p { font-size: 15px; line-height: 2; color: var(--ink-2); }
.msg-body .msg-strong { font-weight: 900; font-size: clamp(19px, 5.8cqi, 23px); line-height: 1.7; color: var(--ink); }
.msg-strong span { background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.msg-body .msg-close { font-weight: 900; font-size: clamp(19px, 5.8cqi, 23px); line-height: 1.7; color: var(--yellow); background: var(--ink); padding: 18px 20px; margin-top: 6px; }
.msg-sign { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 2px solid var(--ink); }
.msg-sign img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 2px solid var(--ink); }
.msg-role { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.msg-name { font-weight: 900; font-size: 24px; line-height: 1.4; }

/* ---------- Price ---------- */
.price-card { display: grid; gap: 14px; padding: 24px 20px 22px; border-radius: 22px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.pc-name { font-weight: 900; font-size: 19px; }
.pc-scope { font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--ink-3); margin-top: -8px; }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pc-price b { font-family: var(--f-latin); font-weight: 900; font-size: min(124px, 30cqi); line-height: 1; letter-spacing: -.05em; background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%); padding-right: 6px; }
.pc-price span { font-weight: 900; font-size: 34px; }
.pc-price small { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.pc-inc-title { font-weight: 900; font-size: 14px; }
.pc-note { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.extra { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1.5px dashed var(--ink-3); }
.extra-title { font-weight: 900; font-size: 14px; }
.extra p:last-child { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- Flow ---------- */
.flow { display: grid; }
.flow li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--ink); }
.fl-no { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); font-family: var(--f-latin); font-weight: 800; font-size: 15px; }
.flow h3 { font-weight: 900; font-size: 18.5px; line-height: 1.5; padding-top: 10px; }
.flow li p:not(.fl-no) { font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 8px; align-items: start; padding: 16px 18px; font-weight: 900; font-size: 16.5px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; font-family: var(--f-latin); font-weight: 900; color: var(--pink-text); }
.faq summary::after { content: ""; width: 9px; height: 9px; margin-top: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 11px; }
.faq details p { padding: 0 18px 18px 54px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }

/* ---------- Contact ---------- */
.sec-contact { background: var(--paper); }
.contact-art { position: absolute; inset: 0 0 auto; height: 440px; overflow: hidden; isolation: isolate; background: var(--paper); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.contact-art img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 0%; mix-blend-mode: multiply; }
.closing { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 36px; }
.closing .sec-label { justify-content: center; }
.closing-title { font-weight: 900; font-size: min(44px, calc(100cqi / 8.8)); line-height: 1.45; letter-spacing: -.01em; text-wrap: initial; }
.closing-sub { font-weight: 700; font-size: 15px; line-height: 1.75; padding: 6px 16px; background: var(--white); border-radius: 14px; border: 1.5px solid var(--ink); }
.forms { position: relative; display: grid; gap: 16px; margin-top: 8px; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 20px; background: var(--white); border: 1.5px solid var(--ink); }
.form-tabs button { position: relative; min-height: 54px; border-radius: 15px; font-weight: 900; font-size: 15px; color: var(--ink-3); transition: background-color .3s, color .3s; }
.form-tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.form-tabs .sticker { width: 38px; height: 38px; top: -16px; left: -6px; font-size: 10.5px; }
.form-panel { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 22px 20px; box-shadow: var(--pop); }
.lp-form { position: relative; display: grid; gap: 16px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* スパム対策（人には見えない入力欄） */
.form-lead { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 0; }
.field em, .field label span, .field legend span { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; line-height: 1.6; }
.field em { background: var(--pink); color: #FFFFFF; }
.field > label span, .field > legend span { background: var(--line); color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  background: var(--paper); border: 1.5px solid var(--line-2); color: var(--ink);
  font: 16px/1.6 var(--f-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A3A096; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(252, 236, 43, .7); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--pink); }
.field-err { font-size: 12.5px; color: var(--pink-text); font-weight: 700; }
.field-err:empty { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s; }
.pick input, .agree input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--ink-3); cursor: pointer; }
.pick input { width: 18px; height: 18px; border-radius: 50%; }
.pick input:checked { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow); }
.pick label:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.agree { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.agree input { width: 22px; height: 22px; border-radius: 6px; }
.agree input::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg) scale(0); transition: transform .15s; }
.agree input:checked { background: var(--ink); border-color: var(--ink); }
.agree input:checked::after { transform: rotate(45deg) scale(1); }
.agree a { color: var(--pink-text); text-underline-offset: 3px; font-weight: 700; }
.btn-submit { width: 100%; margin-top: 4px; }
.btn-submit[disabled] { opacity: .6; pointer-events: none; }
.form-status { font-size: 13px; color: var(--pink-text); text-align: center; font-weight: 700; }
.form-status:empty { display: none; }
.thanks { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 8px 0; }
.thanks img { width: 190px; animation: float 4.5s ease-in-out infinite; }
.thanks-title { font-weight: 900; font-size: 22px; }
.thanks .btn { width: 100%; }
.dl-status { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dl-status:empty { display: none; }
.contact-alt { text-align: center; display: grid; gap: 2px; font-size: 13px; color: var(--ink-3); }
.contact-mail { font-family: var(--f-latin); font-weight: 700; font-size: 19px; color: var(--ink); user-select: all; }

/* ---------- Related services ---------- */
.related { display: grid; gap: 12px; }
.related li { display: grid; gap: 14px; padding: 22px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.related li.is-aio { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rl-tag { justify-self: start; font-size: 12px; font-weight: 900; line-height: 1.6; padding: 1px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); }
.rl-text { font-weight: 900; font-size: clamp(18px, 5.4cqi, 21px); line-height: 1.65; word-break: auto-phrase; }
.rl-text b { background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); }
.is-aio .rl-text b { background: none; color: var(--yellow); }
.related .btn { width: 100%; }
.related-note { text-align: center; font-weight: 900; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--paper); border-radius: var(--radius-sec) var(--radius-sec) 0 0; margin-top: calc(var(--radius-sec) * -1); }
.footer .sec-inner { padding-block: 56px calc(env(safe-area-inset-bottom, 0px) + 110px); gap: 20px; }
.footer .brand img { width: 150px; }
.footer-tag { font-weight: 700; font-size: 13.5px; color: var(--yellow); }
.company { display: grid; gap: 6px; font-size: 13px; }
.company > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
.company dt { color: #8C897F; }
.company dd { color: var(--ink-soft); overflow-wrap: anywhere; }
.company a { text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.footer-links a { color: var(--ink-soft); text-underline-offset: 3px; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(247, 246, 241, .16); padding-top: 18px; }
.copy { font-size: 12px; color: #8C897F; font-family: var(--f-latin); }
.pagetop { display: grid; justify-items: center; gap: 6px; text-decoration: none; font-family: var(--f-latin); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }
.pagetop-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); position: relative; transition: transform .3s var(--ease); }
.pagetop-ico::after { content: ""; position: absolute; left: 18px; top: 20px; width: 10px; height: 10px; border-top: 2.5px solid var(--ink); border-left: 2.5px solid var(--ink); transform: rotate(45deg); }
.pagetop:hover .pagetop-ico { transform: translateY(-6px); }

/* ---------- Mobile CV bar ---------- */
.cvbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px;
  padding: 14px max(14px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(14px, env(safe-area-inset-left, 0px));
  background: rgba(247, 246, 241, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.cvbar.is-show { transform: none; }
.cvbar .btn { min-height: 50px; font-size: 15px; padding: 0 14px; }
.cvbar .sticker { width: 38px; height: 38px; top: -16px; left: -6px; font-size: 10.5px; }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
[data-reveal].is-play { animation: rise .9s var(--ease) both; }
@keyframes brush-in {
  0% { clip-path: inset(-10% 100% -10% 0); transform: translateX(-4%) scale(1.06); filter: blur(5px); }
  65% { filter: blur(0); }
  100% { clip-path: inset(-10% -10% -10% 0); transform: none; filter: none; }
}
@keyframes art-in { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
.brush-in { animation: brush-in 1.5s cubic-bezier(.65, 0, .25, 1) .25s both; }

/* =========================================================
   Desktop: key-visual stage + SP column on a yellow channel
   ========================================================= */
@media (min-width: 1080px) {
  html, body, body::before { background: var(--yellow); }
  .topbar, .cvbar { display: none; }
  .sec { scroll-margin-top: 0; }
  .column {
    width: var(--col); margin-left: auto; margin-right: var(--rail);
    padding-top: 24px;
  }
  .column > .sec:first-child { border-radius: var(--radius-sec) var(--radius-sec) 0 0; }
  .fv-media { display: none; }
  .fv-inner { padding-top: 48px; }
  .fv-title { margin-top: -8px; }
  .menu-btn { top: 24px; right: calc((var(--rail) - 48px) / 2); }
  .rail-copy { display: block; position: fixed; right: calc(var(--rail) / 2 - 8px); bottom: 32px; writing-mode: vertical-rl; font-family: var(--f-latin); font-weight: 700; font-size: 11px; letter-spacing: .24em; color: var(--ink); }

  /* stage = one immersive poster: art full-bleed, brush title huge, info card bottom-right */
  .stage { display: block; position: fixed; top: 0; bottom: 0; left: 0; right: calc(var(--col) + var(--rail) + var(--gap-stage)); overflow: hidden; background: var(--white); border-right: 2px solid var(--ink); }
  .stage-art { position: absolute; inset: 0; animation: art-in 1.8s var(--ease) both; }
  .stage-art .plx { position: absolute; inset: -28px; }
  .stage-art img { width: 100%; height: 100%; object-fit: cover; object-position: 16% 64%; transform: scale(calc(1.02 + var(--scroll, 0) * .12)); transform-origin: 62% 58%; }
  .stage-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 74% 44% at 28% 27%, rgba(255, 255, 252, .95) 0%, rgba(255, 255, 252, .82) 46%, rgba(255, 255, 252, 0) 100%); }
  .plx { will-change: transform; }
  .stage-inner { position: absolute; inset: 0; padding: 24px clamp(24px, 3vw, 48px) 28px; display: flex; flex-direction: column; }
  .stage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .stage-top .brand { margin-top: 6px; }
  .stage-top .brand img { width: 128px; }
  .stage-now { width: min(300px, 48%); display: grid; gap: 4px; padding: 10px 14px 12px; border-radius: 14px; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--pop); }
  .sp-head { display: flex; align-items: baseline; gap: 10px; }
  .sp-num { font-family: var(--f-latin); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .sp-num b { color: var(--ink); font-size: 17px; }
  .sp-name { font-weight: 900; font-size: 13.5px; line-height: 1.4; }
  .sp-note { font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--ink-2); }
  .sp-note > .is-swap { animation: pop .4s var(--ease); }
  /* セクション名・説明文は全セクション分を重ねて置き、いま見ているものだけ表示（高さが変わらず、筆文字が動かない） */
  .sp-stack { display: grid; }
  .sp-stack > span { grid-area: 1 / 1; visibility: hidden; }
  .sp-stack > span.is-on { visibility: visible; }
  .sp-bar { height: 4px; margin-top: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
  .sp-bar i { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .stage-title { margin: clamp(4px, 1.6vh, 20px) -1.5% 0; }
  .stage-brush { width: min(100%, 80vh); height: auto; }
  .stage-card { margin-top: auto; align-self: flex-end; width: min(400px, 100%); display: grid; gap: 8px; padding: 18px 20px 20px; border-radius: 20px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); animation: rise .9s var(--ease) 1s both; }
  .stage-copy { font-weight: 900; font-size: clamp(17px, 2.5vh, 22px); line-height: 1.55; letter-spacing: 0; }
  .stage-meta { font-size: 12px; font-weight: 700; color: var(--ink-3); }
  .stage .cta-row { gap: 10px; margin-top: 8px; }
  .stage .btn { min-height: 52px; }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .stage-now { width: min(260px, 52%); }
  .sp-note { display: none; }
}

@media (min-width: 1080px) and (max-height: 760px) {
  .stage-brush { width: min(100%, 70vh); }
  .sp-note { display: none; }
  .stage-card { gap: 6px; padding: 14px 16px 16px; }
  .stage .btn { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
