*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy-deep: #060c22;
  --window: #0a1330;
  --window-2: #101c44;
  --navy-line: #2b3f78;
  --gold: #f0cf5a;
  --gold-deep: #c9a13a;
  --blue: #4a80e0;
  --blue-lt: #7fa8f0;
  --white: #ffffff;
  --ink: #eef2ff;
  --ink-dim: #aeb9e0;
  --muted: #99a4d4;
  --green: #7ee0a0;
  --red: #ff7a90;
  --bg-image: url('https://referralmarket.jp/images/rpg_hero_bg.webp');
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DotGothic16', 'Noto Sans JP', sans-serif;
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(rgba(6,10,28,0.86), rgba(6,10,28,0.92)),
    var(--bg-image) center top / cover fixed no-repeat;
  background-color: var(--navy-deep);
  -webkit-font-smoothing: none;
  image-rendering: -webkit-optimize-contrast;
}

/* Latin/数字は 8bit フォント */
.px { font-family: 'Press Start 2P', 'DotGothic16', monospace; }

/* SVGアイコン（絵文字の代替） */
.ico { display: inline-block; fill: currentColor; vertical-align: -0.12em; }
.ico-tri { width: 0.62em; height: 0.76em; margin-right: 0.4em; }
.ico-check-lg { display: block; width: 46px; height: 46px; margin: 0 auto 16px; }

a { color: var(--gold); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.75; }

/* ===== ドラクエ風 コマンドウィンドウ ===== */
.dq-window {
  background: rgba(10, 19, 48, 0.94);
  border: 4px solid var(--white);
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.55),
    inset 0 0 0 2px rgba(120,150,220,0.18),
    0 14px 44px rgba(0,0,0,0.55);
  position: relative;
}

/* ===== Header ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 10, 28, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--navy-line);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; }
.logo-text {
  font-family: 'Press Start 2P', 'DotGothic16', monospace;
  font-size: 13px; color: var(--gold); letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.header-cta {
  font-family: 'DotGothic16', sans-serif;
  padding: 9px 18px;
  background: var(--window);
  border: 2px solid var(--white);
  border-radius: 8px;
  color: var(--gold);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: 0 3px 0 rgba(0,0,0,0.5);
  transition: all 0.15s;
}
.header-cta:hover { background: var(--window-2); opacity: 1; transform: translateY(-1px); }

/* ===== 共通セクション ===== */
main { position: relative; z-index: 1; }
section { padding: 90px 24px; position: relative; }
.container { max-width: 980px; margin: 0 auto; }

.eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; letter-spacing: 0.15em; color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.section-title {
  font-family: 'DotGothic16', sans-serif;
  font-size: clamp(24px, 3.6vw, 40px); font-weight: 700;
  color: var(--white); line-height: 1.5; margin-bottom: 22px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.55);
}
.section-title .accent { color: var(--gold); }
.section-lead { font-size: 15px; color: var(--ink-dim); max-width: 720px; line-height: 2.1; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 20px 90px; text-align: center;
  position: relative;
  background:
    linear-gradient(rgba(6,10,28,0.3), rgba(6,10,28,0.6)),
    var(--bg-image) center center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(6,10,28,0.85) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; width: 100%; }

.hero-logo {
  width: min(360px, 78vw);
  height: auto;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.6));
}
.hero-status {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; letter-spacing: 0.12em; color: var(--gold);
  margin-bottom: 28px;
  padding: 9px 16px;
  background: rgba(6,10,28,0.74);
  border: 1px solid rgba(240,207,90,0.4);
  border-radius: 6px;
  animation: blink 1.2s steps(1) infinite;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.9);
}
@keyframes blink { 0%,60% { opacity: 1; } 61%,100% { opacity: 0.25; } }

.hero-window {
  padding: 28px 32px;
  margin-bottom: 36px;
  text-align: left;
}
.hero-catch {
  font-family: 'DotGothic16', sans-serif;
  font-size: clamp(22px, 4.5vw, 40px); font-weight: 700; line-height: 1.5;
  color: var(--white); text-align: center; margin-bottom: 20px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}
.hero-catch .accent { color: var(--gold); }
.hero-msg {
  font-size: 15px; color: var(--ink); line-height: 2.1;
}
.hero-msg .cursor { color: var(--gold); }

.hero-taglines {
  display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center;
}
.hero-tag {
  font-family: 'DotGothic16', sans-serif;
  padding: 10px 18px;
  background: rgba(10,19,48,0.9);
  border: 2px solid var(--white);
  border-radius: 8px;
  font-size: 16px; font-weight: 700; color: var(--white);
  box-shadow: 0 3px 0 rgba(0,0,0,0.5);
}
.hero-tag .verb { color: var(--gold); }

.btn-dq {
  display: inline-block;
  font-family: 'DotGothic16', sans-serif;
  padding: 18px 44px;
  background: var(--window);
  border: 3px solid var(--white);
  border-radius: 10px;
  color: var(--gold); cursor: pointer;
  font-size: 17px; font-weight: 700; letter-spacing: 0.1em;
  box-shadow: 0 5px 0 rgba(0,0,0,0.55), inset 0 0 0 2px rgba(120,150,220,0.2);
  transition: all 0.12s ease;
  position: relative;
}
.btn-dq::before {
  content: '';
  display: inline-block;
  width: 13px; height: 15px;
  margin-right: 10px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0 L10 6 L0 12 Z' fill='%23f0cf5a'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: blink 1.2s steps(1) infinite;
}
.btn-dq:hover { transform: translateY(-2px); opacity: 1; background: var(--window-2); box-shadow: 0 7px 0 rgba(0,0,0,0.55); }
.btn-dq:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.55); }

