/* 確約キャリア マガジン（/media/・/about/）。
   型は伸びている就活・転職メディア（インターンシップガイド、就活の教科書、doda 転職ガイド）に合わせる（2026-11-11）：
   薄い地色の上に白い面、PC（1024px〜）は本文＋右サイドバー320pxの2列、記事は塗りの見出し・目次・要点の箱・関連記事。
   色は LP と同じ：ロゴの黒 #262626、オレンジ #ff7a00、文字のオレンジ #b84a00、LINE の緑 #049a43。地は白系で固定（LP と同じ方針）。 */
:root {
  --ink: #262626; --sub: #5c5853; --line: #e8e2d9; --soft: #faf7f3; --paper: #fff8f0; --bg: #f4f1ec;
  --brand: #ff7a00; --brand-deep: #e65f00; --accent-ink: #b84a00; --accent-soft: #fff3e6;
  --line-green: #049a43; --radius: 12px; --shadow: 0 1px 2px rgba(38, 38, 38, .06), 0 4px 16px rgba(38, 38, 38, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.9;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Yu Gothic Medium", sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }
.site-inner { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー：ロゴ＋登録ボタン、その下にカテゴリのタブ */
header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site > .site-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
  header.site .brand-sub { display: none; }
  .head-cta span { display: none; }
  .head-cta { padding: 0 12px; }
}
.head-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--line-green); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.head-cta span { font-weight: 400; }
.gnav { border-top: 1px solid var(--line); }
.gnav .site-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; border-bottom: 3px solid transparent; }
.gnav a:hover, .gnav a[aria-current] { border-bottom-color: var(--brand); }

/* 2列のレイアウト（スマホは1列） */
.layout { max-width: 1160px; margin: 0 auto; padding: 0 12px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.crumbs { font-size: 12px; color: var(--sub); padding: 12px 4px 0; display: flex; flex-wrap: wrap; gap: 0 6px; line-height: 1.6; }
.crumbs a { color: var(--sub); }
.crumbs .sep { color: #b9b2a8; }
main { min-width: 0; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 0 16px 56px; }
  .crumbs { grid-column: 1 / -1; }
  body { padding-bottom: 0; }
}

/* 記事の面 */
.post, .related, .hero, .cat-sec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.post { padding: 20px 16px 28px; }
@media (min-width: 768px) { .post { padding: 32px 40px 40px; } }
.post-cat { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 4px; padding: 2px 10px; text-decoration: none; margin-bottom: 12px; }
.post h1 { font-size: 24px; line-height: 1.5; margin: 16px 0 12px; word-break: auto-phrase; text-wrap: balance; }
@media (min-width: 768px) { .post h1 { font-size: 30px; } }
.post-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--sub); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.post-meta p { margin: 0; }
.dates { display: flex; flex-wrap: wrap; gap: 0 12px; }
.byline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.byline a { color: var(--sub); font-weight: 700; }
.byline-note { white-space: normal; }
@media (max-width: 600px) { .byline-note { display: none; } }

