/* =========================================================
   Dream Maker — 夜明け×光
   ========================================================= */
:root {
  /* パレット（physical color: ダークモードでも反転しない＝夜明けの空は常に夜明け） */
  --midnight: #0b1026;
  --deep-indigo: #1b2150;
  --twilight-violet: #3d2c63;
  --dawn-plum: #7a3f63;
  --dawn-coral: #ff6b5b;
  --sunrise-amber: #ffb347;
  --hope-gold: #ffd27a;
  --daybreak-cream: #fff6ec;
  --paper-white: #faf6f0;
  --charcoal-ink: #26241f;
  --misty-teal: #3e8e81;
  --misty-teal-text: #2c6f64;
  --ash-gray: #8b93a7;

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-voice: "Shippori Mincho B1", "Noto Serif JP", serif;
  --font-num: "Anton", "Zen Kaku Gothic New", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* スクロール進捗（0→1）。app.js が更新。装飾のみに使用。 */
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--paper-white);
  background: var(--midnight);
  overflow-x: hidden;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* アクセシビリティ */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  background: var(--dawn-coral);
  color: var(--midnight);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--hope-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: var(--maxw-narrow);
}

/* =========================================================
   星空（夜が明けるとフェードアウト）
   ========================================================= */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: calc(1 - var(--progress) * 1.6);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(250, 246, 240, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 28% 8%, rgba(255, 210, 122, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 47% 22%, rgba(250, 246, 240, 0.7), transparent),
    radial-gradient(1.1px 1.1px at 63% 12%, rgba(250, 246, 240, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, rgba(255, 210, 122, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 89% 15%, rgba(250, 246, 240, 0.65), transparent),
    radial-gradient(1.1px 1.1px at 36% 33%, rgba(250, 246, 240, 0.5), transparent);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 16, 38, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 210, 122, 0.16);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--paper-white);
}
.brand__mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #fff4d6, var(--hope-gold) 40%, var(--sunrise-amber) 70%, var(--dawn-coral));
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.7);
  flex: none;
}
.site-header__cta {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* =========================================================
   ボタン
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  line-height: 1;
}
.btn--primary {
  position: relative;
  background: linear-gradient(100deg, var(--dawn-coral), var(--sunrise-amber));
  color: var(--midnight);
  box-shadow: 0 10px 30px rgba(255, 107, 91, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 91, 0.5);
}
.btn--primary:active {
  transform: scale(0.97);
}
.btn--ghost {
  background: rgba(250, 246, 240, 0.06);
  color: var(--paper-white);
  border: 1px solid rgba(255, 210, 122, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 210, 122, 0.12);
  border-color: var(--hope-gold);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
}
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.55);
  animation: pulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 179, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
  }
}

/* 強調語 */
.hl-coral {
  color: var(--dawn-coral);
}
.hl-amber {
  color: var(--sunrise-amber);
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__sky svg {
  width: 100%;
  height: 100%;
}
.hero__sky::after {
  /* 文字の可読性を担保する微かな上部の陰り */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0.55) 0%, rgba(11, 16, 38, 0) 40%);
}
.hero__content {
  padding: 120px 24px 140px;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hope-gold);
  font-size: 0.95rem;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(11, 16, 38, 0.6);
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 7.5vw, 5.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  text-shadow: 0 4px 30px rgba(11, 16, 38, 0.55);
  /* 改行は <br> の位置でのみ。CJK の不格好な途中折れを防ぎ、極狭時のみ緊急折返し */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero__sub {
  max-width: 40em;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  line-height: 1.95;
  color: #ffe6b0;
  margin: 0 0 36px;
  text-shadow: 0 2px 16px rgba(11, 16, 38, 0.6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 210, 122, 0.7);
  border-radius: 16px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--hope-gold);
  border-radius: 2px;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ヒーロー内アニメ（装飾） */
