/* トップ（LP）。jun さんの完成イメージ（2026-10-30）に合わせる。
   空の絵のヒーロー → 波のオレンジの帯（悩み）→ 白（ナノリなら）→ クリーム（3ステップ）→ オレンジ（締め）→ 紺（フッター） */

/* ===== 共通 ===== */
main > section {
  padding: 120px 24px;
}
/* 日本語は文字のどこでも折り返すので、言葉のまとまりで折り返させる（対応しているブラウザだけ） */
h2,
h3 {
  text-wrap: balance;
  word-break: auto-phrase;
}
/* 見出しは読点で区切ったまとまりごとに改行する（html.mjs の phrases） */
.phrase {
  display: inline-block;
}
/* セクションの見出し（小さい一言・大きい見出し・説明） */
.sec-head {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.sec-head p {
  color: var(--muted);
  font-size: 14px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
/* 手書き風のメモ（フォントは pages.mjs の topHead で、メモの字だけ読み込む） */
.memo {
  font-family: "Yomogi", cursive;
  font-size: 22px;
  line-height: 1.5;
}
.sparks {
  color: var(--accent);
}

/* スクロールで入ってきた文をふわっと出す（reveal.js が html に motion をつけた時だけ） */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.motion .reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== ヒーロー。屋上パーティーの絵を全面に敷き、左に見出し、右上に手書きのメモ ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 900px);
  margin-top: -72px;
  padding: calc(72px + clamp(48px, 10vh, 110px)) 24px 240px;
  background: #cfe7fa;
}
/* 横長の画面では下（人と街並み）を基準に切り取る。上は空なので切れても困らない */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero-copy {
  max-width: 1112px;
  margin: 0 auto;
  display: grid;
  justify-items: start;
  gap: 20px;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.9);
}
.hero-catch {
  position: relative;
  /* 一番長い行（11文字）が幅375pxのスマホでも1行に収まる大きさ */
  font-size: clamp(26px, 7.4vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
}
/* 1行目のロゴ。上の「＼｜／」の分だけ高めにとり、見出しの字と大きさをそろえる */
.hero-logo {
  display: block;
  width: auto;
  height: 1.9em;
  margin: 0 0 0.1em -0.1em;
}
.hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 500;
}
.hero .btn {
  min-width: 260px;
  margin-top: 8px;
  text-shadow: none;
}
.hero-note {
  width: 260px;
  margin-top: -8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
/* 右上のメモ。少し傾け、下に人の方を指す矢印を描く */
.hero-memo {
  position: absolute;
  top: calc(72px + clamp(64px, 14vh, 140px));
  right: max(32px, calc((100vw - 1112px) / 2));
  transform: rotate(-8deg);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
}
.hero-memo::after {
  content: "";
  display: block;
  width: 90px;
  height: 46px;
  margin: 4px 0 0 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 46' fill='none' stroke='%231A2236' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M86 4C70 30 40 40 8 38M8 38l9-8M8 38l11 5'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* ===== 悩み。上下を波にしたオレンジの帯に、絵と文を左右交互に並べ、点線でつなぐ ===== */
/* 帯のオレンジは完成イメージに合わせ、明るく鮮やかに。下に向けてほんの少しだけ濃くする */
.worries {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  background: linear-gradient(#f87a2d, #f57026);
  color: #fff;
}
.worries::before,
.worries::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background: no-repeat center / 100% 100%;
}
.worries::before {
  bottom: 100%;
  margin-bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40C200 0 380 10 600 34S1000 60 1200 18V60H0z' fill='%23F87A2D'/%3E%3C/svg%3E");
}
.worries::after {
  top: 100%;
  margin-top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V24C1000 60 800 56 600 30S180 0 0 36z' fill='%23F57026'/%3E%3C/svg%3E");
}
.worries .sec-head h2,
.worries .sec-head p {
  color: #fff;
}
/* 見出しの下の短い線 */
.worries .sec-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.8);
}
.worry-path {
  position: absolute;
  inset: 260px 0 120px;
  width: 100%;
  height: calc(100% - 380px);
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}
/* 帯の高さで線が伸び縮みしても、太さと点の間隔は画面上の px で固定する（線そのものに付ける） */
.worry-path path {
  vector-effect: non-scaling-stroke;
}
.worry-list {
  position: relative;
  list-style: none;
  max-width: 900px;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  gap: 56px;
}
/* 絵と文を横に並べ、偶数番目は左右を入れ替える */
.worry {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}
.worry img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(120, 40, 0, 0.25);
  transform: rotate(-3deg);
}
.worry:nth-child(even) {
  grid-template-columns: 1fr 0.9fr;
}
.worry:nth-child(even) img {
  order: 1;
  transform: rotate(3deg);
}
.worry h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
}
.badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent2);
  font-size: 14px;
  font-weight: 800;
}
/* 明るいオレンジに白い小さな字なので、少し太くして読みやすくする */
.worry p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
}

/* ===== ナノリなら。真ん中にスマホ、左右に特徴を2つずつ ===== */
.answers {
  padding-top: 160px;
}
.accent {
  color: var(--accent);
}
.features {
  max-width: 1100px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  align-items: center;
  gap: 40px;
}
.feature-col {
  display: grid;
  gap: 56px;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}
