/* ==========================================================
   Stride ベース:リセット・タイポグラフィ・レイアウト・背景の光
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  /* お知らせバナー表示中は同じ高さの余白を下に確保する */
  padding-bottom: var(--notice-h);
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-head);
  text-wrap: balance;
}

/* 本文は右端まで詰めて折り返す(Safari の pretty は行を短くしすぎるため使わない) */
p, li, dd { text-wrap: wrap; }

/* 見出しは文節の切れ目(HTML の <wbr>)でだけ折り返す。
   word-break: auto-phrase は Safari 未対応のため、keep-all + <wbr> で代用する。
   1文節が行に収まらないときだけ overflow-wrap で強制的に折る。 */
h1, h2, h3, h4, .t-hero, .t-h1, .t-h2, .page-title, .card__title, .step__name,
.fitem__name, .creator-sp__quote, .faq__qtext, .scene__label {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
a:hover { color: var(--ps-accent); }

/* URL未設定のリンク(href なし)はクリックできない見た目にする */
a:not([href]) {
  color: var(--text-muted);
  text-decoration: none;
  cursor: default;
}

button { font: inherit; color: inherit; }

::selection { background: rgba(129, 140, 248, .35); color: var(--text); }

/* キーボード操作時のフォーカス表示 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- タイポグラフィ ---------- */

.t-hero {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  text-wrap: balance;
}

.t-h1 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-head);
}

.t-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-head);
}

.t-h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
}

.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-muted { color: var(--text-muted); }
.t-small { font-size: var(--fs-small); line-height: 1.7; }

/* 「英字の小ラベル+日本語の見出し」の2段組み */
.eyebrow {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fc, var(--accent));
  margin-bottom: 8px;
}
.heading-pair { display: flex; flex-direction: column; }

/* 数字の強調(「10段階」など) */
.num {
  color: var(--accent);
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  padding-inline: .06em;
}

/* 本文の1行幅(全角40字前後) */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--text-muted); }

/* ---------- レイアウト ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section--divided { border-top: 1px solid var(--border); }
.section__head { margin-bottom: var(--sp-6); }
@media (min-width: 960px) {
  .section__head { margin-bottom: var(--sp-8); }
}

.stack > * + * { margin-top: var(--stack, var(--sp-3)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 背景の光(アプリの AppBackground と同じ表現) ----------
   右上から差す光+左下のごく弱い受け光+左下から右上へ上がる階段状の線3本。
   光源の中心は画面の外。ヒーローやページ上部に .glow-bg を付けて使う。 */

.glow-bg {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    /* 区画の下端で光を背景色に溶かす(境目の段差を出さない) */
    linear-gradient(to bottom, rgba(15,17,23,0) 70%, #0f1117 100%),
    radial-gradient(ellipse 85% 48% at 104% -8%, rgba(129,140,248,0.38) 0%, rgba(129,140,248,0.16) 34%, rgba(129,140,248,0) 68%),
    radial-gradient(ellipse 140% 78% at 112% -14%, rgba(129,140,248,0.15) 0%, rgba(129,140,248,0) 60%),
    radial-gradient(ellipse 110% 55% at -14% 112%, rgba(129,140,248,0.11) 0%, rgba(129,140,248,0) 58%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 階段の線だけ別レイヤー:PCの横長画面で横に伸びすぎないよう幅を制限する */
.glow-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23818cf8' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M-30 726 H126 L372 480 H510' opacity='0.20'/%3E%3Cpath d='M-30 812 H208 L486 534 H540' opacity='0.11'/%3E%3Cpath d='M-30 640 H60 L252 448 H510' opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: right bottom;
}

@media (min-width: 960px) {
  .glow-bg::before {
    /* 右側 最大760px に収め、左端はフェードさせて線の切れ目を見せない */
    background-size: min(100%, 760px) 100%;
    -webkit-mask-image: linear-gradient(to right, transparent calc(100% - 760px), #000 calc(100% - 560px));
    mask-image: linear-gradient(to right, transparent calc(100% - 760px), #000 calc(100% - 560px));
  }
}

/* 光だけ(線なし)を使いたいとき */
.glow-bg--no-stairs::before { content: none; }

/* ---------- 出現の動き(控えめ・JSが有効なときだけ) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .24s var(--ease), transform .24s var(--ease);
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- モバイル/PCで別ブロックを出し分ける(959px以下 / 960px以上) ---------- */
@media (min-width: 960px) { .only-sp { display: none !important; } }
@media (max-width: 959px) { .only-pc { display: none !important; } }

/* 電話番号・メールアドレスは途中で折り返さない */
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
