@charset "UTF-8";
/* ==========================================================
   共通スタイル（LP・診断フォーム・完了ページで共有）
   背景は白を基本に 朱〜橙のグラデーションと山吹をアクセントに使う
   ========================================================== */

:root {
  /* 色 */
  --white: #ffffff;          /* ページとカードの地色 */
  --soft: #f3f3f3;           /* 薄いグレー：チェック項目やカードの面 */
  --band: #f1eee9;           /* 見出し帯 */
  --line: #e2e2e2;           /* 罫線 */
  --sumi: #222222;           /* 文字・ボタン */
  --sumi-2: #3a3a3a;
  --gray-dark: #4d4d4d;      /* お悩み欄の背景 */
  --muted: #666666;          /* 補足文字 */
  --shu: #e04a3a;            /* 朱：主役のアクセント */
  --shu-deep: #c93a2e;       /* 朱（濃）：小さな文字用 */
  --orange: #f0803c;         /* 橙：グラデーションの終点 */
  --yamabuki: #f8b500;       /* 山吹 */
  --yamabuki-2: #ffd54a;

  --grad-shu: linear-gradient(100deg, var(--shu) 0%, var(--orange) 100%);
  --grad-shu-deep: linear-gradient(100deg, #c93a2e 0%, #d9532b 100%);
  --grad-sun: linear-gradient(165deg, var(--yamabuki-2) 0%, var(--yamabuki) 32%, var(--orange) 72%, var(--shu) 100%);
  --mark: linear-gradient(transparent 62%, rgba(240, 128, 60, .42) 62%);

  /* 書体：和文はZen Kaku Gothic New 英数字はMontserrat 社名表記はArchivo */
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-num: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  --f-brand: "Archivo", "Montserrat", sans-serif;

  /* 寸法 */
  --col: 600px;              /* スマホ・タブレットの本文幅 */
  --wrap: 1120px;            /* PCの本文幅 */
  --gutter: 20px;
  --bar-h: 76px;             /* PC上部のバーの高さ */
  --pill: 999px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

body {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .05em;
  color: var(--sumi);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  line-break: strict;
}

:focus-visible { outline: 3px solid var(--yamabuki); outline-offset: 3px; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* マーカー（強調の下線） */
.mk {
  background: var(--mark);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.num { font-family: var(--f-num); font-weight: 800; letter-spacing: 0; }
.nb { white-space: nowrap; }
/* スマホだけの改行（PCでは1行にする） */
@media (min-width: 1024px) { br.sp { display: none; } }

/* 社名表記：ロゴマーク＋BE TRADING を横並びに */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-family: var(--f-brand);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--sumi);
  white-space: nowrap;
}
.brand img { flex: none; width: auto; height: 1.5em; }

/* ==========================================================
   ステージ：スマホは1カラム タブレットは中央に本文 PCは画面幅いっぱい
   ========================================================== */
.stage {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--col)) 1fr;
  min-height: 100vh;
}
.col {
  grid-column: 2;
  position: relative;
  background: var(--white);
  overflow: clip;
  min-width: 0;
}
/* タブレット幅では本文カラムに影を付けて背景の帯が浮いて見えないようにする */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .col { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 20px 60px -20px rgba(0, 0, 0, .2); }
}
@media (min-width: 1024px) {
  html { scroll-padding-top: calc(var(--bar-h) + 16px); }
  .stage { display: block; min-height: 0; }
}

/* ==========================================================
   PC上部のバー（1024px以上で表示）
   ========================================================== */
.topbar { display: none; }
@media (min-width: 1024px) {
  .topbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .topbar__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(100% - 80px, var(--wrap));
    height: var(--bar-h);
    margin: 0 auto;
  }
  .topbar__logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
  .topbar__logo .brand { font-size: 21px; }
  .topbar__tag {
    padding: 2px 13px;
    border: 2px solid var(--sumi);
    border-radius: var(--pill);
    font-weight: 900;
    font-size: 12.5px;
    letter-spacing: .1em;
    white-space: nowrap;
  }
  .topbar__nav { display: none; }
  .topbar__nav a {
    position: relative;
    padding: 6px 0;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    white-space: nowrap;
    text-decoration: none;
  }
  .topbar__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-shu);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
  }
  .topbar__nav a:hover::after { transform: none; }
  .topbar__cta,
  .topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    border-radius: var(--pill);
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
    text-decoration: none;
  }
  .topbar__cta {
    height: 50px;
    padding: 0 20px 0 28px;
    background: var(--sumi);
    color: #fff;
    font-size: 15px;
    transition: background-color .2s;
  }
  .topbar__cta .ic { font-size: 18px; color: var(--yamabuki); stroke-width: 4.5; transition: transform .3s var(--ease-spring); }
  .topbar__cta:hover { background: var(--sumi-2); }
  .topbar__cta:hover .ic { transform: translateX(3px); }
  .topbar__back {
    padding: 8px 22px;
    border: 2px solid var(--sumi);
    font-size: 14px;
    transition: background-color .2s, color .2s;
  }
  .topbar__back:hover { background: var(--sumi); color: #fff; }
}
@media (min-width: 1200px) {
  .topbar__nav { display: flex; gap: 26px; margin-left: auto; }
  .topbar__nav + .topbar__cta { margin-left: 8px; }
}

