/* モバイルを基本とし、広い画面でレイアウトを拡張します。
   色値は参照サイトのCSS・computed styleに合わせています。 */
:root {
  --page-bg: #080d30;
  --space-bg: #060a26;
  --text: #fff;
  --primary-bg: #2035c080;
  --primary-border: #2035c0;
  --secondary-bg: #080d3033;
  --secondary-border: #ffffff1a;
  --header-height: 72px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--page-bg); color: var(--text); font: 16px/1.5 Saira,"Noto Sans JP","Hiragino Sans","Yu Gothic",Meiryo,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible,button:focus-visible { outline: 2px solid #4d65ff; outline-offset: 5px; }
[hidden] { display: none !important; }
.header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: var(--header-height); background: radial-gradient(circle,#091779b8,#0c155280); border-bottom: 1px solid #0048ff45; border-radius: 0 0 24px 24px; backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); }
.header-inner { height: var(--header-height); max-width: 1440px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 16px; }
.brand { flex-shrink: 0; width: 86px; }
.brand img { width: 100%; height: auto; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.login { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 58px; padding: 16px 24px; border: 1px solid var(--primary-border); border-radius: .4rem; background: var(--primary-bg); color: var(--text); font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: 2px; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .25s,border-color .25s; }
.button:hover { background: #2035c0; }
.button-secondary { background: var(--secondary-bg); border-color: var(--secondary-border); }
.button-secondary:hover { background: #475eff1f; border-color: #475eff; }
.header-signup { min-height: 42px; padding: 8px 12px; font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.menu-toggle { display: grid; place-content: center; gap: 5px; width: 40px; height: 44px; padding: 8px; border: 0; color: white; background: transparent; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform .2s,opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; inset-inline: 0; padding: 16px 24px; background: #080d3ffa; border: 1px solid #0048ff45; border-radius: 16px; max-height: calc(100dvh - var(--header-height)); overflow: auto; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 14px; }
/* 画面の幾何学的な中央に2ボタンを配置。固定ヘッダー分の余白で中央位置はずらしません。 */
/* vh → svh → dvhの順で対応ブラウザの指定を優先。固定の最小高さは設けない。 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--space-bg);
}
.background-atmosphere { position: absolute; inset: 0; z-index: -4; background: radial-gradient(ellipse at 5% 22%,#203c8755,transparent 40%),radial-gradient(ellipse at 90% 90%,#66358555,transparent 42%); }
.main-actions { display: flex; flex-direction: column; gap: 16px; width: min(280px,calc(100% - 48px)); position: relative; z-index: 5; }
.main-actions .button { width: 100%; }
.chart { position: absolute; bottom: -48px; left: -5%; width: 135%; z-index: -2; pointer-events: none; }
.chart img { width: 100%; }

.footer { border-top: 1px solid #ffffff1a; background: var(--page-bg); }
.footer-inner { max-width: 1360px; margin: auto; padding: 48px 24px; }
.footer-top { display: grid; gap: 32px; padding-bottom: 48px; }
.footer-logo { width: 150px; height: auto; }
.copyright { margin: 32px 0; color: #d7e5ff; font-size: 14px; }
.languages { display: flex; gap: 8px; }
.language { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border: 1px solid #536dff36; border-radius: 16px; font-size: 14px; }
.language.active { background: var(--primary-bg); }
.language img { object-fit: contain; }
.footer-menu { display: grid; gap: 0; }
.footer-menu>div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-menu a { padding: 8px 0; font-size: 14px; font-weight: 500; }
.footer-menu a:hover,.login:hover { color: #b5c4ff; }
.disclaimer { border-top: 1px solid #ffffff1a; padding-top: 24px; color: #d7e5ff80; font-size: 13px; line-height: 1.8; }
.disclaimer p { margin: 0; }

@media (min-width:480px) {
  .brand { width: 112px; }
  .header-inner { padding-inline: 24px; }
  .login,.header-signup { font-size: 14px; }
  .header-signup { padding-inline: 24px; }
  .main-actions { flex-direction: row; width: auto; }
  .main-actions .button { width: 170px; }
  .footer-menu { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width:768px) {
  .chart { width: max(1450px, 110vw); left: 0; bottom: -110px; }

  .footer-inner { padding: 80px 40px; }
  .footer-top { grid-template-columns: .5fr 1fr; column-gap: 15vw; padding-bottom: 64px; }
}
@media (min-width:992px) {
  :root { --header-height:64px; }
  .header { background-image: radial-gradient(circle,#09177966,#0c155280); }
  .header-inner { position: relative; padding-inline: 40px; }

  .brand { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 195px; height:64px; overflow:hidden; }
  .header-actions { gap: 28px; }
  .login { letter-spacing: 2px; }
  .menu-toggle,.mobile-menu { display: none; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; } }

/* 参照ページが使用する実画像で雲と光を再現。アニメーションは静止状態です。 */
.background-atmosphere { background: var(--space-bg); }
.background-atmosphere img { position:absolute; pointer-events:none; max-width:none; }
.background-haze-left { right:0; top:-5%; width:auto; height:50vh; opacity:.8; mix-blend-mode:screen;  left: auto; transform: scaleX(-1);}
.background-haze-right { left:0; bottom:0; height:50vh; opacity:.1;  right: auto; transform: scaleX(-1);}
.background-haze-secondary { left:0; bottom:0; height:50vh; opacity:.1; mix-blend-mode:multiply;  right: auto; transform: scaleX(-1);}
.background-light { left:-90vw; bottom:0; height:70vh; mix-blend-mode:screen;  right: auto; transform: scaleX(-1);}
@media(min-width:769px) {
 .background-haze-left { width:700px; height:auto;  transform: scaleX(-1);}
 .background-haze-right { height:auto; opacity:.3;  transform: scaleX(-1);}
 .background-haze-secondary { height:auto; opacity:1;  transform: scaleX(-1);}
 .background-light { left:0; width:1000px; height:auto;  right: auto; transform: scaleX(-1);}
}

/* 見出し・特典・ボタンを通常の文書順で表示。 */
.bonus-badge {
  margin: 0;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: #dcdcdc;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: center;
}

/* 元サイトと同じ背景コンポーネント。惑星は画像ではなくWebGL描画。 */
.background-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  --planet-1-left: auto;
  --planet-1-right: clamp(20px, 4vw, 64px);
  --planet-1-top: calc(var(--header-height) + 24px);
  --planet-1-bottom: auto;
  --planet-2-right: auto;
  --planet-2-top: auto;
  --planet-2-left: -100px;
  --planet-2-bottom: 30px;
  --planet-2-width: 200px;
  --planet-2-height: 200px;
}
@media (min-width: 561px) {
  .background-scene {
    --planet-2-left: -60px;
    --planet-2-bottom: 20px;
    --planet-2-width: 210px;
    --planet-2-height: 210px;
  }
}
@media (min-width: 768px) {
  .background-scene {
    --planet-2-left: -150px;
    --planet-2-bottom: 50px;
    --planet-2-width: 400px;
    --planet-2-height: 400px;
  }
}
@media (min-width: 1281px) {
  .background-scene {
    --planet-2-left: -250px;
    --planet-2-bottom: 0px;
    --planet-2-width: 520px;
    --planet-2-height: 520px;
  }
}

/* 追加セクション：既存の濃紺と青を継承するモバイルファースト構成。 */
.content-section { padding: 64px 24px; background: var(--page-bg); scroll-margin-top: 88px; }
.section-inner { max-width: 1200px; margin-inline: auto; }
.section-heading { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-badge { display: inline-block; margin: 0 0 20px; padding: 8px 18px; border: 1px solid #536dff24; border-radius: 99px; background: radial-gradient(ellipse at top,#4fb6ff17,#9771ff0d); font-size: 14px; letter-spacing: 1px; color: #d7e5ff; }
.content-section h2 { margin: 0 0 20px; font-size: clamp(26px,3.2vw,40px); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.section-lead { margin: 0; font-size: 16px; line-height: 1.9; color: #d7e5ffb3; }
.reasons-grid { display: grid; gap: 16px; }
.reason-card { min-width: 0; padding: 28px; border: 1px solid #536dff36; border-radius: 20px; background: radial-gradient(ellipse at top left,#2035c030,transparent 75%); }
.reason-icon { display: block; width: 42px; height: 42px; margin-bottom: 24px; color: #7ca7ff; }
.reason-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.6; }
.reason-card p { margin: 0; color: #d7e5ffb3; font-size: 16px; line-height: 1.8; }
.team-section { background: radial-gradient(ellipse at 50% 50%,#2035c026,transparent 68%),var(--page-bg); }
.team-stats { display: grid; gap: 0; margin: 40px 0 0; }
.team-stats>div { display: flex; flex-direction: column-reverse; align-items: center; padding: 28px 8px; border-bottom: 1px solid #536dff36; }
.team-stats dt { margin-top: 8px; color: #d7e5ffb3; font-size: 16px; }
.team-stats dd { margin: 0; font-family: Saira,Arial,sans-serif; font-size: clamp(48px,6vw,72px); font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; color: #fff; }
.team-stats dd span { font-size: .55em; }

.cashback-layout { display: grid; gap: 32px; align-items: center; }
.cashback-copy { text-align: center; }
.cashback-copy .button { margin-top: 28px; }
.cashback-amount { white-space: nowrap; }
.cashback-art { width: 100%; max-width: 560px; height: auto; margin: auto; border-radius: 24px; }
@media (min-width: 600px) {
  .reasons-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .team-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .team-stats>div { border-bottom: 0; }
  .team-stats>div+div { border-left: 1px solid #536dff36; }
}
@media (min-width: 992px) {
  .content-section { padding: 100px 40px; }
  .section-heading { margin-bottom: 48px; }
  .reasons-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .reason-card { padding: 32px; }
  .cashback-layout { grid-template-columns: 1fr 1fr; gap: 64px; }
  .cashback-copy { text-align: left; }
}

.partner-logo { width: 160px; max-width: 100%; height: auto; margin: 0 auto 24px; }

.demo-layout { display: grid; gap: 32px; align-items: center; }
.demo-copy { min-width: 0; text-align: center; }
.demo-copy .button { margin-top: 28px; }
.demo-art { width: 100%; max-width: 560px; height: auto; margin: auto; border-radius: 24px; }
@media (min-width: 992px) {
  .demo-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
  .demo-copy { grid-column: 2; grid-row: 1; text-align: left; }
  .demo-art { grid-column: 1; grid-row: 1; }
}

.risk-warning { margin-bottom: 24px; color: #b9c4df; font-size: 12px; line-height: 1.9; }
.risk-warning h2 { margin: 0 0 12px; color: #d7e5ff; font-size: 14px; font-weight: 700; }

/* 背景は固定し、前面の不透明なフッターで覆う。本文全体はクリップしない。 */
#main {
  position: relative;
  isolation: isolate;
}
.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: var(--space-bg);
}
#main > section { position: relative; z-index: 1; }
#main > .hero { background: transparent; }
#main > .content-section { background: #080d30b3; }
.footer { position: relative; z-index: 1; background: var(--page-bg); }

/* PCのファーストビューにある2ボタンのみ拡大。 */
@media (min-width: 992px) {
  .hero .main-actions { gap: 20px; }
  .hero .main-actions .button {
    width: 220px;
    min-height: 68px;
    padding: 20px 32px;
    font-size: 18px;
    line-height: 26px;
  }
}

/* 惑星の配色。角度を0degにすると元の色合いに戻せます。 */
:root {
  --planet-hue: 35deg;
  --planet-saturation: 1.1;
}
.background-scene::part(planets) {
  filter: hue-rotate(var(--planet-hue)) saturate(var(--planet-saturation));
}

/* 画面下部の固定CTA。本文末尾に余白を確保し、端末の安全領域にも対応。 */
.footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
.fixed-cashback {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.fixed-cashback.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hero-signup,
.fixed-cashback-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  background: var(--primary-bg);
  border-color: #b8ffff;
  box-shadow:
    0 0 3px #e3ffff,
    0 0 9px #59f5ffcc,
    0 0 22px #35dfff99,
    0 0 40px #7964ff66,
    inset 0 0 8px #59f5ff66;
  transition: border-color .25s, box-shadow .25s;
}
.fixed-cashback-button {
  width: 100%;
  max-width: 520px;
  min-height: 3.5rem;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}
.hero-signup:hover,
.hero-signup:focus-visible,
.fixed-cashback-button:hover,
.fixed-cashback-button:focus-visible {
  background: var(--primary-bg);
  border-color: #efffff;
  box-shadow:
    0 0 4px #ffffff,
    0 0 12px #59f5ffee,
    0 0 28px #35dfffbb,
    0 0 48px #7964ff88,
    inset 0 0 12px #59f5ff88;
}
/* 光の走査はCSSのみ。非表示中はアニメーションを停止。 */
.hero-signup::before,
.fixed-cashback-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, #a4edff40 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cashback-scan 4.8s ease-in-out infinite;
  animation-play-state: paused;
}
.hero-signup::before,
.fixed-cashback.is-visible .fixed-cashback-button::before { animation-play-state: running; }
@keyframes cashback-scan {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .fixed-cashback { transition: none; transform: none; }
  .hero-signup::before,
  .fixed-cashback-button::before { animation: none; }
}
@media (min-width: 768px) {
  .fixed-cashback-button { font-size: 1rem; }
}

/* 装飾レイヤーはスクロールやタップを受け取らない。 */
html { overflow-y: auto; }
body { touch-action: auto; }
.page-background, .page-background * { pointer-events: none; }

/* 中央より少し左上の天体。既存の惑星と同じ描画方式を使用。 */
.background-scene {
  --extra-nebula-texture: url('../images/cloud-left.webp');
  --extra-body-left: 34%;
  --extra-body-top: max(calc(var(--header-height) + 56px), 24%);
  --extra-body-size: clamp(48px, 12vw, 64px);
}
@media (min-width: 768px) {
  .background-scene {
    --extra-body-top: max(calc(var(--header-height) + 70px), 27%);
    --extra-body-size: clamp(76px, 8vw, 120px);
  }
}

/* ページの主題を常時表示し、狭い画面でも内容が重ならない構成。 */
.hero {
  padding: calc(var(--header-height) + 24px) 16px 40px;
  min-height: calc(var(--header-height) + 380px);
}
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1040px;
  text-align: center;
}
.hero-title {
  width:100%;
  margin: 0 0 2rem;
  color: var(--text);
  font-size: clamp(1.65rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px #060a26;
}
.hero-title span {
  display: block;
  margin-top: .4em;
  font-size: .6em;
  letter-spacing: .06em;
}
@media (max-width: 479px) {
  .hero-content .main-actions { width: min(280px, 100%); }
}

.official-mark {
  text-align: left;
  font-size: clamp(.75rem, 2vw, 1rem) !important;
  color: #fff;
}

.hero-title .sub-title {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  font-size: .6em;
  color: #a8baff;
  text-align: center;
}
.hero-title .sub-title::before,
.hero-title .sub-title::after {
  content: "";
  flex: 0 1 96px;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #91a9f5);
}
.hero-title .sub-title::after { transform: scaleX(-1); }
@media (max-width: 479px) {
  .hero-title .sub-title {
    gap: 8px;
    font-size: clamp(.8rem, 3.6vw, 1rem);
    letter-spacing: .04em;
  }
  .hero-title .sub-title::before,
  .hero-title .sub-title::after { flex-basis: 32px; }
}
