/* ASTROWORKS 専用CSS（数値は design_handoff_astronote_astroworks/ASTROWORKS_SPEC.md が正）
   昼のビジネスメディア。白地＋ブルー、ゴシック。--hdr は assets/js/aw.js が実測高で上書き（SPEC 4.3） */

/* --- 1. CSS変数（SPEC 3.4 そのまま） --- */
:root {
  --nav-desk: flex;
  --burger: none;
  --aw-tagline: inline;
  --aw-sister: flex;
  --skill-cols: 1fr 44px 1fr;
  --meta-cols: 120px minmax(0, 1fr);
  --awrel-cols: 100px minmax(0, 1fr) 22px;
  --sec-py: 60px;
  --hdr: 118px; /* JSが実測値で上書きする */
  --hero-py: clamp(30px, 4.5vh, 58px);
  --hero-h1: clamp(34px, 5.4vw, 66px);
  --navi: flex;
  --navi-mt: 56px;
  --lead: block;
  --cta-mt: 30px;
  --lead-lh: 2.05;
}
/* 画面の「高さ」で段階的に詰める — ティッカーをファーストビューに収めるため（SPEC 4.3） */
@media (max-height: 940px) {
  :root {
    --hero-py: 18px;
    --hero-h1: clamp(32px, 4.2vw, 46px);
    --navi-mt: 34px;
    --cta-mt: 20px;
    --lead-lh: 1.85;
  }
}
@media (max-height: 740px) {
  :root {
    --navi: none;
    --hero-py: 18px;
    --cta-mt: 16px;
  }
}
@media (max-height: 560px) {
  :root {
    --lead: none;
    --hero-h1: 32px;
  }
}
/* 画面の「幅」 */
@media (max-width: 1024px) {
  :root {
    --sec-py: 46px;
    --hdr: 70px;
    --nav-desk: none;
    --burger: flex;
    --aw-tagline: none;
    --navi: none;
    --hero-py: clamp(20px, 3.5vh, 40px);
  }
}
@media (max-width: 840px) {
  :root {
    --aw-tagline: none;
    --aw-sister: none;
    --hero-py: 14px;
    --hero-h1: clamp(30px, 7.2vw, 42px);
    --lead-lh: 1.8;
    --cta-mt: 16px;
    --navi-mt: 0px;
  }
}
@media (max-width: 620px) {
  :root {
    --skill-cols: minmax(0, 1fr);
    --meta-cols: 88px minmax(0, 1fr);
    --awrel-cols: minmax(0, 1fr);
    --sec-py: 36px;
  }
}