/* アイキャッチ（画像を使わない） */
.thumb { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #ff8a00, #ff6400); }
.thumb::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.thumb-glossary { background: linear-gradient(135deg, #3a3a3a, #262626); }
.thumb-cat { position: relative; z-index: 1; align-self: flex-start; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 1px 10px; }
.thumb-title { position: relative; z-index: 1; font-weight: 800; line-height: 1.35; word-break: auto-phrase; text-wrap: balance; }
.thumb-mark { position: absolute; z-index: 1; right: 14px; bottom: 12px; width: 40px; height: auto; background: #fff; border-radius: 10px; padding: 6px; }
.thumb-l { aspect-ratio: 1200 / 630; border-radius: 10px; padding: 24px 28px; }
.thumb-l .thumb-title { font-size: clamp(24px, 5.4vw, 40px); }
.thumb-s { aspect-ratio: 16 / 9; padding: 14px 16px; }
.thumb-s .thumb-title { font-size: 18px; }
.thumb-s .thumb-mark { width: 30px; right: 10px; bottom: 8px; padding: 4px; border-radius: 8px; }
.thumb-xs { flex: none; width: 88px; aspect-ratio: 16 / 10; border-radius: 6px; padding: 6px 8px; }
.thumb-xs .thumb-cat, .thumb-xs .thumb-mark { display: none; }
.thumb-xs .thumb-title { font-size: 11px; }
.thumb-xs::after { width: 80px; height: 80px; right: -20px; bottom: -30px; }

/* 共有ボタン */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.share-x { background: #000; color: #fff; }
.share-line { background: var(--line-green); color: #fff; }
.share-copy { background: var(--soft); color: var(--ink); border: 1px solid var(--line) !important; }

/* 本文 */
.post-body { overflow-wrap: anywhere; }
.post-body h2 { font-size: 20px; line-height: 1.5; margin: 48px 0 16px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; border-left: 6px solid var(--brand); word-break: auto-phrase; }
@media (min-width: 768px) { .post-body h2 { font-size: 22px; } }
.post-body h3 { font-size: 18px; line-height: 1.5; margin: 32px 0 12px; padding: 4px 0 6px 12px; border-left: 4px solid var(--brand); border-bottom: 1px solid var(--line); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin: 4px 0; }
.post-body strong { background: linear-gradient(transparent 62%, #ffd9b0 62%); }

/* 「この記事でわかること」（記事の最初の引用） */
blockquote.point { position: relative; margin: 24px 0; padding: 36px 18px 14px; background: var(--paper); border: 2px solid var(--brand); border-radius: var(--radius); }
blockquote.point::before { content: "この記事でわかること"; position: absolute; top: -1px; left: -1px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 10px 0 10px 0; }
blockquote.point-def::before { content: "ひとことで言うと"; }
blockquote.point p:first-child strong { background: none; }
blockquote.point ul { margin: 0; }
.post-body blockquote:not(.point) { margin: 20px 0; padding: 12px 16px; background: var(--soft); border-left: 4px solid #cfc6b9; border-radius: 0 8px 8px 0; }

/* 目次 */
.toc { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.toc summary { cursor: pointer; padding: 12px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "閉じる"; font-size: 12px; font-weight: 400; color: var(--sub); }
.toc:not([open]) summary::after { content: "開く"; }
.toc ol { margin: 0; padding: 0 18px 14px 2.2em; }
.toc li { margin: 6px 0; line-height: 1.6; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 1.65; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--accent-soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

sup.cite { font-size: 11px; line-height: 0; margin-left: 1px; }
sup.cite a { text-decoration: none; }
ol.sources { font-size: 13px; color: var(--sub); line-height: 1.7; }
ol.sources li:target { background: var(--accent-soft); }

/* 記事内のCTA */
.cta-inline { margin: 20px 0; }
.cta-inline a { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid #f6d3ad; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--accent-ink); line-height: 1.6; }
.cta-inline-tag { flex: none; background: var(--brand); color: #fff; font-size: 12px; border-radius: 999px; padding: 0 8px; }
.cta-card { margin: 32px 0; padding: 20px; border: 2px solid var(--brand); border-radius: var(--radius); background: #fff; }
.cta-card .cta-title { font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.cta-card p { margin: 0 0 12px; }
.cta-card ul { margin: 0 0 12px; }
.cta-note { font-size: 12px; color: var(--sub); line-height: 1.6; margin: 8px 0 0 !important; }
.line-btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px;
  background: var(--line-green); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; border-radius: 999px; text-decoration: none;
  box-shadow: 0 3px 0 #03772f;
}
.line-btn:hover { filter: brightness(1.05); }

/* 書き手 */
.author-box { display: flex; gap: 14px; align-items: flex-start; margin: 40px 0 8px; padding: 18px; background: var(--soft); border-radius: var(--radius); font-size: 14px; line-height: 1.75; }
.author-box img { flex: none; background: #fff; border-radius: 50%; padding: 8px; width: 56px; height: 56px; object-fit: contain; }
.author-box p { margin: 0; }
.author-name { font-weight: 700; margin-bottom: 4px !important; }

/* 関連記事・カード */
.related { margin-top: 20px; padding: 20px 16px; }
@media (min-width: 768px) { .related { padding: 24px 28px; } }
.related-title, .sec-title { font-size: 19px; margin: 0 0 14px; padding-left: 12px; border-left: 5px solid var(--brand); line-height: 1.4; }
.sec-title small { display: block; font-size: 13px; font-weight: 400; color: var(--sub); margin-top: 2px; }
ul.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 600px) { ul.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.55; }
.card-date { font-size: 12px; color: var(--sub); margin-top: auto; }

/* 一覧（/media/） */
.hero { padding: 24px 16px; background: linear-gradient(135deg, #fff8f0, #fff); border: 1px solid #f6d3ad; }
@media (min-width: 768px) { .hero { padding: 36px 40px; } }
.hero-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.hero h1 { margin: 4px 0 8px; font-size: 28px; line-height: 1.4; }
@media (min-width: 768px) { .hero h1 { font-size: 34px; } }
.hero-lead p { margin: 0 0 12px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cat-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.cat-sec { margin-top: 20px; padding: 20px 16px; scroll-margin-top: 12px; }
@media (min-width: 768px) { .cat-sec { padding: 24px 28px; } }

/* サイドバー */
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: 14px; line-height: 1.7; }
.side-box p { margin: 0 0 10px; }
.side-title { font-weight: 800; font-size: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 12px !important; }
.side-app { border: 2px solid var(--brand); }
.side-app-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.side-app-points { margin: 0 0 14px; padding-left: 1.2em; }
.side-app-points li { margin: 4px 0; }
.side-more { font-weight: 700; font-size: 14px; }
.side-cats, .side-list { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.side-cats a span { font-size: 12px; font-weight: 400; color: var(--sub); background: var(--soft); border-radius: 999px; padding: 0 8px; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.55; font-weight: 700; }
.side-list a:hover span:last-child { color: var(--accent-ink); }
.side-toc ol { margin: 0; padding-left: 1.4em; font-size: 13px; line-height: 1.6; }
.side-toc li { margin: 6px 0; }
.side-toc a { color: var(--ink); text-decoration: none; }
.side-toc a[aria-current] { color: var(--accent-ink); font-weight: 700; }
.side-mini-cta p { font-weight: 700; }
.side-sticky { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .side-sticky { position: sticky; top: 16px; }
}
/* スマホ・タブレットでは、サイドバーのうち目次と追従CTAは出さない（本文の目次と下の固定ボタンがあるため） */
@media (max-width: 1023px) {
  .side-sticky { display: none; }
}

/* スマホの固定ボタン */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .2s; }
.sticky-cta.show { transform: none; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .card { transition: none; } }

/* フッター */
footer.site { background: var(--ink); color: #d8d3cc; font-size: 13px; padding: 32px 0 24px; }
footer.site a { color: #fff; }
footer.site .brand { color: #fff; }
footer.site .brand img { background: #fff; border-radius: 8px; padding: 3px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-title { font-weight: 700; color: #fff; margin: 0 0 6px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.disclaimer { border-top: 1px solid #444; padding-top: 16px; line-height: 1.7; }
.copy { margin: 8px 0 0; color: #a39d95; }
