/* =========================================================
   inprogress corporate site
   トークンは design/top.pen の変数と 1:1（$name → var(--name)）
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f3f6fa;
  --text-primary: #0b1220;
  --text-secondary: #4a5568;
  --text-tertiary: #64708a;
  --border: #e1e6ee;
  --accent: #0270b4;
  --accent-bright: #009ee8;
  --inverse-bg: #0a1628;
  --inverse-text: #ffffff;
  --inverse-secondary: #a3b1c6;
  --inverse-border: #1f2e45;
  --accent-on-dark: #38b2f5;

  --font-ja: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --page-x: 24px;
  --content-max: 1200px;
}

@media (min-width: 768px) {
  :root { --page-x: 48px; }
}

@media (min-width: 1200px) {
  :root { --page-x: 120px; }
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

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

.mono { font-family: var(--font-mono); }

/* モバイルだけで効かせる改行 */
@media (min-width: 768px) {
  .u-sp { display: none; }
}

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

/* ---------- header ---------- */

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
}

.site-header__logo img { width: 99px; height: 32px; }

.site-nav ul { display: flex; align-items: center; gap: 16px; }

.site-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .15s;
}

.site-nav a:hover { color: var(--text-primary); }

@media (min-width: 768px) {
  .site-header__inner { padding-block: 32px; }
  .site-header__logo img { width: 124px; height: 40px; }
  .site-nav ul { gap: 40px; }
  .site-nav a { font-size: 14px; }
}

/* ---------- hero ---------- */

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 72px 80px;
}

.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hero__headline {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
}

.hero__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.progress__since {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* 進捗ブロック（キャンバス note「進捗ブロックのアニメーション」準拠）
   全ブロックはグレーで表示 → 塗るブロックが左から順にグレー→青へ染まる → 先端だけ明滅 */
.blocks { display: flex; align-items: center; gap: 5px; }
.blocks--desktop { display: none; }

.block {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--border);
}

.block--on {
  background: var(--c);
  animation: block-fill 200ms ease-out both;
  animation-delay: calc(var(--i) * 60ms);
}

.block--head {
  animation:
    block-fill 200ms ease-out both,
    block-blink 1.6s ease-in-out infinite alternate;
  animation-delay:
    calc(var(--i) * 60ms),
    calc(var(--i) * 60ms + 200ms);
}