.stars circle {
  animation: twinkle 4s ease-in-out infinite;
}
.stars circle:nth-child(2n) {
  animation-delay: 1.2s;
}
.stars circle:nth-child(3n) {
  animation-delay: 2.1s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.3;
  }
}
.sunrays {
  animation: spin 120s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   セクション共通
   ========================================================= */
.section {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0;
  z-index: 1;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.section__title.center {
  text-align: center;
}
.section__lead {
  font-size: 1.15rem;
  color: #ffe6b0;
  margin: 0 auto 40px;
  max-width: 38em;
}
.section__lead.center {
  text-align: center;
}
.prose p {
  margin: 0 0 1.5em;
}
.prose.center {
  text-align: center;
}
.prose strong {
  color: var(--hope-gold);
  font-weight: 700;
}
.prose .pull {
  font-family: var(--font-voice);
  font-size: 1.22rem;
  line-height: 1.85;
  color: var(--paper-white);
}

/* セクション別グラデ：上(夜)→下(夜明け)へ明るくなる */
.section--empathy {
  background: linear-gradient(180deg, var(--midnight), var(--deep-indigo));
}
.section--promise {
  background: linear-gradient(180deg, var(--deep-indigo), var(--twilight-violet));
}
.section--process {
  background: linear-gradient(180deg, var(--twilight-violet), var(--dawn-plum));
}
.section--any {
  /* 白文字の可読性を保つため明るすぎる末端 (#c25a52) で止めない（#9a4a5a で AA 5.5:1） */
  background: linear-gradient(180deg, var(--dawn-plum), #9a4a5a);
}
.section--founder {
  background: linear-gradient(180deg, #c25a52, var(--dawn-coral) 55%, var(--sunrise-amber));
}
.section--faq {
  background: linear-gradient(180deg, var(--sunrise-amber), var(--daybreak-cream) 30%);
  color: var(--charcoal-ink);
}
.section--cta {
  background: linear-gradient(180deg, var(--daybreak-cream), #fffdf8);
  color: var(--charcoal-ink);
  overflow: hidden;
}

/* hammer line（差別化の核） */
.hammer {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  line-height: 1.5;
  color: var(--paper-white);
  margin: 0 0 32px;
  padding-left: 18px;
  border-left: 4px solid var(--dawn-coral);
}

/* =========================================================
   3ステップ
   ========================================================= */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  position: relative;
  background: rgba(11, 16, 38, 0.28);
  border: 1px solid rgba(255, 210, 122, 0.22);
  border-radius: 18px;
  padding: 32px 28px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--hope-gold);
  box-shadow: 0 18px 44px rgba(11, 16, 38, 0.4);
}
.step__num {
  font-family: var(--font-num);
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 0.9;
  background: linear-gradient(120deg, var(--hope-gold), var(--sunrise-amber), var(--dawn-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--paper-white);
}
.step__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(250, 246, 240, 0.92);
}
.process__tag {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-align: center;
  margin: 56px 0 0;
}

/* =========================================================
   どんな夢でもいい — タグ
   ========================================================= */
.dream-tags {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dream-tag {
  /* 暖色地でも白文字が AA を満たすよう、濃いインクの半透明地にする */
  background: rgba(28, 14, 22, 0.4);
  border: 1px solid rgba(255, 210, 122, 0.45);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  animation: tagGlow 5s ease-in-out infinite;
}
.dream-tag:nth-child(2) {
  animation-delay: 1.2s;
}
.dream-tag:nth-child(3) {
  animation-delay: 2.4s;
}
.dream-tag:nth-child(4) {
  animation-delay: 3.6s;
}
@keyframes tagGlow {
  0%,
  100% {
    border-color: rgba(255, 210, 122, 0.35);
    box-shadow: 0 0 0 rgba(255, 210, 122, 0);
  }
  50% {
    border-color: rgba(255, 210, 122, 0.75);
    box-shadow: 0 0 16px rgba(255, 210, 122, 0.18);
  }
}

/* 創業者の声（暖色の明るい地。見出し・本文ともダークインクで AA を確保） */
.prose--voice strong {
  color: var(--midnight);
}
.section--founder .section__title {
  color: var(--charcoal-ink);
}
.section--founder .prose {
  color: var(--midnight);
}
.section--founder .prose .pull {
  color: var(--midnight);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  gap: 14px;
}
.faq__item {
  background: #fff;
  border: 1px solid rgba(62, 142, 129, 0.3);
  border-radius: 14px;
  padding: 4px 22px;
  box-shadow: 0 6px 20px rgba(38, 36, 31, 0.06);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--charcoal-ink);
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--misty-teal-text);
  border-bottom: 2px solid var(--misty-teal-text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq__item p {
  margin: 0 0 18px;
  color: #3a3833;
  font-size: 1rem;
  line-height: 1.85;
}

/* =========================================================
   CTA + フォーム
   ========================================================= */
.section--cta {
  padding-top: clamp(90px, 14vw, 170px);
}
.cta__sun {
  position: absolute;
  left: 50%;
  top: -260px;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 210, 122, 0.55), rgba(255, 179, 71, 0.25) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section--cta .container {
  position: relative;
  z-index: 1;
}
.section--cta .prose {
  color: #3a3833;
}

.form-card {
  margin: 44px auto 0;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--hope-gold);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 30px 70px rgba(122, 63, 99, 0.18);
}
.form-card__intro {
  margin: 0 0 28px;
  color: #4a4740;
  font-size: 1rem;
  line-height: 1.9;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--charcoal-ink);
  margin-bottom: 8px;
}
.req {
  color: var(--dawn-coral);
  margin-left: 4px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal-ink);
  background: var(--daybreak-cream);
  border: 1.5px solid rgba(122, 63, 99, 0.25);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  line-height: 1.8;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a89f93;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--dawn-coral);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 91, 0.15);
}
.field--error input,
.field--error textarea {
  border-color: #d64545;
  background: #fff5f4;
}
.field__err {
  margin: 7px 0 0;
  min-height: 0;
  color: #c23b3b;
  font-size: 0.85rem;
  line-height: 1.5;
}
.field__err:empty {
  display: none;
}

