/* ==========================================================================
   パーフェクト模擬試験 LP
   Figma: PC 21605:871 (1440px) / SP 21605:2135 (375px)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green: #0c866a;
  --green-light: #ddeeea;
  --green-pale: #cfe3de;
  --green-bg: #d4dddb;
  --orange: #d26500;
  --orange-red: #f36421;
  --yellow: #fff61c;
  --red: #eb5757;
  --text: #171818;
  --text-sub: #333;
  --gray-100: #f5f5f5;
  --gray-200: #e3e3e3;
  --gray-300: #cecece;
  --gray-500: #999;
  --link-blue: #0c4ced;
  --footer-bg: #171818;
  --footer-text: #b9c0c4;

  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-num: "DIN Alternate", "Arial Narrow", "Inter", sans-serif;
  --font-en: "Inter", "Hiragino Sans", sans-serif;
  --font-noto: "Noto Sans JP", var(--font-jp);

  --container: 968px;
  --header-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: separate; }
hr { border: 0; margin: 0; }

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

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.bg-green {
  position: relative;
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 28px);
  background-position: 0 40px, 0 0;
  color: #fff;
}
.bg-green > * { position: relative; }

@media (max-width: 768px) { .pc-only { display: none !important; } }
@media (min-width: 769px) { .sp-only { display: none !important; } .drawer { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--primary { background: var(--orange); }
.btn__arrow { position: absolute; top: 50%; right: 20px; width: 16px; height: 16px; transform: translateY(-50%); }
.btn--sp { width: 100%; height: 54px; border-radius: 6px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.btn--sp .btn__arrow { right: 20px; }

/* ---------- Section title with bracket decoration ---------- */
/* ─┤ title ├─ : white box + vertical bars (4px) + horizontal ticks (58px) */
.sec-title {
  position: relative;
  width: 578px;
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
  color: var(--text);
  font-size: 40px;
  font-weight: 600;
  line-height: 60px;
  font-feature-settings: "palt" 1;
  --bracket: var(--green);
  --tick-w: 58px;
  --tick-y: 39px;
}
.sec-title::before, .sec-title::after {
  content: "";
  position: absolute;
  top: 0;
  width: calc(var(--tick-w) + 4px);
  height: 100%;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--bracket), var(--bracket)),
    linear-gradient(var(--bracket), var(--bracket));
}
.sec-title::before {
  left: calc(-1 * (var(--tick-w) + 4px));
  background-size: 4px 100%, var(--tick-w) 4px;
  background-position: right 0 top 0, left 0 top var(--tick-y);
}
.sec-title::after {
  right: calc(-1 * (var(--tick-w) + 4px));
  background-size: 4px 100%, var(--tick-w) 4px;
  background-position: left 0 top 0, right 0 top var(--tick-y);
}
.sec-title--green { --bracket: var(--green); }
.sec-title--pale  { --bracket: var(--green-pale); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-right: 14px;
}
.header__logos { display: flex; align-items: center; gap: 22px; height: 100%; }
.header__logo-box {
  display: flex; align-items: center; justify-content: center;
  width: 83px; height: 100%; background: #c01e20;
}
.header__logo-box img { width: 65px; height: 55px; object-fit: contain; }
.header__logo img { width: 203px; height: 34px; }
.header__right { display: flex; align-items: center; gap: 37px; }
.header__nav--pc { display: flex; align-items: center; }
.header__links { display: flex; align-items: center; gap: 28px; }
.header__links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "Noto Sans JP", var(--font-jp);
  font-size: 15px; line-height: 25.5px; letter-spacing: .2em;
  color: #005a46;
  transition: opacity .2s;
}
.header__links a:hover, .header__login:hover, .header__register:hover { opacity: .75; }
.header__icon--course { width: 26px; height: 19px; }
.header__icon--column { width: 19.6px; height: 18.7px; }
.header__icon--login { width: 24px; height: 25px; }
.header__actions { display: flex; align-items: center; gap: 9.5px; }
.header__login {
  display: inline-flex; align-items: center; justify-content: center; gap: 5.5px;
  width: 133px; height: 48px;
  border: 1.5px solid #d9d9d9;
  border-radius: 5px;
  font-family: "Noto Sans JP", var(--font-jp);
  font-size: 16.5px; letter-spacing: .1em;
  color: #005a46;
  transition: opacity .2s;
}
.header__register {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 198px; height: 48px;
  background: var(--orange);
  border-radius: 5px;
  font-family: "Noto Sans JP", var(--font-jp);
  font-size: 19.86px; font-weight: 600; letter-spacing: .2em;
  color: #fff;
  transition: opacity .2s;
}
.header__register-arrow { width: 10px; height: 15.7px; }
.header__menu { display: flex; flex-direction: column; align-items: center; gap: 4.7px; padding: 0; }
.header__menu span {
  display: block; width: 19px; height: 2px; background: #005a46;
  transition: transform .3s, opacity .3s;
}
.header__menu.is-open span:nth-child(1) { transform: translateY(6.7px) rotate(-45deg); }
.header__menu.is-open span:nth-child(2) { opacity: 0; }
.header__menu.is-open span:nth-child(3) { transform: translateY(-6.7px) rotate(45deg); }

