/* 転職ログ（tensyokulog.com） — GPT モック01（site/mock/gpt_mock_01.html・mock01_memo.txt）を
   解釈を足さずに再現したもの。値はすべて設計メモ（mock01_memo.txt）から取っている。
   2026-09-22: Substack下敷きの旧デザインから全面差し替え。 */

:root {
  /* 色（mock01_memo.txt「配色表」） */
  --page: #f3efe6;    /* ブラウザ全体の地 */
  --paper: #fffdf8;   /* 記事本文、カード、サイドバー */
  --panel: #f8f4ea;   /* 表の見出し、フッター、補足ボックス */
  --panel2: #eef7f5;  /* ヘッダー、引用、トップの導入 */
  --ink: #24312f;     /* 本文、広告表示の帯、見出し */
  --sub: #586865;     /* 日付、説明文 */
  --line: #ddd4c4;    /* カード境界、表、区切り線 */
  --accent: #207a73;  /* リンク、見出し左線、引用左線 */
  --accent-hover: #17554f;
  --tag: #f1e2b8;     /* カテゴリの札 */
  --tag-ink: #4c3d13;
  --shadow: 0 10px 24px rgba(36, 49, 47, .08);
  --radius-card: 14px;
  --radius-eyecatch: 18px;
  --radius-pill: 999px;

  /* 書体（mock01_memo.txt「書体・文字サイズ・行間」。外部Webフォントは使わない） */
  --font-serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* 余白の段（mock01_memo.txt「余白・角丸・影・幅」相当を踏襲） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;
  --sp-9: 64px;

  /* 幅 */
  --wrap: 1120px;
  --main-max: 760px;
  --sidebar-w: 300px;
  --gap: 60px;

  /* 動き */
  --dur: 0.25s;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  /* タップ領域の下限（mobile-interaction-review.md） */
  --tap-min: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--ink); margin: 0 0 var(--sp-4); font-weight: 700; }
h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.42;
  letter-spacing: .01em;
  margin: 0 0 22px;
}
h2 {
  font-size: 23px;
  line-height: 1.55;
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
}
h3 { font-size: 18px; line-height: 1.6; margin: 0 0 12px; }

p { margin: 0 0 18px; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-6); }
li { margin-bottom: var(--sp-2); }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}
.skip:focus { left: var(--sp-3); top: var(--sp-3); }

/* 見た目には出さないが、支援技術には渡す見出し（モックに無い要素だけに使う） */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- サイト全体の幅（ヘッダー・広告帯・本文・フッターで共通） ---- */
.site-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- ヘッダー ---- */
.site-header {
  background: linear-gradient(0deg, var(--panel2), #f8fbfa);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}
.site-name {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}
.site-name:hover { color: var(--ink); text-decoration: none; }
.site-lead {
  margin-top: 8px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.6;
}
.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.nav a:hover, .nav a:focus-visible { background: var(--panel2); }

/* ---- 広告表示の帯（周囲と同じ濃さ・同じ文字サイズ。薄い灰色や小さい文字にしない） ---- */
.adnote {
  border-bottom: 1px solid var(--line);
  background: #fff9e8;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.adnote .site-wrap { padding-top: 10px; padding-bottom: 10px; }

/* ---- 本文とサイドバーの2段組み ---- */
.content { padding: 34px 0 46px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--main-max)) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.col-main { min-width: 0; }

.main-card, .side-block, .article-card, .profile-box, .related-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.main-card { padding: 34px 38px; }

/* ---- パンくず（各リンク44px以上） ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--sub);
  font-size: 14px;
}
.breadcrumb a {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-1);
  color: var(--sub);
}
.breadcrumb [aria-current="page"] { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.breadcrumb .sep { color: var(--sub); }

/* ---- カテゴリ・日付の行、カテゴリの札 ---- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--sub);
}
.meta time { font-variant-numeric: tabular-nums; }
.cat-tag {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--tag);
  color: var(--tag-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.cat-tag:hover, .cat-tag:focus-visible { color: var(--tag-ink); text-decoration: underline; }

/* ---- アイキャッチ（16:9。実画像が無い間は色面プレースホルダ） ---- */
.eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #c8dbd7;
  border-radius: var(--radius-eyecatch);
  background:
    radial-gradient(circle at 24% 26%, rgba(32, 122, 115, .22) 0 13%, transparent 14%),
    radial-gradient(circle at 80% 70%, rgba(241, 226, 184, .75) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--panel2), #fbf1d3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f5e59;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  margin: 0 0 30px;
  object-fit: cover;
}
.eyecatch.small { border-radius: 12px; margin: 0; font-size: 13px; }
img.eyecatch { padding: 0; color: transparent; background: var(--panel); }

/* ---- 本文中の表（320px幅でも横にはみ出さない。<caption>は使わない） ---- */
.scroll { overflow-x: auto; margin: 18px 0 26px; }
.article-body table, .design table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  margin: 0;
}
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 38%; background: var(--panel); font-weight: 700; }