.feature-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(242, 118, 46, 0.3);
}
.feature-ic .ic {
  width: 26px;
  height: 26px;
}
.feature p {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
/* 真ん中のスマホ。後ろにうすいオレンジの丸を敷く */
.feature-phone {
  position: relative;
  z-index: 0;
  justify-self: center;
}
.feature-phone::before {
  content: "";
  position: absolute;
  inset: 10% -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(var(--accent-soft), transparent 70%);
}
.phone {
  width: 270px;
  padding: 10px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 24px 48px rgba(26, 34, 54, 0.2);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background: #fff;
}

/* 特徴の下の見本カード（cards.mjs） */
.mini-card {
  max-width: 320px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 34, 54, 0.08);
  font-size: 13px;
}
.card-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  font-size: 12px;
}
.chip.on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent2);
}
.mini-profile,
.mini-qr,
.mini-vanish {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f7cdb2;
  color: var(--accent2);
  font-weight: 800;
}
.mini-profile small,
.mini-qr small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.toggles {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
/* スイッチ（右に寄っていればオン） */
.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #d9dce2;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}
.toggle.on {
  background: var(--accent);
}
.toggle.on::after {
  left: 16px;
}
.qr-big {
  flex: none;
  width: 48px;
  height: 48px;
}
.pill {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.clock {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.mini-vanish p {
  font-size: 12px;
  line-height: 1.6;
}
.mini-vanish b {
  color: var(--accent2);
}

/* ===== ゲーム。3つのカードを横に並べる ===== */
.games {
  padding-top: 40px;
}
.games .eyebrow {
  color: var(--accent2);
}
.game-list {
  list-style: none;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 32px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 34, 54, 0.06);
  text-align: center;
}
.game-emoji {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 34px;
}
.game h3 {
  font-size: 18px;
  font-weight: 800;
}
.game p {
  color: var(--muted);
  font-size: 13px;
}
.game .chips {
  justify-content: center;
  margin-top: 4px;
}

/* ===== 3ステップ。上を弧にしたクリーム色に、白いカードを「›」でつなぐ ===== */
.how {
  border-radius: 50% 50% 0 0 / 64px 64px 0 0;
  background: #fff6ee;
}
.how .sec-head h2 em {
  margin: 0 0.15em;
  color: var(--accent);
  font-size: 1.35em;
  font-style: normal;
  white-space: nowrap;
}
/* 参加する人・幹事さんのタブ。ラジオボタンは見えなくして、ラベルをタブの形にする */
.role-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-tabs {
  display: flex;
  width: fit-content;
  margin: 40px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(232, 96, 28, 0.1);
}
.role-tabs label {
  padding: 10px 28px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#role-guest:checked ~ .role-tabs [for="role-guest"],
#role-host:checked ~ .role-tabs [for="role-host"] {
  background: var(--accent);
  color: #fff;
}
#role-guest:focus-visible ~ .role-tabs [for="role-guest"],
#role-host:focus-visible ~ .role-tabs [for="role-host"] {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
/* 選ばれていない方の3ステップは隠す */
#role-guest:checked ~ .steps-host,
#role-host:checked ~ .steps-guest {
  display: none;
}
.steps {
  list-style: none;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  gap: 12px;
}
.step {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  overflow: hidden;
  padding: 28px 24px 0;
  border-radius: 24px;
  background: linear-gradient(#fff 55%, #fff1e6);
  box-shadow: 0 10px 30px rgba(232, 96, 28, 0.08);
  text-align: center;
}
.step h3 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}
.step-num {
  color: var(--accent);
  font-size: 34px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}
.step p {
  color: var(--muted);
  font-size: 13px;
}
/* 画面の一部だけを、スマホの上半分のような枠で見せる */
.step-shot {
  align-self: end;
  width: 200px;
  height: 190px;
  margin: 12px auto 0;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #fff;
}
.step-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}
.step-arrow .ic {
  width: 28px;
  height: 28px;
}

/* ===== 締め。オレンジの帯に、手書きのメモと街並みのシルエット ===== */
main > .closing {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 110px 24px 170px;
  background: linear-gradient(#f87f33, #f57026);
  color: #fff;
  text-align: center;
}
.closing h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
}
.closing-sparks {
  width: 30px;
  color: #fff;
}
.closing-memo {
  position: absolute;
  top: 80px;
  left: max(24px, calc((100vw - 1100px) / 2));
  transform: rotate(-10deg);
}
.btn.light {
  position: relative;
  z-index: 1;
  min-width: 240px;
  margin-top: 10px;
  background: #fff;
  color: var(--accent2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn.light:hover {
  background: #fff3ea;
}
.skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
}
.skyline .far {
  fill: rgba(255, 255, 255, 0.12);
}
.skyline .near {
  fill: rgba(255, 255, 255, 0.18);
}

/* ===== タブレット・スマホ ===== */
@media (max-width: 900px) {
  .game-list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .features {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .feature-phone {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
}
@media (max-width: 760px) {
  main > section {
    padding: 88px 20px;
  }
  /* 縦長の画面いっぱいにすると、文と人の絵の間が空きすぎる。高さは文に合わせ、下は人と街並みの分だけ空ける */
  .hero {
    min-height: auto;
    padding: calc(72px + 32px) 20px 62vw;
  }
  .hero-memo {
    display: none;
  }
  .worries {
    padding-top: 56px;
  }
  .worries::before,
  .worries::after {
    height: 32px;
  }
  .worry-list {
    gap: 48px;
  }
  /* 絵を上、文を下に積む */
  .worry,
  .worry:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .worry img,
  .worry:nth-child(even) img {
    order: 0;
    width: 86%;
    justify-self: center;
  }
  .answers {
    padding-top: 112px;
  }
  .how {
    border-radius: 50% 50% 0 0 / 32px 32px 0 0;
  }
  main > .closing {
    padding: 72px 20px 140px;
  }
  .closing-memo {
    position: static;
    margin-bottom: 4px;
    font-size: 18px;
  }
}
