/* =========================================================
    Base
   PC max-width: 1120px
   Desktop padding: 24px (左右)
   Mobile padding: 16px (左右)
========================================================= */
:root{
  --container-max: 1120px;
  --pad-desktop: 24px;
  --pad-mobile: 16px;

  --text: #1A1A2E;
  --muted: #5A5A72;
  --line: #E0E4EC;
  --bg: #FFFFFF;
  --bg-soft: #FBFCFF;
  --brand: #0057A8;
  --brand-deep: #003D7A;
  --soft-blue: #E8F2FF;
    --ink: #1a1a2e;
    --mid: #2d3561;
    --accent: #c84b31;
    --accent-light: #f5e6e2;
    --gold: #d4a843;
    --surface: #fafaf8;
    --border: #e8e4dc;
    --text: #2c2c2c;
    --muted: #666;
    --max-w: 740px;
    --max-ww: 1000px;
}


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


*{ box-sizing: border-box; }
body{ color: var(--text); background: var(--bg); }
a{ color: inherit; }

.l-container{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
}
@media (max-width: 560px){
  .l-container{
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
  }
}

/* =========================================================
   Layout: single
========================================================= */

  /* ─── HERO ─── */
  .hero {
    background: var(--ink);
    color: #fff;
    padding: 60px 0px 50px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,75,49,0.25) 0%, transparent 70%);
  }
  .hero-inner {
    max-width: var(--max-ww);
    margin: 0 auto 50px;
    position: relative;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,168,67,0.15);
    border: 1px solid rgba(212,168,67,0.4);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  .hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
  }
  .hero-meta span { display: flex; align-items: center; gap: 5px; }
  .hero-summary {
    background: rgba(255,255,255,0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    font-size: 14.5px;  
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    padding:20px;
  }

  /* ─── LAYOUT ─── */
  main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  /* ─── TOC ─── */
  .toc {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--mid);
    padding: 28px 32px;
    margin: 25px 0;
    border-radius: 0 0 4px 4px;
  }
  .toc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 8px;
  }
  .toc li {
    counter-increment: toc;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
  }
  .toc li::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
  }
  .toc a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
  .toc a:hover { color: var(--accent); border-color: var(--accent); }

  /* ─── AUTHOR ─── */
  .author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 0px;
    font-size: 13.5px;
  }
  .author-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mid), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; font-weight: 700;
    flex-shrink: 0;
  }
  .author-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
  .author-desc { color: var(--muted); line-height: 1.6; }

  /* ─── SECTION ─── */
  section { margin-bottom: 56px; }
  main h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(19px, 2.8vw, 23px);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 24px;
    padding-top: 8px;
  }
  main h2::before {
    content: '';
    display: inline-block;
    width: 4px; height: 1em;
    background: var(--accent);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 2px;
  }
  main h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--mid);
    margin: 28px 0 12px;
  }
  main p { margin-bottom: 16px; }
  main ul, ol { margin: 0 0 16px 24px; }
  main li { margin-bottom: 6px; }

  /* ─── DIFFICULTY BADGE ─── */
  .difficulty-block {
    background: var(--ink);
    color: #fff;
    border-radius: 6px;
    padding: 32px 36px;
    margin: 28px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
  }
  .diff-rank {
    text-align: center;
  }
  .diff-rank .letter {
    font-family: 'Noto Serif JP', serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
  }
  .diff-rank .label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
  }
  .diff-detail h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 10px;
  }
  .diff-detail p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.8;
  }

  /* ─── RANK TABLE ─── */
  .rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0 28px;
  }
  .rank-table th {
    background: var(--ink);
    color: #fff;
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
  }
  .rank-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
  .rank-table tr:nth-child(even) td { background: #f5f4f1; }
  .rank-table tr.highlight td { background: var(--accent-light); font-weight: 700; }
  .badge-s { background: #8B0000; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }
  .badge-a { background: #C0392B; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }
  .badge-b { background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }
  .badge-c { background: #888; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }

  /* ─── STAT CARDS ─── */
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
  .stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--mid);
    padding: 20px 16px;
    border-radius: 0 0 4px 4px;
    text-align: center;
  }
  .stat-card .num {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--mid);
    line-height: 1.2;
  }
  .stat-card .unit { font-size: 13px; font-weight: 700; color: var(--mid); }
  .stat-card .desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

  /* ─── FLOW ─── */
  .flow {
    display: grid;
    gap: 0;
    margin: 24px 0;
  }
  .flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 28px;
    position: relative;
  }
  .flow-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }
  .flow-step:last-child::before { display: none; }
  .flow-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--mid);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .flow-body h4 { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
  .flow-body p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

  /* ─── CALLOUT ─── */
  .callout {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14.5px;
  }
  .callout strong { color: var(--accent); }

  .callout-blue {
    background: #eef2ff;
    border-left: 4px solid var(--mid);
  }
  .callout-blue strong { color: var(--mid); }

  /* ─── CHECKLIST ─── */
  .checklist {
    list-style: none;
    margin: 0 0 20px;
    display: grid;
    gap: 10px;
  }
  .checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14.5px;
    margin: 0;
  }
  .checklist li::before {
    content: '✓';
    background: var(--mid);
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ─── SALARY TABLE ─── */
  .salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0;
  }
  .salary-table th {
    background: var(--mid);
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    text-align: left;
  }
  .salary-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .salary-table tr:nth-child(even) td { background: #f5f4f1; }
  .salary-table td:not(:first-child) { text-align: center; }

  /* ─── FAQ ─── */
  .faq { display: grid; gap: 16px; }
  .faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
  }
  .faq-q {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
  }
  .faq-q::before {
    content: 'Q';
    background: var(--accent);
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .faq-a {
    padding: 14px 20px 16px 54px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    border-top: 1px solid var(--border);
    background: #fafaf8;
  }

  /* ─── CONCLUSION ─── */
  .conclusion {
    background: var(--ink);
    color: #fff;
    padding: 25px 36px;
    border-radius: 6px;
    margin-top: 26px;
  }
  .conclusion h2 {
    font-family: 'Noto Serif JP', serif;
    color: #fff;
    border-color: rgba(255,255,255,0.15);
    font-size: 20px;
    margin-bottom: 20px;
  }
  .conclusion h2::before { background: var(--gold); }
  .conclusion p { color: rgba(255,255,255,0.82); font-size: 15px; }

  .conclusion h3 {
    font-family: 'Noto Serif JP', serif;
    color: #fff;
    border-color: rgba(255,255,255,0.15);
    font-size: 20px;
    margin-bottom: 20px;
  }
  .conclusion h3::before { background: var(--gold); }

  /* ─── SCHEMA NOTE ─── */
  .updated-note {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
  }

  @media (max-width: 600px) {
    .difficulty-block { grid-template-columns: 1fr; text-align: center; }
    .hero { padding: 40px 20px; }
    main { padding: 0 18px 60px; }
    .toc { padding: 20px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
  }

/* =========================================================
   Layout: 2 columns (category/single用の共通)
========================================================= */
.p-layout{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  padding: 26px 0 40px;
}
@media (max-width: 980px){
  .p-layout{
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
  }
}

.p-main{ min-width: 0; }
.p-sidebar{ min-width: 0; }

/* Side box */
.p-sideBox{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 14px;
  box-shadow: 0 10px 26px rgba(26,26,46,0.05);
  margin-bottom: 14px;
}
.p-sideBox__title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

/* Link list */
.p-linkList{
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-linkList__item + .p-linkList__item{ margin-top: 10px; }
.p-linkList__link{
  text-decoration: none;
  color: var(--text);
  line-height: 1.6;
}
.p-linkList__link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Chip list */
.p-chipList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.p-chip:hover{ filter: brightness(0.98); }

/* TOC list */
.p-tocList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.p-tocList__link{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  text-decoration: none;
}
.p-tocList__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: 8px;
  background: #F4F7FF;
  font-weight: 900;
  color: var(--brand-deep);
  font-size: 12px;
}
.p-tocList__text{
  color: var(--text);
  line-height: 1.6;
}

/* Article-ish content wrapper */

/*
.p-article{
  line-height: 1.9;
  color: #2B2B44;
}
.p-article h2{
  margin: 26px 0 10px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
}
.p-article h3{
  margin: 22px 0 8px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
}
.p-article p{ margin: 0 0 14px; }
.p-article ul, .p-article ol{ margin: 0 0 14px; }
.p-article blockquote{
  margin: 16px 0;
  padding: 14px 14px;
  border-left: 4px solid var(--brand);
  background: #F7FAFF;
  color: #333;
}
 */
/* =========================================================
   Category (2 columns)
========================================================= */
.p-catHero{
  background: linear-gradient(135deg, #001F5A 0%, #0057A8 60%, #1E7FD4 100%);
  color: #fff;
  padding: 46px var(--pad-desktop) 36px;
}
@media (max-width: 560px){
  .p-catHero{ padding: 32px var(--pad-mobile) 26px; }
}
.p-catHero__inner{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
}
@media (max-width: 560px){
  .p-catHero__inner{
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
  }
}
.p-catHero__crumbMini{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
}
.p-catHero__crumbMini a{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.p-catHero__crumbMini span{ margin: 0 6px; }
.p-catHero__title{
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.35;
  margin: 0 0 10px;
}
.p-catHero__sub{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}
.p-catHero__lead{
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}

.p-catBlock{ margin: 0 0 26px; }
.p-catBlock__title{
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--text);
}

/* まず読む：カード */
.p-cardGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){
  .p-cardGrid{ grid-template-columns: 1fr; }
}
.p-card{
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(26,26,46,0.05);
}
.p-card__title{
  color: var(--text);
  font-weight: 900;
  line-height: 1.55;
}
.p-card__meta{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* category本文 */
.p-catContent{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(26,26,46,0.05);
  margin-bottom: 28px;
}

/* 関連記事一覧 */
.p-postList{ display: grid; gap: 10px; }
.p-postRow{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.p-postRow__title{
  color: var(--text);
  font-weight: 900;
  line-height: 1.55;
}
.p-postRow__meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.p-postRow__badge{
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand-deep);
  font-weight: 800;
}

/* もっと見る */
.p-loadMore{
  margin-top: 14px;
  width: 100%;
  border: 1px solid #C0D8F8;
  background: var(--soft-blue);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}
.p-loadMore:disabled{ opacity: .6; cursor: default; }
.p-loadMore__note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   CV Block (cv-001.php)
========================================================= */
.p-cvBlock{ margin: 28px 0; }
.p-cvBlock__inner{
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #1E7FD4 100%);
  border-radius: 14px;
  padding: 28px 24px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
@media (max-width: 560px){
  .p-cvBlock__inner{ padding: 22px 18px; }
}
.p-cvBlock__title{
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 14px;
}
.p-cvBlock__text{
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: rgba(255,255,255,0.92);
}
.p-cvBlock__list{
  margin: 0 0 18px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
}
.p-cvBlock__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 900;
  text-decoration: none;
  transition: all .2s ease;
}
.p-cvBlock__btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.p-cvBlock__note{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}

/* =========================================================
   Top (1 column) front-page.php
========================================================= */
.p-top{ background:#fff;    max-width: var(--container-max); }

.p-topHero{
  border-bottom: 1px solid #E7EAF2;
  padding: 18px 0 26px;
  background: #fff;
}
.p-topHero__inner{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
}
@media (max-width: 560px){
  .p-topHero__inner{
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
  }
}
.p-topHero__logoRow{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 16px;
  padding: 8px 0 18px;
}
.p-topHero__logo{ font-weight: 900; color: var(--text); }
.p-topHero__menu{ color: var(--muted); font-size: 13px; }

.p-topHero__message{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  background:#fff;
}
.p-topHero__headline{
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.5;
  font-weight: 900;
  color: var(--text);
}
.p-topHero__sub{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.p-top__inner{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
  padding: 26px 0 40px;
}
@media (max-width: 560px){
  .p-top__inner{
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
    padding: 20px 0 34px;
  }
}

.p-topSection{ margin: 0 0 28px; }
.p-topSection__title{
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--text);
}
.p-topNote{ margin: 0; color: var(--muted); font-size: 13px; }

.p-topGrid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .p-topGrid4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .p-topGrid4{ grid-template-columns: 1fr; }
}

.p-topCard{
  display:block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  overflow:hidden;
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(26,26,46,0.05);
}
.p-topCard__thumb img{
  width:100%;
  height: 140px;
  object-fit: cover;
  display:block;
}
.p-topCard__thumbPh{
  height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  background:#F4F7FF;
  font-weight: 800;
}
.p-topCard__body{ padding: 12px 12px 14px; }
.p-topCard__title{ color: var(--text); font-weight: 900; line-height:1.55; }
.p-topCard__desc{ margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.p-topCard--agent .p-topCard__thumb img,
.p-topCard--agent .p-topCard__thumbPh{ height: 120px; }

/* Industry blocks */
.p-industryGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .p-industryGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .p-industryGrid{ grid-template-columns: 1fr; }
}
.p-industry{
  border: 1px solid var(--line);
  border-radius: 12px;
  background:#fff;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(26,26,46,0.05);
}
.p-industry__head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.p-industry__title{ font-weight: 900; color: var(--text); text-decoration:none; }
.p-industry__more{ font-size: 12px; color: var(--brand); text-decoration:none; }

.p-industryFeature{
  display:grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: start;
  text-decoration:none;
  margin-bottom: 10px;
}
.p-industryFeature__thumb img{
  width:78px; height:78px; object-fit:cover; border-radius: 10px; display:block;
}
.p-industryFeature__thumbPh{
  width:78px; height:78px; border-radius:10px;
  background:#F4F7FF;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); font-weight:800;
}
.p-industryFeature__title{ font-weight: 900; color: var(--text); line-height:1.5; }
.p-industryFeature__desc{ margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.7; }

.p-industryLinks{
  margin: 0;
  padding-left: 16px;
  color: var(--text);
  font-size: 13px;
}
.p-industryLinks__item{ margin: 8px 0; }
.p-industryLinks__link{ color: var(--text); text-decoration:none; }
.p-industryLinks__link:hover{ text-decoration:underline; text-underline-offset: 3px; }
.p-industryLinks__item--empty{
  list-style: none;
  padding-left: 0;
  color: var(--muted);
}

/* dashed text boxes */
.p-topTextBox{
  border: 2px dashed #C9D6EA;
  border-radius: 12px;
  padding: 18px 16px;
  background: var(--bg-soft);
}
.p-topTextBox__title{
  margin: 0 0 10px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: var(--text);
}
.p-topTextBox__content{
  color: #3B3B55;
  line-height: 1.8;
  font-size: 14px;
}

/* =========================================================
   Footer
========================================================= */
.siteFooter{
  background: #0b1b3a;
  color: rgba(255,255,255,0.86);
  padding: 44px 0 18px;
}
.siteFooter__inner{
  width: min(var(--container-max), calc(100% - (var(--pad-desktop) * 2)));
  margin: 0 auto;
}
@media (max-width: 560px){
  .siteFooter__inner{
    width: min(var(--container-max), calc(100% - (var(--pad-mobile) * 2)));
  }
}
.siteFooter__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr .8fr;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 920px){
  .siteFooter__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .siteFooter__grid{ grid-template-columns: 1fr; }
}
.siteFooter__logo{
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}
.siteFooter__tagline{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.siteFooter__title{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  font-weight: 800;
}
.siteFooter__list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.siteFooter__item + .siteFooter__item{ margin-top: 10px; }
.siteFooter__link{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.siteFooter__link:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.siteFooter__sns{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.siteFooter__snsLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.siteFooter__snsLink:hover{ background: rgba(255,255,255,0.14); }
.siteFooter__note{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.siteFooter__bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  flex-wrap: wrap;
}
.siteFooter__legal{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.siteFooter__legal a{
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
}
.siteFooter__legal a:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.siteFooter__copy{
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* TOPの横幅を広げる */
.home .site,
.home .site-inner,
.home .site-content,
.home .content-area,
.home .site-main {
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 本文エリアの左右余白を調整 */
.home .site-main,
.home .content-area {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* カテゴリごとの色 */
/* デフォルト */
.p-catHero {
  --ink: #1a1a2e;
}

/* コンサル */
.category-consulting .p-catHero {
  --ink: #1a1a2e;
}

/* IT */
.category-it .p-catHero {
  --ink: #0a3d62;
}

/* 金融 */
.category-finance .p-catHero {
  --ink: #2f5233;
}

/* 事業会社 */
.category-corporate .p-catHero {
  --ink: #6b3e2e;
}

  /* ─── 個別投稿のヘッド画像（サムネイル） ─── */
.single-thumbnail {
  margin-bottom: 20px;
  max-height:300px;	
  overflow:hidden;	
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
	vertical-align:middle;
}

.p-breadcrumb{ margin-bottom:20px; font-size:12px;}


/* ===== ヒーロー全体 ===== */
.tophero {
  position: relative;
  width: 100vw;
  height: 60vh;
  min-height: 620px;

  margin-left: calc(50% - 50vw); /* コンテナの中央寄せを打ち消して全幅に */
  overflow: hidden;
}

/* ===== 背景画像 ===== */
.tophero__bg {
  position: absolute;
  inset: 0;

  background-image: url('/wp-content/uploads/2026/03/Gemini_Generated_Image_rnym2ernym2ernym.png'); /* 画像差し替え */
  background-size: cover;
  background-position: top center;

  z-index: 1;
}

/* ===== 黒オーバーレイ ===== */
.tophero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

.tophero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0));
}

/* ===== テキスト ===== */
.tophero__inner {
  position: relative;
  z-index: 3;

  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* タイトル */
.tophero__title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* サブ */
.tophero__sub {
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .tophero {
    height: 50vh;
    min-height: 320px;
  }

  .tophero__title {
    font-size: 24px;
  }

  .tophero__sub {
    font-size: 14px;
  }
}

/* =========================
   header
========================= */
.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.site-header__inner {
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-block;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* =========================
   hamburger
========================= */
.site-header__toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.site-header__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #111;
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}

body.menu-open .site-header__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================
   scroll後のfixed header
========================= */
.site-header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* メニュー開いてる時は少ししっかり白に */
body.menu-open .site-header.is-fixed {
  background: rgba(255, 255, 255, 0.94);
}

/* fixed化した時のガタつき防止用 */
.header-spacer {
  display: none;
}

.header-spacer.is-active {
  display: block;
  height: 60px;
}

/* =========================
   overlay menu
========================= */
.global-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

body.menu-open .global-menu {
  opacity: 1;
  visibility: visible;
}

.global-menu__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 20px 40px;
}

.global-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-menu__nav li {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.global-menu__nav a {
  display: block;
  padding: 18px 0;
  color: #111;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
}

.global-menu__nav a:hover {
  opacity: 0.65;
}

@media (min-width: 768px) {
  .site-header__inner {
    height: 64px;
    padding: 0 28px;
  }

  .header-spacer.is-active {
    height: 64px;
  }

  .global-menu__inner {
    padding: 100px 28px 56px;
  }

  .global-menu__nav a {
    font-size: 30px;
    padding: 20px 0;
  }
}