/* =====================================================
   JJS コーポレートサイト リニューアル — 共通スタイル
   テーマ: trust(堅実・紺基調) / bold(攻め・ビビッドブルー)
   ===================================================== */

:root {
  /* --- Theme A: 堅実(trust) — 主体色 #30bbf2 を落ち着いたトーンで --- */
  --bg: #f9fbfd;
  --bg-alt: #edf4f9;
  --surface: #ffffff;
  --ink: #18242e;
  --ink-soft: #4c5a66;
  --ink-faint: #84929e;
  --line: #dce7ee;

  --primary: #1278ab;
  --primary-deep: #103a52;
  --primary-soft: #e1f3fc;
  --on-primary: #ffffff;

  /* 差し色: グリーン(#2bbd8e) — 最終採用カラー */
  --accent: #2bbd8e;
  --accent-deep: #1f9e76;
  --accent-soft: #d7f3ea;

  --heading-font: "Noto Sans JP", sans-serif;
  --body-font: "Noto Sans JP", sans-serif;
  --heading-weight: 700;
  --radius: 12px;
  --radius-sm: 8px;
  --btn-radius: 999px;
  --shadow: 0 2px 8px rgba(16, 58, 82, 0.06), 0 12px 32px rgba(16, 58, 82, 0.08);
  --fv-size: clamp(34px, 4.6vw, 56px);
  --fv-spacing: 0.06em;
}

