/* ============================================================
   株式会社キュリー staging デザイン（パターンD移植版）
   世界観：幾何学 —— 原色と直線で組む構成
   - 生成りキャンバスに、黒の直線で区切り、赤・青・黄の面を置く
   - 曲線は絵の中だけ。ページの骨格はすべて直線と直角（角丸なし）
   - 区切りは「段差をつけて折れ、色ブロックが乗る構成線」
   - フォーム部分は可読性・操作性を優先し、真っ直ぐな紙面にする
   ============================================================ */

:root {
  --paper: #f2ede2;
  --paper-2: #faf7ef;
  --ink: #17130c;
  --ink-soft: #4c463c;
  --ink-faint: #8a8172;
  --red: #d92b1f;
  --red-deep: #b01e14;
  --blue: #1d4f9e;
  --blue-deep: #173f7e;
  --yellow: #f0b90c;
  --line: rgba(23, 19, 12, 0.24);
  --hard: 10px 10px 0 var(--ink);
  --hard-sm: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--yellow); color: var(--ink); }

a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lat { font-family: "Jost", sans-serif; }

/* スクロールバーも構成の一部（赤いサム） */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--red); border: 3px solid var(--paper); }

/* ---------- ヘッダー ---------- */

.site-header {
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

/* ヘッダーの印：既存ロゴのマーク部分を生成りタイルに収める */
.logo-mark {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform 0.22s cubic-bezier(0.3, 1.6, 0.4, 1), box-shadow 0.22s ease;
}

.logo-mark img { width: 26px; height: auto; display: block; }

.logo:hover .logo-mark { transform: rotate(3deg) scale(1.07); box-shadow: 4px 4px 0 var(--blue); }

.main-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.main-nav a:hover {
  background: var(--yellow);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- レイアウト ---------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 5.5rem;
  position: relative;
  z-index: 1;
}

section { padding: 88px 0 0; position: relative; }
section:first-child { padding-top: 72px; }

.eyebrow {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.44em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

/* 下位ページ見出し */
.page-head { padding: 4rem 0 0.5rem; }

.page-head h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 900;
  margin: 0 0 1rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.page-head h1::after {
  content: "";
  display: block;
  width: min(430px, 76vw);
  height: 14px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--ink) 0 75%, var(--red) 75% 91%, var(--yellow) 91% 100%);
}

.page-head .intro { color: var(--ink-soft); max-width: 680px; font-weight: 500; }

