@charset "utf-8";
/* =========================================================
   PC COMPASS for students — styles.css
   外部フォント・外部画像なし。色はすべて :root のトークンから。
   ========================================================= */
:root {
  --navy: #17253e;
  --blue: #255be8;
  --blue-deep: #1b46b8;
  --pale: #eaf1ff;
  --pale-2: #f5f8ff;
  --orange: #ff9c55;
  --orange-ink: #a44a0b; /* 白背景で文字に使える濃い橙（コントラスト 5.6:1） */
  --text: #17253e;
  --muted: #47546d; /* 白背景で 7.6:1 */
  --line: #d4ddef;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 37, 62, .08);
  --header-h: 68px;
  --guide-space: 188px; /* PCで固定ガイドのために空ける本文の左余白 */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  --ease-pop: cubic-bezier(.175, .885, .32, 1.275);
  --ease-float: cubic-bezier(.455, .03, .515, .955);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  line-break: strict;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 共通部品 ---------- */
.shell { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  color: var(--blue-deep); font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); border-radius: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--navy);
  font-weight: 700; font-size: 1rem; line-height: 1.4; text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--navy);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--navy); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy); }
.btn-outline:hover { background: var(--pale); }
.btn-lg { min-height: 58px; padding: 12px 30px; font-size: 1.0625rem; }
.btn-arrow { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.btn-arrow::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 7px;
  border-top: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: rotate(45deg);
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.note { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1rem;
}
.input:focus, .select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 91, 232, .25); }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }

/* ---------- 上部帯・ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; min-height: var(--header-h); padding: 8px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; min-height: 44px; flex: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.05; white-space: nowrap; }
.brand-name { display: flex; align-items: baseline; gap: 6px; }
.brand-tagline { font-size: .6875rem; color: var(--muted); letter-spacing: .08em; font-weight: 500; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .06em; font-weight: 800; }
.brand-text small { font-size: .8125rem; color: var(--blue-deep); letter-spacing: .06em; font-weight: 700; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9375rem;
}
.site-nav a:hover { background: var(--pale); }
.site-nav a[aria-current="page"] { background: var(--pale); color: var(--blue-deep); }
/* ヘッダーの「PC診断」は目立つボタンにする */
.site-nav a.nav-cta { margin-left: 6px; background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--navy); }
.site-nav a.nav-cta:hover { background: var(--blue-deep); }
.site-nav a.nav-cta[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 12px; width: 20px; height: 2.5px; background: var(--navy); border-radius: 2px; content: "";
}
.menu-bars { top: 21px; }
.menu-bars::before { top: -7px; left: 0; }
.menu-bars::after { top: 7px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle, rgba(37, 91, 232, .16) 1.4px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--pale-2), #fff 92%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) 24px clamp(28px, 4vh, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 48px); align-items: center;
}
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-title {
  margin-top: 0;
  font-size: clamp(21px, 7.6cqi, 52px);
  line-height: 1.42; font-weight: 800; letter-spacing: .02em; word-break: keep-all;
}
@supports not (font-size: 1cqi) { .hero-title { font-size: clamp(1.5rem, .8rem + 2.6vw, 3rem); } }
.hero-title-em {
  color: var(--blue);
  background: linear-gradient(transparent 68%, rgba(255, 156, 85, .45) 68%, rgba(255, 156, 85, .45) 92%, transparent 92%);
}
.hero-points { margin-top: 20px; display: grid; gap: 10px; font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); font-weight: 700; }
.hero-points li { display: flex; align-items: baseline; gap: 10px; }
.hero-points li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-1px); }
.hero-visual { min-width: 0; position: relative; container-type: inline-size; }

/* 会話シーン：親が高さを固定（aspect-ratio）するので文言が変わっても人物・本文は動かない */
.scene {
  position: relative; width: 100%; max-width: 640px; margin: 0 auto;
  aspect-ratio: 100 / 84; container-type: inline-size;
}
.scene-layer { position: absolute; inset: 0; }
.scene-bg { pointer-events: none; }
.scene-floor { position: absolute; left: 4%; right: 4%; bottom: var(--stand); height: 1.5px; background: var(--line); }
.scene { --stand: 8%; } /* 人物が立つ床の高さ。下の余白に名前の札を置く */
.figure { position: absolute; bottom: var(--stand); width: 44%; aspect-ratio: 240 / 320; }
.figure-student { left: -3%; }
.figure-editor { right: -3%; }
.figure-art, .figure-art svg, .figure-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.figure-art img, .guide-person-inner img { object-position: 50% 100%; } /* 透過画像は足元をそろえる */
/* 新大学生の歩き：動画の間は静止画と名前の札を隠す。JS が止まっても 9 秒後には CSS だけで出る */
/* 登場の動画を流す間は、静止画と名前の札を隠す（JS が止まっても9秒後には表示） */
.walk-on .figure .figure-art, .walk-on .figure .figure-tag { opacity: 0; animation: walk-still-fallback 0s 9s forwards; }
.figure .figure-tag { transition: opacity .3s ease; } /* 動画が止まると同時に浮かび上がる */
.walk-on .figure.walk-revealed .figure-art, .walk-on .figure.walk-revealed .figure-tag,
.walk-on .figure.walk-held .figure-tag { opacity: 1; animation: none; }
.walk-on .figure.walk-held .figure-art { opacity: 0; animation: none; } /* 最後のコマを表示し続ける（静止画は使わない） */
@keyframes walk-still-fallback { to { opacity: 1; } }
.walk-canvas { position: absolute; display: block; pointer-events: none; will-change: transform; }
.figure-editor .figure-art img { transform: scale(var(--editor-scale, .64)); transform-origin: 50% 100%; } /* COMPASSくんは新大学生より小さく */
.figure-art.is-mirrored { transform: scaleX(-1); }
.figure-tag {
  position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap;
  font-size: clamp(11px, 2.1cqi, 13px); font-weight: 700; background: var(--navy); color: #fff;
  padding: 1px 10px; border-radius: 999px; letter-spacing: .06em;
}
.figure-tag-editor { background: var(--blue-deep); }

