/* ネタアプリ作業会@京都 #1 — Direction C「作業会の情景」 (ペン線画+淡彩 / corner=0)
   tokens: chosen-direction.json (PROVISIONAL) / 参照: interaction-encyclopedia (fade-up-reveal, css-scroll-driven-reveal, card-lift) */

:root {
  --bg: #FAFAF7;
  --ink: #241F1A;
  --accent: #E8482B;
  --surface: #35A29F;
  --soft: #F1F0EA;
  --line: rgba(36, 31, 26, 0.22);
  --line-strong: rgba(36, 31, 26, 0.85);
  --muted: rgba(36, 31, 26, 0.66);
  --tape-yellow: #F2D06B;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 手描きアクセント ---------- */
.hand { font-family: "Yusei Magic", "Noto Sans JP", sans-serif; }

.tape {
  display: inline-block;
  padding: 2px 14px;
  background: rgba(53, 162, 159, 0.18);
  transform: rotate(-1.2deg);
}
.tape.-red { background: rgba(232, 72, 43, 0.14); transform: rotate(0.8deg); }
.tape.-yellow { background: rgba(242, 208, 107, 0.32); transform: rotate(-0.6deg); }

/* ---------- HERO ---------- */
.hero { border-bottom: 1.5px solid var(--line-strong); overflow: hidden; position: relative; }
.hero > .wrap { position: relative; z-index: 1; }

/* FV背景の浮遊モチーフ (フラットブロブ・キーアウト透過PNG / ちょっとしたアニメーション。参考画像 8/22) */
.hero-motifs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.motif {
  position: absolute;
  opacity: 0.9;
  animation: floaty 8s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes floaty {
  from { transform: translateY(-9px) rotate(-2deg); }
  to   { transform: translateY(9px) rotate(2deg); }
}
.m1 { right: -3%;  bottom: 4%;  width: 190px; animation-duration: 9s; }
.m2 { left: -3.5%; bottom: 12%; width: 170px; animation-duration: 8s;   animation-delay: -2s; }
.m3 { left: 46%;   top: -6%;    width: 150px; animation-duration: 7s;   animation-delay: -1s; }
.m4 { left: 37%;   bottom: 2%;  width: 120px; animation-duration: 10s;  animation-delay: -4s; }
.m5 { right: -2%;  top: -5%;    width: 200px; animation-duration: 8.5s; animation-delay: -3s; }
.m6 { left: 2%;    top: 6%;     width: 110px; animation-duration: 6.5s; animation-delay: -2.5s; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero-copy .kicker {
  font-size: 17px;
  color: var(--accent);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.9vw, 52px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.hero-copy .sub { margin: 0 0 14px; font-size: 17px; }
.hero-copy .hosts-line { margin: 0 0 26px; font-size: 14px; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.badges li {
  border: 1.5px solid var(--line-strong);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(36, 31, 26, 0.1);
}

.hero-figure {
  position: relative;
  /* figure既定マージンをリセットし、広い画面では右余白へはみ出して主役サイズに (viewport端-20pxで頭打ち) */
  margin: 0 clamp(-140px, calc((1080px - 100vw) / 2 + 20px), 0px) 0 0;
}
.hero-figure img {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 10px;
  box-shadow: 12px 12px 0 rgba(53, 162, 159, 0.16);
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.06em;
  padding: 17px 44px;
  border: 1.5px solid var(--line-strong);
  box-shadow: 5px 5px 0 rgba(36, 31, 26, 0.85);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta:hover, .cta:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(36, 31, 26, 0.85); }
.cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(36, 31, 26, 0.85); }
.cta-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

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

/* ---------- セクション共通 ---------- */
section { padding: 84px 0; }
section.-alt { background: var(--soft); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }

.sec-head { margin-bottom: 44px; }
.sec-head .no {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--surface);
  display: block;
  margin-bottom: 6px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  border-bottom: 3px solid var(--ink);
  display: inline-block;
  padding-bottom: 6px;
}
.sec-head .lede { margin: 18px 0 0; max-width: 620px; }

/* ---------- WHAT ---------- */
.what-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.what-benefit {
  min-width: 0;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  box-shadow: 6px 6px 0 rgba(36, 31, 26, 0.08);
}
.what-benefit figure { margin: 0; border-bottom: 1.5px solid var(--line); background: #fff; }
.what-benefit figure img { width: 100%; aspect-ratio: 8 / 5; object-fit: contain; }
.what-benefit-copy { padding: 22px 24px 26px; }
.what-label { display: block; margin-bottom: 6px; color: var(--surface); font-size: 14px; letter-spacing: 0.08em; }
.what-benefit h3, .goal-head h3 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.55; }
.what-benefit p { margin: 10px 0 0; font-size: 15px; }

.goal-panel {
  margin-top: 36px;
  padding: 28px 30px;
  border: 1.5px dashed var(--line-strong);
  background: rgba(242, 208, 107, 0.12);
}
.goal-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.goal-head .what-label { margin: 0; white-space: nowrap; }
.goal-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.goal-card { min-width: 0; padding: 18px 20px; border: 1.5px solid var(--line-strong); background: #fff; }
.goal-card.-min { box-shadow: 4px 4px 0 rgba(53, 162, 159, 0.18); }
.goal-card.-want { box-shadow: 4px 4px 0 rgba(232, 72, 43, 0.14); }
.goal-tag { display: block; margin-bottom: 8px; color: var(--surface); font-size: 13px; }
.goal-card.-want .goal-tag { color: var(--accent); }
.goal-card p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.75; }
.goal-arrow { align-self: center; color: var(--accent); font-size: 26px; font-weight: 900; }
.goal-note { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }

.promise-block { margin-top: 46px; padding-top: 30px; border-top: 3px solid var(--ink); }
.promise-title { margin: 0 0 8px; color: var(--accent); font-size: 17px; }

.promise { list-style: none; margin: 0; padding: 0; }
.promise li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1.5px dashed var(--line);
}
.promise .num {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--surface);
}
.promise p { margin: 4px 0 0; font-size: 17.5px; font-weight: 700; line-height: 1.75; }
.promise .honest { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 400; color: var(--muted); }

/* ---------- SHOWCASE ---------- */
.showcase-figure { position: relative; }
.showcase-figure img { border: 1.5px solid var(--line-strong); background: #fff; }
.showcase-status {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-2deg);
  background: var(--tape-yellow);
  border: 1.5px solid var(--line-strong);
  padding: 8px 22px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 4px 4px 0 rgba(36, 31, 26, 0.2);
}
.showcase-cap { margin-top: 14px; font-size: 14.5px; }
.showcase-cap b { color: var(--accent); }

/* ---------- FLOW ---------- */
.flow-rail { position: relative; height: 4px; background: var(--line); margin: 8px 0 34px; overflow: hidden; }
.flow-rail .bar {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.flow-rail.is-visible .bar { transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .flow-rail .bar {
    transition: none;
    animation: rail-grow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }
  @keyframes rail-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.flow-note { font-size: 14px; color: var(--muted); margin: 0 0 20px; }

.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.step {
  background: #fff;
  border: 1.5px solid var(--line-strong);
  box-shadow: 4px 4px 0 rgba(36, 31, 26, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: 4px 12px 0 rgba(36, 31, 26, 0.08), 4px 4px 0 rgba(36, 31, 26, 0.12); }
.step img { border-bottom: 1.5px solid var(--line); }
.step .body { padding: 16px 18px 20px; }
.step .t {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  padding: 2px 10px;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.step p { margin: 0; font-size: 14px; line-height: 1.8; }

/* ---------- HONEST ---------- */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.honest-col { border: 1.5px solid var(--line-strong); background: #fff; padding: 28px 30px; box-shadow: 5px 5px 0 rgba(36, 31, 26, 0.08); }
.honest-col.-yes { border-top: 6px solid var(--surface); }
.honest-col.-no { border-top: 6px solid var(--ink); }
.honest-col h3 { margin: 0 0 16px; font-size: 20px; font-weight: 900; }
.honest-col ul { margin: 0; padding: 0; list-style: none; }
.honest-col li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1.5px dashed var(--line); font-size: 15px; }
.honest-col li:last-child { border-bottom: 0; }
.honest-col.-yes li::before { content: "○"; position: absolute; left: 2px; top: 10px; color: var(--surface); font-weight: 900; }
.honest-col.-no li::before { content: "×"; position: absolute; left: 2px; top: 10px; color: var(--accent); font-weight: 900; }

/* ---------- OVERVIEW ---------- */
.ov-table { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid var(--line-strong); box-shadow: 6px 6px 0 rgba(53, 162, 159, 0.14); }
.ov-table th, .ov-table td { text-align: left; padding: 15px 22px; border-bottom: 1.5px solid var(--line); vertical-align: top; font-size: 15.5px; }
.ov-table tr:last-child th, .ov-table tr:last-child td { border-bottom: 0; }
.ov-table th { width: 9.5em; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ov-table .price { font-weight: 900; font-size: 18px; }
.ov-table .price small { font-weight: 400; font-size: 12.5px; color: var(--muted); display: block; }

.ov-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- AFTER + HOSTS ---------- */
.after-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.after-figure img { border: 1.5px solid var(--line-strong); box-shadow: 8px 8px 0 rgba(242, 208, 107, 0.35); }
.hosts-box { margin-top: 26px; border: 1.5px dashed var(--line-strong); padding: 18px 22px; background: #fff; }
.hosts-box .names { font-size: 19px; font-weight: 900; }
.hosts-box p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border: 1.5px solid var(--line-strong); background: #fff; margin-bottom: 14px; box-shadow: 3px 3px 0 rgba(36, 31, 26, 0.08); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px; font-size: 15px; border-top: 1.5px dashed var(--line); margin: 0 0 0; padding-top: 12px; }

/* ---------- FINAL ---------- */
.final { text-align: center; padding-bottom: 120px; }
.final .big-date {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 6px;
}
.final .big-place { font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; margin: 0 0 40px; }
.steps3 { display: flex; justify-content: center; align-items: stretch; gap: 0; margin: 0 0 44px; flex-wrap: wrap; }
.steps3 .s3 {
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 18px 22px;
  width: 240px;
  box-shadow: 4px 4px 0 rgba(36, 31, 26, 0.1);
  text-align: left;
}
.steps3 .s3 .n { font-size: 13px; font-weight: 700; color: var(--surface); letter-spacing: 0.15em; display: block; margin-bottom: 6px; }
.steps3 .s3 p { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.steps3 .arrow { align-self: center; padding: 0 12px; font-size: 24px; font-weight: 900; color: var(--accent); }
.final .re { margin: 0 0 30px; font-size: 15px; color: var(--muted); }

footer { border-top: 1.5px solid var(--line-strong); padding: 26px 0 110px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Sticky CTA (モバイル) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(250, 250, 247, 0.96);
  border-top: 1.5px solid var(--line-strong);
  padding: 10px 14px;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  transform: translateY(105%);
  transition: transform 0.3s var(--ease);
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .d { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.sticky-cta .cta { font-size: 15px; padding: 11px 20px; box-shadow: 3px 3px 0 rgba(36, 31, 26, 0.85); white-space: nowrap; }

/* ---------- reveal (fade-up-reveal: IO + transition / 動き図鑑準拠) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.flow-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.flow-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.flow-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- reduced motion (全モーション無効化) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-rail .bar { transform: scaleX(1); transition: none; animation: none; }
  .cta, .step, .sticky-cta { transition: none; }
  .step:hover { transform: none; }
  .motif { animation: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .what-benefits, .after-grid, .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .goal-steps { grid-template-columns: 1fr; }
  .goal-arrow { justify-self: center; transform: rotate(90deg); }
  .hero-grid { padding: 34px 0 48px; }
  .hero-figure { order: -1; }
  .honest-grid { grid-template-columns: 1fr; }
  .m3, .m4 { display: none; }
  .m1 { width: 130px; } .m2 { width: 110px; } .m5 { width: 140px; } .m6 { width: 80px; }
  .motif { opacity: 0.8; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .what-benefit-copy { padding: 18px 18px 22px; }
  .goal-panel { padding: 22px 18px; }
  .goal-head { display: block; }
  .goal-head .what-label { margin-bottom: 6px; }
  .promise li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .promise .num { font-size: 44px; }
  .promise p { font-size: 16px; }
  .flow-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .steps3 { flex-direction: column; align-items: center; }
  .steps3 .arrow { transform: rotate(90deg); padding: 6px 0; }
  .steps3 .s3 { width: min(320px, 100%); }
  .ov-table th { width: 7em; white-space: normal; }
}
