/* ============================================================
   転職ガイド トップページ — TOP-specific styles
   塾選 (Jukusen) tokens.css の上に乗せる薄い実装層。
   Phase 2-A: SiteHeader / HeroCalm / LogoStrip / SiteFooter
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; color: #1a1f2e; }
body { font-family: var(--font-sans); line-height: 1.7; letter-spacing: 0.01em; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: opacity .15s; }
a:hover { opacity: 0.85; }
a:active { opacity: 0.7; }

.tg-root { width: 100%; background: #fff; }

/* ----- Yellow marker highlight (inline emphasis) ----- */
.mark-y {
  background: linear-gradient(transparent 56%, #FFE45A 56%);
  padding: 0 2px;
  font-weight: 900;
}

/* ============================================================
   SiteHeader (sticky)
   ============================================================ */
.tg-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid #E5E9F0;
  background: #fff;
  position: sticky; top: 0;
  z-index: 50;
}
.tg-header-left { display: flex; align-items: center; gap: 32px; }
/* Brand: LogoTag（タグ／ペナント型）— brand-logo.jsx の5番採用 */
.tg-brand {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tg-brand .pennant {
  position: relative;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 45px; height: 32px;  /* w = h * 1.4 */
  background: var(--main-800); color: #fff;
  clip-path: polygon(4% 10%, 72% 10%, 96% 55%, 72% 100%, 4% 100%);
  font-weight: 900; font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
  padding-left: 14%;   /* 左の黄色ドット分のスペース */
  padding-right: 18%;  /* 右の三角部分を避ける */
  border-radius: 0;
  box-shadow: none;
}
.tg-brand .pennant::after {
  content: "";
  position: absolute;
  top: 55%; left: 18%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #FFC700;
}
.tg-brand .brand-text {
  font-size: 18px; font-weight: 900; color: #0c2548;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
  white-space: nowrap;
}
.tg-brand .brand-text .net {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: italic; font-weight: 900;
  font-size: 16px;   /* 約 h * 0.72 / 0.82 比率 */
  color: var(--main-800);
  letter-spacing: -0.02em;
  margin-left: -1px;
}
.tg-header nav {
  display: flex; gap: 24px;
  font-size: 13px; font-weight: 500; color: #4d566c;
}
.tg-header nav a:hover { color: var(--main-600); opacity: 1; }
.tg-header .tg-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--main-800); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.tg-header .tg-cta svg { width: 14px; height: 14px; }

/* ============================================================
   HeroCalm（採用：白基調 / 左コピー＋Q1 / 右96% MATCH）
   ============================================================ */
