/* 入口ページ（/start）専用。共有の style.css / soft-white-ui.css は読まない——
   共有CSSは管理SPA向けに html,body{height:100%;overflow:hidden} を敷いており、
   #main を持たないこのページでは内容が縦にクリップされて登録ボタンに到達できなくなる
   （本番で実測）。打ち消し合戦をやめ、依存そのものを断ってある。 */
/* ★この入口ページは**完全に独立**させる（/css/style.css も /css/soft-white-ui.css も読まない）。
   共有 style.css は管理SPA向けに html,body{height:100%;overflow:hidden} を敷いており、
   #main を持たないこのページでは内容が縦にクリップされて登録ボタンに到達できなくなる
   （本番で実測・打ち消しで凌いでいた）。打ち消し合戦をやめ、依存そのものを断つ。
   配色・書体は noren-ai.jp（/privacy）の実値に合わせてここに写す。 */

:root {
  --stage: min(100%, 460px);
  /* 暖簾AI 本体サイトのトークン（noren-studio.css の :root と同値） */
  --ai-950:#050b1c; --ai-900:#0a1530; --ai-800:#0f2148; --ai-700:#15305f;
  --glow:#6f9cff; --red:#e0553c; --red-deep:#b93b24; --ok:#1f8f5f;
  --ink:#0b1730; --ink-2:#3a465f; --ink-3:#6f7a94;
  /* ニューモーフィズム（明るい器）。--neo* は本体サイトにも同名で在る */
  --surface:#eaedf2; --surface-hi:#f4f6f9;
  --neo-dark:rgba(158,167,184,.55); --neo-light:rgba(255,255,255,.95);
  --neo-in:inset 6px 6px 12px rgba(158,167,184,.46), inset -6px -6px 12px rgba(255,255,255,.9);
  --neo-out:7px 7px 15px rgba(150,159,177,.5), -7px -7px 15px rgba(255,255,255,.92);
  --sans:"Inter","Zen Kaku Gothic New","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --flip:.86s cubic-bezier(.2,.74,.2,1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ai-950); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  color: #fff;
  /* ★背景色は html にだけ置く。body に不透明な背景を敷くと、負の z-index の
     .st-bg は**その下**に塗られて暖簾が1画素も出ない（四隅の実画素で確認）。 */
  background: transparent;
  font-family: var(--sans); font-size: 16px; line-height: 1.85;
  font-feature-settings: "palt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── 背景：/privacy のヒーローと同じ暖簾。ぼかし＋スモークの二層 ──
   ★filter を持つ要素は position:fixed の子の包含ブロックになる。この層は
     空のままにして、中に何も置かない（[[backdrop-filterの中のfixedは潰れる]]）。 */
.st-bg, .st-smoke { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.st-bg {
  background: url("/img/hero-noren-sp.webp") center 40%/cover no-repeat;
  filter: blur(5px) saturate(1.18) brightness(1.16) contrast(1.05);
  transform: scale(1.06);
}
@media (min-width: 900px) { .st-bg { background-image: url("/img/hero-noren.webp"); } }
.st-smoke {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,11,28,.66) 0%, rgba(5,11,28,.53) 44%, rgba(5,11,28,.72) 100%),
    radial-gradient(130% 100% at 50% 0%, transparent 24%, rgba(5,11,28,.42) 100%);
}