/* ハニーポット（非表示） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  margin: 4px 0 18px;
}
.turnstile:empty {
  margin: 0;
}

.form-msg {
  margin: 0 0 14px;
  color: #c23b3b;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-msg:empty {
  display: none;
}
.form-note {
  margin: 14px 0 0;
  text-align: center;
  color: #8a8276;
  font-size: 0.85rem;
}

#submit-btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

/* 送信成功（夜明け） */
.form-success {
  text-align: center;
  padding: 24px 8px 8px;
  animation: dawnRise 1s var(--ease) both;
}
.form-success__sun {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #fff4d6, var(--hope-gold) 38%, var(--sunrise-amber) 66%, var(--dawn-coral));
  box-shadow: 0 0 60px rgba(255, 179, 71, 0.7);
  animation: sunUp 1.1s var(--ease) both;
}
.form-success__lead {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--charcoal-ink);
  margin: 0 0 14px;
}
.form-success__body {
  font-family: var(--font-voice);
  font-size: 1.12rem;
  line-height: 1.9;
  color: #3a3833;
  margin: 0;
}
@keyframes dawnRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes sunUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: var(--midnight);
  color: var(--paper-white);
  padding: 56px 0;
  position: relative;
  z-index: 1;
}
.site-footer__inner {
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.brand--footer {
  font-size: 1.05rem;
}
.site-footer__tagline {
  font-family: var(--font-voice);
  color: var(--hope-gold);
  margin: 4px 0 0;
  font-size: 1.1rem;
}
.site-footer__copy {
  color: var(--ash-gray);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

/* =========================================================
   スクロールリビール
   ========================================================= */
/* JS が動いているときだけ隠す。app.js が読めない/失敗しても .reveal は見えたまま。 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .hero__content {
    padding: 110px 22px 130px;
  }
  .site-header__cta {
    display: none;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   モーション低減（アクセシビリティ）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .starfield {
    opacity: 0.5;
  }
  .scroll-cue {
    display: none;
  }
}
