/*
 * ルートページ(/)専用のスタイル。home.css は /vps・/minecraft 等と共有なので、
 * トップだけの見た目はここに閉じ込める。クラスはすべて lp- 接頭辞。
 * 色・角丸は home.css の :root トークンをそのまま使う。
 */

.lp {
  --lp-section-y: clamp(72px, 9vw, 120px);
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  overflow-x: clip;
}

/* ---------- 共通 ---------- */
.lp-eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.lp-section {
  padding: var(--lp-section-y) 0;
}

.lp-section-tint {
  background: var(--bg);
}

.lp-heading {
  max-width: 44em;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.lp-heading h2 {
  color: var(--navy);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
  text-wrap: balance;
}

.lp-heading > p:not(.lp-eyebrow) {
  margin-top: 16px;
  color: var(--subtext);
  font-size: clamp(15px, 1.6vw, 17px);
  text-wrap: pretty;
}

.lp-button-lg {
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-size: 16px;
  transition: background .18s ease;
}

.lp-link-arrow {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
}

.lp-link-arrow::after {
  content: "→";
  transition: transform .18s var(--lp-ease);
}

.lp-link-arrow:hover::after {
  transform: translateX(4px);
}

.lp-link-light {
  color: #cfe3fa;
}

:where(.lp) a:focus-visible,
:where(.lp) summary:focus-visible,
:where(.lp) input:focus-visible {
  outline: 3px solid rgba(23, 104, 196, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ヒーロー ----------
   home.css の .hero-stage-brand(青ベタ・中央寄せ・価格カード)を土台に、
   トップだけフラットに整える。グラデーション・影・ぼかしは使わない。 */
.lp-hero.hero-stage-brand {
  min-height: 0;
  background: var(--primary);
}

/* 右上の大きな円は、単色の平面図形として残す。 */
.lp-hero.hero-stage-brand::before {
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: #2475cf;
}

.lp-hero.hero-stage-brand::after {
  top: auto;
  right: auto;
  bottom: -140px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: #1260b8;
  border-radius: 50%;
}

.lp-hero .hero-stage-inner {
  /* 下に要点の帯を足した分、元(104px)より上下を詰めて全体の高さを前と揃える。 */
  padding: 80px 0;
}

.lp-hero .service-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: .04em;
}

.lp-hero .service-category::before {
  display: none;
}

/* 価格(左)と導線(右)を横一列に並べ、要点の帯はその下に全幅で敷く。
   flex の折り返しだと幅が足りずに縦積みになるため grid で固定する。 */
.lp-hero-card.hero-price-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 860px;
  margin: 36px auto 0;
  padding: 24px 32px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.lp-hero-card .hero-price-actions {
  flex-wrap: nowrap;
}

.lp-hero-points {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  margin: 0 -32px;
  padding: 10px 20px;
  list-style: none;
  color: var(--subtext);
  background: var(--bg);
  border-top: 1px solid var(--soft-line);
  font-size: 13px;
}

.lp-hero-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 720px) {
  .lp-hero-card.hero-price-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 22px 20px 0;
  }

  .lp-hero-card .hero-price-actions {
    flex-wrap: wrap;
  }

  .lp-hero-points {
    flex-direction: column;
    align-items: center;
    margin: 0 -20px;
  }
}

/* ---------- 要点 ---------- */
.lp-facts {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.lp-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-fact {
  padding: 28px 20px;
  text-align: center;
}

.lp-fact + .lp-fact {
  border-left: 1px solid var(--soft-line);
}

.lp-fact strong {
  display: block;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.lp-fact strong small {
  margin-left: 2px;
  color: var(--subtext);
  font-size: 13px;
  font-weight: 700;
}

.lp-fact span {
  display: block;
  margin-top: 6px;
  color: var(--subtext);
  font-size: 13px;
}

.lp-fact a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- ランタイム ---------- */
.lp-runtimes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lp-runtime {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease;
}

.lp-runtime:hover {
  border-color: var(--primary);
}

.lp-runtime-tag {
  align-self: flex-start;
  padding: 3px 10px;
  color: var(--primary);
  background: var(--pale-blue);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.lp-runtime h3 {
  margin-top: 16px;
  color: var(--navy);
  font-size: 19px;
}

.lp-runtime p {
  margin-top: 8px;
  color: var(--subtext);
  font-size: 14px;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
}

.lp-chips li {
  padding: 2px 10px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-pill);
  font-size: 12px;
}

.lp-runtime .lp-link-arrow {
  margin-top: 8px;
  font-size: 14px;
}

/* ---------- 料金ビルダー ---------- */
.lp-builder {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.lp-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 320px;
}

.lp-stack-layer {
  --lp-grow: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(46px + var(--lp-grow) * 54px);
  padding: 0 20px;
  color: var(--primary-dark);
  background: var(--pale-blue);
  border: 1px solid #c9ddf3;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: min-height .45s var(--lp-ease);
}

.lp-stack-layer.is-base {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
}

.lp-stack-layer em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.lp-sim.sim-card {
  padding: 0;
  border: 0;
}

.lp-sim .sim-total strong {
  font-size: clamp(44px, 5vw, 56px);
  color: var(--navy);
}

/* 共有コンポーネントの影をトップでは消す(フラット)。 */
.lp-sim input[type="range"]::-webkit-slider-thumb {
  box-shadow: none;
  border-color: var(--primary);
  background: #fff;
}

.lp-sim input[type="range"]::-moz-range-thumb {
  box-shadow: none;
  border-color: var(--primary);
  background: #fff;
}

.lp .lineup-link:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--primary);
}