/* Drawer (SP) */
.drawer {
  position: absolute;
  top: 100%; left: 0; right: 0;
  padding: 34px 32px 50px;
  background: rgba(255,255,255,.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__list { display: flex; flex-direction: column; gap: 15px; }
.drawer__link {
  display: flex; align-items: center; gap: 15.3px;
  font-family: "Noto Sans JP", var(--font-jp);
  font-size: 13.5px; line-height: 23px; letter-spacing: .1em;
  color: #005a46;
  transition: opacity .2s;
}
.drawer__link:hover { opacity: .75; }
.drawer__icon--course { width: 21.6px; height: 16.2px; }
.drawer__icon--column { width: 18px; height: 18px; }
.drawer__icon--career { width: 18px; height: 21.6px; }
.drawer__icon--jobs { width: 19.8px; height: 17.1px; }

/* ==========================================================================
   KV
   ========================================================================== */
.kv { position: relative; background: #fff; }
.kv__stage { position: relative; overflow: hidden; }
.kv__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  will-change: transform;
}
.kv__canvas--pc { width: 1440px; height: 690px; }
.kv__canvas--sp { display: none; width: 375px; height: 539px; }
.kv__canvas > * { position: absolute; }

/* PC canvas */
.kv__photo { left: 387px; top: 0; width: 1053px; height: 690px; overflow: hidden; }
.kv__photo img { width: 100%; height: 100%; object-fit: cover; }
.kv__panel { left: 0; top: 34px; width: 715px; height: 425px; border-radius: 12px; background: rgba(255,255,255,.92); }
.kv__badge {
  left: 100px; top: 62px; width: 496px;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 28px; font-weight: 700; line-height: 1.08; letter-spacing: .1em;
  font-feature-settings: "palt" 1;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.4));
}
.kv__title { left: 100px; top: 118px; width: 498px; }
.kv__title img { width: 100%; }
.kv__realistic { left: 334px; top: 226px; width: 262px; height: 83px; }
.kv__realistic::before, .kv__realistic::after {
  content: ""; position: absolute; top: 14px; width: 42px; height: 2px; background: var(--green);
}
.kv__realistic::before { left: 0; }
.kv__realistic::after { right: 0; }
.kv__realistic-text {
  position: absolute; left: 0; right: 0; top: 0;
  text-align: center;
  font-size: 22px; font-weight: 800; line-height: 28px; letter-spacing: .04em;
  color: var(--text-sub);
  font-feature-settings: "palt" 1;
}
.kv__stars { position: absolute; left: 6px; top: 30px; display: flex; gap: 7px; }
.kv__stars img { width: 42px; height: 40px; }
.kv__realistic { border-bottom: 2px solid var(--green); }
.kv__lead {
  left: 100px; top: 341px; width: 502px;
  text-align: center;
  color: var(--green);
  font-size: 28px; font-weight: 700; line-height: 28px; letter-spacing: .04em;
  font-feature-settings: "palt" 1;
}
.kv__chips { left: 100px; top: 387px; display: flex; gap: 8px; }
.kv__chips li {
  display: flex; align-items: center; justify-content: center;
  width: 94px; height: 42px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--text-sub);
  font-size: 21px; font-weight: 700; line-height: 1;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}