/* 塗り順（--i）と色（--c）。色はデザインの値そのまま */
.blocks--mobile .block:nth-child(1) { --i: 0; --c: #014E96; }
.blocks--mobile .block:nth-child(2) { --i: 1; --c: #146CAE; }
.blocks--mobile .block:nth-child(3) { --i: 2; --c: #2789C6; }
.blocks--mobile .block:nth-child(4) { --i: 3; --c: #39A7DD; }
.blocks--mobile .block:nth-child(5) { --i: 4; --c: #4CC4F5; }
.blocks--desktop .block:nth-child(1) { --i: 0; --c: #014E96; }
.blocks--desktop .block:nth-child(2) { --i: 1; --c: #06569C; }
.blocks--desktop .block:nth-child(3) { --i: 2; --c: #0B5EA3; }
.blocks--desktop .block:nth-child(4) { --i: 3; --c: #1066A9; }
.blocks--desktop .block:nth-child(5) { --i: 4; --c: #156DAF; }
.blocks--desktop .block:nth-child(6) { --i: 5; --c: #1A75B6; }
.blocks--desktop .block:nth-child(7) { --i: 6; --c: #1F7DBC; }
.blocks--desktop .block:nth-child(8) { --i: 7; --c: #2485C2; }
.blocks--desktop .block:nth-child(9) { --i: 8; --c: #298DC9; }
.blocks--desktop .block:nth-child(10) { --i: 9; --c: #2E95CF; }
.blocks--desktop .block:nth-child(11) { --i: 10; --c: #339DD5; }
.blocks--desktop .block:nth-child(12) { --i: 11; --c: #38A5DC; }
.blocks--desktop .block:nth-child(13) { --i: 12; --c: #3DACE2; }
.blocks--desktop .block:nth-child(14) { --i: 13; --c: #42B4E8; }
.blocks--desktop .block:nth-child(15) { --i: 14; --c: #47BCEF; }
.blocks--desktop .block:nth-child(16) { --i: 15; --c: #4CC4F5; }

@keyframes block-fill { from { background-color: var(--border); } to { background-color: var(--c); } }
@keyframes block-blink { from { opacity: 1; } to { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .block--on,
  .block--head { animation: none; }
}

@media (min-width: 768px) {
  .hero__inner { gap: 40px; padding-block: 120px 112px; }
  .status { font-size: 13px; }
  .hero__headline { font-size: 40px; line-height: 1.4; letter-spacing: -.5px; }
  .hero__lead { font-size: 18px; max-width: 720px; }
  .progress__since { font-size: 13px; }
}

@media (min-width: 1200px) {
  .hero__inner { gap: 48px; padding-block: 160px 140px; }
  .hero__headline { font-size: 64px; }
  .blocks--mobile { display: none; }
  .blocks--desktop { display: flex; gap: 6px; }
  .block { width: 14px; height: 14px; }
}

/* ---------- section common ---------- */

.section { padding-block: 72px; }
.section--surface { background: var(--surface); }
.section--inverse { background: var(--inverse-bg); color: var(--inverse-text); padding-block: 72px 80px; }

.section__head { display: flex; flex-direction: column; gap: 8px; }

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
}

.section--inverse .section__label { color: var(--accent-on-dark); }

.section__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
}

/* 見出し左・本文右の 2 カラム（Products / Company） */
.section__split { display: flex; flex-direction: column; gap: 32px; }

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section { padding-block: 96px; }
  .section--inverse { padding-block: 96px 104px; }
  .section__head { gap: 12px; }
  .section__label { font-size: 13px; }
  .section__title { font-size: 32px; }
}

@media (min-width: 1200px) {
  .section { padding-block: 120px; }
  .section--inverse { padding-block: 120px 128px; }
  .section__split { flex-direction: row; gap: 80px; }
  .section__split > .section__head { flex: 0 0 280px; }
  .section__split > :last-child { flex: 1; min-width: 0; }
}

/* ---------- business ---------- */

.business__inner { display: flex; flex-direction: column; gap: 32px; }

.pillars {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--inverse-border);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 40px;
}

.pillar + .pillar { border-top: 1px solid var(--inverse-border); }

.pillar .num { font-size: 14px; color: var(--accent-on-dark); }

.pillar__titles { display: flex; flex-direction: column; gap: 12px; }

.pillar__title { font-size: 26px; font-weight: 700; line-height: 1.4; }

.pillar__catch {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--inverse-secondary);
}

.pillar__body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--inverse-secondary);
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.prompt-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.prompt-list li::before {
  content: ">";
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-on-dark);
}

@media (min-width: 768px) {
  .pillar__title { font-size: 32px; }
  .pillar__catch { font-size: 18px; }
  .pillar__body { font-size: 16px; }
  .prompt-list li { font-size: 15px; }
}

@media (min-width: 1200px) {
  .business__inner { gap: 64px; }
  .pillars { flex-direction: row; }
  .pillar { flex: 1; min-width: 0; gap: 24px; padding: 56px 64px 0 0; }
  .pillar + .pillar { border-top: 0; border-left: 1px solid var(--inverse-border); padding: 56px 0 0 64px; }
  .pillar__title { font-size: 36px; }
}

/* ---------- products ---------- */

.product-list { border-bottom: 1px solid var(--border); }

.product {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
}

.product .num { flex: 0 0 28px; font-size: 13px; color: var(--accent); }

.product__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product__content { display: flex; flex-direction: column; gap: 14px; }

.product__name { font-size: 22px; font-weight: 700; line-height: 1.4; }

.product__desc { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }

.product__url {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-tertiary);
}

.product__arrow {
  flex: none;
  width: 20px; height: 20px;
  color: var(--text-primary);
  transition: transform .2s;
}

a.product:hover .product__arrow { transform: translate(2px, -2px); }
a.product:hover .product__name { color: var(--accent); }

.logo-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.logo-tile__soon {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.logo-tile__zb { width: 168px; height: auto; }

/* 志望校ウォッチの文字ロゴ（shiboukou-compass の BrandLogo 字組み準拠） */
.jw-lockup { display: inline-flex; align-items: center; gap: 8px; }
.jw-lockup img { width: 30px; height: 30px; }

.jw-wordmark {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Zen Maru Gothic", var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.jw-wordmark__kanji { color: #0d3a8f; letter-spacing: .01em; }
.jw-wordmark__kana { color: #1e5fdb; letter-spacing: -.01em; font-size: .9em; }

@media (min-width: 768px) {
  .product { gap: 32px; padding-block: 44px; }
  .product .num { flex-basis: 56px; font-size: 14px; }
  .product__main { flex-direction: row; gap: 32px; }
  .logo-tile { flex: 0 0 200px; height: 120px; }
  .product__content { flex: 1; min-width: 0; }
  .product__name { font-size: 30px; line-height: 1.3; }
  .product__desc { font-size: 16px; }
  .product__arrow { width: 24px; height: 24px; }
}

/* ---------- company ---------- */

.company-list { border-bottom: 1px solid var(--border); }

.company-list__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
}

.company-list dt {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-tertiary);
}

.company-list dd { font-size: 15px; line-height: 1.7; }

@media (min-width: 768px) {
  .company-list__row { flex-direction: row; gap: 32px; padding-block: 28px; }
  .company-list dt { flex: 0 0 160px; font-size: 15px; line-height: 1.7; }
  .company-list dd { flex: 1; font-size: 16px; }
}

/* ---------- footer ---------- */

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 40px;
}

.site-footer__logo img { width: 93px; height: 30px; }

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__links a { color: var(--text-secondary); }
.site-footer__links a:hover { color: var(--text-primary); }

.site-footer__copy { font-family: var(--font-mono); font-size: inherit; color: var(--text-tertiary); }

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 48px;
  }
  .site-footer__logo img { width: 105px; height: 34px; }
  .site-footer__links { flex-direction: row; align-items: center; gap: 40px; }
}

/* ---------- privacy (legal document) ----------
   pen: Privacy / Desktop・Mobile フレーム、Legal/* コンポーネント準拠 */

.legal { padding-block: 56px 96px; border-top: 1px solid var(--border); }

.legal__inner { max-width: 760px; }

.legal__title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-top: 8px; }

.legal__intro { margin-top: 32px; font-size: 15px; line-height: 1.9; color: var(--text-secondary); }

/* 条文ブロック: 子要素（見出し・段落・小見出し・列挙・注記）を 12px 間隔で縦積み */
.legal section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

/* Legal/Article Heading */
.legal h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal h2 .num { color: var(--accent); font-size: 14px; }

/* Legal/Sub Heading */
.legal h3 { font-size: 15px; font-weight: 700; line-height: 1.8; }

/* Legal/Paragraph・Legal/List Item */
.legal section p,
.legal section li { font-size: 15px; line-height: 1.9; color: var(--text-secondary); }

.legal ul { display: flex; flex-direction: column; gap: 12px; }

.legal ul li { position: relative; padding-left: calc(1ch + 8px); }

.legal ul li::before {
  content: "-";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

/* Legal/Note */
.legal section .legal__note { font-size: 13px; color: var(--text-tertiary); }

.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
  .legal { padding-block: 80px 128px; }
  .legal__title { font-size: 36px; }
  .legal__intro { font-size: 16px; }
  .legal h2 { font-size: 20px; }
}