html[data-theme="bold"] {
  /* --- Theme B: 攻め(bold) — 主体色 #30bbf2 を鮮やかに --- */
  --bg: #f4f9fc;
  --bg-alt: #e3eff7;
  --surface: #ffffff;
  --ink: #0a1924;
  --ink-soft: #41545f;
  --ink-faint: #7e909c;
  --line: #d4e4ee;

  --primary: #0b9ade;
  --primary-deep: #062a40;
  --primary-soft: #d9f0fd;
  --on-primary: #ffffff;

  /* メインカラー: ライトブルー #30bbf2（2026-10-02 ユーザー指示。緑は廃止） */
  --accent: #30bbf2;
  --accent-deep: #0b9ade;
  --accent-soft: #d9f0fd;

  --heading-font: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --heading-weight: 900;
  --radius: 12px;
  --radius-sm: 8px;
  --btn-radius: 6px;
  --shadow: 0 2px 10px rgba(6, 42, 64, 0.08), 0 16px 40px rgba(6, 42, 64, 0.10);
  --fv-size: clamp(38px, 5.4vw, 66px);
  --fv-spacing: 0.02em;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.note { font-size: 12px; color: var(--ink-faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-weight: 700;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-size: 15px;
  padding: 13px 28px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-cta { background: var(--accent); color: var(--primary-deep); }
.btn-cta:hover { background: var(--accent-deep); color: #fff; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { font-size: 17px; padding: 17px 40px; }
.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn .arrow { font-size: 0.85em; translate: 0 1px; }

/* ---------- utility bar + header ---------- */
.utility-bar {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
}
.utility-bar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  min-height: 34px;
}
.utility-bar a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-bar .tel { font-weight: 700; color: #fff; letter-spacing: 0.04em; }

.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  max-width: 1320px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .brand-slot { width: 178px; height: 40px; }
.global-nav { margin-left: auto; }
.global-nav > ul { display: flex; align-items: center; gap: 4px; }
.global-nav a.nav-link {
  display: block;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
}
.global-nav a.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.global-nav a.nav-link.is-key { font-weight: 700; color: var(--primary); }
.header-ctas { display: flex; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 1080px) {
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
  }
  .global-nav.open { display: block; }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav a.nav-link { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .header-ctas .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .header-ctas { display: none; }
  .utility-bar .wrap { justify-content: space-between; gap: 10px; }
}

/* ---------- section scaffolding ---------- */
.sec { padding: 92px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--primary-deep); color: #fff; }
.sec-label {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--primary);
  margin-bottom: 18px;
}
.sec-dark .sec-title { color: #fff; }
.sec-lede { max-width: 720px; color: var(--ink-soft); margin-bottom: 48px; }
.sec-dark .sec-lede { color: rgba(255,255,255,0.78); }
.sec-foot-cta { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- breadcrumbs / page hero ---------- */
.breadcrumbs { font-size: 12.5px; color: var(--ink-faint); padding: 14px 0; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero { background: var(--primary-deep); color: #fff; padding: 64px 0 72px; }
.page-hero .sec-label { color: var(--accent); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.page-hero p.lede { color: rgba(255,255,255,0.8); max-width: 760px; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1023px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .card-grid.cols-4, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.card h3 { font-size: 18px; color: var(--primary); }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card .card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 3px 10px;
  letter-spacing: 0.05em;
}

/* ---------- stat badges ---------- */
.badge-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.badge-strip .badge { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.badge-strip .badge:first-child { border-left: none; }
.badge .b-label { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.06em; }
.badge .b-value {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--primary);
  line-height: 1.2;
  margin-top: 4px;
}
.badge .b-value em { font-style: normal; color: var(--accent); }
.badge .b-unit { font-size: 0.55em; margin-left: 2px; }
@media (max-width: 760px) {
  .badge-strip { grid-template-columns: repeat(2, 1fr); }
  .badge-strip .badge:nth-child(3) { border-left: none; border-top: 1px solid var(--line); grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .q-mark { color: var(--accent); font-family: var(--heading-font); font-weight: 900; flex-shrink: 0; }
.faq-list summary::after { content: "+"; margin-left: auto; color: var(--ink-faint); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .a {
  padding: 0 22px 20px 50px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  position: relative;
}
.step .s-num {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.step h3 { font-size: 15px; color: var(--primary); margin: 6px 0 6px; }
.step p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.step::after {
  content: "›";
  position: absolute;
  right: -13px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-faint);
  font-size: 20px;
  z-index: 1;
}
.step:last-child::after { content: none; }
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { content: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { content: none !important; }
}

/* ---------- bar chart ---------- */
.bar-chart { display: grid; gap: 26px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
.bar-row .bar-name { font-size: 14px; font-weight: 700; text-align: right; }
.bar-track { background: rgba(127,127,127,0.14); border-radius: 6px; height: 46px; position: relative; }
.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  color: #fff;
  font-size: 18px;
  min-width: 64px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.25, 1, 0.4, 1);
}
.bar-fill.is-jjs { background: var(--accent); }
.bar-fill.is-avg { background: rgba(127,140,160,0.85); }
.in .bar-fill, .bar-chart.static .bar-fill { width: var(--w); }
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row .bar-name { text-align: left; }
}

/* ---------- closing CTA ---------- */
.closing-cta { background: var(--primary-deep); color: #fff; text-align: center; padding: 96px 0; }
.closing-cta h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.closing-cta p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto 36px; }
.closing-cta .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.closing-cta .tel-big { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,0.65); }
.closing-cta .tel-big strong { display: block; font-size: 26px; letter-spacing: 0.06em; color: #fff; font-family: var(--heading-font); }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-deep); color: rgba(255,255,255,0.75); font-size: 13.5px; }
.site-footer .foot-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0.08em; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-brand p { margin-top: 12px; line-height: 1.8; }
.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.site-footer .jobseeker-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--btn-radius);
  padding: 8px 18px;
  font-size: 12.5px;
}
.site-footer .jobseeker-link:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
@media (max-width: 900px) { .site-footer .foot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .foot-main { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.placeholder-note {
  font-size: 11.5px;
  font-family: ui-monospace, monospace;
  color: var(--ink-faint);
  margin-top: 6px;
}
.kpi-em { color: var(--accent); font-style: normal; font-weight: inherit; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec th, table.spec td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 180px; color: var(--primary); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { table.spec th { width: 110px; } }

/* ---------- case cards (WordPress連携で共用) ---------- */
.case-card { padding: 0; overflow: hidden; }
.case-card .case-thumb { width: 100%; height: 180px; overflow: hidden; background: var(--bg-alt); }
.case-card .case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-card .case-thumb-empty { display: flex; align-items: center; justify-content: center; }
.case-card .case-thumb-empty span { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-faint); }
.case-card .case-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card .case-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.case-card .case-meta span { font-size: 11.5px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 4px; padding: 2px 9px; }
.case-card h3 { font-size: 16px; line-height: 1.6; color: var(--primary); }
.case-card .case-result { font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; }
.case-card .case-result strong { color: var(--accent-deep); }

.wp-live-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin: -28px 0 32px;
}
.wp-live-note .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: wp-pulse 2s infinite;
}
@keyframes wp-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* news cards (WordPress連携) */
.news-card { gap: 8px; }
.news-card .news-date { font-family: var(--heading-font); font-weight: 700; font-size: 13px; color: var(--accent-deep); letter-spacing: 0.04em; }
.news-card h3 { font-size: 15.5px; line-height: 1.6; color: var(--ink); }

/* ---------- ロゴ (WordPress カスタムロゴ / フォールバック) ---------- */
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo,
.brand .brand-fallback {
  width: 178px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 420px) {
  .brand .custom-logo,
  .brand .brand-fallback { width: 140px; }
}


/* ---------- モバイル固定CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 58, 82, 0.1);
  }
  .sticky-cta .btn { flex: 1; justify-content: center; text-align: center; }
  body { padding-bottom: 68px; }
}


/* 5列ステップ(shokai/jisha-shienで使用)。インラインstyleでの列指定は禁止 */
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .steps.steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps.steps-5 { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================
   2026-10 デザイン刷新レイヤー
   corp-jjs.com と同系統のデザイン言語(大アール・ブロブ・
   ホバー演出・ピル)をサービスサイトに適用。
   既存ルールの後に読み込まれ、上書きする。
   ===================================================== */

/* ---------- 形: 角丸を大きく・影を柔らかく ---------- */
html[data-theme="bold"] {
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 10px rgba(6, 42, 64, 0.05), 0 14px 36px rgba(6, 42, 64, 0.09);
}

/* ---------- セクションの呼吸とリズム(大アール) ---------- */
.sec { padding: 96px 0; position: relative; }
.sec-alt { border-radius: 0 64px 0 0; overflow: hidden; }
.sec-dark { border-radius: 64px 0 0 0; overflow: hidden; }
@media (max-width: 900px) {
  .sec { padding: 64px 0; }
  .sec-alt { border-radius: 0 32px 0 0; }
  .sec-dark { border-radius: 32px 0 0 0; }
}

/* ---------- 見出しシステム ---------- */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
}
.sec-label::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  flex: none;
}
.sec-title { color: var(--primary-deep); }

/* ---------- カード: ホバーで浮く+上辺ライン ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.25s ease;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
a.card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card, a.card:hover { transition: none; transform: none; }
}

/* ---------- ブロブ装飾(有機形状・淡色) ---------- */
.deco-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 47% 53% 58% 42% / 50% 44% 56% 50%;
  z-index: 0;
}
.sec > .wrap { position: relative; z-index: 1; }

/* ---------- ステップ・FAQ・バッジの質感 ---------- */
.step { border-radius: var(--radius-sm); }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.25s ease;
}
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; }

/* ---------- 資料カバー(プレースホルダ卒業: CSS製の表紙) ---------- */
.doc-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(130px 90px at 85% 12%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  overflow: hidden;
  position: relative;
}
.doc-cover::before {
  content: "FREE PDF";
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary-deep);
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
}
.doc-cover span {
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}

/* =====================================================
   タイポグラフィ底上げ(2026-10): 小さすぎる文字の一括改善
   ===================================================== */
.note, .placeholder-note { font-size: 13.5px; }
.sec-lede { font-size: 16.5px; line-height: 2.05; }
.card p { font-size: 15px; line-height: 1.95; }
.card h3 { font-size: 18px; }
.step h3 { font-size: 16.5px; }
.step p { font-size: 13.5px; line-height: 1.85; }
.badge .b-label { font-size: 14px; }
.btn-sm { font-size: 14px; padding: 9px 20px; }
.closing-cta .tel-big { font-size: 15px; }
.closing-cta .tel-big strong { font-size: 26px; margin-left: 10px; letter-spacing: 0.04em; }
.site-footer { font-size: 14.5px; }
.site-footer h4 { font-size: 15px; }
.case-card .case-meta span { font-size: 12.5px; }
.case-card .case-result { font-size: 14px; }
.spec th, .spec td { font-size: 15.5px; }
.faq-list summary { font-size: 16.5px; font-weight: 700; }
.faq-list .a { font-size: 15px; line-height: 2; }
.breadcrumbs { font-size: 13px; }
.utility-bar { font-size: 13px; }


/* SP: ユーティリティバーはリンクのみ1行(TEL・営業時間は非表示) */
@media (max-width: 760px) {
  .utility-bar .tel, .utility-bar span { display: none; }
  .utility-bar { font-size: 12.5px; }
  .utility-bar .wrap { justify-content: flex-start; }
}

/* カード見出しの視認性(ライトブルー→濃紺) */
.card h3 { color: var(--primary-deep); }
.card h3 a { color: inherit; }

/* ---------- 投稿詳細(single.php) ---------- */
.post-hero h1 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; max-width: 900px; }
.post-meta { margin-top: 12px; font-size: 14px; color: var(--ink-faint); display: flex; gap: 12px; }
.post-sec { padding-top: 40px; }
.post-wrap { max-width: 820px; }
.post-thumb img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 36px; }
.post-body { font-size: 16px; line-height: 2.1; }
.post-body p { margin-bottom: 1.4em; }
.post-body h2 {
  font-size: 24px;
  color: var(--primary-deep);
  margin: 2em 0 0.9em;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.6;
}
.post-body h3 { font-size: 19px; color: var(--primary-deep); margin: 1.8em 0 0.8em; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; }
.post-body ul, .post-body ol { margin: 0 0 1.4em 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.4em; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body blockquote {
  border-left: 4px solid var(--line);
  padding: 4px 0 4px 20px;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
}
.post-body table { border-collapse: collapse; width: 100%; margin-bottom: 1.4em; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14.5px; }
.post-body th { background: var(--primary-soft); }

/* カード先頭の実写を16:9に統一(学校カード等の高さ揃え) */
.card > img.slot:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* 海外校: 定着率の5つの仕組み */
.secret-list { margin-top: 44px; }
.secret-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  align-items: start;
}
.secret-row:last-child { border-bottom: none; }
.secret-row .s-no {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}
.secret-row h3 { font-size: 20px; font-weight: 900; margin: 0 0 10px; color: #fff; }
.secret-row p { margin: 0; font-size: 15px; line-height: 2; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 760px) {
  .secret-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .secret-row .s-no { font-size: 32px; }
}
.edu-mission {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--primary-pale, #eaf6fd);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