.tg-hero-calm {
  background: linear-gradient(180deg, #F4F7FB 0%, #fff 100%);
  border-bottom: 1px solid #E5E9F0;
  padding: 56px 0;
  position: relative;
}
.tg-hero-calm .inner {
  max-width: 1040px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center;
}
.tg-hero-calm .badge-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid #0744CC;
  color: #0744CC;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.tg-hero-calm .badge-line .dot {
  width: 6px; height: 6px; border-radius: 99px; background: #0744CC;
}
.tg-hero-calm h1 {
  font-size: 44px; font-weight: 900; line-height: 1.25;
  letter-spacing: 0.01em; margin: 0; color: #0c2548;
}
.tg-hero-calm h1 .blue { color: #0744CC; }
.tg-hero-calm .lead {
  font-size: 14px; line-height: 1.8; color: #4d566c;
  margin: 16px 0 24px; max-width: 480px;
}

/* Q1 mini card */
.tg-q1 {
  background: #fff;
  border: 1px solid #E5E9F0;
  box-shadow: 0 8px 24px rgba(11, 40, 90, 0.08);
  border-radius: 12px; padding: 20px;
}
.tg-q1-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tg-q1-num {
  width: 30px; height: 30px; border-radius: 6px;
  background: #0744CC; color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900;
}
.tg-q1-title {
  font-size: 15px; font-weight: 700; color: #0c2548;
}
.tg-q1-step {
  margin-left: auto; font-size: 11px; color: #7a849c;
}
.tg-q1-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.tg-q1-opt {
  background: #fff;
  border: 1px solid #DBDBDB;
  color: #1a1f2e;
  border-radius: 8px; padding: 10px 8px;
  cursor: pointer;
  font-size: 13px; font-weight: 700;
  font-family: inherit;
  transition: all .15s;
}
.tg-q1-opt:hover { border-color: #87B2FF; }
.tg-q1-opt.selected {
  background: #E2ECFF;
  border: 2px solid #0744CC;
  color: #0744CC;
  padding: 9px 7px; /* compensate 1px border->2px */
}

/* CTA (orange primary) */
.tg-cta-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-600); color: #fff;
  border: none; border-radius: 5px;
  padding: 14px 20px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 0 #B84A00;
  transition: opacity .15s;
}
.tg-cta-orange:hover { opacity: 0.85; }
.tg-cta-orange:active { opacity: 0.7; transform: translateY(1px); box-shadow: 0 1px 0 #B84A00; }

/* Right: 96% MATCH card */
.tg-hero-right .match-card {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 16px; padding: 20px;
  box-shadow: 0 8px 24px rgba(11, 40, 90, 0.08);
}
.tg-match-radial {
  display: flex; justify-content: center; margin-bottom: 14px;
}
.tg-match-radial .ring {
  width: 200px; height: 200px; position: relative;
  background: conic-gradient(#0744CC 0% 96%, #E5E9F0 96% 100%);
  border-radius: 50%;
}
.tg-match-radial .ring-inner {
  position: absolute; inset: 14px;
  background: #fff; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tg-match-radial .label {
  font-size: 10px; color: #7a849c; font-weight: 700; letter-spacing: 0.15em;
}
.tg-match-radial .pct {
  font-size: 44px; font-weight: 900; color: #0744CC; line-height: 1;
}
.tg-match-radial .pct sup { font-size: 18px; font-weight: 900; }
.tg-match-radial .sub { font-size: 10px; color: #7a849c; margin-top: 4px; }

.tg-pick-for {
  text-align: center; margin-bottom: 14px;
}
.tg-pick-for .eyebrow {
  font-size: 11px; color: #7a849c; font-weight: 700; letter-spacing: 0.1em;
}
.tg-pick-for .target {
  font-size: 16px; font-weight: 900; color: #0c2548;
}

.tg-pick-list {
  background: #F4F7FB; border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.tg-pick-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: 6px; padding: 8px 10px;
  border: 1px solid #E5E9F0;
  font-size: 12px; font-weight: 700; color: #1a1f2e;
}
.tg-pick-row.featured { border: 1.5px solid #FFC700; }
.tg-pick-row .star { color: #FFB000; margin-right: 2px; }
.tg-pick-row .match-pct { color: #0744CC; }

/* ============================================================
   LogoStrip (under hero)
   ============================================================ */
.tg-logostrip {
  background: #fff;
  border-bottom: 1px solid #E5E9F0;
  padding: 28px 0;
}
.tg-logostrip .inner { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.tg-logostrip .caption {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px;
  font-size: 12px; color: #7a849c; font-weight: 500;
}
.tg-logostrip .caption b { color: #0c2548; font-weight: 700; }
.tg-logostrip .caption .rule {
  flex: 1; height: 1px; background: #E5E9F0;
}
.tg-logostrip .grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.tg-logo-card {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  overflow: hidden;
  min-height: 0;
}
.tg-logo-card img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ============================================================
   Phase 2-C placeholder (Phase 2-C で削除)
   ============================================================ */
.tg-placeholder {
  max-width: 1040px; margin: 32px auto; padding: 32px 40px;
  border: 2px dashed #DBDBDB; border-radius: 12px;
  background: #F9FAFC;
  text-align: center; color: #7a849c; font-size: 13px;
}
.tg-placeholder h3 { margin: 0 0 8px; color: #0c2548; font-size: 14px; font-weight: 700; }
.tg-placeholder ul { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.8; }

/* ============================================================
   Common section shell (Phase 2-B〜)
   ============================================================ */
.tg-section {
  max-width: 1040px; margin: 0 auto; padding: 56px 40px;
}
.tg-section.bg-gray { background: #F9FAFC; max-width: none; padding: 0; }
.tg-section.bg-gray > .inner { max-width: 1040px; margin: 0 auto; padding: 56px 40px; }

.tg-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.tg-section-head .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: #1765BF; text-transform: uppercase;
  margin: 0 0 6px;
}
.tg-section-head h2 {
  font-size: 28px; font-weight: 900; letter-spacing: 0.02em;
  color: #0c2548; margin: 0;
  line-height: 1.35;
}
.tg-section-head h2 .blue { color: #0744CC; }
.tg-section-head .lead {
  font-size: 13px; color: #5a6378; margin: 8px 0 0;
}
.tg-section-head .link-more {
  font-size: 13px; font-weight: 700; color: #1765BF;
  white-space: nowrap; align-self: flex-end;
}

.tg-section-head-center {
  text-align: center; margin-bottom: 28px;
}
.tg-section-head-center .eyebrow {
  font-size: 11px; font-weight: 700; color: #7a849c;
  letter-spacing: 0.18em; margin-bottom: 8px;
}
.tg-section-head-center h2 {
  font-size: 26px; font-weight: 900; color: #0c2548; margin: 0;
}
.tg-section-head-center h2 .blue { color: #0744CC; }
.tg-section-head-center .lead {
  font-size: 13px; color: #5a6378; margin: 8px 0 0;
}

/* ============================================================
   Reusable primitives
   ============================================================ */

/* ----- Tag ----- */
.tg-tag {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; line-height: 1.2;
  padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.tg-tag.blue   { background: #E2ECFF; color: #0744CC; }
.tg-tag.orange { background: #FFE6C9; color: #B84A00; }
.tg-tag.green  { background: #DFF1ED; color: #045E3E; }
.tg-tag.pink   { background: #FFE0E2; color: #B0203B; }
.tg-tag.yellow { background: #FFF7C2; color: #6B4B00; }
.tg-tag.grey   { background: #F1F2F5; color: #4d566c; }

/* ----- Stars ----- */
.tg-stars { display: inline-flex; gap: 1px; color: #FFB000; vertical-align: middle; }
.tg-stars svg { width: 12px; height: 12px; }
.tg-stars .half { opacity: 0.5; }
.tg-stars .empty { opacity: 0.2; }

/* ----- CTA orange (already exists in 2-A; ensure size variants) ----- */
.tg-cta-orange.sm { padding: 10px 18px; font-size: 13px; }

/* ----- Logo card (for ranking) ----- */
.tg-logo-rank {
  background: #F9FAFC; border: 1px solid #E5E9F0;
  border-radius: 10px; padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
.tg-logo-rank img { max-height: 48px; max-width: 100%; object-fit: contain; }

/* ============================================================
   SuccessTipsSection
   ============================================================ */
.tg-success-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tg-success-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 20px 18px;
  position: relative;
  border-top-width: 3px;
  border-top-style: solid;
}
.tg-success-card.t-blue   { border-top-color: #0744CC; }
.tg-success-card.t-orange { border-top-color: #FF6C00; }
.tg-success-card.t-green  { border-top-color: #079765; }
.tg-success-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tg-success-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
}
.tg-success-icon svg { width: 18px; height: 18px; }
.tg-success-card.t-blue   .tg-success-icon { background: #E2ECFF; color: #0744CC; }
.tg-success-card.t-orange .tg-success-icon { background: #FFE6C9; color: #FF6C00; }
.tg-success-card.t-green  .tg-success-icon { background: #DFF1ED; color: #079765; }
.tg-success-point {
  flex: 1;
  font-size: 10px; color: #7a849c; font-weight: 700; letter-spacing: 0.1em;
}
.tg-success-stat { text-align: right; }
.tg-success-stat-val {
  font-size: 20px; font-weight: 900; line-height: 1;
}
.tg-success-stat-lbl {
  font-size: 9px; color: #7a849c; margin-top: 2px;
}
.tg-success-card.t-blue   .tg-success-stat-val { color: #0744CC; }
.tg-success-card.t-orange .tg-success-stat-val { color: #FF6C00; }
.tg-success-card.t-green  .tg-success-stat-val { color: #079765; }
.tg-success-title {
  font-size: 15px; font-weight: 900; color: #0c2548;
  margin-bottom: 8px; line-height: 1.45;
}
.tg-success-body {
  font-size: 12px; color: #4d566c; line-height: 1.75;
}

/* ============================================================
   RankingTop5 (editorial variant)
   ============================================================ */
.tg-rank-list { display: flex; flex-direction: column; gap: 12px; }
.tg-rank-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr 180px;
  gap: 20px;
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 20px;
  align-items: center;
}
.tg-rank-circle {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  background: #F4F7FB; color: #7a849c;
  text-align: center;
}
.tg-rank-circle .lbl { font-size: 8px; letter-spacing: 0.05em; }
.tg-rank-circle .num { font-size: 22px; font-weight: 900; line-height: 1; }
.tg-rank-row.r1 .tg-rank-circle { background: #FFC700; color: #0c2548; box-shadow: 0 4px 12px rgba(0,0,0,.12); border: 3px solid #fff; outline: 2px solid #FFC700; }
.tg-rank-row.r2 .tg-rank-circle { background: #C5CED9; color: #0c2548; box-shadow: 0 4px 12px rgba(0,0,0,.12); border: 3px solid #fff; outline: 2px solid #C5CED9; }
.tg-rank-row.r3 .tg-rank-circle { background: #D9925F; color: #0c2548; box-shadow: 0 4px 12px rgba(0,0,0,.12); border: 3px solid #fff; outline: 2px solid #D9925F; }

.tg-rank-logo {
  height: 96px;
  background: #F9FAFC; border: 1px solid #E5E9F0;
  border-radius: 10px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.tg-rank-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.tg-rank-content .tags {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px;
}
.tg-rank-content .rating {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.tg-rank-content .rating b { font-size: 14px; color: #0c2548; }
.tg-rank-content .rating .lbl { font-size: 11px; color: #7a849c; }
.tg-rank-content .reason {
  font-size: 13px; color: #1a1f2e; line-height: 1.6;
}

.tg-rank-cta {
  display: flex; flex-direction: column; gap: 8px;
}
.tg-rank-cta a.detail {
  font-size: 11px; color: #0744CC; text-align: center; font-weight: 700;
}

/* ============================================================
   AgeMatchSection
   ============================================================ */
.tg-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.tg-tab {
  background: #fff; color: #0c2548;
  border: 1.5px solid #E5E9F0;
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.tg-tab.active {
  background: #0744CC; color: #fff;
  border-color: #0744CC;
}
.tg-tab:not(.active):hover {
  border-color: #87B2FF; color: #0744CC;
}

.tg-tab-panel.hidden { display: none; }

.tg-age-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tg-age-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 16px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px;
  align-items: center;
  text-decoration: none; color: inherit;
  transition: all .15s;
}
.tg-age-card:hover {
  border-color: #87B2FF; opacity: 1;
  box-shadow: 0 4px 12px rgba(11, 40, 90, 0.08);
}
.tg-age-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
}
.tg-age-icon.t-20a { background: #E2ECFF; }
.tg-age-icon.t-20b { background: #FFF7C2; }
.tg-age-icon.t-30a { background: #FFE6C9; }
.tg-age-icon.t-30b { background: #FFE0E2; }
.tg-age-icon.t-40  { background: #DFF1ED; }
.tg-age-icon.t-50  { background: #C7E7FF; }
/* 職種別 */
.tg-age-icon.t-office     { background: #E2ECFF; }
.tg-age-icon.t-sales      { background: #FFE6C9; }
.tg-age-icon.t-it         { background: #C7E7FF; }
.tg-age-icon.t-engineer   { background: #DFF1ED; }
.tg-age-icon.t-specialist { background: #FFE0E2; }
.tg-age-icon.t-exec       { background: #FFF7C2; }
/* 志向別 */
.tg-age-icon.t-income { background: #FFE6C9; }
.tg-age-icon.t-wlb    { background: #C7E7FF; }
.tg-age-icon.t-career { background: #FFF7C2; }
.tg-age-icon.t-newjob { background: #DFF1ED; }
.tg-age-icon.t-stable { background: #E2ECFF; }

.tg-age-label {
  font-size: 15px; font-weight: 900; color: #0c2548; margin-bottom: 2px;
}
.tg-age-sub {
  font-size: 11px; color: #7a849c;
}
.tg-age-meta { text-align: right; }
.tg-age-count {
  font-size: 18px; font-weight: 900; color: #0744CC; line-height: 1;
}
.tg-age-meta svg { color: #7a849c; margin-top: 4px; width: 10px; height: 10px; }

/* ============================================================
   ExperienceSection
   ============================================================ */
.tg-exp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tg-exp-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.tg-exp-card:hover {
  box-shadow: 0 6px 16px rgba(11, 40, 90, 0.08);
  transform: translateY(-2px);
  border-color: #C9D6EE;
}
.tg-exp-head {
  display: flex; align-items: center; gap: 10px;
}
.tg-exp-meta { flex: 1; min-width: 0; }
.tg-exp-meta .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.tg-exp-meta .date { font-size: 10px; color: #7a849c; }
.tg-exp-result { text-align: right; }
.tg-exp-result .lbl {
  font-size: 9px; color: #7a849c; font-weight: 700; letter-spacing: 0.08em;
}
.tg-exp-result .val {
  font-size: 15px; font-weight: 900; color: #FF6C00; line-height: 1;
}
.tg-exp-title {
  font-size: 14px; font-weight: 700; color: #0c2548; line-height: 1.55;
}
.tg-exp-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; margin-top: auto;
  border-top: 1px solid #F0F2F8;
  font-size: 11px; color: #7a849c;
  gap: 8px;
}
.tg-exp-foot b { color: #5a6378; }
.tg-exp-foot a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  background: #EEF3FB;
  color: #0744CC;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tg-exp-foot a::after {
  /* stretched link: makes the whole card clickable */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tg-exp-card:hover .tg-exp-foot a {
  background: #0744CC;
  color: #fff;
}

/* ----- Avatar ----- */
.tg-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: flex-end; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(11, 40, 90, 0.1);
}
.tg-avatar.m { background: #E2ECFF; }
.tg-avatar.f { background: #FFE4EE; }
.tg-avatar.n { background: #DFF1ED; }
.tg-avatar svg { width: 100%; height: 100%; }

/* ============================================================
   PartnerLogosSection（提携12社カードグリッド）
   ============================================================ */
.tg-partner-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.tg-partner-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
  transition: all .15s;
}
.tg-partner-card:hover {
  border-color: #87B2FF; opacity: 1;
  box-shadow: 0 4px 12px rgba(11, 40, 90, 0.08);
}
.tg-partner-logo {
  width: 100%; height: 56px;
  background: #F9FAFC; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 8px;
  overflow: hidden;
  min-height: 0;
}
.tg-partner-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.tg-partner-name {
  font-size: 11px; font-weight: 700; color: #0c2548;
  text-align: center; line-height: 1.4;
}
.tg-partner-more {
  margin-top: 20px; text-align: center;
}
.tg-partner-more a {
  color: #0744CC; font-weight: 700; font-size: 13px;
}

/* ============================================================
   RankingIndexSection（4カテゴリ×リンクリスト）
   ============================================================ */
.tg-rankindex-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.tg-rankindex-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 20px;
}
.tg-rankindex-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tg-rankindex-head .icon { font-size: 20px; }
.tg-rankindex-head h3 {
  font-size: 16px; font-weight: 900; color: #0c2548; margin: 0;
}
.tg-rankindex-head .count {
  margin-left: auto; font-size: 11px; color: #7a849c;
}
.tg-rankindex-list {
  margin: 0; padding: 0; list-style: none;
}
.tg-rankindex-list li {
  border-top: 1px solid #F0F2F8;
  font-size: 13px; color: #1a1f2e;
}
.tg-rankindex-list li:first-child { border-top: none; }
.tg-rankindex-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  color: inherit;
}
.tg-rankindex-list li a:hover { color: #0744CC; opacity: 1; }
.tg-rankindex-list li svg {
  color: #7a849c; flex-shrink: 0; margin-left: 8px;
  width: 10px; height: 10px;
}
.tg-rankindex-list li.coming {
  color: #9b9b9b; padding: 10px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.tg-rankindex-list li.coming .badge {
  background: #F1F2F5; color: #6B6B6B;
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
}

/* ============================================================
   ColumnsSection（6記事 3列）
   ============================================================ */
.tg-column-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tg-column-card {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
  transition: all .15s;
}
.tg-column-card:hover {
  border-color: #87B2FF; opacity: 1;
  box-shadow: 0 4px 12px rgba(11, 40, 90, 0.08);
}
.tg-column-card .title {
  font-size: 15px; font-weight: 900; color: #0c2548; line-height: 1.5;
}
.tg-column-card .sub {
  font-size: 12px; color: #5a6378; line-height: 1.7;
}
.tg-column-card .more {
  font-size: 12px; color: #0744CC; font-weight: 700; margin-top: auto;
}

/* ============================================================
   FAQSection（details accordion）
   ============================================================ */
.tg-faq-list {
  display: flex; flex-direction: column; gap: 10px;
}
.tg-faq {
  background: #fff; border: 1px solid #E5E9F0;
  border-radius: 10px; padding: 14px;
}
.tg-faq summary {
  font-size: 15px; font-weight: 700; color: #0c2548;
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
}
.tg-faq summary::-webkit-details-marker { display: none; }
.tg-faq summary::after {
  content: "+"; margin-left: auto;
  font-size: 18px; font-weight: 700; color: #7a849c;
  line-height: 1; transition: transform .2s;
}
.tg-faq[open] summary::after { content: "−"; }
.tg-faq .q-num {
  background: #0744CC; color: #fff;
  width: 24px; height: 24px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}
.tg-faq .answer {
  font-size: 15px; color: #0c2548; line-height: 1.9;
  margin-top: 10px; padding-left: 36px; padding-top: 10px;
  border-top: 1px solid #F0F2F8;
}
.tg-faq .answer b { color: #FF6C00; }

/* ============================================================
   OperatorSection（ネイビー背景）
   ============================================================ */
.tg-operator {
  background: #0c2548; color: #fff;
  border-radius: 14px; padding: 32px;
}
.tg-operator-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.tg-operator-head svg { color: #FFC700; width: 20px; height: 20px; }
.tg-operator-head h2 {
  font-size: 20px; font-weight: 900; margin: 0; color: #fff;
}
.tg-operator-grid {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 12px 24px;
  font-size: 12px;
}
.tg-operator-grid .l { color: #8da3c8; font-weight: 700; }
.tg-operator-grid .v { color: #c8d2e2; line-height: 1.7; }

/* ============================================================
   SP overrides for Phase 2-B sections
   ============================================================ */
@media (max-width: 768px) {
  .tg-section { padding: 32px 16px; }
  .tg-section.bg-gray > .inner { padding: 32px 16px; }
  .tg-section-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .tg-section-head h2 { font-size: 22px; }
  .tg-section-head .link-more { align-self: flex-start; }

  .tg-success-grid { grid-template-columns: 1fr; }

  .tg-rank-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    align-items: stretch;
  }
  .tg-rank-circle {
    align-self: flex-start;
    margin: 0;
  }
  .tg-rank-logo {
    height: 72px;
    width: 100%;
  }
  .tg-rank-logo img { height: 48px; }
  .tg-rank-cta { width: 100%; }

  .tg-tabs { overflow-x: auto; }
  .tg-age-grid { grid-template-columns: 1fr; }

  .tg-exp-grid { grid-template-columns: 1fr; }

  /* Phase 2-C SP */
  .tg-partner-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tg-partner-logo { height: 44px; }
  .tg-partner-logo img { height: 28px; }
  .tg-partner-name { font-size: 10px; }

  .tg-rankindex-grid { grid-template-columns: 1fr; }
  .tg-column-grid { grid-template-columns: 1fr; }
  .tg-faq summary { font-size: 14px; gap: 10px; }
  .tg-faq .answer { padding-left: 0; font-size: 14px; }

  .tg-operator { padding: 24px 20px; border-radius: 10px; }
  .tg-operator-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .tg-operator-grid .l { font-size: 11px; margin-top: 8px; }
  .tg-operator-grid .l:first-child { margin-top: 0; }
}

/* ============================================================
   SiteFooter
   ============================================================ */
.tg-footer {
  background: #0c2548;
  color: #c8d2e2;
  padding: 48px 40px 24px;
  font-size: 12px;
}
.tg-footer .inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.tg-footer h4 {
  font-size: 12px; font-weight: 700; color: #fff;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}
.tg-footer a {
  color: #c8d2e2; display: block; padding: 4px 0;
}
.tg-footer a:hover { color: #fff; opacity: 1; }
.tg-footer .bottom {
  max-width: 1040px; margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid #1a3a6e;
  display: flex; justify-content: space-between;
  font-size: 11px; color: #8a9bb5;
}

/* ============================================================
   Responsive — SP basic adjustments (Phase 2-C で精緻化予定)
   ============================================================ */
@media (max-width: 768px) {
  .tg-header { padding: 0 16px; height: 56px; }
  .tg-header nav { display: none; }
  .tg-header .tg-cta { font-size: 12px; padding: 8px 14px; }
  .tg-brand { gap: 6px; }
  .tg-brand .pennant { width: 38px; height: 28px; font-size: 14px; }
  .tg-brand .pennant::after { width: 3.5px; height: 3.5px; }
  .tg-brand .brand-text { font-size: 16px; }
  .tg-brand .brand-text .net { font-size: 14px; }

  .tg-hero-calm { padding: 32px 0; }
  .tg-hero-calm .inner {
    grid-template-columns: 1fr; gap: 24px;
    padding: 0 16px;
  }
  .tg-hero-calm h1 { font-size: 28px; line-height: 1.3; }
  .tg-hero-calm .lead { font-size: 13px; }

  /* SP では編集部おすすめ度カードは文脈が伝わりにくいため非表示 */
  .tg-hero-right { display: none; }

  .tg-logostrip .inner { padding: 0 16px; }
  .tg-logostrip .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .tg-logo-card { height: 52px; padding: 6px 10px; }
  .tg-logo-card img { height: 32px; }

  .tg-footer { padding: 32px 16px 20px; }
  .tg-footer .inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tg-footer .bottom { flex-direction: column; gap: 8px; text-align: center; }
}