/* ── 画面の外枠 ── */
.st-page {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  min-height: 100vh; min-height: 100dvh;
  padding: 84px 16px 40px;
}
.st-home {
  position: absolute; top: 20px; left: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: rgba(255,255,255,.94);
  font-size: .84rem; font-weight: 700; letter-spacing: .06em;
  text-shadow: 0 1px 12px rgba(5,11,28,.6);
}
.st-home img { width: 30px; height: 30px; opacity: .95; }
.st-home:hover { color: #fff; }

/* ★作成ツールへ送っている最中は、登録の器を**先に**隠す（契約: 登録フォームを出さずに送る）。
   display:none にすると器の高さが消えて画面が跳ねるので visibility で場所は残す。
   CSSは <head> の <link>（描画をブロックする）で先に効くので、defer の start.js が
   このクラスを付けた時点で、登録フォームは一度も見えない。 */
html.st-leaving .st-stage, html.st-leaving .st-outside { visibility: hidden; }
#st-leaving {
  max-width: 34em; padding: 16px 20px; border-radius: 14px;
  background: rgba(5,11,28,.72); border: 1px solid rgba(255,255,255,.22);
  font-size: .88rem; line-height: 1.9;
}

/* ── 素のHTMLの出口 ⇄ 作り込んだ画面（漸進的強化）──
   ★向きが**逆**なのが要点。既定（クラスが1つも付いていない状態）は
     「本物のリンクが3本見えている」で、/js/start.js が**配線を終えたとき**だけ
     <html> に `st-ready` が付いて作り込んだ画面へ差し替わる。
     以前は <noscript> に頼って「JSが無いと隠す」向きだったが、それは
     `/js/start.js` が 404 でも構文エラーでも効かない（JSは「有る」ので）——
     2枚のカードが見えたまま押しても何も起きない行き止まりになった（実測 blocker F）。 */
html:not(.st-ready) #st-stage,
html:not(.st-ready) #st-outside { display: none; }
html.st-ready #st-basic { display: none; }
/* ★このファイルが**届いている**ことの合図（2026-09-11）。
     差し替えを上の2本のCSS規則だけに預けていたら、`/css/start.css` が落ちた瞬間に
     素の出口と作り込んだ画面が**同時に**出て、しかも裏面の登録フォーム（メール・
     パスワード）まで最初から見えていた（実測）。start.js はこの値が読めたときだけ
     差し替える＝**CSSが無ければ素の出口のまま**。
   ★見た目の細部（角丸や余白）を読んで判定しない。細部は直すたびに変わるので、
     直した瞬間に静かに効かなくなる（[[門が実装の細部を写すと直すたび赤くなる]]）。
     読むのは「このファイルが在る」という宣言そのもの。 */
:root { --st-css: 1; }
/* ★`hidden` はCSSが無くても効く（UAスタイル）。有るときも同じ意味であってほしいので、
     display を持つ規則に負けないよう明示する（#st-stage は display を持たないが、
     将来 flex/grid を足した誰かが黙って hidden を無効化するのを防ぐ）。 */
[hidden] { display: none !important; }
#st-basic {
  max-width: 34em; padding: 18px 20px; border-radius: 14px;
  background: rgba(5,11,28,.72); border: 1px solid rgba(255,255,255,.22);
  font-size: .88rem; line-height: 1.95;
}
#st-basic a { color: #fff; }
.st-basic-q { margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
.st-basic-list { margin: 0; padding-left: 1.2em; }
.st-basic-list li { margin-bottom: 8px; }
/* ★行送りで2行に折り返すと、inline の <a> は当たり判定が行ごとに割れて
   「真ん中を押しても外れる」が起きる（実クリックで実測）。塊にして全面を押せるようにする。 */
.st-basic-list a { display: block; }
.st-basic-note { margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: .8rem; }

/* ── 器：狭い画面は角丸カード、広い画面だけ円盤にする ──
   ★円は日本語3ブロックを抱えると狭い画面で必ず溢れる。溢れた分は
     overflow:hidden で**見えないまま押せなくなる**ので、円を諦める境目を
     先に決めておく（[[はみ出した子は当たり判定を失う]]）。 */
.st-stage { width: var(--stage); perspective: 1500px; -webkit-perspective: 1500px;
            filter: drop-shadow(0 26px 44px rgba(2,6,18,.62)); }
.st-disc {
  position: relative; display: grid; width: 100%;
  border-radius: 26px;
  transition: transform var(--flip);
  transform-style: preserve-3d;
}
.st-disc.is-flipped { transform: rotateY(180deg); }
/* ★「開いた瞬間から裏側だった人」（?path=has_site / ?intake=）用。円だけでなく
   **面の opacity/visibility の遷移も**止める——止め忘れると、円は裏を向いているのに
   表の面が .3s のあいだ不透明なまま重なり、その間だけ裏のボタンに当たり判定が届かない
   （実測で門が1回赤くなった。[[演出を足すと当たり判定が変わる]]）。 */
.st-disc.st-instant, .st-disc.st-instant .st-face { transition: none !important; }
.st-face {
  position: relative;
  grid-area: 1 / 1;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(255,255,255,.8); border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.5), rgba(214,219,228,.18)), var(--surface);
  /* ★外側は暗い影だけ。--neo-out の白い影をここで使うと、暗い地の上では
     円の周りに光輪が出る（実描画で確認）。白い凹凸は面の**内側**だけで使う。 */
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.96),
              inset -1px -1px 2px rgba(146,155,172,.26);
  color: var(--ink);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translateZ(1px);
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.st-back-face { transform: rotateY(180deg) translateZ(1px); }
/* 裏返っていない側は、**押せない**ことを inert で表す（見た目だけで隠さない）。
   visibility も落として、拡大表示や読み上げの取りこぼしを無くす。 */
