/* ==========================================================
   Forkroad LP — ダークネイビー × ゴールドの現代ファンタジー
   ========================================================== */

:root {
  --night: #0b1020;
  --night-soft: #101731;
  --night-deep: #070b18;
  --panel: #121a36;
  --line: rgba(215, 178, 109, 0.22);
  --line-faint: rgba(215, 178, 109, 0.12);
  --gold: #d7b26d;
  --gold-bright: #ecd39a;
  --gold-deep: #a9853f;
  --text: #e8e4d8;
  --text-soft: #a8a795;

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --content-width: 1080px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--text);
  background-color: var(--night);
  /* 星屑のような紙の目 */
  background-image: radial-gradient(rgba(236, 211, 154, 0.045) 1px, transparent 1px);
  background-size: 5px 5px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(215, 178, 109, 0.3);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.wrap {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

br.lg {
  display: inline;
}
@media (max-width: 720px) {
  br.lg {
    display: none;
  }
}

/* ---------- header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.header-status {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(120px, 16vw, 170px);
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(30, 42, 84, 0.55), transparent 65%),
    radial-gradient(ellipse 60% 45% at 20% 90%, rgba(215, 178, 109, 0.06), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-en {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: clamp(18px, 3vw, 28px);
  opacity: 0;
  animation: fade-settle 1s ease 0.15s forwards;
}

.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  letter-spacing: 0.1em;
  line-height: 1.65;
  margin-bottom: clamp(20px, 3vw, 30px);
  opacity: 0;
  animation: fade-settle 1.2s var(--ease-out) 0.4s forwards;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: clamp(28px, 4vw, 40px);
  opacity: 0;
  animation: fade-settle 1.1s ease 0.9s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fade-settle 1.1s ease 1.25s forwards;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

.hero-phone {
  justify-self: center;
  width: min(320px, 78vw);
  /* 下端をセクション境界で切り、地図が続いている気配を残す */
  margin-bottom: calc(clamp(52px, 8vw, 96px) * -1);
  transform: translateY(clamp(10px, 2vw, 24px));
  opacity: 0;
  animation: rise-settle 1.4s var(--ease-out) 0.7s forwards;
}

/* ---------- 金ボタン（エンボス風） ---------- */

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 15px 34px;
  color: #2a2008;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  border: 1px solid rgba(236, 211, 154, 0.8);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.7),
    0 6px 20px -8px rgba(215, 178, 109, 0.45);
  white-space: nowrap;
}

.btn-gold.is-soon {
  cursor: default;
  filter: saturate(0.82);
}

/* ---------- section 共通 ---------- */

.section {
  padding-block: clamp(72px, 11vw, 130px);
  border-top: 1px solid var(--line-faint);
}

/* ─◆ 見出し ◆─ : アプリ内の見出し記号を LP でも使う */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-label::before,
.section-label::after {
  content: "";
  width: clamp(28px, 5vw, 56px);
  height: 1px;
  background: var(--line);
}

.section-label .orn {
  font-size: 0.6rem;
  transform: translateY(-1px);
}

.section-label--left {
  justify-content: flex-start;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: clamp(22px, 3.5vw, 32px);
}

.section-title--center {
  text-align: center;
}

.body-text {
  font-size: 0.94rem;
  color: var(--text-soft);
  max-width: 38em;
}

.body-text + .body-text {
  margin-top: 1.2em;
}

.body-text--center {
  margin-inline: auto;
  text-align: center;
  max-width: 34em;
}

/* ---------- 実機フレーム ---------- */

.phone-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: clamp(28px, 6vw, 40px);
  padding: 8px;
  background: var(--night-deep);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

.phone-frame img {
  border-radius: clamp(22px, 5vw, 33px);
}

/* 飾り角（アプリのパネルと同じ記号） */
.phone-frame--corners::before,
.phone-frame--corners::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.phone-frame--corners::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  border-top-left-radius: 14px;
}

.phone-frame--corners::after {
  bottom: -7px;
  right: -7px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  border-bottom-right-radius: 14px;
}

/* ---------- quest ---------- */

.quest {
  background: var(--night-soft);
}

.quest-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.quest-phone {
  width: min(300px, 74vw);
  justify-self: center;
}

.bonus-list {
  list-style: none;
  margin: 26px 0;
  border-top: 1px solid var(--line-faint);
}

.bonus-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-faint);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
}

.bonus-star {
  color: var(--gold);
  font-size: 0.8rem;
}

.bonus-desc {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

/* ---------- forge ---------- */

.forge-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.5vw, 44px);
  margin-block: clamp(44px, 7vw, 72px) clamp(52px, 8vw, 88px);
}

.forge-step {
  width: min(260px, 40vw);
  text-align: center;
}

.forge-step figcaption {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.forge-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  flex-shrink: 0;
}

.forge-arrow-line {
  width: clamp(14px, 3vw, 34px);
  height: 1px;
  background: var(--line);
}

.forge-arrow-diamond {
  font-size: 0.7rem;
}

/* 生成カード2枚: サイズ違いの非対称ギャラリー */
.card-gallery {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  max-width: 920px;
  margin-inline: auto;
}

.card-piece {
  position: relative;
}

.card-piece img {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.9);
}

.card-piece figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
  padding-left: 2px;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.card-meta {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.forge-note {
  margin: clamp(40px, 6vw, 60px) auto 0;
  max-width: 34em;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-soft);
  padding-top: 28px;
  border-top: 1px solid var(--line-faint);
}

/* ---------- growth ---------- */

.growth {
  background: var(--night-soft);
}

.growth-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.growth-list {
  border-top: 1px solid var(--line);
}

.growth-list > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-faint);
}

.growth-list dt {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.growth-list dd {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ---------- closing ---------- */

.closing {
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(215, 178, 109, 0.09), transparent 70%);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 3vw, 26px);
}

.closing-icon {
  width: clamp(56px, 8vw, 72px);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px -16px rgba(215, 178, 109, 0.35);
}

.closing-title {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-faint);
  background: var(--night-deep);
  padding-block: 44px 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  color: var(--gold);
}

.footer-credit {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.footer-credit a {
  border-bottom: 1px solid rgba(168, 167, 149, 0.5);
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

/* ---------- reveal / animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s ease,
    transform 0.9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fade-settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-settle {
  from {
    opacity: 0;
    transform: translateY(clamp(40px, 6vw, 70px));
  }
  to {
    opacity: 1;
    transform: translateY(clamp(10px, 2vw, 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero-en,
  .hero-title,
  .hero-lead,
  .hero-cta,
  .hero-phone,
  [data-reveal] {
    opacity: 1;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    padding-top: 110px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-text {
    text-align: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-phone {
    margin-bottom: 0;
    transform: none;
  }
  @keyframes rise-settle {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .quest-inner {
    grid-template-columns: 1fr;
  }
  .quest-phone {
    order: 2;
    margin-top: 8px;
  }

  .forge-flow {
    flex-direction: column;
  }
  .forge-step {
    width: min(280px, 80vw);
  }
  .forge-arrow {
    transform: rotate(90deg);
    margin-block: 4px;
  }

  .card-gallery {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
  }

  .growth-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 12px;
  }
}