.lp-builder-copy h3 {
  color: var(--navy);
  font-size: 22px;
}

.lp-checks {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--subtext);
}

.lp-checks li {
  position: relative;
  padding: 4px 0 4px 26px;
}

.lp-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.lp-plan-grid {
  margin-top: 40px;
}

.lp-fineprint {
  max-width: 60em;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- ステップ ---------- */
.lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

/* 番号の丸を横一線でつなぐ線 */
.lp-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #b9d4f1;
}

.lp-step {
  position: relative;
  text-align: center;
}

.lp-step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--primary);
  border: 5px solid var(--bg);
  box-sizing: content-box;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  margin-top: -5px;
}

.lp-step h3 {
  margin-top: 14px;
  color: var(--navy);
  font-size: 17px;
}

.lp-step p {
  max-width: 16em;
  margin: 6px auto 0;
  color: var(--subtext);
  font-size: 14px;
}

/* ---------- リージョン ---------- */
.lp-regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lp-region {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.lp-region.is-upcoming {
  background: var(--bg);
  border-style: dashed;
}

.lp-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-region h3 {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}

.lp-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  color: var(--subtext);
  background: #eef1f4;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.lp-status.is-live {
  color: var(--success);
  background: #e8f5ee;
}

.lp-status.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.lp-region p {
  margin-top: 12px;
  color: var(--subtext);
  font-size: 14px;
}

.lp-region dl {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
  font-size: 13px;
}

.lp-region dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lp-region dt {
  color: var(--muted);
}

.lp-region dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.lp-faq {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.lp-faq-item + .lp-faq-item {
  border-top: 1px solid var(--soft-line);
}

.lp-faq-item summary {
  position: relative;
  display: block;
  padding: 20px 56px 20px 24px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--lp-ease);
}

.lp-faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.lp-faq-answer {
  padding: 0 24px 22px;
  color: var(--subtext);
  white-space: pre-line;
}

/* ---------- 最終CTA ---------- */
.lp-cta {
  padding: clamp(80px, 10vw, 128px) 0;
  color: #fff;
  background: var(--navy);
  text-align: center;
}

.lp-cta h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.lp-cta p {
  margin-top: 16px;
  color: #b8cbe0;
  font-size: clamp(15px, 1.6vw, 17px);
}

.lp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 36px;
}

/* ---------- スクロール時のフェードイン(JS が .lp-js を付けたときだけ) ---------- */
.lp-js [data-lp-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s var(--lp-ease);
}

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

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .lp-builder {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-runtimes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-fact:nth-child(3) {
    border-left: 0;
  }

  .lp-fact:nth-child(n + 3) {
    border-top: 1px solid var(--soft-line);
  }

  .lp-stack {
    min-height: 0;
  }

  .lp-regions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .lp .container {
    width: calc(100% - 32px);
  }

  .lp-br-wide {
    display: none;
  }

  .lp-runtimes {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-fact {
    padding: 20px 8px;
  }

  /* ステップは縦のタイムラインに */
  .lp-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .lp-steps::before {
    top: 22px;
    bottom: 22px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .lp-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }

  .lp-step-num {
    grid-row: span 2;
  }

  .lp-step h3 {
    margin-top: 6px;
  }

  .lp-step p {
    margin: 2px 0 0;
  }

  .lp-cta-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition: none !important;
  }

  .lp-js [data-lp-reveal] {
    opacity: 1;
    transform: none;
  }
}