/* ==========================================================
   CTAボタン（黒のピル＋斜線の影）
   ========================================================== */
.cta-wrap { padding: 8px var(--gutter) 48px; text-align: center; }
.cta-wrap--tight { padding-bottom: 8px; }
.cta-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 12px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
}
.cta-kicker::before, .cta-kicker::after {
  content: ""; width: 2.5px; height: 18px; background: currentColor; border-radius: 2px;
}
.cta-kicker::before { transform: rotate(-28deg); }
.cta-kicker::after { transform: rotate(28deg); }
.cta-kicker b { color: var(--shu-deep); }

.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 66px 14px 20px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(16px, 5vw, 23px);
  letter-spacing: .08em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transform-origin: 50% 60%;
  transition: transform .25s var(--ease-out);
}
.cta::before {
  /* ボタンの面 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sumi);
  transition: background-color .25s;
}
.cta::after {
  /* 斜線の影 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  transform: translate(5px, 7px);
  background: repeating-linear-gradient(-45deg, var(--sumi) 0 2.5px, transparent 2.5px 6px);
}
.cta__arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: var(--white);
  color: var(--sumi);
  font-size: 22px;
  transition: transform .3s var(--ease-spring);
}
.cta__arrow .ic { stroke-width: 4.5; }
@media (max-width: 359px) {
  .cta { min-height: 68px; padding-right: 58px; letter-spacing: .04em; }
  .cta__arrow { right: 10px; width: 40px; height: 40px; margin-top: -20px; font-size: 19px; }
}
.cta:hover::before { background: var(--sumi-2); }
.cta:hover .cta__arrow { transform: translateX(4px); }
.cta:active { transform: translate(3px, 4px); }
.cta--jelly { animation: jelly 3.6s ease-in-out 2.4s infinite; }

@keyframes jelly {
  0%, 70%, 100% { transform: none; }
  76% { transform: translateY(-6px) scale(1.02); }
  82% { transform: translateY(0) scale(1); }
  87% { transform: translateY(-3px) scale(1.01); }
  92% { transform: none; }
}

/* ==========================================================
   セクション見出し（帯＋下向きのしっぽ）
   ========================================================== */
.sec { position: relative; padding-bottom: 56px; }
.sec-head {
  position: relative;
  margin-bottom: 44px;
  padding: 26px var(--gutter) 24px;
  background: var(--band);
  text-align: center;
}
.sec-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 30px;
  height: 16px;
  background: var(--band);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}
.sec-head__ja {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.42;
  letter-spacing: .06em;
}
.sec-head__ja small {
  display: block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .sec { padding-bottom: 96px; }
  .sec-head { margin-bottom: 64px; padding: 34px 40px 32px; }
  .sec-head::after { bottom: -19px; width: 40px; height: 20px; }
  .sec-head__ja { font-size: 38px; }
  .sec-head__ja small { font-size: 15px; }
  .cta-wrap { padding: 16px 40px 64px; }
  .cta-wrap--tight { padding-bottom: 16px; }
}

.note { font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- フッター ---------- */
.foot {
  padding: 36px var(--gutter) 116px;
  background: var(--sumi);
  color: rgba(255, 255, 255, .78);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.foot a { color: #fff; }
.foot__copy { margin-top: 8px; font-family: var(--f-num); font-weight: 500; letter-spacing: .08em; }
@media (min-width: 1024px) { .foot { padding: 44px 40px; } }

/* ==========================================================
   スクロール連動の表示（CSSのみ 対応ブラウザだけで動作）
   ========================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes rv-in {
  from { opacity: 0; transform: translateY(32px) scale(.98); }
  to { opacity: 1; transform: none; }
}

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