/* セクション見出し（下位ページ用：ラベル＋太見出し） */
.section-head { margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 900;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* ============ 区切り線：段差をつけて折れ、色ブロックが乗る「構成線」 ============
   真っ直ぐな1本線ではなく、途中で一段ずれて（ステップ）、下りて、また走る。
   線の上には原色のブロックが乗り、境界ごとに段差の位置とブロックの並びが変わる。
   画面に入ると、線が左から描かれ、ブロックが最後にポンと乗る。 */
.cline { position: absolute; top: 0; left: 0; right: 0; height: 48px; transform: translateY(-50%); z-index: 3; pointer-events: none; --sx: 55%; --sw: 180px; }
.cline * { box-sizing: border-box; }
.cl-bar { position: absolute; height: 4px; background: var(--ink); }
.cl-l { left: 0; width: var(--sx); top: calc(50% - 2px); transform-origin: left center; }
.cl-u { left: var(--sx); width: var(--sw); top: calc(50% - 18px); transform-origin: left center; }
.cl-r { left: calc(var(--sx) + var(--sw)); right: 0; top: calc(50% - 2px); transform-origin: left center; }
.cl-join { position: absolute; width: 4px; height: 20px; background: var(--ink); top: calc(50% - 18px); transform-origin: center top; }
.cl-j1 { left: var(--sx); }
.cl-j2 { left: calc(var(--sx) + var(--sw) - 4px); }
.cl-blk { position: absolute; top: 50%; transform: translate(-50%, -50%); border: 3px solid var(--ink); }
.cl-blk.onstep { left: calc(var(--sx) + var(--sw) / 2); top: calc(50% - 16px); }
/* 1本目だけ段差は下向き（上の黒い帯に埋もれないよう、紙面側へ落ちる） */
.cline.down .cl-u { top: calc(50% + 14px); }
.cline.down .cl-join { top: calc(50% - 2px); }
.cline.down .cl-blk.onstep { top: calc(50% + 16px); }
/* 境界ごとの構成 */
.cline-1 { --sx: 56%; --sw: 190px; }
.cline-1 .blk-a { left: 17%; width: 20px; height: 20px; background: var(--red); }
.cline-1 .blk-b { width: 36px; height: 15px; background: var(--yellow); }
.cline-1 .blk-c { left: 89%; width: 15px; height: 27px; background: var(--blue); }
.cline-2 { --sx: 26%; --sw: 150px; }
.cline-2 .blk-a { left: 63%; width: 46px; height: 15px; background: var(--blue); }
.cline-2 .blk-b { width: 19px; height: 19px; background: var(--red); }
.cline-2 .blk-c { left: 9%; width: 16px; height: 16px; background: var(--yellow); }
.cline-3 { --sx: 67%; --sw: 210px; }
.cline-3 .blk-a { left: 34%; width: 16px; height: 28px; background: var(--yellow); }
.cline-3 .blk-b { width: 42px; height: 15px; background: var(--blue); }
.cline-3 .blk-c { left: 8%; width: 19px; height: 19px; background: var(--red); }
.cline-4 { --sx: 40%; --sw: 160px; }
.cline-4 .blk-a { left: 79%; width: 21px; height: 21px; background: var(--yellow); }
.cline-4 .blk-b { width: 17px; height: 17px; background: var(--blue); }
.cline-4 .blk-c { left: 19%; width: 50px; height: 15px; background: var(--red); }
.cline-5 { --sx: 50%; --sw: 140px; }
.cline-5 .blk-a { left: 13%; width: 38px; height: 15px; background: var(--red); }
.cline-5 .blk-b { width: 21px; height: 21px; background: var(--yellow); }
.cline-5 .blk-c { left: 85%; width: 18px; height: 18px; background: var(--blue); }
/* 線が描かれる動き（.in が付いた時だけ。付かなければ静止表示が既定） */
.cline.in .cl-l { animation: cl-grow 0.7s cubic-bezier(0.7, 0, 0.2, 1) both; }
.cline.in .cl-j1 { animation: cl-join 0.3s ease 0.55s both; }
.cline.in .cl-u { animation: cl-grow 0.55s cubic-bezier(0.7, 0, 0.2, 1) 0.7s both; }
.cline.in .cl-j2 { animation: cl-join 0.3s ease 1.15s both; }
.cline.in .cl-r { animation: cl-grow 0.7s cubic-bezier(0.7, 0, 0.2, 1) 1.25s both; }
@keyframes cl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cl-join { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cline.in .cl-blk { animation: cl-pop 0.45s cubic-bezier(0.3, 1.6, 0.4, 1) both; }
.cline.in .blk-a { animation-delay: 1s; }
.cline.in .blk-b { animation-delay: 1.35s; }
.cline.in .blk-c { animation-delay: 1.6s; }
@keyframes cl-pop { 0% { transform: translate(-50%, -50%) scale(0); } 70% { transform: translate(-50%, -50%) scale(1.3); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* 番号付きセクション見出し（トップページ） */
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 30px; align-items: end; margin-bottom: 48px; }
.sec-num { grid-row: 1 / 3; font-family: "Jost", sans-serif; font-weight: 700; font-size: clamp(56px, 7.4vw, 92px); line-height: 0.85; color: var(--ink); position: relative; padding-right: 6px; cursor: pointer; transition: transform 0.2s ease; }
.sec-num::after { content: ""; position: absolute; left: 4px; bottom: -14px; width: 44%; height: 12px; background: var(--yellow); }
.sec-head.c-r .sec-num::after { background: var(--red); }
.sec-head.c-b .sec-num::after { background: var(--blue); }
.sec-num:hover { transform: translateY(-4px); }
.sec-num.pop { animation: num-pop 0.55s cubic-bezier(0.3, 1.6, 0.4, 1); }
@keyframes num-pop { 0% { transform: rotate(0); } 35% { transform: translateY(-12px) rotate(-7deg); } 65% { transform: translateY(2px) rotate(3deg); } 100% { transform: none; } }
.sec-label { grid-column: 2; grid-row: 1; font-family: "Jost", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.44em; color: var(--ink-soft); }
.sec-head h2 { grid-column: 2; grid-row: 2; font-weight: 900; font-size: clamp(26px, 4.4vw, 38px); margin: 0; line-height: 1.4; letter-spacing: 0.05em; }
.sec-head > div { display: contents; }

.reveal { opacity: 1; }
.reveal.in { animation: fade-in 0.55s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 0;
  padding: 15px 30px;
  border: 3px solid var(--ink);
  cursor: pointer;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--hard-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.btn-red { background: var(--red); border-color: var(--ink); color: #fff; }
.btn-red:hover { background: var(--red-deep); }

.btn .sq { width: 11px; height: 11px; background: var(--yellow); display: block; flex: none; }
.btn-red .sq { background: #fff; }

.arr { display: inline-block; transition: transform 0.18s ease; font-weight: 900; }
.btn:hover > .arr, a:hover > .arr { transform: translateX(4px); }

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- ヒーロー（トップ） ---------- */

.d-hero { position: relative; padding: 56px 0 0; }
.hero-top { display: flex; align-items: center; gap: 18px; }

.mark {
  flex: none;
  width: 66px;
  height: 66px;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  padding: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: rotate(-4deg);
  box-shadow: 5px 5px 0 var(--red);
  transition: transform 0.22s cubic-bezier(0.3, 1.6, 0.4, 1), box-shadow 0.22s ease;
}

.mark img { width: 39px; height: auto; display: block; pointer-events: none; }
.mark:hover { transform: rotate(3deg) scale(1.07); box-shadow: 5px 5px 0 var(--blue); }
.mark:active { transform: scale(0.92); }

.hero-over { font-weight: 900; font-size: 17px; letter-spacing: 0.3em; line-height: 1.55; }
.hero-over small { display: block; font-family: "Jost", sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.5em; color: var(--ink-soft); }

.sqs { display: inline-flex; gap: 6px; margin-left: auto; }
.sqs i { width: 14px; height: 14px; display: block; }
.sqs .r { background: var(--red); }
.sqs .b { background: var(--blue); }
.sqs .y { background: var(--yellow); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px 80px; align-items: start; margin-top: 64px; }

.d-hero h1 {
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
  white-space: nowrap;
}

.h-letter { display: inline-block; cursor: default; will-change: transform; }
.h-letter:hover { animation: snap 0.45s cubic-bezier(0.3, 1.8, 0.4, 1); }
@keyframes snap { 0% { transform: translateY(0); } 35% { transform: translateY(-14px); } 60% { transform: translateY(3px); } 100% { transform: translateY(0); } }
.d-hero h1.jump .h-letter { animation: letter-jump 0.65s cubic-bezier(0.3, 1.5, 0.4, 1) both; animation-delay: calc(var(--i) * 0.055s); }
@keyframes letter-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-22px); } 60% { transform: translateY(3px); } 100% { transform: translateY(0); } }
.d-hero h1 .dot { color: var(--red); }

.h1-rule { display: flex; width: min(430px, 76vw); height: 14px; margin-top: 24px; }
.h1-rule i { display: block; height: 100%; }
.h1-rule .k { flex: 1; background: var(--ink); }
.h1-rule .r { width: 16%; background: var(--red); }
.h1-rule .y { width: 9%; background: var(--yellow); }

.d-hero .lead { max-width: 480px; margin: 32px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 2.1; font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 48px; padding-top: 20px; border-top: 3px solid var(--ink); font-family: "Jost", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3em; color: var(--ink-soft); }
.hero-meta .jp { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; letter-spacing: 0.24em; font-weight: 700; }

/* ヒーローの絵：生成油彩「構成 No.1」。ブロックは掴んで動かせる */
.hero-art { margin: 6px 0 0; position: relative; max-width: 430px; justify-self: end; width: 100%; }
.hero-art .frame { border: 4px solid var(--ink); background: var(--ink); line-height: 0; box-shadow: var(--hard); }
.hero-art .frame img { width: 100%; height: auto; display: block; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-family: "Jost", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3em; color: var(--ink-soft); }
.hero-art .blk { position: absolute; z-index: 2; cursor: grab; touch-action: none; animation: blk-wiggle 0.45s ease 1.1s 2; }
.hero-art .blk:active { cursor: grabbing; }
.hero-art .blk.dragging { animation: none; z-index: 6; box-shadow: var(--hard-sm); }
.hero-art .blk-r { width: 52px; height: 52px; background: var(--red); left: -26px; bottom: 64px; border: 4px solid var(--ink); }
.hero-art .blk-y { width: 96px; height: 26px; background: var(--yellow); right: -14px; top: 52px; border: 4px solid var(--ink); }
.hero-art .blk-b { width: 30px; height: 30px; background: var(--blue); left: -15px; top: -15px; border: 4px solid var(--ink); }
@keyframes blk-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 70% { transform: rotate(8deg); } }

.hero-side { font-weight: 900; font-size: 21px; letter-spacing: 0.1em; line-height: 1.7; margin: 32px 0 0; color: var(--ink); }
.hero-side .dot { color: var(--blue); }

/* 流れる帯：黒の地に原色の四角。ホバーで止まる */
.marquee-zone { position: relative; margin: 72px -40px 0; z-index: 1; }
.marquee { overflow: hidden; white-space: nowrap; padding: 16px 0; background: var(--ink); color: var(--paper-2); font-weight: 700; font-size: 14.5px; letter-spacing: 0.22em; }
.marquee .track { display: inline-flex; width: max-content; animation: scrollx 46s linear infinite; align-items: center; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { padding: 0 1.5rem; display: inline-flex; align-items: center; gap: 3rem; }
.marquee .sq { width: 11px; height: 11px; flex: none; }
.marquee .r { background: var(--red); }
.marquee .b { background: var(--blue); }
.marquee .y { background: var(--yellow); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- 姿勢（トップ） ---------- */

.prose-grid { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 32px 80px; align-items: start; }
.prose p { margin: 0 0 1.9em; font-size: 15.5px; line-height: 2.15; color: var(--ink); }
.prose p:first-child { font-size: 17.5px; line-height: 2.1; font-weight: 500; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 900; background: linear-gradient(transparent 82%, var(--yellow) 82%); padding: 0 2px; }
.side-col { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.prose-notes { display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; padding-top: 8px; }
.note { font-weight: 900; font-size: 18px; letter-spacing: 0.06em; line-height: 1.7; display: flex; gap: 16px; align-items: flex-start; }
.note i { flex: none; width: 18px; height: 18px; margin-top: 7px; background: var(--red); }
.note.alt i { background: var(--blue); }

/* ---------- カード ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.card { background: var(--paper-2); border: 3px solid var(--ink); box-shadow: var(--hard-sm); display: flex; flex-direction: column; position: relative; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }

.artwork { line-height: 0; overflow: hidden; position: relative; border-bottom: 3px solid var(--ink); }
.artwork img { width: 100%; height: auto; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .artwork img { transform: scale(1.04); }

.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-idx { font-family: "Jost", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.3em; color: var(--ink-soft); }
.card h3 { font-weight: 900; font-size: 23px; margin: 0; line-height: 1.45; letter-spacing: 0.05em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.95; flex: 1; font-weight: 500; }
.card p:last-child { flex: none; }

.stamp { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: "Jost", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.18em; color: #fff; background: var(--red); border: 3px solid var(--ink); padding: 3px 12px 2px; transform: rotate(-4deg); transition: transform 0.25s cubic-bezier(0.3, 1.8, 0.4, 1); }
.stamp.b { background: var(--blue); }
.card:hover .stamp { transform: rotate(3deg) scale(1.1); }

.go { font-weight: 900; font-size: 14px; letter-spacing: 0.1em; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: none; border: none; border-bottom: 3px solid var(--red); padding: 0 0 3px; cursor: pointer; align-self: flex-start; font-family: inherit; }
.go.blue { border-bottom-color: var(--blue); }
.go > .arr { transition: transform 0.18s ease; }
.go:hover > .arr { transform: translateX(5px); }

.sns-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sns { font-family: "Jost", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-decoration: none; border: 2px solid var(--ink); padding: 3px 14px; color: var(--ink); background: var(--paper-2); transition: background 0.15s ease, color 0.15s ease; }
.sns:hover { background: var(--ink); color: var(--paper-2); }

.card.soon h3 { color: var(--ink-soft); }
.card.soon p { color: var(--ink-faint); }

/* ---------- ハブ用リンクタイル（トップ下部） ---------- */

.link-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }

.link-tile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ink); color: var(--paper-2); text-decoration: none; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.06em; border: 3px solid var(--ink); padding: 1.3rem 1.6rem; box-shadow: var(--hard-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.link-tile .arrow { font-size: 1.4rem; transition: transform 0.18s ease; }
.link-tile:hover { background: var(--blue-deep); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.link-tile:hover .arrow { transform: translateX(6px); }
.link-tile.alt { background: var(--red); }
.link-tile.alt:hover { background: var(--blue); }

/* ---------- 会社概要テーブル ---------- */

table.company { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }

table.company th,
table.company td { padding: 24px 2px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--ink); }

table.company tr:first-child th,
table.company tr:first-child td { border-top: 3px solid var(--ink); }

table.company th {
  width: 180px;
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

table.company th::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 10px; background: var(--red); }
table.company tr:nth-child(2) th::before { background: var(--blue); }
table.company tr:nth-child(3) th::before { background: var(--yellow); }
table.company tr:nth-child(4) th::before { background: var(--blue); }
table.company tr:nth-child(5) th::before { background: var(--yellow); }
table.company tr:nth-child(6) th::before { background: var(--red); }

table.company td { font-size: 15.5px; line-height: 1.95; font-weight: 500; }

/* ---------- フォーム（真っ直ぐ・正直な紙面） ---------- */

form.lead-form {
  margin-top: 2.6rem;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--hard);
  padding: 52px 56px;
  position: relative;
}

/* フォームの小印：カードの上辺にまたがるバッジ配置にして、入力欄には被せない */
.form-mark { position: absolute; top: -30px; right: 30px; width: 56px; height: 56px; background: #fff; border: 3px solid var(--ink); padding: 0; box-sizing: border-box; display: grid; place-items: center; transform: rotate(4deg); z-index: 2; }
.form-mark img { width: 31px; height: auto; display: block; }

.field { margin-bottom: 24px; max-width: 680px; }

.field label { display: block; font-weight: 700; font-size: 13.5px; letter-spacing: 0.12em; margin-bottom: 9px; }

.badge { font-size: 11.5px; font-weight: 700; margin-left: 7px; letter-spacing: 0.06em; vertical-align: middle; }
.badge.required { color: var(--red-deep); }
.badge.optional { color: var(--ink-faint); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  outline: none;
  appearance: none;
  transition: box-shadow 0.15s ease;
}

.field textarea { min-height: 132px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: 5px 5px 0 var(--blue); }

.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1.6rem 0; max-width: 680px; font-size: 14.5px; }
.consent input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue-deep); }

button.submit {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 17px 52px;
  background: var(--blue);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--hard-sm);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button.submit:hover { background: var(--blue-deep); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
button.submit:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.form-note { margin: 24px 0 0; max-width: 680px; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); font-weight: 500; }
.form-note p { margin: 0; }

/* ---------- プライバシーポリシー（本文の可読性を維持） ---------- */

.policy { max-width: 800px; }

.policy h2 { font-weight: 900; font-size: 17px; letter-spacing: 0.05em; margin: 40px 0 10px; display: flex; gap: 13px; align-items: baseline; }
.policy h2::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--red); position: relative; top: 1px; }
.policy h2:nth-of-type(3n+2)::before { background: var(--blue); }
.policy h2:nth-of-type(3n)::before { background: var(--yellow); }