/* ---- 引用（本人の言葉） ---- */
blockquote.quote {
  margin: 22px 0 28px;
  padding: 20px 22px;
  border-left: 6px solid var(--accent);
  background: var(--panel2);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}
blockquote.quote p:last-child { margin-bottom: 0; }

/* ---- この記事について（免責。本文末尾の "## この記事について" を囲む） ---- */
.info-box {
  margin-top: 34px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.info-box h2 { margin-top: 0; }

/* ---- プロフィール（記事本文内・サイドバー共通） ---- */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 35%, var(--tag) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 80%, var(--accent) 0 31%, transparent 32%),
    var(--panel2);
  flex: none;
}
.profile-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  margin-top: 24px;
  background: var(--paper);
}
.profile-name { margin: 0 0 4px; font-weight: 700; }
.profile-box p { margin-bottom: 8px; font-size: 14px; line-height: 1.7; }

.profile-box a, .related-box a, .side-block a, .article-card a {
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}

/* ---- 同じカテゴリの記事（タイトルの一覧のみ） ---- */
.related-box { margin-top: 24px; padding: 20px; }
.related-box h2, .side-block h2 {
  margin: 0 0 12px;
  padding: 0;
  border-left: 0;
  font-size: 18px;
  font-family: inherit;
}
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { padding: 8px 0; color: var(--ink); line-height: 1.6; text-decoration: underline; }

/* ---- サイドバー ---- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-block { padding: 18px; background: var(--paper); }
.side-profile { text-align: left; }
.side-profile .avatar { margin-bottom: 12px; }
.side-profile p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }

.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { border-top: 1px solid var(--line); }
.cat-list li:first-child { border-top: 0; }
.cat-list a { justify-content: space-between; gap: 10px; color: var(--ink); padding: 8px 0; text-decoration: underline; }
.count { color: var(--sub); font-variant-numeric: tabular-nums; }

.new-list { list-style: none; padding: 0; margin: 0; }
.new-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.new-list li:first-child { border-top: 0; }
.new-list a { color: var(--ink); font-size: 14px; line-height: 1.55; text-decoration: underline; }

/* ---- トップの導入 ---- */
.top-lead {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel2);
}
.top-lead h1 { margin-bottom: 8px; }

/* ---- 記事カード（トップ・カテゴリ一覧共通。カードは1本ずつ縦に並ぶ＝横並びにしない） ---- */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.article-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
}
.article-card h2 {
  margin: 0 0 8px;
  padding: 0;
  border-left: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.55;
}
.article-card p { color: var(--sub); font-size: 14px; line-height: 1.75; margin-bottom: 0; }
.card-title-link { color: var(--ink); text-decoration: underline; }

.card-empty {
  padding: var(--sp-6);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--sub);
  text-align: center;
}

/* ---- ボタン（お問い合わせのメールリンクなど） ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0 var(--sp-5);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-card);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); color: #fff; }

.src { color: var(--sub); font-size: 14px; }

/* ---- フッター（サイト名と固定ページへのリンクのみ） ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 0;
  color: var(--sub);
  font-size: 14px;
}
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

/* ---- 404 ---- */
.notfound { text-align: center; padding: var(--sp-9) 0; }

/* ---- スマホ幅（mock01_memo.txt「スマホ幅で各要素がどこへ行くか」） ---- */
@media (max-width: 900px) {
  .header-inner { display: block; padding: 18px 0 14px; }
  .site-name { font-size: 30px; }
  .nav { justify-content: flex-start; margin-top: 14px; }
  .layout { display: block; }
  .sidebar { margin-top: 24px; }
  .main-card { padding: 22px 18px; }
  h1 { font-size: 26px; line-height: 1.45; }
  h2 { font-size: 20px; }
  .article-card { display: block; }
  .article-card .eyecatch { margin-bottom: 14px; }
  .article-card h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
