/* I-gen の LP とサインアウトの画面（認証の外。BXMP_IGEN-64・65）。トークンはアプリと同じ BXMP_IGEN-24 の決め:
   NTT DATA の色・角丸 8・影なし・押せるもの 44px・絵文字と手描きの図なし。CSP は 'self' だけ（インラインの style は使えない） */
:root {
  --brand: #005b96; --brand-deep: #003f6b; --brand-soft: #e6f0f7; --on-brand: #ffffff;
  --ink: #14233a; --ink-2: #3c4a60; --muted: #5f6b7e;
  --bg: #ffffff; --bg-2: #f4f6f9; --line: #d8dee8; --line-2: #eceff4;
  --ok: #1f7a3f; --danger: #b42318;
  --nav: #0b1f33;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6cb4e6; --brand-deep: #9fd0f2; --brand-soft: #16324a; --on-brand: #0b1118;
    --ink: #e6ebf2; --ink-2: #c3ccd8; --muted: #98a3b4;
    --bg: #11161d; --bg-2: #171e27; --line: #2c3644; --line-2: #222a35;
    --ok: #6fcf94; --danger: #f2877d;
    --nav: #0a1520;
  }
  .logo { filter: brightness(0) invert(1); opacity: .9; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 "Noto Sans JP", system-ui, "Hiragino Sans", "Yu Gothic UI", sans-serif; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--on-brand); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 頭 */
.lp-head { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand .sep, .signedout .sep { width: 1px; height: 20px; background: var(--line); display: inline-block; }
.head-nav { display: flex; gap: 18px; margin-left: auto; }
.head-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.head-nav a:hover { color: var(--brand); }
.head-cta { display: flex; gap: 8px; }

/* 最初の面 */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.hero h1 { font-size: 42px; letter-spacing: .01em; margin-bottom: 20px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pillars li { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 16px 18px; display: grid; gap: 4px; }
.pk { font-weight: 700; font-size: 17px; }
.pv { color: var(--ink-2); font-size: 14px; }

/* 節 */
section { padding: 72px 0; scroll-margin-top: 64px; }
section.band { background: var(--bg-2); }
section h2 { font-size: 28px; margin-bottom: 28px; }
.note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.pain { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain li { counter-increment: p; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.pain li::before { content: counter(p, decimal-leading-zero); color: var(--brand); font-weight: 700; font-size: 13px; display: block; margin-bottom: 6px; }
.pain h3 { font-size: 17px; margin-bottom: 6px; }
.pain p { color: var(--ink-2); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; }
section.band .card { background: var(--bg); }
.card .num { color: var(--brand); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14px; }

.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.two > div > p { color: var(--ink-2); }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; padding: 18px 16px; }
.steps li::before { content: "STEP " counter(s); color: var(--brand); font-weight: 700; font-size: 12px; display: block; margin-bottom: 6px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 13.5px; }

.next { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }

details { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 44px; }
details p { padding: 0 18px 16px; color: var(--ink-2); }

.terms { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; max-height: 420px; overflow: auto; white-space: pre-wrap; font-size: 14px; }
.terms .note { margin: 0; }

/* フォーム */
.form { display: grid; gap: 14px; margin-top: 24px; }
.form label { display: block; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { display: block; margin-top: 6px; font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.form textarea { resize: vertical; }
.form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { display: inline-block; width: 20px; min-height: 20px; margin-top: 5px; flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--danger); }
.form-msg { min-height: 1.8em; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.ng { color: var(--danger); }

.lp-foot { background: var(--nav); color: #c9d6e3; padding: 36px 0; }
.lp-foot .brand { color: #ffffff; }
.lp-foot .logo { filter: brightness(0) invert(1); }
.lp-foot .sep { background: #355270; }
.foot-row { display: grid; gap: 10px; }
.small { font-size: 12px; color: #8ea3b8; }

/* サインアウトしましたの画面（/signed-out。BXMP_IGEN-64） */
body.signedout { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 60%); }
.so-main { display: grid; place-items: center; padding: 40px 16px; }
.so-card { width: 100%; max-width: 560px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 32px 32px 26px; }
.so-card .brand { display: flex; width: fit-content; margin-bottom: 28px; }
.so-status { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.so-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.so-card h1 { font-size: 26px; margin-bottom: 10px; }
.so-card p { color: var(--ink-2); }
.so-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 4px; }
.so-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.so-note h2 { font-size: 15px; margin-bottom: 6px; }
.so-note p { font-size: 14px; }
.so-note .btn { margin-top: 12px; }
.so-foot { text-align: center; padding: 18px 16px 26px; color: var(--muted); font-size: 13px; }
.so-foot a { margin: 0 8px; }

@media (max-width: 960px) {
  .head-nav { display: none; }
  .hero-grid, .two { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three, .pain { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  /* スマホではサインインの入口を残す（2026-11-13。前は隠していて、スマホから入れなかった。BXMP_IGEN-316）。お問い合わせは本文の入口を使う */
  .head-cta .contact { display: none; }
  .head-row { gap: 10px; }
  .brand .sep { display: none; }
  .brand .logo { width: 92px; height: auto; }
  .head-cta { margin-left: auto; gap: 6px; }
  .head-cta .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; min-height: 40px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  section { padding: 52px 0; }
  section h2 { font-size: 23px; }
  .cards, .cards.three, .pain, .steps, .form .two-col { grid-template-columns: 1fr; }
  .so-card { padding: 24px 20px 20px; }
}

/* お申し込み（BXMP_IGEN-68） */
.page-h { font-size: 30px; margin-bottom: 18px; }
.su-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: su; }
.su-steps li { counter-increment: su; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.su-steps li::before { content: counter(su) ". "; }
.su-steps li.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
#su-done h2 { font-size: 22px; margin: 18px 0 10px; }
#su-done p { margin-bottom: 12px; }
.brand strong { white-space: nowrap; }

/* プランの目安（R6 の 99。BXMP_IGEN-334） */
.form.estimate { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.form.estimate label.check { display: flex; gap: 8px; align-items: center; font-weight: 700; min-height: 44px; }
.form.estimate label.check input { width: auto; min-height: 0; margin: 0; }
.estimate-out { margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.estimate-out .estimate-res { margin: 0; font-size: 18px; }
.estimate-out .note { margin-top: 8px; }
#es-plans table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
#es-plans th, #es-plans td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
#es-plans .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 通知でつなぐの節（N7）: 導入の文とカードの間をあける */
#notify .lead { margin-bottom: 24px; }