/* 吹き出し：Anchor（位置）→ Float（浮遊）→ Panel（文章・しっぽ・出入り）。transform を別要素に分ける */
.bubble-anchor { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
/* タブレット（641〜960px）の配置。PC・スマホは下のメディアクエリで上書き */
.bubble-anchor[data-slot="guide-top"] { --x: 62%; --y: 24%; --w: 37%; }
.bubble-anchor[data-slot="student-top"] { --x: .5%; --y: 2%; --w: 30%; } /* 頭の斜め左上 */
.bubble-anchor[data-slot="student-right"] { --x: 33%; --y: 21%; --w: 28%; } /* 頭の右側 */
.bubble-anchor[data-slot="student-side"] { --x: 33%; --y: 48%; --w: 30%; }
.bubble-anchor[data-slot="guide-side"] { --x: 32%; --y: 72%; --w: 30%; }
.bubble-float {
  animation: bubble-float 1.6s var(--ease-float) infinite alternate both;
  animation-delay: var(--float-delay, 0ms);
}
.bubble-anchor[data-slot="guide-top"] .bubble-float { --float-delay: 0ms; }
.bubble-anchor[data-slot="student-top"] .bubble-float { --float-delay: -350ms; }
.bubble-anchor[data-slot="guide-side"] .bubble-float { --float-delay: -700ms; }
.bubble-anchor[data-slot="student-side"] .bubble-float { --float-delay: -1150ms; }
.bubble-anchor[data-slot="student-right"] .bubble-float { --float-delay: -500ms; }
@keyframes bubble-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.scene.is-paused .bubble-float { animation-play-state: paused; }
.bubble-panel {
  position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 1.1em;
  padding: .62em .95em; box-shadow: 0 .28em 0 rgba(23, 37, 62, .14);
  font-size: clamp(12px, 2.85cqi, 17px); line-height: 1.5; font-weight: 700;
  transform-origin: var(--origin, 50% 100%);
}
.bubble-anchor[data-speaker="guide"] .bubble-panel { background: var(--pale); }
.bubble-text { min-height: 3em; display: flex; align-items: center; } /* 常に2行分の高さ */
.bubble-panel::after { /* しっぽ */
  content: ""; position: absolute; width: .9em; height: .9em; background: inherit;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.bubble-anchor[data-slot="guide-top"] .bubble-panel { --origin: 72% 100%; }
.bubble-anchor[data-slot="guide-top"] .bubble-panel::after { right: 49%; bottom: -.5em; transform: rotate(45deg); }
.bubble-anchor[data-slot="student-top"] .bubble-panel { --origin: 30% 100%; }
.bubble-anchor[data-slot="student-top"] .bubble-panel::after { left: 60%; bottom: -.5em; transform: rotate(45deg); }
.bubble-anchor[data-slot="student-side"] .bubble-panel { --origin: 0 70%; }
.bubble-anchor[data-slot="student-side"] .bubble-panel::after { left: -.5em; bottom: 28%; transform: rotate(135deg); }
.bubble-anchor[data-slot="guide-side"] .bubble-panel { --origin: 100% 60%; }
.bubble-anchor[data-slot="guide-side"] .bubble-panel::after { right: -.5em; top: 38%; transform: rotate(-45deg); }
.bubble-anchor[data-slot="student-right"] .bubble-panel { --origin: 0 60%; }
.bubble-anchor[data-slot="student-right"] .bubble-panel::after { left: -.5em; top: 38%; transform: rotate(135deg); } /* しっぽは左（頭の方） */
.js .bubble-panel.is-hidden { visibility: hidden; opacity: 0; }

/* PC（961px以上）：文言を上、イラストと会話を下に重ねて配置。シーンは横長にして高さを抑える */
@media (min-width: 961px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(8px, 2vh, 20px); padding-top: clamp(56px, 9vh, 96px); }
  .hero-copy { width: 100%; max-width: 880px; text-align: center; }
  .hero-title { font-size: clamp(32px, 5.4cqi, 50px); }
  .hero-points { width: fit-content; margin-inline: auto; text-align: left; }
  .hero-visual { width: 100%; }
  .scene { max-width: 920px; aspect-ratio: 100 / 54; }
  .figure { width: 27%; }
  .figure-student { left: 12%; } /* 中心の円の外（左）に立つ */
  .figure-editor { right: 14%; } /* 中心の円の外（右）に立つ */
  .figure-tag { font-size: 13px; }
  .bubble-panel { font-size: clamp(13px, 1.9cqi, 17px); }
  /* 新大学生の頭の左側（枠の上端が頭より少し上） */
  .bubble-anchor[data-slot="student-top"] { --x: 1%; --y: 21%; --w: 20%; }
  .bubble-anchor[data-slot="student-top"] .bubble-panel { --origin: 100% 50%; }
  /* 新大学生の頭の右側 */
  .bubble-anchor[data-slot="student-right"] { --x: 35%; --y: 26%; --w: 22%; }
  .bubble-anchor[data-slot="student-top"] .bubble-panel { --origin: 58% 100%; }
  .bubble-anchor[data-slot="student-top"] .bubble-panel::after { left: auto; bottom: auto; right: -.5em; top: 38%; transform: rotate(-45deg); } /* しっぽは右（頭の方） */
  /* 新大学生の左側に置き、しっぽを右（新大学生の方）へ向ける */
  .bubble-anchor[data-slot="student-side"] { --x: .5%; --y: 56%; --w: 20%; }
  .bubble-anchor[data-slot="student-side"] .bubble-panel { --origin: 100% 60%; }
  .bubble-anchor[data-slot="student-side"] .bubble-panel::after { left: auto; bottom: auto; right: -.5em; top: 38%; transform: rotate(-45deg); }
  .bubble-anchor[data-slot="guide-top"] { --x: 66%; --y: 26%; --w: 28%; } /* 中心の円にかからない位置 */
  .bubble-anchor[data-slot="guide-top"] .bubble-panel { --origin: 25% 100%; }
  .bubble-anchor[data-slot="guide-top"] .bubble-panel::after { right: auto; left: 22%; } /* しっぽは COMPASSくんの頭の上 */
  /* COMPASSくんの右側に置き、しっぽを左（COMPASSくんの方）へ向ける */
  .bubble-anchor[data-slot="guide-side"] { --x: 82%; --y: 58%; --w: 17.5%; }
  .bubble-anchor[data-slot="guide-side"] .bubble-panel { --origin: 0 60%; }
  .bubble-anchor[data-slot="guide-side"] .bubble-panel::after { right: auto; left: -.5em; top: 38%; transform: rotate(135deg); }
}



/* ---------- セクション共通（PCでは固定ガイド分の左余白を確保） ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-title { margin-top: 6px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.4; font-weight: 800; }
.section-lead { margin-top: 8px; color: var(--muted); }
@media (min-width: 961px) {
  .section { padding-left: var(--guide-space); }
}

/* ---------- 記事カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; background: #fff;
  border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 0 var(--pale);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #cfdcf8; }
.card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 8.5; display: grid; place-items: center; overflow: hidden;
  border-bottom: 2px solid var(--navy); background: var(--pale);
}
.card-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(37, 91, 232, .18) 1.3px, transparent 1.6px) 0 0 / 16px 16px;
}
.card-thumb[data-category="faculty"] { background: #fff1e6; }
.card-thumb[data-category="faculty"]::before { background-image: radial-gradient(circle, rgba(255, 156, 85, .4) 1.3px, transparent 1.6px); }
.card-thumb[data-category="life"] { background: #eef7f1; }
.card-thumb[data-category="life"]::before { background-image: radial-gradient(circle, rgba(23, 37, 62, .14) 1.3px, transparent 1.6px); }
.card-thumb-word {
  position: relative; font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--navy);
  background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 4px 16px; box-shadow: 0 4px 0 var(--navy);
}
.card-rank {
  position: absolute; left: 12px; top: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--navy); font-weight: 800; border: 2px solid var(--navy);
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8125rem; color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; background: var(--pale); color: var(--blue-deep); font-weight: 700; font-size: .8125rem; }
.tag-faculty { background: #fff1e6; color: var(--orange-ink); }
.tag-life { background: #e6f3ea; color: #1f6b3a; }
.card-title { font-size: 1.0625rem; line-height: 1.55; font-weight: 800; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* カード全体をクリック可能に */
.card-title a:focus-visible { outline: none; }
.card-excerpt { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.card-keywords { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--muted); }
.card-keywords li::before { content: "#"; }

.article-search { display: grid; gap: 14px; margin-bottom: 18px; padding: 18px; border-radius: var(--radius); background: var(--pale-2); border: 1.5px solid var(--line); }
.search-row { display: flex; gap: 10px; }
.search-row .input { flex: 1; min-width: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--navy);
  background: #fff; font-weight: 700; cursor: pointer; font-size: .9375rem;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.result-count { margin-bottom: 14px; color: var(--muted); font-weight: 700; }
.empty-state { padding: 28px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- 選び方の基本 ---------- */
.section-basics { background: var(--pale-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 18px; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 2.25rem; line-height: 1; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.step-num::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; background: var(--orange); border-radius: 2px; }
.step-title { font-size: 1.1875rem; font-weight: 800; }
.step p { color: var(--muted); }
.step .text-link { margin-top: auto; align-self: flex-start; text-align: left; }


/* ---------- メディア紹介 ---------- */
.about-box {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end;
  padding: clamp(24px, 4vw, 44px); border-radius: 28px; border: 2px solid var(--navy);
  background: radial-gradient(circle, rgba(37, 91, 232, .12) 1.3px, transparent 1.6px) 0 0 / 18px 18px, #fff;
}
.about-copy { display: grid; gap: 14px; }
.policy-list { display: grid; gap: 10px; }
.policy-list li { padding: 12px 16px; background: var(--pale-2); border-radius: 14px; border-left: 4px solid var(--orange); }
.policy-list strong { display: block; color: var(--navy); }

/* ---------- PC COMPASSとは（about.html） ---------- */
.about-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: end; }
.about-hero-copy, .about-cta-title { word-break: auto-phrase; }
.nowrap { white-space: nowrap; }
/* ロゴと同じ比率・色で社名を書く（PC COMPASS ＝ 紺・字間.06em、for students ＝ 0.65倍・青） */
.logo-word { color: var(--navy); letter-spacing: .06em; }
.logo-word-sub { font-size: .65em; color: var(--blue-deep); letter-spacing: .06em; font-weight: 700; margin-right: .15em; }
.br-sp { display: none; } /* スマホ（960px以下）だけで改行する */
.br-pc { display: none; } /* PC（961px以上）だけで改行する */
@media (min-width: 961px) { .br-pc { display: inline; } }
.about-hero-copy { margin-top: 14px; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 800; line-height: 1.5; color: var(--blue); }
.about-hero .page-lead { margin-top: 14px; }
.page-about .section, .page-shops .section, .page-diagnosis .section { padding-left: 0; }
/* PC診断ページ：質問を1枚のカードで表示 */
.diagnosis-section { padding-top: clamp(28px, 5vw, 48px); }
.diagnosis-panel { max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 36px); display: grid; gap: 14px; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: 0 6px 0 var(--pale); scroll-margin-top: 90px; }
.diagnosis-note { max-width: 820px; margin: 18px auto 0; }
/* お悩み：真ん中に困っている学生、まわりに悩みの吹き出し（左右4つずつを互い違いに） */
.worry-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 17vw, 200px) minmax(0, 1fr);
  grid-template-rows: repeat(9, auto); column-gap: clamp(16px, 3vw, 40px); row-gap: 10px; align-items: center;
  max-width: 1040px; margin: 0 auto;
}
.worry-figure { grid-column: 2; grid-row: 1 / -1; position: relative; margin: 0; padding-top: 34px; }
.worry-figure img { display: block; width: 100%; height: auto; }
.worry-marks { position: absolute; top: 0; left: -10%; width: 120%; height: auto; overflow: visible; }
.worry-bubbles { display: contents; }
.worry-bubble {
  position: relative; padding: 12px 18px; border: 2px solid var(--navy); border-radius: 22px; background: #fff;
  font-weight: 700; line-height: 1.6; box-shadow: 0 4px 0 var(--pale); max-width: 380px;
}
.worry-bubble::after { /* しっぽ（学生の方を向く） */
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; background: inherit;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
/* 奇数は左、偶数は右。1段ずつずらして互い違いに */
.worry-bubble:nth-child(odd) { grid-column: 1; justify-self: end; }
.worry-bubble:nth-child(even) { grid-column: 3; justify-self: start; }
.worry-bubble:nth-child(odd)::after { right: -9px; transform: translateY(-50%) rotate(-45deg); }
.worry-bubble:nth-child(even)::after { left: -9px; transform: translateY(-50%) rotate(135deg); }
.worry-bubble:nth-child(1) { grid-row: 1 / 3; }
.worry-bubble:nth-child(2) { grid-row: 2 / 4; }
.worry-bubble:nth-child(3) { grid-row: 3 / 5; margin-right: 28px; }
.worry-bubble:nth-child(4) { grid-row: 4 / 6; margin-left: 24px; }
.worry-bubble:nth-child(5) { grid-row: 5 / 7; }
.worry-bubble:nth-child(6) { grid-row: 6 / 8; }
.worry-bubble:nth-child(7) { grid-row: 7 / 9; }
.worry-bubble:nth-child(5) { margin-right: 28px; }
.worry-bubble:nth-child(8) { grid-row: 8 / 10; margin-left: 24px; }
.worry-bubble:nth-child(4n+1), .worry-bubble:nth-child(4n) { background: var(--pale); }
@media (max-width: 760px) {
  /* スマホ：悩み4つ → 学生 → 悩み4つ。左右交互に寄せる */
  .worry-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 12px; }
  .worry-figure { grid-column: 1; grid-row: auto; order: 2; width: 110px; justify-self: center; padding-top: 28px; margin: 4px 0; }
  .worry-bubble:nth-child(n) { grid-column: 1; grid-row: auto; margin: 0; max-width: 88%; order: 1; }
  .worry-bubble:nth-child(n+5) { order: 3; }
  .worry-bubble:nth-child(odd) { justify-self: start; }
  .worry-bubble:nth-child(even) { justify-self: end; }
  .worry-bubble::after { display: none; }
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 20px; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: 0 5px 0 var(--pale); }
.feature-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8125rem; font-weight: 700; }
.feature-title { font-size: 1.1875rem; font-weight: 800; line-height: 1.5; }
.feature-card p:not(.feature-tag) { color: var(--muted); }
.feature-card .text-link { margin-top: auto; align-self: flex-start; }
.policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
.faq summary { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 48px 12px 18px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: .875rem; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translateY(-70%) rotate(45deg); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 14px; }
.faq p { padding: 0 18px 16px 58px; color: var(--muted); }
.about-note { margin-top: 24px; }
.about-cta { padding: clamp(48px, 7vw, 80px) 0; background: radial-gradient(circle, rgba(37, 91, 232, .14) 1.3px, transparent 1.6px) 0 0 / 20px 20px, var(--pale); border-top: 1px solid var(--line); }
.about-cta-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.about-cta-title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 800; line-height: 1.5; }
.about-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.about-cta .btn-outline { background: #fff; }
.about-cta .btn-outline:hover { background: var(--pale-2); }
@media (max-width: 960px) {
  .feature-grid, .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .br-sp { display: inline; }
}
@media (max-width: 560px) {
  .about-cta-actions { width: 100%; }
  .about-cta-actions .btn { width: 100%; }
}

/* ---------- ご購入先（shops.html） ---------- */
.shop-jump { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.shop-jump a:hover { border-color: var(--navy); }
.kind-badge { display: inline-flex; align-items: center; flex: none; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--pale); color: var(--blue-deep); }
.kind-badge[data-kind="refurb"] { background: #fff1e6; color: var(--orange-ink); }
.kind-badge[data-kind="used"] { background: #f0eefc; color: #4b3a9c; }

/* 4象限マップ */
.quad-wrap { display: grid; gap: 14px; max-width: 860px; }
.quad { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px; }
.quad-axis { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 700; color: var(--blue-deep); }
.quad-axis-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .1em; }
.quad-axis-x { grid-row: 2; grid-column: 2; }
.quad-axis-y span:first-child::before { content: "\2191"; }
.quad-axis-y span:last-child::after { content: "\2193"; }
.quad-axis-x span:first-child::before { content: "\2190 "; }
.quad-axis-x span:last-child::after { content: " \2192"; }
.quad-plot {
  position: relative; grid-row: 1; grid-column: 2; aspect-ratio: 16 / 10;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.quad-cell { position: relative; padding: 10px 12px; }
.quad-tl { background: #eef7f1; border-right: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.quad-tr { background: var(--pale-2); border-bottom: 1.5px dashed var(--line); }
.quad-bl { background: #fff8f1; border-right: 1.5px dashed var(--line); }
.quad-br { background: #f6f7f9; }
.quad-tr, .quad-br { text-align: right; }
.quad-bl, .quad-br { display: flex; flex-direction: column; justify-content: flex-end; }
.quad-label { display: inline-block; font-size: .875rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.quad-label small { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); }
.quad-tl .quad-label { color: #1f6b3a; }
.quad-dot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--navy); background: var(--pale);
  color: var(--navy); font-size: .875rem; font-weight: 800; white-space: nowrap; text-decoration: none;
  box-shadow: 0 3px 0 rgba(23, 37, 62, .18);
}
.quad-dot[data-kind="refurb"] { background: #ffe3cc; }
.quad-dot[data-kind="used"] { background: #e6e1fb; }
.quad-legend { display: grid; gap: 6px; font-size: .9375rem; color: var(--muted); }
.quad-legend li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 比較表 */
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--navy); color: #fff; font-size: .875rem; white-space: nowrap; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody th { white-space: nowrap; font-weight: 800; }
.compare-table tbody th a { color: var(--blue-deep); }
.compare-table td { color: var(--muted); }
.compare-table td b { display: block; font-size: 1.125rem; color: var(--navy); }

/* 購入先の詳細 */
.shop-detail-list { display: grid; gap: 20px; }
.shop-detail { scroll-margin-top: 90px; padding: clamp(20px, 3vw, 28px); background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: 0 5px 0 var(--pale); display: grid; gap: 14px; }
.shop-detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-detail-head h3 { font-size: 1.375rem; font-weight: 800; }
.shop-detail-lead { color: var(--muted); }
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pros, .cons { padding: 14px 16px; border-radius: 14px; }
.pros { background: #eef7f1; }
.cons { background: #fff4ec; }
.pc-title { font-weight: 800; margin-bottom: 6px; }
.pros .pc-title { color: #1f6b3a; }
.cons .pc-title { color: var(--orange-ink); }
.pros li, .cons li { position: relative; padding-left: 1.3em; line-height: 1.7; }
.pros li::before { content: "\25CB"; position: absolute; left: 0; color: #1f6b3a; font-weight: 800; }
.cons li::before { content: "\25B3"; position: absolute; left: 0; color: var(--orange-ink); font-weight: 800; }
.shop-fit { padding: 12px 16px; border-radius: 14px; background: var(--pale); }
.shop-fit strong { display: block; color: var(--blue-deep); font-size: .875rem; }

/* タイプ別おすすめ */
.fit-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fit-card { padding: 18px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; align-content: space-between; }
.fit-who { font-weight: 700; line-height: 1.6; }
.fit-to { font-weight: 800; color: var(--navy); }
.fit-to a { color: var(--blue-deep); }
.tier-map { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--pale-2); border: 1.5px solid var(--line); }
.tier-map-title { font-weight: 800; margin-bottom: 10px; }
.tier-map dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; }
.tier-map dt { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tier-map dd { color: var(--muted); }
.tier-chip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--navy); background: var(--pale); flex: none; }
.tier-chip[data-tier="matsu"] { background: var(--navy); color: #fff; }
.tier-chip[data-tier="take"] { background: var(--blue); color: #fff; }
.about-cta .note { max-width: 40em; }

@media (max-width: 960px) {
  .fit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pros-cons, .fit-list { grid-template-columns: minmax(0, 1fr); }
  .quad-plot { aspect-ratio: 1 / 1.05; }
  .quad-label { font-size: .75rem; }
  .quad-label small { font-size: .6875rem; }
  .quad-dot { font-size: .75rem; padding: 4px 9px; }
  .tier-map dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tier-map dd { margin-bottom: 8px; padding-left: 44px; }
}
@media (max-width: 360px) {
  .quad-plot { aspect-ratio: 1 / 1.25; }
  .quad-dot { font-size: .6875rem; padding: 3px 7px; }
  .quad-axis { font-size: .75rem; }
}

/* =========================================================
   オープニング（トップページ・このタブで初めて開いた時だけ）
   ========================================================= */

/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root { --ink: currentColor; --ink-2: #FF4FD8; --ink-3: #4FF8FF; }

/* 61 Smoke-Signal — letters curl upward and dissipate like smoke, then re-form */
.fx-smoke {
  font: 600 32px/1.1 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  color: var(--ink);
}
.fx-smoke b {
  font-weight: inherit;
  display: inline-block;
  animation: fx-smoke 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .16s);
}
@keyframes fx-smoke {
  0%, 42%   { transform: none; opacity: 1; filter: blur(0); color: var(--ink); }
  62%       { color: var(--ink-3); }
  78%       { transform: translate(6px, -22px) rotate(14deg) scale(1.45); opacity: 0; filter: blur(7px); }
  79%       { transform: translateY(10px) scale(.8); opacity: 0; filter: blur(4px); }
  92%, 100% { transform: none; opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-smoke b { animation: none; }
}

/*
 * オープニングの時間割（合計3.5秒）
 *   0.00〜1.02秒  文字が1文字ずつ順に現れる（0.3秒ずつ・0.04秒間隔。Smoke-Signal の「再形成」と同じ動き）
 *   1.02〜1.80秒  全文字がそろった状態で止まる
 *   1.80〜3.22秒  1文字ずつ煙のように消える（0.7秒ずつ・0.04秒間隔。Smoke-Signal の「消散」と同じ動き・色）
 *   3.25〜3.50秒  白い画面が薄く消えてトップページへ
 * JS が動かなくても、CSS だけで3.5秒後に白い画面は消えて操作できるようになる
 */
.intro { display: none; }
.intro-on .intro {
  --step: .04s;   /* 1文字ずつずらす間隔 */
  --out-at: 1.8s; /* 消え始める時刻 */
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 1000; padding: 0 20px;
  background: #fff; color: var(--navy);
  animation: intro-out .25s ease 3.25s forwards;
}
.intro.is-skipping { animation: intro-out .25s ease 0s forwards; } /* クリック・キー操作で飛ばした時 */
.intro .fx-smoke { font-size: min(32px, calc((100vw - 40px) / 22)); white-space: nowrap; } /* 19文字が1行に収まる大きさ */
.intro .fx-smoke b {
  animation: fx-smoke-in .3s ease-out both, fx-smoke-out .7s ease-in-out forwards;
  animation-delay: calc(var(--i) * var(--step)), calc(var(--out-at) + var(--i) * var(--step));
}
@keyframes fx-smoke-in {
  from { transform: translateY(10px) scale(.8); opacity: 0; filter: blur(4px); }
  to   { transform: none; opacity: 1; filter: blur(0); }
}
@keyframes fx-smoke-out {
  0%   { transform: none; opacity: 1; filter: blur(0); color: var(--ink); }
  56%  { color: var(--ink-3); }
  100% { transform: translate(6px, -22px) rotate(14deg) scale(1.45); opacity: 0; filter: blur(7px); color: var(--ink-3); }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-logo { font-size: 1.25rem; letter-spacing: .06em; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #fff; }
.footer-copy { grid-column: 1 / -1; color: #c9d4ea; }

/* ---------- 固定ガイド（PC） ---------- */
.side-guide {
  --balloon-w: 96px; --balloon-h: 210px; --person-w: 132px; --person-h: 157px; --guide-font: 15px;
  position: fixed; z-index: 40; left: 24px; bottom: 16px; width: 140px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(30px); visibility: hidden;
  transition: opacity 100ms linear, transform 400ms var(--ease-pop), visibility 0s linear 400ms;
}
.side-guide.is-visible {
  opacity: 1; transform: translateY(0); visibility: visible;
  transition: opacity 100ms linear, transform 400ms var(--ease-pop), visibility 0s;
}
.guide-close {
  position: absolute; top: -10px; right: -6px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--navy); background: #fff; cursor: pointer; font-size: 1.25rem; line-height: 1; font-weight: 700;
}
.guide-balloon { width: var(--balloon-w); height: var(--balloon-h); position: relative; }
.guide-balloon-inner {
  width: 100%; height: 100%; position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 48px;
  box-shadow: 0 4px 0 var(--pale); display: flex; align-items: center; justify-content: center; padding: 16px 8px;
}
.guide-balloon-inner::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; margin-left: -8px;
  background: #fff; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
}
.guide-comment {
  writing-mode: vertical-rl; text-orientation: mixed; font-size: var(--guide-font); line-height: 1.7; font-weight: 700;
  max-height: 100%; letter-spacing: .04em;
}
.guide-person { width: var(--person-w); height: var(--person-h); }
.guide-person-inner, .guide-person-inner svg, .guide-person-inner img { display: block; width: 100%; height: 100%; object-fit: contain; }
.guide-person-inner img { transform: scaleX(-1); } /* 左下のガイドでは COMPASSくんを右向き（ページの中身の方）にする。弾む動きは親の .guide-person-inner に付くので干渉しない */
.guide-actions { display: grid; gap: 4px; width: 100%; }
.guide-read { width: 100%; min-height: 44px; padding: 8px 6px; font-size: .9375rem; }
.guide-reopen {
  position: fixed; z-index: 40; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px; border: 2px solid var(--navy); background: #fff;
  font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 var(--pale); display: inline-flex; align-items: center; gap: 8px;
}
.guide-reopen::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 2px solid var(--navy); }
.guide-reopen[hidden] { display: none; }

/* 低い画面ではガイドを縮めて、上端からはみ出さないようにする */
@media (min-width: 961px) and (max-height: 640px) {
  .side-guide { --balloon-h: 170px; --person-w: 104px; --person-h: 124px; --guide-font: 14px; }
}
@media (min-width: 961px) and (max-height: 540px) {
  .side-guide { --balloon-w: 118px; --balloon-h: 146px; --person-w: 80px; --person-h: 95px; --guide-font: 13px; bottom: 10px; }
}
@media (min-width: 961px) and (max-height: 440px) {
  .side-guide { --balloon-w: 128px; --balloon-h: 112px; --person-h: 0px; }
  .guide-balloon-inner { border-radius: 28px; }
  .guide-person { display: none; }
}

/* ---------- ダイアログ ---------- */
.modal {
  width: min(760px, calc(100vw - 24px)); max-height: min(92vh, 900px); max-height: min(92dvh, 900px); padding: 0;
  border: 2px solid var(--navy); border-radius: 24px; color: var(--text); background: #fff; box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(23, 37, 62, .55); }
.modal-inner { padding: clamp(20px, 4vw, 36px); display: grid; gap: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-close { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; cursor: pointer; font-size: 1.375rem; line-height: 1; flex: none; }
.reader-meta { color: var(--muted); font-size: .875rem; }
.reader-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.45; }
.reader-body { display: grid; gap: 14px; }
.reader-body h3 { font-size: 1.125rem; margin-top: 8px; }

/* PC診断 */
.diagnosis-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); outline: none; }
.progress { height: 8px; border-radius: 999px; background: var(--pale); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s; }
.progress-text { color: var(--muted); font-weight: 700; font-size: .9375rem; }
.diagnosis-form { display: grid; gap: 14px; }
.q-title { font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.q-help { color: var(--muted); }
.q-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.q-fieldset legend { padding: 0; margin-bottom: 4px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px;
  padding: 10px 14px 10px 46px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; width: 100%;
}
.option input { position: absolute; left: 16px; top: 50%; margin: -9px 0 0; width: 18px; height: 18px; accent-color: var(--blue); }
.option:has(input:checked) { border-color: var(--blue); background: var(--pale); }
.option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.option-label { font-weight: 700; }
.option-hint { font-size: .875rem; color: var(--muted); }
.priority-option { padding-left: 58px; }
.priority-badge {
  position: absolute; left: 12px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px dashed var(--line); display: grid; place-items: center; font-weight: 800; font-size: .875rem; color: var(--muted);
}
.priority-option[aria-pressed="true"] { border-color: var(--blue); background: var(--pale); }
.priority-option[aria-pressed="true"] .priority-badge { border: 2px solid var(--navy); background: var(--orange); color: var(--navy); }
.diagnosis-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.diagnosis-nav .btn { min-width: 120px; }
.form-error { color: #b42318; font-weight: 700; min-height: 0; }
.form-error:empty { display: none; }
.univ-picker { display: grid; gap: 12px; }
.univ-status { font-size: .9375rem; color: var(--muted); }
.checkbox-line { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 700; }
.checkbox-line input { width: 20px; height: 20px; accent-color: var(--blue); }

.result-intro { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--pale-2); border: 1.5px solid var(--line); }
.result-intro dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 1rem; }
.result-intro dt { font-weight: 700; color: var(--blue-deep); }
.result-notes { display: grid; gap: 6px; }
.result-notes li { padding: 10px 14px; border-radius: 12px; background: #fff7ef; border-left: 4px solid var(--orange); font-size: .9375rem; }
.tier-grid { display: grid; gap: 14px; }
.tier {
  position: relative; display: grid; gap: 10px; padding: 18px; border: 2px solid var(--line); border-radius: 18px; background: #fff;
}
.tier.is-recommended { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 91, 232, .14); }
.tier-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-mark {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.375rem; font-weight: 800;
  border: 2px solid var(--navy); background: var(--pale); flex: none;
}
.tier[data-tier="matsu"] .tier-mark { background: var(--navy); color: #fff; }
.tier[data-tier="take"] .tier-mark { background: var(--blue); color: #fff; }
.tier-name { font-size: 1.125rem; font-weight: 800; }
.tier-reco { padding: 2px 10px; border-radius: 999px; background: var(--orange); color: var(--navy); font-weight: 800; font-size: .8125rem; }
.tier-price { font-weight: 800; color: var(--navy); }
.tier-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 1rem; }
.tier-specs dt { color: var(--blue-deep); font-weight: 700; }
.tier-notes { display: grid; gap: 4px; padding: 10px 14px; background: var(--pale-2); border-radius: 12px; font-size: .9375rem; color: var(--muted); }
.tier-notes li { padding-left: 1em; text-indent: -1em; }
.tier-notes li::before { content: "\30FB"; }
.tier-extras { display: flex; flex-wrap: wrap; gap: 6px; }
.tier-extras li { padding: 2px 10px; border-radius: 999px; background: var(--pale); font-size: .8125rem; font-weight: 700; }
.tier-channel { font-size: 1rem; }
.tier-channel strong { color: var(--navy); }
.tier-link { justify-self: start; }
.tier-link-pending { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); font-weight: 700; font-size: .9375rem; }

/* ---------- 大学別情報ページ ---------- */
.page-hero { padding: clamp(36px, 6vw, 64px) 0 28px; background: radial-gradient(circle, rgba(37, 91, 232, .14) 1.3px, transparent 1.6px) 0 0 / 20px 20px, var(--pale-2); border-bottom: 1px solid var(--line); }
.page-title { margin-top: 8px; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.4; font-weight: 800; }
.page-lead { margin-top: 10px; color: var(--muted); max-width: 46em; }
.stat-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.stat { padding: 8px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-size: .9375rem; }
.stat strong { font-size: 1.25rem; color: var(--navy); margin-right: 4px; }
.univ-section { padding: 32px 0 80px; }
.univ-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--pale-2); border: 1.5px solid var(--line); margin-bottom: 16px; }
.univ-filters .chip-row { grid-column: 1 / -1; }
.univ-filters .search-row { grid-column: 1 / 2; }
.status-legend { display: grid; gap: 6px; margin: 0 0 18px; font-size: 1rem; color: var(--muted); }
.univ-list { display: grid; gap: 12px; }
.univ-card { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.univ-card[open] { border-color: var(--navy); }
.univ-summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding: 14px 18px; min-height: 56px; cursor: pointer;
}
.univ-summary::-webkit-details-marker { display: none; }
.univ-name { font-weight: 800; font-size: 1.0625rem; }
.univ-sub { grid-column: 1 / 2; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; color: var(--muted); }
.univ-summary::after {
  content: ""; grid-row: 1 / 3; grid-column: 2; width: 12px; height: 12px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(45deg); margin: 0 6px 6px 0;
}
.univ-card[open] .univ-summary::after { transform: rotate(-135deg); margin: 6px 6px 0 0; }
.status { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: .8125rem; border: 1.5px solid currentColor; }
.status-public { color: #1f6b3a; background: #e6f3ea; }
.status-check { color: var(--orange-ink); background: #fff1e6; }
.status-none { color: var(--muted); background: #f2f4f8; }
.univ-detail { padding: 0 18px 18px; display: grid; gap: 14px; }
.spec-block { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; }
.spec-block h3 { font-size: 1rem; font-weight: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spec-table { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 12px; font-size: 1rem; }
.spec-table dt { color: var(--blue-deep); font-weight: 700; }
.spec-note { font-size: .875rem; color: var(--muted); }
.univ-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.load-more { margin: 20px auto 0; display: flex; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav a { padding: 0 10px; font-size: .875rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; min-height: 48px; font-size: 1rem; }
  .site-nav a.nav-cta { margin: 6px 0 0; justify-content: center; }
  .header-tools { margin-left: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
  .scene { max-width: 600px; }
  .card-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-popular > :nth-child(3) { grid-column: 1 / -1; }
  .univ-filters { grid-template-columns: minmax(0, 1fr); }

  /* 固定ガイド → 左下の小さなカード */
  .side-guide {
    left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(350px, 100vw - 24px);
    display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "person balloon" "actions actions";
    gap: 8px 10px; align-items: center; padding: 10px 12px 12px;
    background: #fff; border: 2px solid var(--navy); border-radius: 18px; box-shadow: 0 6px 0 var(--pale), var(--shadow);
  }
  .guide-close { top: 4px; right: 4px; border-width: 0; background: transparent; }
  .guide-balloon { grid-area: balloon; width: auto; height: auto; padding-right: 36px; }
  .guide-balloon-inner { border: 0; box-shadow: none; padding: 0; border-radius: 0; justify-content: flex-start; background: transparent; }
  .guide-balloon-inner::after { display: none; }
  .guide-comment { writing-mode: horizontal-tb; font-size: 15px; line-height: 1.6; min-height: calc(1.6em * 3); display: flex; align-items: center; }
  .guide-person { grid-area: person; width: 64px; height: 76px; }
  .guide-actions { grid-area: actions; }
  .guide-reopen { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .shell, .header-inner, .hero-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.0625rem; }
  .brand-text small { font-size: .75rem; }
  .card-grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-grid-popular > :nth-child(3) { display: none; } /* スマホは人気記事2件 */
  .scene { aspect-ratio: 100 / 124; }
  .figure { width: 46%; }
  .figure-editor { right: -6%; } /* 走ってきた COMPASSくんは横幅が広いので、吹き出しにかからないよう少し右へ */
  .scene { --stand: 9%; }
  .bubble-panel { font-size: clamp(12px, 4.1cqi, 15px); padding: .55em .75em; }
  .bubble-anchor[data-slot="guide-top"] { --x: 46%; --y: 0%; --w: 53%; }
  .bubble-anchor[data-slot="guide-top"] .bubble-panel::after { right: 30%; }
  .bubble-anchor[data-slot="student-top"] { --x: 1%; --y: 12%; --w: 44%; }
  .bubble-anchor[data-slot="student-top"] .bubble-panel::after { left: 43%; }
  .bubble-anchor[data-slot="student-right"] { --x: 36%; --y: 30%; --w: 42%; }
  .bubble-anchor[data-slot="student-side"] { --x: 36%; --y: 56%; --w: 30%; }
  .bubble-anchor[data-slot="guide-side"] { --x: 34%; --y: 77%; --w: 31%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .option-grid { grid-template-columns: minmax(0, 1fr); }
  .search-row .btn { flex: none; padding: 10px 18px; }
  .spec-table { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .spec-table dd { margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .menu-toggle { flex: none; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-inner { gap: 8px; }
  .brand-name { gap: 4px; }
  .brand-tagline { font-size: .625rem; letter-spacing: .02em; }
  .brand-text strong { font-size: .9375rem; letter-spacing: .03em; }
  .brand-text small { font-size: .6875rem; letter-spacing: .02em; }
}

/* 動きを減らす：浮遊・トランジションを止める */
@media (prefers-reduced-motion: reduce) {
  .bubble-float { animation: none; }
  .side-guide, .side-guide.is-visible { transition: none; transform: none; }
  .card, .btn, .progress-bar { transition: none; }
}
html.motion-off .bubble-float { animation-play-state: paused; }

/* =========================================================
   記事ページ（article-*.html）
   ========================================================= */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.article-shell { max-width: 820px; }
.article-hero { padding: clamp(24px, 4vw, 40px) 0 28px; background: radial-gradient(circle, rgba(37, 91, 232, .14) 1.3px, transparent 1.6px) 0 0 / 20px 20px, var(--pale-2); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .8125rem; color: var(--muted); }
.breadcrumb li + li::before { content: "\203A"; margin: 0 8px; color: var(--line); font-weight: 700; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--navy); }
.article-hero .card-meta { margin-top: 18px; }
.article-title { margin-top: 10px; font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); line-height: 1.45; font-weight: 800; }
.article-lead { margin-top: 12px; color: var(--muted); }

/* 要約：COMPASSくんが解説 */
.article-summary { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: end; margin-top: 32px; }
.summary-kun { align-self: end; }
.summary-kun img { width: 132px; height: auto; }
.summary-kun figcaption { margin-top: 4px; text-align: center; }
.summary-kun figcaption span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--blue-deep); color: #fff; font-size: .75rem; font-weight: 700; }
.summary-bubble { position: relative; padding: 20px 24px 22px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 0 var(--pale); align-self: center; }
.summary-bubble::before { content: ""; position: absolute; left: -11px; bottom: 38px; width: 18px; height: 18px; background: #fff; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.summary-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 800; font-size: 1.125rem; color: var(--blue-deep); }
.summary-label small { font-size: .8125rem; color: var(--muted); font-weight: 700; }
.summary-list { margin-top: 10px; display: grid; gap: 6px; }
.summary-list li { position: relative; padding-left: 1.6em; font-weight: 700; line-height: 1.7; }
.summary-list li::before { content: ""; position: absolute; left: .2em; top: .55em; width: .75em; height: .75em; border-radius: 50%; background: var(--orange); }
.summary-foot { margin-top: 10px; color: var(--muted); font-size: .875rem; }

/* 目次 */
.article-toc { margin-top: 32px; padding: 18px 22px; border-radius: var(--radius); background: var(--pale-2); border: 1.5px solid var(--line); }
.article-toc-title { font-weight: 800; }
.article-toc ol { margin-top: 8px; counter-reset: toc; display: grid; gap: 2px; }
.article-toc li { counter-increment: toc; }
.article-toc a { display: flex; gap: 10px; min-height: 44px; align-items: center; color: var(--navy); text-decoration: none; font-weight: 700; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--blue); font-size: .875rem; font-weight: 800; }
.article-toc a:hover { color: var(--blue-deep); text-decoration: underline; }

/* 本文 */
.article-body { padding: 8px 0 clamp(48px, 7vw, 72px); }
.article-body section { margin-top: clamp(44px, 6vw, 60px); scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h2 { font-size: clamp(1.3125rem, 1.1rem + .9vw, 1.625rem); line-height: 1.5; font-weight: 800; padding-left: 16px; border-left: 6px solid var(--blue); }
.article-body h3 { margin-top: 26px; font-size: 1.125rem; font-weight: 800; line-height: 1.6; }
.article-body p { margin-top: 14px; }
.article-body section > p:first-of-type { margin-top: 16px; }
.answer { padding: 12px 16px; border-radius: 12px; background: #fff7ef; border: 1.5px solid #ffd8b8; font-weight: 700; }
.answer b { color: var(--orange-ink); margin-right: .4em; }
.marker { background: linear-gradient(transparent 62%, #ffe2c8 62%); font-weight: 700; }
.check-list { margin-top: 14px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 1.9em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.25em; height: 1.25em; border-radius: 6px; background: var(--blue); }
.check-list li::after { content: ""; position: absolute; left: .42em; top: .5em; width: .42em; height: .72em; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ng-list li::before { background: #c9472b; }
.ng-list li::after { left: .33em; top: .78em; width: .6em; height: 0; border-width: 0 0 3px 0; transform: none; }

/* 図・イラスト */
.article-figure { margin-top: 22px; padding: 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; }
.article-figure svg { width: 100%; height: auto; }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .8125rem; text-align: center; }

/* 手順（活用方法） */
.flow { display: grid; gap: 12px; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--pale-2); position: relative; }
.flow li + li::before { content: ""; position: absolute; left: 41px; top: -13px; border: 7px solid transparent; border-top-color: var(--blue); border-bottom: 0; }
.flow-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 2px solid var(--navy); display: grid; place-items: center; }
.flow-icon svg { width: 30px; height: 30px; }
.flow-step { display: block; font-size: .75rem; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.flow-step::after { content: "STEP " counter(flow); }
.flow strong { display: block; line-height: 1.5; }
.flow small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.flow a { color: inherit; }

/* 数字のカード（独自データ） */
.stat-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 12px; border-radius: 14px; background: var(--pale-2); text-align: center; border: 1.5px solid var(--line); }
.stat b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.2; color: var(--blue-deep); font-weight: 800; }
.stat b small { font-size: .5em; margin-left: 2px; }
.stat span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.data-note { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

/* 横棒グラフ（HTML/CSS） */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4em; gap: 10px; align-items: center; font-size: .875rem; font-weight: 700; }
.bar-track { height: 18px; border-radius: 999px; background: var(--pale); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--blue); }
.bar-fill.is-sub { background: var(--orange); }
.bar-fill.is-gray { background: #9aa6bd; }
.bar output, .bar data { text-align: right; color: var(--navy); white-space: nowrap; }

/* 表 */
.article-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .9375rem; }
.article-table th, .article-table td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.article-table thead th { background: var(--navy); color: #fff; font-size: .8125rem; }
.article-table thead th:first-child { border-radius: 10px 0 0 0; }
.article-table thead th:last-child { border-radius: 0 10px 0 0; }
.article-table tbody th { white-space: nowrap; font-weight: 800; }
.article-table td strong { color: var(--blue-deep); }

/* 松竹梅 */
.tier-cols { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier-col { padding: 16px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.tier-col .tier-chip { margin-bottom: 6px; }
.tier-col strong { display: block; line-height: 1.5; }
.tier-col p { margin-top: 6px !important; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.tier-col[data-tier="matsu"] { border-color: var(--navy); }

/* COMPASSくんのひとこと */
.kun-tip { margin-top: 24px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.kun-tip img { width: 64px; height: auto; }
.kun-tip p { margin: 0 !important; position: relative; padding: 12px 16px; border-radius: 14px; background: var(--pale); font-size: .9375rem; }
.kun-tip p::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: var(--pale); border-left: 0; }
.kun-tip b { display: block; color: var(--blue-deep); font-size: .8125rem; }

/* よくある質問 */
.faq { margin-top: 18px; display: grid; gap: 12px; }
.faq-item { padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.faq-item h3 { margin: 0; font-size: 1rem; display: flex; gap: 10px; }
.faq-item h3::before { content: "Q"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8125rem; line-height: 1; margin-top: 1px; }
.faq-item p { margin-top: 8px !important; padding-left: 36px; color: var(--text); }

/* 書いた人・出典・次に読む */
.article-author { margin-top: clamp(40px, 6vw, 56px); padding: 18px 20px; border-radius: var(--radius); background: var(--pale-2); display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
.article-author strong { color: var(--navy); font-size: 1rem; }
.article-next { margin-top: clamp(40px, 6vw, 56px); }
.article-next-title { font-size: 1.25rem; font-weight: 800; }
.next-list { margin-top: 14px; display: grid; gap: 12px; }
.next-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 14px 18px; border: 2px solid var(--navy); border-radius: 14px; background: #fff; color: var(--navy); text-decoration: none; box-shadow: 0 4px 0 var(--pale); }
.next-list a:hover { background: var(--pale-2); }
.next-list small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; }
.next-list strong { display: block; line-height: 1.5; }
.next-list .btn-arrow { background: var(--blue); }
.next-list .btn-arrow::after { border-color: #fff; }

@media (max-width: 640px) {
  /* スマホ：COMPASSくんを上、吹き出しを下に（しっぽは上向き） */
  .article-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .summary-kun { display: flex; align-items: flex-end; gap: 8px; padding-left: 8px; }
  .summary-kun img { width: 76px; }
  .summary-kun figcaption { margin: 0 0 6px; }
  .summary-bubble { padding: 16px 16px 18px; }
  .summary-bubble::before { left: 36px; top: -11px; bottom: auto; transform: rotate(135deg); }
  .article-table.is-compact tbody th { white-space: nowrap; }
  .article-table.is-compact td:nth-child(2) { font-size: .8125rem; }
  .stat-grid, .tier-cols { grid-template-columns: minmax(0, 1fr); }
  .stat { display: grid; grid-template-columns: 7em minmax(0, 1fr); align-items: center; text-align: left; gap: 10px; }
  .stat span { margin-top: 0; }
  .bar { grid-template-columns: 7.5em minmax(0, 1fr) 3.6em; font-size: .8125rem; }
  .article-figure { padding: 14px; }
  .article-table { font-size: .875rem; }
  .article-table th, .article-table td { padding: 10px 8px; }
  .article-table tbody th { white-space: normal; }
}

/* 決める順番（上ほど広い＝最初に決める） */
.funnel { display: grid; gap: 8px; justify-items: center; counter-reset: funnel; }
.funnel li { counter-increment: funnel; width: calc(100% - var(--i) * 9%); min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 18px; border-radius: 14px; background: var(--c, var(--blue)); color: #fff; }
.funnel li::before { content: counter(funnel); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .9375rem; }
.funnel strong { line-height: 1.4; }
.funnel small { font-size: .8125rem; line-height: 1.5; opacity: .92; }
.funnel li:nth-child(1) { --i: 0; --c: var(--navy); }
.funnel li:nth-child(2) { --i: 1; --c: var(--blue-deep); }
.funnel li:nth-child(3) { --i: 2; --c: var(--blue); }
.funnel li:nth-child(4) { --i: 3; --c: #4f7ff0; }
.funnel li:nth-child(5) { --i: 4; --c: #e9772b; }

/* たとえのカード（CPU・メモリ・ストレージ） */
.analogy { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.analogy li { padding: 16px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--pale-2); text-align: center; }
.analogy svg { width: 72px; height: 72px; margin: 0 auto; }
.analogy b { display: block; margin-top: 8px; font-size: 1.0625rem; }
.analogy b span { color: var(--orange-ink); }
.analogy p { margin-top: 6px !important; font-size: .875rem; color: var(--muted); line-height: 1.6; text-align: left; }

/* 商品ページのスペック表記の読み方 */
.spec-line { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-line li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--pale-2); border: 1.5px solid var(--line); line-height: 1.4; }
.spec-line li b { font-size: .9375rem; }
.spec-line li small { font-size: .75rem; font-weight: 700; color: var(--blue-deep); }
.spec-line li.is-key { border-color: var(--blue); background: var(--pale); }

/* 会話（新大学生 × COMPASSくん） */
.talk { margin-top: 20px; display: grid; gap: 12px; }
.talk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: end; }
.talk-row.is-kun { grid-template-columns: minmax(0, 1fr) 56px; }
.talk-row img { width: 56px; height: 72px; object-fit: contain; object-position: 50% 100%; }
.talk-row.is-kun img { order: 2; }
.talk-row p { margin: 0 !important; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--navy); background: #fff; font-size: .9375rem; line-height: 1.7; align-self: center; }
.talk-row.is-kun p { background: var(--pale); }
.talk-row p b { display: block; font-size: .75rem; color: var(--muted); }

@media (max-width: 640px) {
  .funnel li { width: calc(100% - var(--i) * 5%); padding: 10px 14px; }
  .analogy { grid-template-columns: minmax(0, 1fr); }
  .analogy li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; text-align: left; align-items: center; }
  .analogy svg { width: 60px; height: 60px; grid-row: span 2; margin: 0; }
  .analogy b { margin-top: 0; }
  .analogy p { margin-top: 0 !important; }
}