.kv__chips li:nth-child(3) { font-size: 18px; letter-spacing: -.02em; }
.kv__cta { left: 102px; top: 487px; width: 502px; height: 88px; font-size: 25px; letter-spacing: .05em; }
/* KV の CTA は Figma 通り下向き矢印（ページ内リンク） */
.kv__cta .btn__arrow, .kv__cv-sp .btn__arrow { transform: translateY(-50%) rotate(90deg); }
.kv__note { left: 102px; top: 594px; font-family: var(--font-en); font-size: 12px; line-height: 22px; color: var(--text-sub); white-space: nowrap; }
.kv__laptop { left: 1095px; top: 317px; width: 320px; height: 320px; }
.kv__laptop-ellipse { position: absolute; left: 32px; top: 43px; width: 257px; height: 257px; }
.kv__laptop-img { position: absolute; left: 13px; top: 70px; width: 299px; height: 208px; object-fit: cover; }

/* SP CV block (below canvas) */
.kv__cv-sp { display: none; }

/* ==========================================================================
   Local links
   ========================================================================== */
.llink {
  position: relative;
  z-index: 2;
  width: 1120px;
  height: 108px;
  margin: -36px auto -72px;
  padding: 19px 0 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.llink__list { display: flex; justify-content: center; gap: 20px; }
.llink__item a {
  display: flex; flex-direction: column; align-items: center;
}
.llink__item a > span, .llink__item a { color: var(--link-blue); font-size: 16px; line-height: 24px; text-align: center; }
.llink__item a {
  position: relative;
  padding: 20px 20px 26px;
  transition: opacity .2s;
}
.llink__item a::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: 64px; height: 1px; background: var(--link-blue);
}
.llink__item:first-child a::after { background: #4979f1; }
.llink__item a img { position: absolute; left: 50%; top: 64px; width: 18px; height: 6px; transform: translateX(-50%) rotate(180deg); }
.llink__item a:hover { opacity: .7; }

/* ==========================================================================
   Worries
   ========================================================================== */
.worries { padding: 132px 0 80px; overflow: hidden; }
.worries__deco { position: absolute; pointer-events: none; mix-blend-mode: multiply; }
/* 画像アセットに Figma の不透明度（左30% / 右40%）が焼き込み済みのため、CSS 側では opacity を掛けない */
.worries__deco--left { left: -863px; top: 106px; width: 1065px; }
.worries__deco--right { left: calc(50% + 511px); top: 416px; width: 781px; }
.worries__title {
  position: relative;
  width: 754px;
  margin: 0 auto;
  padding-bottom: 13px;
  text-align: center;
  white-space: nowrap;
  font-size: 40px; font-weight: 600; line-height: 60px;
  font-feature-settings: "palt" 1;
}
.worries__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 736px; height: 8px; transform: translateX(-50%);
  background: var(--yellow);
}
.worries__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  padding: 31px 0 33px;
  background: #fff;
  border-radius: 8px;
  color: var(--text);
}
/* 吹き出しの下向きしっぽ（Figma: 底辺 65px / 高さ 18px、中央） */
.worries__list::after {
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 0; height: 0;
  border-left: 32px solid transparent;
  border-right: 33px solid transparent;
  border-top: 18px solid #fff;
  transform: translateX(-50%);
}
/* 4 列とも人物画像の位置を揃えるため、下端基準で積む（Figma は画像の y が 4 列共通） */
.worries__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 20px;
  height: 193px;
}
.worries__item + .worries__item::before {
  content: ""; position: absolute; left: 0; top: 32px;
  width: 2px; height: 157px;
  background: linear-gradient(to bottom, rgba(99,99,99,0), rgba(99,99,99,.35), rgba(99,99,99,0));
}
.worries__text {
  text-align: center;
  font-weight: 600;
  color: var(--orange-red);
  font-size: 28px; line-height: 28px;
}
.worries__text strong { display: block; font-weight: 600; }
.worries__text strong > :first-child { line-height: 34px; }
.worries__small { display: block; color: var(--text); font-size: 16px; line-height: 28px; }
.worries__mid { font-size: 20px; }
.worries__img { width: 168px; height: 87px; object-fit: contain; }
.worries__solve {
  margin-top: 49px;
  text-align: center;
  color: var(--yellow);
  font-size: 48px; font-weight: 600; line-height: 60px;
  font-feature-settings: "palt" 1;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: 80px 0 118px; background: var(--green-bg); }
