/* i-LUMINOUS 学生向け LP。色と書体は i-LUMINOUS の決まり（暗い地＋グリッド＋ブランドブルー・Noto Sans JP） */
:root {
  --ground: #0A0C12;
  --ground-2: #10131C;
  --paper: #FCFBF8;
  --ink: #18191B;
  --blue: #354CD6;
  --blue-lt: #8A9BFF;
  --coral: #FF6B53;
  --text: #E9EBF2;
  --muted: #A3A9BA;
  --line: rgba(138, 155, 255, 0.16);
  --grid: rgba(138, 155, 255, 0.06);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  /* 日本語を語の途中で折らない（<wbr> は BudouX で入れてある） */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
.nw { white-space: nowrap; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }

/* 上のバー */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-chip { background: var(--paper); border-radius: 10px; padding: 5px; line-height: 0; }
.brand-name { font-weight: 700; letter-spacing: 0.04em; }
.bar-cta {
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  transition: background-color .2s ease, border-color .2s ease;
}
.bar-cta:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* 最初の画面 */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,18,.985) 0%, rgba(10,12,18,.96) 40%, rgba(10,12,18,.35) 62%, rgba(10,12,18,0) 80%),
    linear-gradient(0deg, var(--ground) 0%, rgba(10,12,18,0) 30%);
}
.hero-text { position: relative; z-index: 2; padding: 140px var(--gutter) clamp(56px, 9vh, 110px); max-width: 900px; }
.hero h1 { font-size: clamp(38px, 6vw, 84px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; }
.hero h1 .line { display: block; }
.lead { margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); color: #D5D9E6; max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .line + .line { animation-delay: .18s; }
  .lead, .hero-actions { animation: rise .9s .36s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 16px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-main { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(53,76,214,.9); }
.btn-main:hover { background: #4259E6; transform: translateY(-1px); }
.btn-sub { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-sub:hover { background: rgba(255,255,255,.08); }
.btn-large { min-height: 60px; padding: 0 34px; font-size: 18px; }

/* 見出しの共通 */
section h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -0.01em; }
.sec-lead { margin-top: 14px; color: var(--muted); max-width: 36em; }
.text-link {
  display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blue-lt);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s ease;
}
.text-link:hover { color: #fff; }

/* 作品 */
.works, .tools, .ideas, .steps { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter) 0; }
.feature { margin-top: 48px; display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.screen {
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 70px -30px rgba(53,76,214,.75);
}
.feature-body h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: .01em; }
.feature-body p { margin-top: 14px; color: #D0D4E0; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 4px; background: rgba(53,76,214,.22); color: #DDE2FF; }

.trio { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 0.8fr 1.4fr 0.9fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.game img { border-radius: 10px; border: 1px solid rgba(255,255,255,.16); }
.game-toilet img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; width: 100%; }
.game-pan { margin-top: 72px; }
.game-sengoku { margin-top: 24px; }
.game-sengoku img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.game h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.game p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* 道具 */
.tools-grid { margin-top: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.tool { padding: 30px 0 4px; }
.tool + .tool { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.tool:first-child { padding-right: clamp(24px, 4vw, 56px); }
.tool h3 { font-size: 24px; font-weight: 900; color: var(--blue-lt); letter-spacing: .02em; }
.tool p { margin-top: 12px; color: #D0D4E0; }
.tool .tool-meta { font-size: 14px; color: var(--muted); }

/* たとえば */
.idea-list { list-style: none; padding: 0; margin: 34px 0 0; }
.idea-list li { display: grid; grid-template-columns: 11em 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.idea-list li:first-child { border-top: 1px solid var(--line); }
.idea-list strong { font-size: 19px; font-weight: 900; }
.idea-list span { color: #D0D4E0; }
.ideas-note { margin-top: 22px; color: var(--muted); }

/* 流れ（順番があるので番号を付ける） */
.step-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--blue); }
.step-list .num { font-size: 15px; font-weight: 900; color: var(--blue-lt); }
.step-list h3 { margin-top: 6px; font-size: 20px; font-weight: 700; }
.step-list p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* 申し込み（ロゴは紙色の上に置く決まり） */
.cta { margin-top: clamp(80px, 12vw, 150px); background: var(--paper); color: var(--ink); }
.cta-inner { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 110px) var(--gutter); }
.cta-logo { width: 72px; height: 72px; }
.cta h2 { margin-top: 22px; color: var(--ink); }
.cta p { margin-top: 14px; color: #4A4D57; }
.cta .btn { margin-top: 30px; }
.cta-inner::after { content: ""; display: block; width: 64px; height: 3px; background: var(--coral); margin-top: 48px; }

.foot { padding: 32px var(--gutter) 40px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* スマホ */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .game-pan { grid-column: 1 / -1; margin-top: 0; order: -1; }
  .game-sengoku { margin-top: 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool + .tool { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 26px; }
  .tool:first-child { padding-right: 0; }
  .idea-list li { grid-template-columns: 1fr; gap: 4px; }
  .step-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 820px; }
  .hero-bg { bottom: auto; height: 470px; }
  .hero-bg img { object-position: 74% 20%; }
  .hero::after {
    background: linear-gradient(0deg, var(--ground) 0%, var(--ground) 44%, rgba(10,12,18,.55) 52%, rgba(10,12,18,0) 64%);
  }
  .hero-text { padding-top: 400px; }
  .bar-cta { display: none; }
  .hero-actions .btn { width: 100%; }
  .trio { gap: 24px 16px; }
  .game h3 { font-size: 17px; }
  .brand-name { font-size: 15px; }
}