/* --- 2. Keyframes（SPEC 3.5） --- */
@keyframes aw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes aw-pageIn  { from { opacity: 0; } to { opacity: 1; } } /* translateYを入れない：ヒーロー高さ計算を狂わせるため */
@keyframes aw-orbit   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes aw-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* --- 3. ベース --- */
.aw {
  background: #ffffff;
  color: #18202b;
  font-family: 'Noto Sans JP', sans-serif;
}
.aw ::selection { background: rgba(37, 99, 201, 0.18); }
/* :where(.aw) a で詳細度0に。.aw a だと (0,1,1) になり .aw-btn--primary 等の単一クラス指定に勝ってボタン等の文字色が潰れる */
:where(.aw) a { color: #18202b; }
:where(.aw) a:hover { color: #2563c9; }
.aw-mono { font-family: 'IBM Plex Mono', monospace; }

.aw-main { animation: aw-pageIn 0.5s ease both; }

.aw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.aw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px 28px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.aw-btn--primary { color: #fff; background: #2563c9; }
.aw-btn--primary:hover { background: #1d4fa5; color: #fff; }
.aw-btn--outline {
  font-weight: 500;
  color: #2563c9;
  border-color: #b9cfec;
  background: rgba(255, 255, 255, 0.85);
  padding: 13px 28px;
}
.aw-btn--outline:hover { background: #f2f7fd; color: #2563c9; }

/* --- 4. ヘッダー（SPEC 4.1） --- */
.aw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5eaf0;
}
.aw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.aw-header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.aw-header__brand:hover { color: #18202b; }
.aw-header__logo { width: 34px; height: 34px; filter: invert(1) brightness(0.2); }
.aw-header__name { font-weight: 900; font-size: 19px; letter-spacing: 0.14em; }
.aw-header__tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7b8494;
  white-space: nowrap;
  display: var(--aw-tagline, inline);
}
.aw-header__nav {
  display: var(--nav-desk, flex);
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  flex-wrap: nowrap;
}
.aw-header__navlink {
  font-size: 13.5px;
  font-weight: 500;
  color: #3c4552;
  white-space: nowrap;
}
.aw-header__navlink:hover,
.aw-header__navlink[aria-current="page"] { color: #2563c9; }
.aw-header__sister {
  display: var(--aw-sister, flex);
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #3c4552;
  border: 1px solid #e5eaf0;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.aw-header__sister:hover { border-color: #b9cfec; color: #2563c9; }
.aw-header__sistericon { width: 16px; height: 16px; filter: invert(1) brightness(0.2); }
.aw-header__cta {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: #2563c9;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
}
.aw-header__cta:hover { background: #1d4fa5; color: #fff; }
.aw-header__burger {
  display: var(--burger, none);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  cursor: pointer;
  box-sizing: border-box;
}
.aw-header__burgerbar { display: block; width: 20px; height: 2px; background: #1d2635; border-radius: 2px; }

.aw-header__panel {
  border-top: 1px solid #e5eaf0;
  background: #fff;
  padding: 10px clamp(16px, 3vw, 40px) 20px;
  display: flex;
  flex-direction: column;
}
.aw-header__panel[hidden] { display: none; }
.aw-header__panellink {
  font-size: 15px;
  font-weight: 600;
  color: #1d2635;
  padding: 15px 2px;
  border-bottom: 1px solid #eef2f7;
}
.aw-header__panelsister {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4552;
  padding: 15px 2px;
}
.aw-header__panelcta {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #2563c9;
  padding: 15px 20px;
  border-radius: 9px;
  margin-top: 8px;
}
.aw-header__panelcta:hover { background: #1d4fa5; color: #fff; }

/* --- 5. ヒーロー（SPEC 4.3 / 5.1a） --- */
.aw-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5eaf0;
  background: #eef4fb url('../../../assets/img/hero-rocket.png') no-repeat center center;
  background-size: cover;
  min-height: calc(100svh - var(--hdr, 118px)); /* 100vh は使わない（モバイルのアドレスバーで破綻するため） */
  display: flex;
  flex-direction: column;
}
.aw-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--hero-py, 84px) clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}
.aw-hero__content { max-width: 560px; }
.aw-hero__eyebrow { display: flex; align-items: center; gap: 12px; }
.aw-hero__eyebrowbar { width: 26px; height: 2px; background: #2563c9; display: block; }
.aw-hero__eyebrowtext { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: #2563c9; }
.aw-hero__title {
  margin: 18px 0 0;
  font-weight: 900;
  font-size: var(--hero-h1, 66px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-wrap: balance;
  color: #141b26;
}
.aw-hero__mark { position: relative; display: inline-block; }
.aw-hero__mark::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 5px; height: 13px;
  background: rgba(37, 99, 201, 0.16);
  z-index: -1;
}
.aw-hero__lead {
  display: var(--lead, block);
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: var(--lead-lh, 2.05);
  color: #44505f;
  max-width: 46ch;
  text-wrap: pretty;
}
.aw-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--cta-mt, 30px); }
.aw-hero__navi { display: var(--navi, flex); align-items: center; gap: 16px; margin-top: var(--navi-mt, 34px); }

.aw-hero__hoshimaru { position: relative; width: 104px; height: 104px; flex: 0 0 auto; animation: aw-bob 4.5s ease-in-out infinite; }
.aw-hero__glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(37, 99, 201, 0.18), rgba(37, 99, 201, 0) 55%);
}
.aw-hero__orbit {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px;
  border-radius: 50%; border: 1px solid rgba(37, 99, 201, 0.3);
  animation: aw-orbit 16s linear infinite;
}
.aw-hero__dot {
  position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: #2563c9; box-shadow: 0 0 8px rgba(37, 99, 201, 0.6); display: block;
}
.aw-hero__portrait {
  position: absolute; inset: 9px; border-radius: 50%; overflow: hidden; border: 2.5px solid #fff;
  background: radial-gradient(circle at 50% 30%, #eaf2fc, #d5e4f7);
  box-shadow: 0 8px 22px rgba(24, 32, 43, 0.18);
}
.aw-hero__portrait img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.aw-hero__bubble {
  position: relative; background: #fff; border: 1px solid #dbe6f5; border-radius: 14px;
  padding: 13px 18px; box-shadow: 0 6px 20px rgba(24, 32, 43, 0.08); max-width: 300px;
}
.aw-hero__bubble::before {
  content: ''; position: absolute; left: -7px; top: 28px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid #dbe6f5; border-bottom: 1px solid #dbe6f5; transform: rotate(45deg);
}
.aw-hero__bubblehead { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.aw-hero__bubblename { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: #2563c9; }
.aw-hero__bubblerole { font-size: 9px; letter-spacing: 0.08em; color: #7b8494; border: 1px solid #e0e7f0; border-radius: 999px; padding: 1px 8px; }
.aw-hero__bubbletext { font-size: 13px; line-height: 1.85; color: #44505f; }

@media (prefers-reduced-motion: reduce) {
  .aw-hero__hoshimaru,
  .aw-hero__orbit { animation: none !important; }
}

/* --- 6. 最新記事ティッカー（SPEC 4.3 / 5.1b） --- */
.aw-ticker {
  position: relative;
  border-top: 1px solid #e5eaf0;
  background: #0a0e1c;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.aw-ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #9fc0e8;
  padding: 14px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
  background: #0a0e1c;
  white-space: nowrap;
}
.aw-ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: #4d8bec; box-shadow: 0 0 8px rgba(77, 139, 236, 0.8); display: block; }
.aw-ticker__viewport { flex: 1; overflow: hidden; position: relative; }
.aw-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: aw-marquee 55s linear infinite;
}
.aw-ticker__viewport:hover .aw-ticker__track { animation-play-state: paused; }
.aw-ticker__item {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 32px 14px 0;
  white-space: nowrap;
  color: #cfd6e2;
}
.aw-ticker__item:hover { color: #fff; }
.aw-ticker__date { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #7188a8; }
.aw-ticker__title { font-size: 13.5px; font-weight: 500; color: inherit; }
.aw-ticker__sep { color: #33445e; padding-left: 20px; }
.aw-ticker__fade { position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none; }
.aw-ticker__fade--l { left: 0; background: linear-gradient(90deg, #0a0e1c, rgba(10, 14, 28, 0)); }
.aw-ticker__fade--r { right: 0; background: linear-gradient(270deg, #0a0e1c, rgba(10, 14, 28, 0)); }
.aw-ticker__empty { color: #7188a8; font-size: 13px; padding: 14px 20px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .aw-ticker__track { animation: none !important; }
}

/* --- 7. セクション共通見出し --- */
.aw-section { max-width: 1200px; margin: 0 auto; padding: var(--sec-py, 60px) clamp(20px, 4vw, 48px) 28px; box-sizing: border-box; }
.aw-sectionhead { display: flex; align-items: baseline; gap: 14px; padding-bottom: 20px; flex-wrap: wrap; }
.aw-h2 { margin: 0; font-weight: 900; font-size: 25px; letter-spacing: 0.04em; white-space: nowrap; }
.aw-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #7b8494; }
.aw-more { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #2563c9; white-space: nowrap; }
.aw-more:hover { color: #1d4fa5; }
/* max-width:60chだと1文が収まらず数文字だけ次行に落ちるため76chに広げ、text-wrap:balanceで行長を揃える */
.aw-section__lead { margin: 0 0 34px; font-size: 14px; line-height: 1.9; color: #5c6675; max-width: 76ch; text-wrap: balance; }
.aw-empty { margin: 0; padding: 24px 4px; font-size: 14px; color: #7b8494; }

/* --- 8. カード（inc/card.php が出力するクラス名に対して当てる） --- */
.aw-cardgrid { display: grid; gap: 20px; }
.aw-cardgrid--explainer,
.aw-cardgrid--guide { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.aw-cardgrid--career { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.aw-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5eaf0;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.aw-card:hover { box-shadow: 0 10px 28px rgba(24, 32, 43, 0.1); transform: translateY(-3px); color: inherit; }

.aw-card__thumb {
  position: relative;
  overflow: hidden;
  background-color: #1e3a6e;
  background-size: cover;
  background-position: center;
}
/* アイキャッチの縦横比は 1200:630（OGP標準）に統一する */
.aw-card--explainer .aw-card__thumb { aspect-ratio: 1200 / 630; }
.aw-card--career .aw-card__thumb { aspect-ratio: 1200 / 630; }
.aw-card__thumb::before {
  /* 星の粒（プロトタイプのSVG装飾をCSSのみで近似） */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 30%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 18%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 82% 55%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 68%, rgba(255,255,255,0.7) 50%, transparent 51%);
}
.aw-card--explainer .aw-card__thumb::after {
  content: '';
  position: absolute; right: 12%; bottom: 8%; width: 56%; height: 90%;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0);
}
.aw-card--career .aw-card__thumb::after {
  content: '';
  position: absolute; left: 6%; bottom: -20%; width: 60%; height: 130%;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28);
}
.aw-card__tag {
  position: absolute; left: 12px; top: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; color: #fff;
  background: rgba(15, 25, 45, 0.55); backdrop-filter: blur(4px); padding: 4px 10px;
}
.aw-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.aw-card--career .aw-card__body { gap: 9px; padding: 18px 20px 20px; }
.aw-card__date { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #7b8494; }
.aw-card__title { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.75; }
.aw-card--career .aw-card__title { font-size: 16.5px; line-height: 1.7; }
.aw-card__excerpt { margin: 0; font-size: 14px; color: #5c6675; line-height: 1.9; text-wrap: pretty; }
.aw-card__more { margin-top: auto; font-size: 12px; font-weight: 500; color: #2563c9; }

/* --- 9. 宇宙業界ニュース（テキスト行 / inc/card.php aw_render_news_row） --- */
.aw-newsrows { border-top: 1px solid #e5eaf0; }
.aw-newsrow {
  cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 16px 6px; border-bottom: 1px solid #edf1f6;
}
.aw-newsrow:hover { background: #f6f9fc; color: inherit; }
.aw-newsrow__date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #7b8494; flex: 0 0 auto; }
.aw-newsrow__tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; color: #2563c9;
  border: 1px solid #cfe0f7; background: #f2f7fe; padding: 3px 9px; flex: 0 0 auto; white-space: nowrap;
}
.aw-newsrow__title { font-size: 15px; font-weight: 500; line-height: 1.8; flex: 1 1 320px; min-width: 0; }

/* --- 10. 宇宙の仕事図鑑（系統別インデックス）SPEC 5.1e --- */
.aw-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; }
.aw-jobgroup { display: flex; flex-direction: column; }
.aw-jobgroup__head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid #141b26; }
.aw-jobgroup__chip { width: 9px; height: 9px; display: block; }
.aw-jobgroup__label { font-weight: 900; font-size: 15px; letter-spacing: 0.04em; }
.aw-jobgroup__count { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: #a9b2bd; }
.aw-jobgroup__empty { margin: 0; padding: 18px 6px; font-size: 13px; color: #7b8494; }

.aw-jobrow { cursor: pointer; display: flex; gap: 18px; padding: 18px 6px; border-bottom: 1px solid #edf1f6; }
.aw-jobrow:hover { background: #f6f9fc; color: inherit; }
.aw-jobrow__no { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a9b2bd; flex: 0 0 auto; padding-top: 3px; }
.aw-jobrow__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1 1 auto; }
.aw-jobrow__heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.aw-jobrow__name { font-weight: 900; font-size: 16.5px; line-height: 1.5; }
.aw-jobrow__en { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: #a9b2bd; }
.aw-jobrow__desc { font-size: 13px; line-height: 1.85; color: #5c6675; text-wrap: pretty; }
.aw-jobrow__exp { font-size: 11.5px; color: #3c4552; border: 1px solid #dbe3ec; padding: 4px 10px; align-self: flex-start; }

/* --- 11. キャリア相談CTA（SPEC 5.1g） --- */
.aw-consultcta { background: #f6f9fc; border-top: 1px solid #e5eaf0; }
.aw-consultcta__inner {
  max-width: 1200px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px); box-sizing: border-box;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.aw-consultcta__avatar {
  width: 74px; height: 74px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  border: 2px solid #dbe6f5; background: radial-gradient(circle at 50% 30%, #eaf2fc, #d5e4f7); position: relative;
}
.aw-consultcta__avatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.aw-consultcta__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.aw-consultcta__title { margin: 0; font-weight: 900; font-size: clamp(19px, 2.6vw, 24px); letter-spacing: 0.03em; }
.aw-consultcta__body { margin: 0; font-size: 14.5px; line-height: 2; color: #5c6675; max-width: 56ch; text-wrap: pretty; }
.aw-consultcta__btn { font-size: 13.5px; font-weight: 700; color: #fff; background: #2563c9; padding: 15px 32px; border-radius: 8px; white-space: nowrap; }
.aw-consultcta__btn:hover { background: #1d4fa5; color: #fff; }

/* --- 12. 姉妹サイトバナー（全ページ末尾・唯一の暗色面の一つ） --- */
.aw-sisterbanner { background: #0a0e1c; color: #ece9df; position: relative; overflow: hidden; border-top: 1px solid #e5eaf0; }
.aw-sisterbanner__stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.3px 1.3px at 10% 25%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 65%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 20%, #f4ecd8 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 72%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 80% 35%, #dfe4f2 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 78%, #f4ecd8 50%, transparent 51%);
}
.aw-sisterbanner__inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 52px clamp(20px, 4vw, 48px); box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.aw-sisterbanner__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.aw-sisterbanner__logo { width: 44px; height: 44px; }
.aw-sisterbanner__copy { display: flex; flex-direction: column; gap: 8px; }
.aw-sisterbanner__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em; color: #e3c27f; }
.aw-sisterbanner__headline { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; letter-spacing: 0.06em; }
.aw-sisterbanner__desc { font-size: 13px; line-height: 1.9; color: #9298ad; max-width: 56ch; }
.aw-sisterbanner__btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: #0a0e1c;
  background: #e3c27f; padding: 14px 30px; white-space: nowrap;
}
.aw-sisterbanner__btn:hover { background: #f0d59a; color: #0a0e1c; }

/* --- 13. フッター（SPEC 4.2） --- */
.aw-footer { background: #fff; }
.aw-footer__top {
  max-width: 1200px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 36px; box-sizing: border-box;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.aw-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.aw-footer__brandhead { display: flex; align-items: center; gap: 10px; }
.aw-footer__logo { width: 30px; height: 30px; filter: invert(1) brightness(0.2); }
.aw-footer__name { font-weight: 900; font-size: 16px; letter-spacing: 0.14em; }
.aw-footer__desc { font-size: 13.5px; line-height: 2; color: #5c6675; }
.aw-footer__cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.aw-footer__col { display: flex; flex-direction: column; gap: 12px; }
.aw-footer__collabel { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: #7b8494; }
.aw-footer__collink { font-size: 12.5px; color: #3c4552; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.aw-footer__collink:hover { color: #2563c9; }
.aw-footer__collinkicon { width: 15px; height: 15px; filter: invert(1) brightness(0.2); }
.aw-footer__bottom { border-top: 1px solid #edf1f6; }
.aw-footer__bottominner {
  max-width: 1200px; margin: 0 auto; padding: 16px clamp(20px, 4vw, 48px); box-sizing: border-box;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.aw-footer__copy,
.aw-footer__tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: #7b8494; }

/* --- 14. アーカイブ / 一覧系ヘッダー（SPEC 5.2） --- */
.aw-archive { max-width: 1200px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box; }
.aw-breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7b8494; display: flex; gap: 8px; flex-wrap: wrap; }
.aw-breadcrumb a:hover { color: #2563c9; }
.aw-breadcrumb__current { color: #3c4552; }
.aw-archive__title { margin: 14px 0 0; font-weight: 900; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.03em; }
.aw-archive__lead { margin: 12px 0 0; font-size: 15px; line-height: 2; color: #5c6675; max-width: 64ch; }
.aw-archive__links { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 26px; }
.aw-archive__link { font-size: 13px; font-weight: 500; color: #2563c9; white-space: nowrap; }
.aw-archive__link:hover { color: #1d4fa5; }

.aw-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 26px; }
.aw-chip {
  cursor: pointer; font-size: 12.5px; font-weight: 500; padding: 8px 18px; border-radius: 999px;
  border: 1px solid #e5eaf0; color: #3c4552; background: #fff; white-space: nowrap;
}
.aw-chip.is-active { border-color: #2563c9; color: #fff; background: #2563c9; }

.aw-pager { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aw-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 10px; border: 1px solid #e5eaf0; font-size: 13px; color: #3c4552;
}
.aw-pager .page-numbers.current { background: #2563c9; border-color: #2563c9; color: #fff; }
.aw-pager .page-numbers:hover:not(.current) { border-color: #b9cfec; color: #2563c9; }

/* --- 15. 記事詳細（SPEC 5.3） --- */
.aw-articlewrap {
  max-width: 1200px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box;
  display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-start;
}
.aw-article { flex: 1 1 420px; min-width: 0; max-width: 820px; --aw-accent: #2563c9; }
.aw-article__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.aw-tagpill {
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--aw-accent, #2563c9);
  border: 1px solid #b9cfec; border-radius: 999px; padding: 6px 14px; background: #f2f7fd; white-space: nowrap;
}
.aw-tagpill:hover { background: var(--aw-accent, #2563c9); color: #fff; }
.aw-tagpill__mark { font-weight: 700; }
.aw-article__date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7b8494; white-space: nowrap; }
/* text-wrap:balance だと長い日本語タイトルが不自然な位置で折り返すため pretty を使う */
.aw-article__title { margin: 18px 0 0; font-weight: 900; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.7; letter-spacing: 0.02em; text-wrap: pretty; }
.aw-article__rule { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.aw-article__rulebar { width: 44px; height: 3px; background: var(--aw-accent, #2563c9); display: block; }
.aw-article__ruleline { flex: 1 1 auto; height: 1px; background: #e5eaf0; }
.aw-article__thumb { margin: 26px 0 0; border-radius: 12px; overflow: hidden; }
.aw-article__thumb img { width: 100%; height: auto; }

.aw-article__body { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; font-size: 16px; line-height: 1.95; color: #3c4552; }
.aw-article__body p { text-wrap: pretty; }
.aw-article__body h2 { margin: 30px 0 20px; font-weight: 900; font-size: 22px; line-height: 1.55; background: #f2f7fd; border-left: 5px solid var(--aw-accent, #2563c9); padding: 14px 20px; }
.aw-article__body h3 { margin: 30px 0 14px; font-weight: 700; font-size: 18px; line-height: 1.6; padding: 0 0 8px 14px; border-left: 4px solid var(--aw-accent, #2563c9); border-bottom: 1px solid #e5eaf0; color: #1f2b3a; }
.aw-article__body ul,
.aw-article__body ol { padding-left: 1.4em; list-style: revert; }
.aw-article__body img { border-radius: 8px; }
.aw-article__body a { color: var(--aw-accent, #2563c9); text-decoration: underline; }

/* コンテンツ内で任意に使える企業メタ情報テーブル（SPEC 5.3）。本文に .aw-metatable のHTMLを書けば同じ見た目になる */
.aw-metatable { border: 1px solid #e5eaf0; border-radius: 12px; overflow: hidden; }
.aw-metatable__row { display: grid; grid-template-columns: var(--meta-cols, 120px minmax(0, 1fr)); border-bottom: 1px solid #edf1f6; }
.aw-metatable__row:last-child { border-bottom: 0; }
.aw-metatable__k { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #7b8494; padding: 12px 16px; background: #f6f9fc; }
.aw-metatable__v { font-size: 14px; line-height: 1.85; padding: 11px 16px; }

/* スキル翻訳表（SPEC 5.3 careerDetail）。本文に .aw-skilltable のHTMLを書くと同じ見た目になる（620px以下は --skill-cols で1列に） */
.aw-skilltable { border: 1px solid #d7dfe8; overflow: hidden; margin: 20px 0; }
.aw-skilltable__head { display: grid; grid-template-columns: var(--skill-cols, 1fr 44px 1fr); background: var(--aw-accent, #2563c9); }
.aw-skilltable__head span { font-size: 12.5px; font-weight: 700; color: #fff; padding: 13px 18px; }
.aw-skilltable__row { display: grid; grid-template-columns: var(--skill-cols, 1fr 44px 1fr); border-top: 1px solid #e5eaf0; align-items: center; background: #fff; }
.aw-skilltable__row:nth-child(even) { background: #f7fafd; }
.aw-skilltable__from { font-size: 14.5px; line-height: 1.6; padding: 15px 18px; color: #3c4552; }
.aw-skilltable__arrow { color: var(--aw-accent, #2563c9); font-size: 16px; text-align: center; }
.aw-skilltable__to { font-size: 14.5px; line-height: 1.6; font-weight: 700; padding: 15px 18px; color: #141b26; }

.aw-related { margin-top: 40px; }
.aw-related__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; }
.aw-related__title { margin: 0; font-weight: 900; font-size: 19px; white-space: nowrap; }
.aw-related__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: #7b8494; }
.aw-related__row {
  cursor: pointer; display: grid; grid-template-columns: var(--awrel-cols, 100px minmax(0, 1fr) 22px); gap: 14px;
  align-items: center; min-height: 52px; padding: 8px 6px; box-sizing: border-box; border-bottom: 1px solid #edf1f6;
}
.aw-related__row:hover { background: #f6f9fc; color: inherit; }
.aw-related__date { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7b8494; }
.aw-related__title2 { font-weight: 500; font-size: 14.5px; line-height: 1.75; }
.aw-related__arrow { color: #7b8494; text-align: right; }
.aw-related__empty { padding: 12px 6px; color: #7b8494; font-size: 13px; }

.aw-article__footcta { margin-top: 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 2px solid #141b26; padding-top: 26px; }
.aw-article__footavatar { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #eaf2fc, #d5e4f7); position: relative; }
.aw-article__footavatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.aw-article__foottext { flex: 1 1 300px; display: flex; flex-direction: column; gap: 5px; }
.aw-article__foottitle { font-weight: 900; font-size: 17px; }
.aw-article__footdesc { font-size: 14px; color: #5c6675; line-height: 1.9; }
.aw-article__footlink { font-size: 13.5px; font-weight: 700; color: #2563c9; border-bottom: 2px solid #2563c9; padding-bottom: 3px; white-space: nowrap; }
.aw-article__footlink:hover { color: #1d4fa5; border-color: #1d4fa5; }

/* --- 16. サイドバー（NEW / POPULAR）SPEC 5.3 --- */
.aw-sidebar { flex: 0 1 300px; min-width: min(260px, 100%); display: flex; flex-direction: column; gap: 36px; }
.aw-sidebar__head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid #141b26; margin-bottom: 4px; }
.aw-sidebar__title { margin: 0; font-weight: 900; font-size: 16px; letter-spacing: 0.04em; }
.aw-sidebar__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.16em; color: #7b8494; }
.aw-sidebar__empty { margin: 0; padding: 14px 0; font-size: 12.5px; color: #7b8494; }

.aw-sidebar__pop { cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid #edf1f6; }
.aw-sidebar__popthumb { position: relative; width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; background-size: cover; background-position: center; background-color: #1e3a6e; }
.aw-sidebar__rank {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700;
  color: #fff; background: rgba(15, 25, 45, 0.65); backdrop-filter: blur(4px);
}
.aw-sidebar__popbody { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.aw-sidebar__poptag { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; color: #2563c9; }
.aw-sidebar__poptitle { font-size: 13.5px; font-weight: 500; line-height: 1.65; color: #1f2b3a; }

.aw-sidebar__new { cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-bottom: 1px solid #edf1f6; }
.aw-sidebar__newmeta { display: flex; align-items: center; gap: 8px; }
.aw-sidebar__newdate { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #7b8494; }
.aw-sidebar__newtag { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; color: #2563c9; }
.aw-sidebar__newtitle { font-size: 13.5px; font-weight: 500; line-height: 1.65; color: #1f2b3a; }

.aw-sidebar__cta { border: 1px solid #e5eaf0; border-radius: 12px; padding: 22px 20px; background: #f6f9fc; display: flex; flex-direction: column; gap: 10px; }
.aw-sidebar__ctatitle { font-weight: 900; font-size: 14.5px; }
.aw-sidebar__ctabody { margin: 0; font-size: 12.5px; line-height: 1.85; color: #5c6675; }
.aw-sidebar__ctabtn { text-align: center; font-size: 12.5px; font-weight: 700; color: #fff; background: #2563c9; padding: 11px 0; border-radius: 8px; }
.aw-sidebar__ctabtn:hover { background: #1d4fa5; color: #fff; }

/* --- 17. 転職ガイド `/guide/`（SPEC 5.2） --- */
.aw-steps { margin: 30px 0 44px; border-top: 1px solid #e5eaf0; }
.aw-step { display: flex; gap: 18px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid #edf1f6; }
.aw-step__no { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7b8494; flex: 0 0 auto; }
.aw-step__title { font-size: 14.5px; font-weight: 700; flex: 0 0 auto; white-space: nowrap; }
.aw-step__desc { font-size: 14px; color: #5c6675; line-height: 1.9; }

/* --- 18. 無料キャリア相談 `/consult/`（SPEC 5.4） --- */
.aw-consultpage { max-width: 1200px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box; display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.aw-consultpage__left { flex: 1 1 400px; min-width: 300px; }
.aw-consultpage__flow { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.aw-flowitem { display: flex; gap: 14px; align-items: baseline; }
.aw-flowitem__no { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #2563c9; flex: 0 0 auto; }
.aw-flowitem__text { font-size: 14.5px; line-height: 1.9; color: #3c4552; }
.aw-consultpage__note { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e5eaf0; display: flex; gap: 16px; align-items: center; max-width: 440px; }
.aw-consultpage__noteavatar { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #eaf2fc, #d5e4f7); position: relative; }
.aw-consultpage__noteavatar img { position: absolute; width: 112%; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
.aw-consultpage__notetext { font-size: 14px; line-height: 1.9; color: #3c4552; }

.aw-consultpage__form {
  flex: 1 1 380px; min-width: 300px; border: 1px solid #e5eaf0; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 28px rgba(24, 32, 43, 0.07); padding: 30px 30px 34px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
}
.aw-consultpage__formtitle { font-weight: 900; font-size: 17px; }
.aw-formfield { display: flex; flex-direction: column; gap: 6px; }
.aw-formfield__label { font-size: 12px; font-weight: 500; color: #3c4552; }
.aw-forminput,
.aw-formtextarea,
.aw-formselect {
  font-family: inherit; font-size: 14px; padding: 12px 14px; border: 1px solid #dbe2ea; border-radius: 8px;
  outline: none; background: #fbfcfe; width: 100%; box-sizing: border-box; color: #18202b;
}
.aw-forminput:focus-visible,
.aw-formtextarea:focus-visible,
.aw-formselect:focus-visible { border-color: #2563c9; }
.aw-formtextarea { resize: vertical; }
.aw-formsubmit { cursor: pointer; text-align: center; font-size: 14px; font-weight: 700; color: #fff; background: #2563c9; padding: 15px 0; border-radius: 8px; border: 0; width: 100%; }
.aw-formsubmit:hover { background: #1d4fa5; }
.aw-formnote { margin: 0; font-size: 11px; color: #7b8494; line-height: 1.8; }

/* --- 19. 運営者情報 `/about/`（SPEC 5.5） --- */
.aw-about { max-width: 860px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box; }
.aw-about__lead { margin: 16px 0 0; font-size: 15px; line-height: 2.05; color: #5c6675; max-width: 60ch; text-wrap: pretty; }
.aw-abouttable { margin-top: 30px; border: 1px solid #e5eaf0; border-radius: 12px; overflow: hidden; }
.aw-abouttable__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-bottom: 1px solid #edf1f6; }
.aw-abouttable__row:last-child { border-bottom: 0; }
.aw-abouttable__k { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #7b8494; padding: 14px 18px; background: #f6f9fc; }
.aw-abouttable__v { font-size: 14px; line-height: 1.9; padding: 13px 18px; }
.aw-about__section { margin: 52px 0 20px; font-weight: 900; font-size: 22px; line-height: 1.55; background: #f2f7fd; border-left: 5px solid #2563c9; padding: 14px 20px; }
.aw-about__body { font-size: 16px; line-height: 1.95; color: #3c4552; text-wrap: pretty; }
.aw-about__foot { margin-top: 26px; border-top: 1px solid #e5eaf0; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.aw-about__footlink { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #2563c9; border-bottom: 2px solid #2563c9; padding-bottom: 3px; white-space: nowrap; }
.aw-about__footlink:hover { color: #1d4fa5; border-color: #1d4fa5; }
.aw-about__footlinkicon { width: 16px; height: 16px; filter: invert(1) brightness(0.2); }

/* --- 20. 汎用固定ページ / 検索結果 --- */
.aw-page { max-width: 860px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box; }
.aw-page__title { margin: 14px 0 0; font-weight: 900; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.03em; }
.aw-page__content { margin-top: 20px; font-size: 16px; line-height: 1.95; color: #3c4552; }
.aw-page__content p { text-wrap: pretty; margin: 0 0 18px; }

.aw-search__meta { margin: 12px 0 26px; font-size: 14px; color: #5c6675; }
.aw-search__query { color: #141b26; font-weight: 700; }

/* --- 21. アクセシビリティ：フォーカスリング補強（共通の focus-visible は common.css） --- */
.aw a:focus-visible,
.aw button:focus-visible { outline: 2px solid #2563c9; outline-offset: 2px; }

/* --- SWELL目次（.p-toc）のカスタマイズ。ASTROWORKS_SPEC.mdに指定が無いため3章のデザイントークンに合わせる。詳細度は .aw を前置して確保 --- */
.aw .p-toc {
  margin: 0 0 34px; padding: 22px 26px 18px;
  background: #f6f9fc; border: 1px solid #e5eaf0; border-radius: 0;
}
.aw .p-toc__ttl {
  display: flex; align-items: center; gap: 12px; padding-bottom: 10px;
  font-weight: 900; font-size: 16px; letter-spacing: 0.06em; color: #141b26; text-align: left;
}
.aw .p-toc__ttl::before { content: none; }
.aw .p-toc__ttl::after {
  content: "CONTENTS"; font-family: 'IBM Plex Mono', monospace; font-weight: 400;
  font-size: 10px; letter-spacing: 0.2em; color: #7b8494;
}

/* 目次は本文内に挿入されるため本文用のol/ulスタイルや .is-style-index の丸ポチと二重になる。目次内だけ打ち消す */
.aw .p-toc ol { display: block; list-style: none; padding-left: 0; }
.aw .p-toc li { list-style: none; padding-left: 0; margin-left: 0; position: static; }
.aw .p-toc li::before { content: none; }

.aw .p-toc__list { counter-reset: aw-toc; padding: 0; margin: 0; list-style: none; }
.aw .p-toc__list > li { counter-increment: aw-toc; list-style: none; margin: 0; }
.aw .p-toc__list > li > .p-toc__link {
  display: flex; align-items: baseline; gap: 14px;
  border-top: 1px solid #e5eaf0; padding: 13px 2px;
  font-size: 15px; line-height: 1.7; font-weight: 700; color: #18202b; text-decoration: none;
}
.aw .p-toc__list > li > .p-toc__link::before {
  content: counter(aw-toc, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 12px;
  letter-spacing: 0.08em; color: #2563c9; flex: 0 0 auto;
  /* 2桁（02〜）が折り返さない幅を確保する */
  min-width: 24px; white-space: nowrap;
}
.aw .p-toc__link:hover { color: #2563c9; }

.aw .p-toc__childList { counter-reset: aw-toc-sub; padding: 0 0 6px 36px; margin: 0; list-style: none; }
.aw .p-toc__childList > li { counter-increment: aw-toc-sub; list-style: none; margin: 0; }
.aw .p-toc__childList > li > .p-toc__link {
  display: flex; align-items: baseline; gap: 12px; padding: 6px 2px;
  font-size: 13.5px; line-height: 1.7; font-weight: 500; color: #5c6675; text-decoration: none;
}
.aw .p-toc__childList > li > .p-toc__link::before {
  content: counter(aw-toc) "." counter(aw-toc-sub);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  color: #7b8494; flex: 0 0 auto;
}

/* SWELLはカスタマイザーの見出し設定を<head>のインラインCSSで子テーマCSSより後に出力するため、#body_wrap の .aw を前置して詳細度で上書き */
.aw .aw-article__body h2 {
  color: #141b26; background: #f2f7fd; border: 0; border-left: 5px solid var(--aw-accent, #2563c9);
  border-radius: 0; padding: 14px 20px; margin: 30px 0 20px; font-weight: 900; font-size: 22px; line-height: 1.55;
}
.aw .aw-article__body h3 {
  color: #1f2b3a; background: none; border: 0; border-left: 4px solid var(--aw-accent, #2563c9);
  border-bottom: 1px solid #e5eaf0; border-radius: 0; padding: 0 0 8px 14px; margin: 30px 0 14px;
  font-weight: 700; font-size: 18px; line-height: 1.6;
}
.aw .aw-article__body h4 { color: #18202b; background: none; border: 0; padding: 0; }
/* SWELLの見出し装飾（擬似要素の飾り）を消す */
.aw .aw-article__body h2::before, .aw .aw-article__body h2::after,
.aw .aw-article__body h3::before, .aw .aw-article__body h3::after,
.aw .aw-article__body h4::before, .aw .aw-article__body h4::after { content: none; }

/* --- SPヒーローの視認性（≤840px）：焦点を人物側(70%)に寄せ、下半分に白スクリムで文字面を作る --- */
@media (max-width: 840px) {
  .aw-hero {
    background-position: 70% center;
  }
  .aw-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(238, 244, 251, 0) 0%,
      rgba(238, 244, 251, 0.06) 28%,
      rgba(238, 244, 251, 0.72) 42%,
      rgba(238, 244, 251, 0.94) 54%,
      rgba(238, 244, 251, 1) 70%
    );
  }
  .aw-hero__inner {
    z-index: 1;
    justify-content: flex-end;
    padding-bottom: 26px;
  }
  /* スクリム上でも十分なコントラストを確保する */
  .aw-hero__lead { color: #3c4552; }
}

/* SP（≤620px：デザインのモバイル段）ではFVのCTAを全幅にして押しやすくする */
@media (max-width: 620px) {
  .aw-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .aw-hero__cta .aw-btn {
    width: 100%;
  }
}

/* --- 22. お問い合わせ `/contact/`（「無料キャリア相談」停止に伴い新設。CF7 + 共通モジュール） --- */
.aw-contact { max-width: 720px; margin: 0 auto; padding: 44px clamp(20px, 4vw, 48px) 64px; box-sizing: border-box; }

.aw-contactform {
  margin-top: 30px; border: 1px solid #e5eaf0; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 28px rgba(24, 32, 43, 0.07); padding: 30px clamp(20px, 4vw, 34px) 34px; box-sizing: border-box;
}

/* SWELL本体/カスタマイザーのインライン出力は子テーマCSSより後に来て同詳細度だと負けるため、body.aw-body を前置して詳細度を上げる */
.aw-contactform .wpcf7-form p { margin: 0 0 20px; }
.aw-contactform .wpcf7-form p:last-child { margin-bottom: 0; }

.aw-contactform label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #18202b; }

.aw-contactform .aw-req {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #2563c9;
  border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: 2px;
}
.aw-contactform .aw-any {
  display: inline-block; font-size: 11px; font-weight: 700; color: #7b8494; background: #f6f9fc;
  border: 1px solid #e5eaf0; border-radius: 999px; padding: 1px 9px; margin-left: 8px; vertical-align: 2px;
}

body.aw-body .aw-contactform input[type="text"],
body.aw-body .aw-contactform input[type="email"],
body.aw-body .aw-contactform input[type="tel"],
body.aw-body .aw-contactform textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: #18202b; background: #fbfcfe;
  border: 1px solid #dbe2ea; border-radius: 8px; padding: 12px 14px; box-sizing: border-box;
  outline: none; line-height: 1.6; transition: border-color .15s;
}
.aw-contactform textarea { min-height: 150px; resize: vertical; }
body.aw-body .aw-contactform input::placeholder,
body.aw-body .aw-contactform textarea::placeholder { color: #a9b2bd; opacity: 1; }
body.aw-body .aw-contactform input:focus-visible,
body.aw-body .aw-contactform textarea:focus-visible { border-color: #2563c9; }

/* 個人情報の取扱い同意チェック（[privacy_consent] の下、acceptance を包む） */
.aw-contactform .aw-consent {
  background: #f6f9fc; border: 1px solid #e5eaf0; border-radius: 12px; padding: 16px 18px;
  font-size: 13.5px; line-height: 1.8; color: #3c4552; margin: 8px 0 24px;
}
.aw-contactform .aw-consent p,
.aw-contactform .aw-submit p { margin: 0; }
.aw-contactform .aw-consent label { display: inline; font-weight: 500; margin: 0; color: #3c4552; }
.aw-contactform .aw-consent .wpcf7-list-item { margin: 0; }
body.aw-body .aw-contactform .aw-consent input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #2563c9; margin-right: 8px; vertical-align: -3px;
}

/* 送信ボタン */
.aw-contactform .aw-submit { text-align: center; margin-top: 4px; }
body.aw-body .aw-contactform .aw-submit .wpcf7-submit,
body.aw-body .aw-contactform input.wpcf7-submit {
  cursor: pointer; text-align: center; font-family: inherit; font-size: 14px; font-weight: 700;
  color: #fff; background: #2563c9; padding: 15px 0; border-radius: 8px; border: 0; width: 100%;
  transition: background .15s;
}
body.aw-body .aw-contactform input.wpcf7-submit:hover { background: #1d4fa5; }
body.aw-body .aw-contactform input.wpcf7-submit:disabled,
body.aw-body .aw-contactform input.wpcf7-submit.is-disabled {
  background: #e5eaf0; color: #7b8494; cursor: not-allowed;
}
.aw-contactform .wpcf7-spinner { margin: 0 0 0 10px; }

/* CF7 バリデーション／完了メッセージ */
.aw-contactform .wpcf7-not-valid-tip { display: block; color: #c0392b; font-size: 12px; font-weight: 700; margin-top: 6px; }
.aw-contactform .wpcf7-not-valid { border-color: #c0392b !important; }
.aw-contactform .wpcf7-response-output {
  border-radius: 8px; border-width: 1px; padding: 12px 16px; font-size: 13px; font-weight: 700; margin: 16px 0 0;
}
.aw-contactform form.sent .wpcf7-response-output { border-color: #2563c9; background: #f2f7fd; color: #1d4fa5; }
.aw-contactform form.invalid .wpcf7-response-output,
.aw-contactform form.failed .wpcf7-response-output { border-color: #c0392b; background: #fdf1f0; color: #c0392b; }

@media (max-width: 600px) {
  .aw-contactform { padding: 24px 18px 28px; }
}

/* --- 親SWELLの .post_content 由来の余白・幅を打ち消す（インライン出力が後に来るため #body_wrap で詳細度を上げる） --- */
#body_wrap.aw .l-mainContent__inner { padding-top: 30px; }
#body_wrap.aw .aw-article__body { padding-inline: 0; }
#body_wrap.aw .aw-article__body p { margin: 0; }
#body_wrap.aw .p-toc { margin-inline: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