.st-face[inert] { opacity: 0; visibility: hidden; }
.st-inner { width: 100%; padding: 30px 26px 26px; }

.st-kicker { margin: 0; color: var(--ai-700); font-size: .68rem; font-weight: 800;
             letter-spacing: .2em; text-transform: uppercase; }
.st-h1 { margin: 8px 0 0; font-size: clamp(1.3rem, 5.4vw, 1.62rem); font-weight: 700;
         line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.st-lead { margin: 8px 0 20px; color: var(--ink-3); font-size: .82rem; line-height: 1.8; }
.st-q { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.6; }
/* ?plan= / ?intake= から来た人にだけ出る1行（既定は hidden）。派手にしない——
   ここは事実の確認であって、売り込みではない。 */
.st-tag {
  margin: 0 0 12px; padding: 7px 11px; border-radius: 10px;
  background: rgba(21,48,95,.07); border: 1px solid rgba(21,48,95,.12);
  color: var(--ai-700); font-size: .74rem; font-weight: 600; line-height: 1.65;
}

/* 入力欄：へこませる */
.st-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
         clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.st-input {
  width: 100%; height: 50px; margin-bottom: 10px; padding: 0 16px;
  border: 1px solid rgba(172,180,196,.24); border-radius: 14px; outline: 0;
  color: var(--ink); background: #e6e9ef; box-shadow: var(--neo-in);
  caret-color: var(--red); font-size: .92rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.st-input::placeholder { color: #9299a8; opacity: 1; }
.st-input:hover { border-color: rgba(224,85,60,.32); }
.st-input:focus {
  border-color: rgba(224,85,60,.8); background: #eaedf2;
  box-shadow: inset 5px 5px 10px rgba(158,167,184,.4), inset -5px -5px 10px rgba(255,255,255,.9),
              0 0 0 3px rgba(224,85,60,.14);
}
.st-input:disabled { opacity: .6; }

/* ボタン：浮かせて、押すと沈める */
.st-btn {
  width: 100%; min-height: 50px; margin-top: 6px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.72); border-radius: 14px; outline: 0;
  color: var(--red-deep); background: linear-gradient(145deg, #f6f7fa, #e2e5ec);
  box-shadow: var(--neo-out), inset 1px 1px 1px rgba(255,255,255,.86);
  cursor: pointer; font-weight: 700; letter-spacing: .01em;
  transition: color .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), transform .2s var(--ease);
}
.st-btn:hover, .st-btn:focus-visible {
  border-color: rgba(185,59,36,.4); color: #fff;
  background: linear-gradient(145deg, #e6624a, #c4442c);
  box-shadow: 7px 7px 15px rgba(137,84,76,.36), -7px -7px 14px rgba(255,255,255,.78),
              0 0 0 4px rgba(224,85,60,.14);
  transform: translateY(-2px);
}
.st-btn:active {
  box-shadow: inset 4px 4px 9px rgba(122,32,18,.34), inset -3px -3px 8px rgba(255,150,132,.22);
  transform: translateY(0);
}
/* ★:disabled の既定が無いCSSでは「押せない」が見た目に出ない（実測で踏んだ）。
   送信中は必ずここに落とす（[[disabledは「押せない」を伝えない]]）。 */
.st-btn:disabled, .st-btn[disabled] {
  color: var(--ink-3); background: #e4e7ec; box-shadow: var(--neo-in);
  transform: none; cursor: not-allowed; border-color: rgba(172,180,196,.3);
}

/* 2分岐のカード */
.st-choices { display: grid; gap: 10px; }
.st-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 13px 15px; border: 1px solid rgba(172,180,196,.26); border-radius: 14px;
  background: linear-gradient(145deg, #f2f4f8, #e4e7ee); box-shadow: var(--neo-out);
  color: var(--ink); cursor: pointer;
  transition: box-shadow .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.st-card:hover { border-color: rgba(21,48,95,.34); transform: translateY(-1px); }
/* ★券の確認が返るまでは押せない。押せないことは**見た目でも**伝える——
   :disabled の既定が無いCSSでは、押せない物が有効なまま見える
   （[[disabledは「押せない」を伝えない]]）。:hover の打ち消しまで含めて書く。 */
.st-card:disabled, .st-card[disabled] {
  cursor: progress; color: var(--ink-3);
  background: #e4e7ec; box-shadow: var(--neo-in);
  border-color: rgba(172,180,196,.3); transform: none;
}
.st-card:disabled:hover, .st-card[disabled]:hover {
  border-color: rgba(172,180,196,.3); transform: none;
}
.st-card:disabled .st-card-t, .st-card[disabled] .st-card-t { color: var(--ink-3); }
.st-card[aria-pressed="true"] {
  border-color: var(--ai-700); background: #e6e9ef; box-shadow: var(--neo-in);
  transform: none;
}
.st-card-t { font-size: .92rem; font-weight: 700; line-height: 1.5; }
.st-card-d { font-size: .74rem; color: var(--ink-3); line-height: 1.6; }

/* 選んだあとに出る欄 */
.st-next { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(11,23,48,.1); }
.st-pitch { margin: 0 0 10px; font-size: .76rem; color: var(--ink-2); line-height: 1.75; }
.st-pitch b { color: var(--ink); }
.st-bullets { margin: 6px 0 12px; padding-left: 1.15em; }
.st-bullets li { font-size: .74rem; color: var(--ink-2); line-height: 1.8; }
.st-note { margin: 0 0 4px; font-size: .72rem; color: var(--ink-3); }
.st-sub {
  display: inline-block; margin-top: 14px; font-size: .74rem; color: var(--ink-3);
  text-decoration: none; border-bottom: 1px solid rgba(111,122,148,.45);
}
.st-sub:hover { color: var(--red-deep); border-bottom-color: var(--red-deep); }
/* ★pre-line: 案内が2文になることがある（プラン別の一行を足す）。改行を潰すと
   1文に見えて読み飛ばされる。空白は従来どおり詰まる。 */
.st-msg { margin: 12px 0 0; padding: 11px 13px; border-radius: 11px; white-space: pre-line;
          background: rgba(21,48,95,.08); font-size: .78rem; line-height: 1.8; color: var(--ink); }
.st-msg[data-kind="err"] { background: rgba(224,85,60,.13); }
.st-err { margin: 2px 0 0; color: var(--red-deep); font-size: .74rem; line-height: 1.6; }
.st-goback {
  margin-top: 14px; padding: 4px 0; border: 0; background: transparent; outline: 0;
  color: var(--ink-3); font-size: .76rem; cursor: pointer;
}
.st-goback:hover, .st-goback:focus-visible { color: var(--red-deep); text-decoration: underline; }

/* ── 円の外側 ── */
.st-outside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: var(--stage);
}
.st-fine { margin: 0; align-self: stretch; color: rgba(255,255,255,.82);
           font-size: .74rem; line-height: 1.8; text-shadow: 0 1px 10px rgba(5,11,28,.6); }
.st-fine a { color: #fff; }
.st-login {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.st-login:hover, .st-login:focus-visible {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6);
}

/* ── 広い画面では本物の円盤にする ──
   ★2026-09-09: min-height条件を撤去。以前は高さ700px未満だと円を諦めて
   角丸カードへ形そのものを切り替えていたが、これは「言い訳」——96vhの項で
   直径は狭い高さにも自然に追従して縮むので、形を変えずに小さくすればよい
   （内側の.st-inner側の縮小・overflow-y:autoは元から用意済み）。widthだけで
   判定する。 */
@media (min-width: 820px) {
  /* ★820px以上では84vwは常に660を超えるので、直径は min(96vh, 660px)。
     幅62%の柱が円に内接できる高さは 2*sqrt(.25-.0961)=78.5% まで。これを超える
     値を max-height に書くと、はみ出した分が overflow:hidden で**見えないまま
     押せなくなる**（[[はみ出した子は当たり判定を失う]]）——この比率は直径に
     依存しないのでmin-height撤去後も変わらず成立する。 */
  :root { --stage: min(84vw, 96vh, 660px); }
  .st-page { padding: 12px 24px; gap: 16px; }
  .st-disc { aspect-ratio: 1; border-radius: 50%; }
  .st-face { border-radius: 50%; }
    /* ★幅62%の柱が円に内接できる高さは 2*sqrt(.25-.0961)=78.5% まで。
     さらに overflow が影を切るので、内側に余白を持たせてから丸める。 */
  .st-inner { width: 62%; padding: 7px 11px; max-height: 78%; overflow-y: auto;
              scrollbar-width: thin; }
  /* 円の中は縦が足りない。行間と高さをここだけ詰める（カード表示側は据え置き） */
  .st-lead { margin-bottom: 16px; }
  .st-tag { margin-bottom: 8px; padding: 5px 9px; font-size: .72rem; line-height: 1.55; }
  .st-q { margin-bottom: 8px; font-size: .92rem; }
  .st-card { padding: 9px 13px; }
  .st-card-d { font-size: .72rem; line-height: 1.5; }
  .st-next { margin-top: 9px; padding-top: 9px; }
  .st-pitch { margin-bottom: 8px; font-size: .74rem; line-height: 1.7; }
  .st-bullets { margin: 4px 0 10px; }
  .st-bullets li { font-size: .72rem; line-height: 1.55; }
  .st-input { height: 46px; margin-bottom: 8px; }
  .st-btn { min-height: 46px; }
  .st-sub { margin-top: 12px; }
  .st-goback { margin-top: 6px; font-size: .72rem; }
  .st-note { margin-bottom: 2px; font-size: .7rem; }
  /* 円の縁の内側にもう一本、彫り込みの線を入れる（参考実装と同じ質感） */
  .st-face::before {
    content: ""; position: absolute; inset: 14px; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(178,186,202,.3);
    box-shadow: inset 2px 2px 5px rgba(156,165,182,.2), inset -2px -2px 5px rgba(255,255,255,.8);
  }
  /* 上部のハイライト（ガラスの映り込み） */
  .st-face::after {
    content: ""; position: absolute; top: 6%; left: 24%; width: 38%; height: 12%;
    border-radius: 50%; background: rgba(255,255,255,.5); filter: blur(18px);
    transform: rotate(-10deg); pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-disc, .st-face, .st-btn, .st-card, .st-input { transition-duration: .01ms !important; }
}
