/* ==========================================================================
   KOB_BLOG — public site stylesheet
   設計方針: 編集メディアらしい落ち着いたトーン。
   紫系グラデーション・ガラス風カード・過剰な角丸/影は使わず、
   タイポグラフィと余白で階層を作る。既存ロゴの紺(#0F2E5C)/青(#3E7FC9)を
   アクセントとしてのみ使用し、背景は温かみのあるオフホワイトにする。
   ========================================================================== */

:root {
  --ink: #23262f;
  --ink-soft: #4b4f5a;
  --paper: #faf8f3;
  --paper-raised: #ffffff;
  --line: #e4dfd3;
  --navy: #0f2e5c;
  --blue: #3e7fc9;
  --blue-soft: #eaf1fb;
  --amber: #b8843a;
  --radius: 4px;
  --max: 720px;
  --max-wide: 1080px;
  font-size: 17px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP",
    serif;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 600;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* skip link (a11y) ---------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* header ---------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav .nav-item {
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-badge {
  font-size: 11px;
  color: var(--amber);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
}

/* thin decorative rule under header (subtle, not a big hero graphic) --- */
.accent-rule {
  height: 6px;
  background-image: linear-gradient(90deg, var(--navy) 0 8px, transparent 8px);
  background-size: 16px 6px;
  background-repeat: repeat-x;
  opacity: 0.35;
}

/* hero -------------------------------------------------------------------- */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  margin: 0 0 20px;
}

.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-row div {
  display: flex;
  gap: 6px;
}

.meta-row dt {
  font-weight: 600;
}

.meta-row dd {
  margin: 0;
}

/* article body ------------------------------------------------------------ */
.post {
  padding: 48px 0 8px;
}

.post h2 {
  font-size: 24px;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.post h2:first-child {
  margin-top: 0;
}

.post h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.post p {
  margin: 0 0 20px;
}

.post ul, .post ol {
  margin: 0 0 20px;
  padding-left: 1.3em;
}

.post li {
  margin: 0 0 8px;
}

.post strong {
  color: var(--navy);
  font-weight: 700;
}

/* term / callout box (置換: blockquote の意味的誤用を避けるため独自クラス) */
.term-box {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 24px;
}

.term-box .term-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.term-box p {
  margin: 0 0 10px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.term-box p:last-child {
  margin-bottom: 0;
}

/* status table ------------------------------------------------------------ */
.status-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.status-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 10px 14px 0;
}

table.status-table th,
table.status-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.status-table thead th {
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

table.status-table tbody tr:last-child td {
  border-bottom: none;
}

/* planned article list (本文中・非リンク) --------------------------------- */
.planned-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.planned-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.planned-list .ttl {
  flex: 1;
  color: var(--ink);
}

.tag-pending {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.tag-live {
  flex-shrink: 0;
  font-size: 11px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.refs {
  font-size: 14px;
  color: var(--ink-soft);
}

.refs li {
  margin-bottom: 6px;
}

hr.section-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* lineup (コンテンツラインナップ) ------------------------------------------ */
.lineup {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.lineup-head {
  max-width: var(--max);
  margin: 0 auto 32px;
}

.lineup .wrap-wide > .lineup-head {
  margin-left: 0;
}

.lineup h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.lineup-lede {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.lineup-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.lineup-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--paper);
}

.lineup-group h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--navy);
}

.lineup-group .group-status {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.lineup-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lineup-group li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.lineup-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

/* footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer .foot-brand {
  height: 22px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.site-footer p {
  margin: 0 0 10px;
  max-width: 62ch;
}

.site-footer .copyright {
  margin-top: 20px;
  color: #8b8f99;
}

/* responsive ------------------------------------------------------------ */
@media (max-width: 640px) {
  :root {
    font-size: 16px;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .post h2 {
    font-size: 20px;
    margin-top: 40px;
  }
  .planned-list li {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