.hero-badges {
  display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--ink-dim);
}
.hero-badges span {
  padding: 7px 14px; background: rgba(10,19,48,0.8);
  border: 1px solid var(--navy-line); border-radius: 6px;
}
.hero-badges b { color: var(--gold); }

/* ===== Concept ===== */
.concept-quote {
  font-family: 'DotGothic16', sans-serif;
  font-size: clamp(26px, 4.5vw, 46px); font-weight: 700;
  line-height: 1.5; margin: 36px 0 48px; text-align: center;
  color: var(--white); text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}
.concept-quote .highlight { color: var(--gold); }

.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.pair {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.pair-game {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; letter-spacing: 0.05em; color: var(--gold);
  min-width: 78px;
}
.pair-arrow { color: var(--muted); }
.pair-life { font-size: 15px; color: var(--ink); }

/* ===== Core Check ===== */
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.core-card { padding: 32px 24px; }
.core-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.core-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 18px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.core-question {
  font-family: 'DotGothic16', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 18px; line-height: 1.5;
}
.core-list { list-style: none; padding: 0; }
.core-list li {
  padding: 7px 0 7px 22px; position: relative;
  font-size: 13px; color: var(--ink-dim); line-height: 1.7;
}
.core-list li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }

/* ===== Phases ===== */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.phase-card { padding: 30px 24px; }
.phase-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px;
}
.phase-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px; color: var(--gold); margin-bottom: 12px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.phase-jp { font-size: 17px; color: var(--white); font-weight: 700; margin-bottom: 18px; }
.phase-desc { font-size: 13px; color: var(--ink-dim); line-height: 1.9; margin-bottom: 18px; }
.phase-goals { list-style: none; padding: 0; border-top: 2px solid var(--navy-line); padding-top: 16px; }
.phase-goals li {
  padding: 6px 0 6px 24px; position: relative;
  font-size: 12px; color: var(--ink-dim); line-height: 1.7;
}
.phase-goals li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 11 L9 18 L22 3' fill='none' stroke='%237ee0a0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== Form ===== */
.form-section { padding: 90px 20px; }
.form-wrap { max-width: 640px; margin: 0 auto; padding: 44px 40px; }
.form-title {
  font-family: 'DotGothic16', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--white); text-align: center; margin-bottom: 8px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}
.form-title .accent { color: var(--gold); }
.form-intro {
  font-size: 13px; color: var(--ink-dim); margin: 24px 0 30px; line-height: 2;
  padding: 16px 18px; background: rgba(74,128,224,0.1); border-left: 3px solid var(--gold); border-radius: 4px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px;
  letter-spacing: 0.04em; font-weight: 700;
}
.form-group label .req { color: var(--red); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 15px;
  background: rgba(4,8,24,0.85);
  border: 2px solid var(--navy-line);
  border-radius: 8px;
  color: var(--ink); font-size: 16px;
  font-family: 'DotGothic16', sans-serif;
  transition: border-color 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--window); color: var(--ink); }

.form-submit {
  width: 100%; padding: 17px;
  background: var(--window);
  border: 3px solid var(--white);
  border-radius: 10px;
  color: var(--gold); cursor: pointer;
  font-family: 'DotGothic16', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.08em;
  box-shadow: 0 5px 0 rgba(0,0,0,0.55), inset 0 0 0 2px rgba(120,150,220,0.2);
  transition: all 0.12s ease; margin-top: 12px;
}
.form-submit::before {
  content: '';
  display: inline-block;
  width: 12px; height: 14px;
  margin-right: 8px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0 L10 6 L0 12 Z' fill='%23f0cf5a'/%3E%3C/svg%3E") no-repeat center / contain;
}
.form-submit:hover { transform: translateY(-2px); background: var(--window-2); box-shadow: 0 7px 0 rgba(0,0,0,0.55); }
.form-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.55); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-note { font-size: 11px; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.8; }
.form-note a { color: var(--ink-dim); }

.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { display: block; font-size: 44px; color: var(--gold); margin-bottom: 16px; }
.form-success h3 {
  font-family: 'DotGothic16', sans-serif;
  font-size: 22px; color: var(--white); margin-bottom: 14px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.form-success p { font-size: 14px; color: var(--ink-dim); line-height: 2; }

/* ===== Footer ===== */
footer { padding: 44px 20px; border-top: 2px solid var(--navy-line); text-align: center; position: relative; z-index: 1; background: rgba(6,10,28,0.7); }
.footer-mark {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 12px; line-height: 2;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  header { padding: 10px 14px; }
  .logo img { height: 34px; }
  .logo-text { font-size: 10px; }
  .header-cta { padding: 7px 12px; font-size: 11px; }
  section { padding: 60px 16px; }
  .hero { padding: 100px 16px 70px; background-attachment: scroll; }
  .hero-logo { width: min(280px, 80vw); }
  .hero-window { padding: 22px 20px; }
  .hero-taglines { flex-direction: column; gap: 10px; }
  .hero-tag { font-size: 15px; }
  .btn-dq { padding: 16px 32px; font-size: 15px; }
  .pairs { grid-template-columns: 1fr; }
  .core-grid { grid-template-columns: 1fr; gap: 16px; }
  .phase-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 30px 20px; }
}