.features__lead { position: relative; margin-top: 28px; padding-top: 50px; text-align: center; }
.features__lead-deco { position: absolute; left: 50%; top: 0; width: 975px; max-width: none; transform: translateX(-50%); }
.features__lead-text { font-size: 28px; line-height: 51px; font-weight: 600; color: var(--text); }
.features__lead-strong {
  color: var(--green);
  font-size: 36px; font-weight: 700; line-height: inherit;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}
.features__list { display: flex; flex-direction: column; gap: 35px; margin-top: 33px; }
.features__item {
  display: grid;
  grid-template-columns: 51px 181px 1fr;
  column-gap: 26px;
  align-items: center;
  min-height: 125px;
  padding: 8px 32px 8px 40px;
  background: #fff;
  border: 1.5px solid #e6e6e6;
  border-radius: 16px;
}
.features__num {
  font-family: var(--font-num);
  font-size: 80px; font-weight: 700; line-height: 1;
  color: var(--green);
}
.features__chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 181px; height: 56px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 9px;
  box-shadow: 0 1.5px 3px rgba(12,134,106,.3);
  color: var(--green);
  font-family: var(--font-noto);
  font-size: 26px; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.features__chip img { width: 29px; height: 29px; }
.features__body { display: flex; flex-direction: column; }
.features__heading {
  font-family: var(--font-noto);
  font-size: 26px; font-weight: 700; line-height: 42px;
  font-feature-settings: "palt" 1;
}
.features__desc {
  max-width: 601px;
  font-family: var(--font-noto);
  font-size: 15px; font-weight: 400; line-height: 28px;
  color: #646464;
}
.features__stars { display: flex; align-items: center; gap: 8px; }
.features__stars::before, .features__stars::after {
  content: ""; flex: 1 0 0; height: 1px; background: rgba(12,134,106,.4);
}
.features__stars-icons { display: flex; gap: 4px; }
.features__stars-icons img { width: 24px; height: 24px; }

/* ==========================================================================
   Contents by grade
   ========================================================================== */
.contents { padding: 80px 0; }
.ctable {
  width: calc(100% + 4px);
  margin: 41px -2px 0;
  border-spacing: 2px;
  color: var(--text);
  text-align: center;
  table-layout: fixed;
}
.ctable th, .ctable td { padding: 0; font-weight: 600; }
.ctable__corner { width: 162px; background: var(--green-pale); }
.ctable__group { height: 80px; background: var(--green-pale); font-size: 20px; line-height: 24px; }
.ctable__sub { height: 44px; background: var(--gray-200); font-size: 16px; line-height: 24px; }
.ctable__grade { height: 80px; background: var(--green-pale); font-size: 20px; line-height: 24px; }
.ctable tbody td { height: 80px; background: var(--gray-100); }
.ctable__btn { display: block; width: 183px; margin: 0 auto; transition: opacity .2s; }
.ctable__btn:hover { opacity: .85; }
.ctable__btn img { width: 100%; }
.ctable__none, .ccard__none { display: block; width: 40px; height: 4px; margin: 0 auto; background: var(--gray-500); }
.contents__note { margin-top: 24px; text-align: right; font-family: var(--font-en); font-size: 14px; line-height: 12px; }
.ccards { display: none; }