.policy p { margin: 0 0 1.2em; color: var(--ink-soft); font-size: 14px; line-height: 2; font-weight: 500; }
.policy ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.policy li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; font-weight: 500; }
.policy li::before { content: ""; position: absolute; left: 0; top: 0.74em; width: 8px; height: 8px; background: var(--ink); }
.policy a { color: var(--blue-deep); word-break: break-all; }

/* ---------- サンクス / 404 ---------- */

.thanks { text-align: center; padding: 4.5rem 0 1rem; }
.thanks .eyebrow { color: var(--red); }
.thanks h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 900; line-height: 1.35; letter-spacing: 0.05em; }
.thanks p { color: var(--ink-soft); max-width: 620px; margin: 1rem auto; font-weight: 500; }
.thanks .btn { margin-top: 0.8rem; }

/* ---------- フッター ---------- */

.site-footer { background: var(--ink); color: var(--paper-2); position: relative; z-index: 1; }

.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 72px 40px 48px; }

.foot-sqs { display: flex; gap: 6px; margin-bottom: 16px; }
.foot-sqs i { width: 14px; height: 14px; display: block; }
.foot-sqs .r { background: var(--red); }
.foot-sqs .b { background: var(--blue); }
.foot-sqs .y { background: var(--yellow); }

.site-footer .company { font-weight: 900; color: var(--paper-2); font-size: 21px; letter-spacing: 0.1em; margin: 0; }
.foot-vision { color: #cfc8b8; font-size: 13.5px; margin: 6px 0 0; line-height: 1.8; }
.postal-address { font-size: 13.5px; color: #cfc8b8; line-height: 1.8; margin: 14px 0 0; }
.postal-address .addr-line { display: block; }
.postal-address .addr-part { white-space: nowrap; }

.site-footer nav ul { display: flex; gap: 1.2rem; list-style: none; padding: 0; margin: 26px 0 0; flex-wrap: wrap; }
.site-footer a { color: #d9d9e8; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--yellow); }

.site-footer .copyright { font-family: "Jost", sans-serif; letter-spacing: 0.18em; color: #9a927f; font-size: 13px; margin: 48px 0 0; }

/* ---------- 遊びの仕掛け ---------- */

#confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.spark { position: fixed; width: 11px; height: 11px; pointer-events: none; z-index: 80; animation: spark-pop 0.6s ease-out forwards; }
@keyframes spark-pop { 0% { transform: scale(0) rotate(0deg); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.1) rotate(135deg); opacity: 0; } }

/* 左端のレール：読み進めるほど四角が色づき、最後に「構成」が完成する（広い画面のみ） */
.rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 60; display: none; flex-direction: column; gap: 12px; }
.rail i { width: 15px; height: 15px; display: block; border: 3px solid var(--ink); background: var(--paper); transition: background 0.35s ease; }
.rail i.rail-top { background: var(--ink); }
.rail i.on-r { background: var(--red); }
.rail i.on-b { background: var(--blue); }
.rail i.on-y { background: var(--yellow); }
.rail i.pop { animation: rail-pop 0.45s cubic-bezier(0.3, 1.7, 0.4, 1); }
@keyframes rail-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rail.done i { animation: rail-wave 0.55s ease both; }
.rail.done i:nth-child(2) { animation-delay: 0.06s; }
.rail.done i:nth-child(3) { animation-delay: 0.12s; }
.rail.done i:nth-child(4) { animation-delay: 0.18s; }
.rail.done i:nth-child(5) { animation-delay: 0.24s; }
.rail.done i:nth-child(6) { animation-delay: 0.3s; }
@keyframes rail-wave { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(7px); } }
@media (min-width: 1380px) { .rail { display: flex; } }

/* ---------- レスポンシブ / モーション配慮 ---------- */

@media (max-width: 820px) {
  .site-header .inner { padding: 10px 16px 12px; gap: 0.4rem 0.8rem; }
  .logo { font-size: 1.02rem; gap: 0.55rem; }
  .logo-mark { width: 36px; height: 36px; box-shadow: 3px 3px 0 var(--red); }
  .logo-mark img { width: 21px; }
  .main-nav { flex: 1 1 100%; }
  .main-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .main-nav a { font-size: 0.82rem; padding: 0.3rem 0.3rem; letter-spacing: 0.03em; white-space: nowrap; }
  main { padding: 0 24px 4rem; }
  .site-footer .inner { padding: 56px 24px 40px; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .d-hero { padding-top: 40px; }
  .d-hero h1 { font-size: clamp(32px, 11.4vw, 54px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; margin-top: 56px; }
  .hero-art { max-width: 400px; justify-self: start; }
  .hero-art .blk-r { left: -10px; }
  .hero-art .blk-y { right: -6px; }
  .hero-meta { margin-top: 48px; }
  .sqs { display: none; }
  .prose-grid { grid-template-columns: 1fr; gap: 44px; }
  .prose-notes { gap: 24px; padding: 0; }
  form.lead-form { padding: 40px 24px 36px; }
  .form-mark { top: -26px; right: 18px; width: 50px; height: 50px; }
  .form-mark img { width: 27px; }
  table.company th { width: 110px; white-space: normal; }
  table.company th, table.company td { padding: 20px 2px; }
  section { padding-top: 64px; }
  section:first-child { padding-top: 56px; }
  .cline-1 { --sx: 46%; --sw: 104px; }
  .cline-2 { --sx: 20%; --sw: 88px; }
  .cline-3 { --sx: 54%; --sw: 98px; }
  .cline-4 { --sx: 33%; --sw: 92px; }
  .cline-5 { --sx: 42%; --sw: 84px; }
  .sec-head { margin-bottom: 40px; gap: 8px 22px; }
  .section-head { margin-bottom: 40px; }
  .marquee-zone { margin: 64px -24px 0; }
  .hero-side { font-size: 19px; margin-top: 28px; }
  .d-hero .lead { font-size: 15px; }
  .sns { padding: 7px 16px; }
  .go { padding-bottom: 5px; }
}

@media (max-width: 480px) {
  .cta-row { gap: 12px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; padding: 15px 18px; }
  .hero-over { font-size: 15.5px; letter-spacing: 0.24em; }
  .hero-meta { gap: 8px 22px; letter-spacing: 0.22em; }
  form.lead-form { padding: 36px 20px 32px; }
  .submit-row .btn-submit, button.submit { width: 100%; justify-content: center; padding: 17px 20px; }
  .policy h2 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track, .h-letter, .d-hero h1.jump .h-letter, .hero-art .blk, .rail i, .sec-num.pop,
  .cline.in .cl-bar, .cline.in .cl-join, .cline.in .cl-blk { animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .btn, .stamp, .mark, .logo-mark, .card, .artwork img, .rail i, .sec-num, .main-nav a, button.submit, .link-tile { transition: none; }
}