/* ==========================================================================
   Randori
   ========================================================================== */
.randori {
  padding: 32px 0 80px;
  background: #fff url("../images/randori/bg.png") center top / cover no-repeat;
  color: var(--text);
}
.randori__heading img { width: 100%; }
.randori__panel {
  padding: 32px 24px 54px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}
.randori__grade { color: var(--green); font-size: 32px; font-weight: 600; line-height: 32px; font-feature-settings: "palt" 1; }
.randori__lead { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 32px; font-feature-settings: "palt" 1; }
.randori__lead::first-line { line-height: 40px; }
.randori__features {
  margin-top: 28px;
  padding: 30px 12px 12px;
  background: #f1ecd2;
  border-radius: 8px;
}
.randori__features-title { font-family: var(--font-en); font-size: 24px; font-weight: 700; line-height: 14px; font-feature-settings: "palt" 1; }
.randori__features-list { display: flex; gap: 12px; margin-top: 30px; }
.randori__features-list li {
  position: relative;
  display: flex; align-items: center;
  width: 442px; height: 115px;
  padding-left: 81px;
  background: #fff;
  border-radius: 8px;
  text-align: left;
}
.randori__features-num {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 92px; font-weight: 700; line-height: 1;
  color: var(--orange);
  opacity: .4;
}
.randori__features-list p { font-size: 20px; font-weight: 700; line-height: 1.5; }
.randori__start {
  display: flex; align-items: center; gap: 14px;
  margin-top: 40px;
  padding: 0 44px;
  font-size: 20px; font-weight: 600; line-height: 14px;
}
.randori__start::before, .randori__start::after {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(to right, #e5e5e5 0 6px, transparent 6px 12px);
}
.randori__start span { white-space: nowrap; }
.randori__buttons { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.randori__btn { width: 412px; height: 88px; font-size: 24px; letter-spacing: .05em; }
.randori__note { margin-top: 32px; text-align: right; font-size: 16px; line-height: 12px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { padding: 80px 0; text-align: center; }
.cta__head { position: relative; }
.cta__bracket { position: absolute; top: 6px; width: 39px; height: 107px; }
.cta__bracket--left { left: 0; }
.cta__bracket--right { right: 0; }
.cta__title {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 40px; font-weight: 600; line-height: 60px;
  font-feature-settings: "palt" 1;
}
.cta__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 766px; height: 6px; transform: translateX(-50%);
  background: var(--yellow);
}
.cta__sub { font-size: 24px; font-weight: 600; line-height: 60px; font-feature-settings: "palt" 1; }
.cta__mark { font-size: .5em; vertical-align: super; line-height: 0; }
.cta__note { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.cta__divider { margin-top: 40px; height: 1px; background: #ccc; }
.cta__ai-lead { margin-top: 24px; font-size: 24px; font-weight: 600; line-height: 60px; font-feature-settings: "palt" 1; }
.cta__banner { display: block; margin-top: 7px; border-radius: 8px; overflow: hidden; transition: opacity .2s; }
.cta__banner:hover { opacity: .9; }
.cta__banner img { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 62px 0; background: var(--footer-bg); color: var(--footer-text); }
.footer__inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.footer__cols { display: flex; gap: 113px; }
.footer__list { display: flex; flex-direction: column; gap: 13px; font-size: 13px; font-weight: 300; line-height: 19.5px; letter-spacing: .02em; white-space: nowrap; }
.footer__list a:hover { color: #fff; }
.footer__sns { display: flex; justify-content: center; align-items: flex-start; gap: 36px; height: 40px; margin-top: 40px; }
.footer__sns a { display: block; transition: opacity .2s; }
.footer__sns a:hover { opacity: .8; }
.footer__copy { margin-top: 10px; text-align: center; font-size: 12px; font-weight: 300; line-height: 18px; letter-spacing: .02em; }

/* ==========================================================================
   新規登録確認モーダル
   ========================================================================== */
.signup-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(23,24,24,.4);
}
.signup-modal[hidden] { display: none; }
.signup-modal__window {
  position: relative;
  width: 100%; max-width: 884px;
  padding: 40px 40px 44px;
  background: #fff;
  border-radius: 4px;
  text-align: center;
  color: var(--text);
}
.signup-modal__close {
  position: absolute; top: 12px; right: 16px;
  width: 32px; height: 32px;
  color: #4a4f4e;
  font-size: 30px; line-height: 1; font-weight: 300;
}
.signup-modal__title { color: #e00000; font-size: 18px; font-weight: 700; line-height: 1.5; }
.signup-modal__text { margin-top: 24px; text-align: left; font-size: 14px; font-weight: 300; line-height: 1.7; }
.signup-modal__text + .signup-modal__text { margin-top: 20px; }
.signup-modal__buttons { display: flex; justify-content: center; gap: 18px; margin-top: 32px; }
.signup-modal__button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 128px; height: 50px; padding: 0 30px;
  border-radius: 4px;
  font-size: 15px; font-weight: 700;
  transition: opacity .2s;
}
.signup-modal__button:hover { opacity: .8; }
.signup-modal__button--login { background: #ff7a00; color: #fff; }
.signup-modal__button--signup { background: #fff; color: var(--text); border: 1px solid #b3b3b3; }
.signup-modal__note { margin-top: 20px; text-align: left; font-size: 12px; line-height: 1.7; color: var(--text-sub); }
@media (max-width: 768px) {
  .signup-modal__window { padding: 40px 20px 28px; }
  .signup-modal__title { font-size: 16px; }
  .signup-modal__text { font-size: 13px; }
  .signup-modal__buttons { flex-direction: column; gap: 10px; }
  .signup-modal__button { width: 100%; }
}

/* ==========================================================================
   Tablet (769px – 1200px): keep PC layout, shrink oversize fixed widths
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1200px) {
  .container { padding: 0 16px; }
  .llink { width: calc(100% - 32px); }
  .llink__list { flex-wrap: wrap; }
  .worries__deco { display: none; }
  .footer__inner { padding: 0 16px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 60px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .sec-title { width: 100%; max-width: 578px; }
  .worries__title { width: 100%; white-space: normal; }
  .worries__title::after { width: 100%; }
  .features__lead-deco { width: 100%; }
  .features__item { column-gap: 16px; padding: 12px 16px; }
  .randori__features-list li { width: 50%; }
  .randori__btn { width: 50%; }
  .cta__title::after { width: 100%; }
}

/* ==========================================================================
   SP (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .container { padding: 0 16px; }

  /* Header */
  .header__inner { padding-right: 15px; }
  .header__logos { gap: 9px; }
  .header__logo-box { width: 48px; }
  .header__logo-box img { width: 44px; height: auto; }
  .header__logo-sp { position: relative; display: block; width: 48px; height: 44px; }
  .header__logo-mark-top { position: absolute; left: 14.5%; top: 0; width: 70.7%; height: 76.5%; }
  .header__logo-mark-bottom { position: absolute; left: 0; top: 84.2%; width: 100%; height: 15.8%; }
  .header__nav--pc { display: none; }
  .header__right { gap: 10px; }
  .header__actions { gap: 5px; }
  .header__login {
    width: 78px; height: 32px; gap: 3.3px;
    border-width: 1px; border-radius: 3.3px;
    font-size: 11px; letter-spacing: .05em;
  }
  .header__icon--login { width: 14.7px; height: 14.7px; }
  .header__register {
    width: 86px; height: 32px; gap: 5.4px;
    border-radius: 3.3px;
    font-size: 13px; letter-spacing: .1em;
  }
  .header__register-arrow { width: 5.6px; height: 8.8px; }
  .header__menu { gap: 4.7px; }
  .header__menu span { width: 19px; height: 1.9px; }

  /* Buttons */
  .btn { border-radius: 6px; }

  /* Section title */
  .sec-title {
    width: 295px; height: 92px;
    font-size: 28px; line-height: 36px;
    --tick-w: 16px;
    --tick-y: 44px;
  }

  /* KV */
  .kv__canvas--pc { display: none; }
  .kv__canvas--sp { display: block; }
  .kv__bg-sp { left: 0; top: 0; width: 375px; height: 539px; }
  .kv__canvas--sp .kv__badge {
    left: 16px; top: 16px; width: 343px; height: 40px;
    padding: 0;
    font-size: 16px; letter-spacing: .1em;
  }
  .kv__canvas--sp .kv__title { left: 16px; top: 64px; width: 343px; }
  .kv__stars-sp { left: 177px; top: 140.5px; width: 180px; height: 55px; }
  .kv__canvas--sp .kv__lead { left: 16px; top: 217px; width: 343px; font-size: 20px; line-height: 30px; letter-spacing: .04em; }
  .kv__canvas--sp .kv__chips { left: 16px; top: 259px; width: 340px; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .kv__canvas--sp .kv__chips li { width: 108px; font-size: 18px; }
  .kv__canvas--sp .kv__chips li:nth-child(3) { font-size: 18px; letter-spacing: 0; }
  .kv__canvas--sp .kv__laptop { left: 28px; top: 317px; }
  .kv__canvas--sp .kv__laptop-ellipse { left: -2px; top: 75px; width: 128px; height: 128px; }
  .kv__canvas--sp .kv__laptop-img { left: -12px; top: 88px; width: 149px; height: 104px; }
  .kv__cv-sp { display: block; position: relative; padding: 24px 16px 0; }
  .kv__cv-sp .kv__note { position: static; margin-top: 17px; font-family: var(--font-jp); font-size: 11px; line-height: 18px; color: var(--text); white-space: normal; }

  /* Local links */
  .llink {
    width: calc(100% - 32px);
    height: auto;
    margin: 24px auto -130px;
    padding: 4px 12px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
  }
  .llink__list { flex-wrap: wrap; justify-content: space-between; gap: 0 20px; }
  .llink__item { flex: 1 1 calc(50% - 10px); }
  .llink__item--wide { flex: 1 1 100%; }
  .llink__item a { padding: 20px 12px 26px; }
  .llink__item a::after { left: 12px; right: 12px; }
  .llink__item:nth-child(2) a::after { background: #4979f1; }
  .llink__item:not(.llink__item--wide) a { padding-left: 4px; padding-right: 4px; font-size: 15px; white-space: nowrap; }
  .llink__item:not(.llink__item--wide) a::after { left: 4px; right: 4px; }

  /* Worries */
  .worries { padding: 158px 0 86px; }
  .worries__deco { display: none; }
  .worries__title { width: 100%; white-space: normal; padding-bottom: 0; font-size: 32px; line-height: 40px; }
  .worries__title-line { font-size: 16px; }
  .worries__title::after { width: 100%; height: 4px; bottom: -8px; }
  .worries__list { grid-template-columns: 1fr; gap: 54px; margin-top: 32px; padding: 31px 0 80px; }
  /* SP のしっぽ（Figma: 底辺 61px / 高さ 24px） */
  .worries__list::after { border-left-width: 30px; border-right-width: 31px; border-top-width: 24px; }
  .worries__item { height: auto; justify-content: flex-start; }
  .worries__item + .worries__item::before {
    left: 50%; top: -27px; width: 157px; height: 2px; transform: translateX(-50%);
    background: linear-gradient(to right, rgba(99,99,99,0), rgba(99,99,99,.35), rgba(99,99,99,0));
  }
  /* SP は 32px の本文に PC の line-height:28px が効いて行が重なっていた（Figma は約 38px） */
  .worries__text { font-size: 32px; line-height: 38px; }
  .worries__small { font-size: 18px; }
  .worries__mid { font-size: 24px; line-height: 28px; }
  .worries__solve { margin-top: 48px; font-size: 32px; line-height: 46px; } /* しっぽ 24px + Figma の余白 24px */

  /* Features */
  .features { padding: 40px 0 51px; }
  .features__lead { margin-top: 24px; padding-top: 0; }
  .features__lead-text { display: none; }
  .features__list { gap: 14px; margin-top: 24px; }
  .features__item {
    grid-template-columns: auto 1fr;
    column-gap: 16px; row-gap: 8px;
    min-height: 0;
    padding: 16px;
  }
  .features__num { font-size: 64px; line-height: 56px; }
  .features__chip {
    justify-self: start;
    width: auto; height: 42px;
    gap: 4px; padding: 4px 9px;
    border-radius: 6px;
    font-size: 28px;
  }
  .features__chip img { width: 23px; height: 21px; }
  .features__body { grid-column: 1 / -1; gap: 8px; }
  .features__heading { font-size: 24px; line-height: 1.45; }
  .features__desc { max-width: none; font-size: 16px; line-height: 24px; }

  /* Contents */
  .contents { padding: 40px 0; }
  .ccards { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; color: var(--text); text-align: center; }
  .ccard { background: #fff; }
  .ccard__title { height: 52px; display: flex; align-items: center; justify-content: center; background: var(--green-pale); font-size: 18px; font-weight: 600; }
  .ccard__sub { height: 44px; margin-top: 2px; display: flex; align-items: center; justify-content: center; background: var(--gray-200); font-size: 16px; font-weight: 600; }
  .ccard__rows { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
  .ccard__rows li { display: flex; gap: 2px; height: 80px; }
  .ccard__grade {
    display: flex; align-items: center; justify-content: center;
    width: 88px; flex: 0 0 88px;
    padding: 0 12px;
    background: var(--green-pale);
    font-size: 16px; font-weight: 600; line-height: 24px;
  }
  .ccard__cell { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
  .ccard__btn img { width: 239px; }
  .ccard__none { margin: 0; }
  .contents__note { margin-top: 16px; text-align: left; font-family: var(--font-jp); font-size: 11px; font-weight: 300; line-height: 12px; }

  /* Randori */
  .randori { padding: 24px 0 40px; }
  .randori__panel { padding: 28px 12px 16px; }
  .randori__grade { font-size: 28px; }
  .randori__lead { margin-top: 0; font-size: 20px; }
  .randori__features { margin-top: 32px; padding: 36px 8px 8px; }
  .randori__features-list { flex-direction: column; gap: 8px; margin-top: 24px; }
  .randori__features-list li { width: 100%; height: auto; min-height: 98px; padding: 16px 8px 16px 56px; }
  .randori__features-num { left: 12px; font-size: 68px; }
  .randori__start { margin-top: 40px; padding: 0; }
  .randori__buttons { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 30px; }
  .randori__btn { width: 100%; height: 54px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
  .randori__btn .btn__arrow { right: 12px; }
  .randori__note { margin-top: 16px; text-align: left; font-size: 11px; font-weight: 300; line-height: 18px; }

  /* CTA */
  .cta { padding: 42px 0 40px; }
  .cta__bracket { width: 38px; height: 121px; }
  .cta__title { padding-bottom: 15px; font-size: 32px; line-height: 44px; }
  .cta__title::after { width: 285px; height: 4px; }
  .cta__sub { margin-top: 16px; font-size: 20px; line-height: 28px; }
  .cta__note { margin-top: 12px; font-size: 12px; text-align: left; }
  .cta__divider { margin-top: 32px; }
  .cta__ai-lead { margin-top: 33px; font-size: 16px; line-height: 28px; }
  .cta__banner { margin-top: 16px; }

  /* Footer */
  .footer { padding: 40px 16px; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__list { white-space: normal; }
  .footer__list--group { grid-column: 1 / -1; }
  .footer__sns { margin-top: 32px; }
}
