/* ============================================================
   哲数物地（てっすうぶっち）テーマ v1.0
   準拠: 統合アイデンティティ定義書 v1.2 §8 / カラー配色方針書 v1.2
   ============================================================ */

:root {
  --white:  #FFFFFF;   /* クリアホワイト */
  --field:  #F6F8FB;   /* ライトフィールド */
  --navy:   #0A214A;   /* フロンティアネイビー */
  --blue:   #0758D9;   /* フロンティアブルー */
  --yellow: #FBC600;   /* ディスカバリーイエロー */
  --gray:   #768195;   /* スレートグレー */
  --warm:   #F4F1EA;   /* 温かい白（限定） */
  --ochre:  #B08D57;   /* アースオーカー（限定） */

  --font-gothic: var(--gh-font-body, "Noto Sans JP", "Source Sans 3",
                     "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                     "Yu Gothic Medium", Meiryo, system-ui, sans-serif);
  --font-heading: var(--gh-font-heading, "Noto Sans JP", "Source Sans 3",
                      "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                      "Yu Gothic Medium", Meiryo, system-ui, sans-serif);
  --font-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --wrap: 1400px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(10, 33, 74, 0.06);
  --ghost-accent-color: var(--blue);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-gothic) !important;
  color: var(--navy);
  background: var(--white);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--navy); font-family: var(--font-heading) !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(118, 129, 149, 0.18);
}
.site-header-inner {
  display: flex; align-items: center; gap: 30px;
  height: 84px;
}
.site-logo { flex: none; }
.site-logo img { height: 38px; width: auto; }
.site-logo-text { font-size: 1.45rem; font-weight: 900; letter-spacing: 0.02em; }

.site-nav { flex: 1; min-width: 0; }
.site-nav .nav {
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: center;
}
.site-nav .nav li { flex: none; }
.site-nav .nav li a {
  display: block; padding: 8px 14px;
  font-size: 0.98rem; font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.site-nav .nav li a:hover { color: var(--blue); background: var(--field); }
.site-nav .nav .nav-current a { color: var(--blue); }
.site-nav-reader-actions { display: none; }

.site-actions { display: flex; flex: none; align-items: center; gap: 14px; }
.search-toggle {
  width: 38px; height: 38px; border: none; background: none;
  color: var(--navy); display: grid; place-items: center; border-radius: 50%;
}
.search-toggle svg { width: 20px; height: 20px; }
.search-toggle:hover { background: var(--field); }
.btn-signin { font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.btn-signin:hover { color: var(--blue); }

/* CTA: 黄背景＋紺文字（最重要行動に限定） */
.btn-cta {
  display: inline-block;
  background: #FBC600; background: var(--yellow); color: #0A214A; color: var(--navy);
  font-weight: 700; font-size: 1rem;
  padding: 12px 24px; border: none; border-radius: 8px;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.btn-cta:hover { filter: brightness(0.96); }
.btn-cta-lg { padding: 15px 30px; font-size: 1.05rem; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--white); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: stretch; gap: 36px;
  padding-top: 40px; padding-bottom: 56px;
}
.hero-title {
  font-family: var(--font-gothic) !important;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 900; line-height: 1.3; letter-spacing: 0.02em;
  word-break: keep-all; overflow-wrap: anywhere;
}
.hero-title-line { display: block; }
.hero-title::after { content: ""; }
.hero-subtitle {
  margin-top: 22px; font-size: 1.15rem; font-weight: 500; color: var(--navy);
}
.hero-signup { margin-top: 30px; max-width: 560px; }
.hero-signup-row { display: flex; gap: 10px; }
.hero-signup-input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 1rem;
  padding: 15px 18px;
  border: 1.5px solid rgba(118, 129, 149, 0.45);
  border-radius: 8px; color: var(--navy); background: var(--white);
}
.hero-signup-input::placeholder { color: var(--gray); }
.hero-signup-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

.reader-auth-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.reader-auth-field { display: grid; gap: 7px; min-width: 0; }
.reader-auth-field > span { color: var(--navy); font-size: 0.82rem; font-weight: 700; }
.reader-auth-field .hero-signup-input { width: 100%; }
.reader-auth-fields > .btn-cta { grid-column: 1 / -1; justify-self: start; }
.reader-auth-fields.is-signup { grid-template-columns: minmax(0, 1fr) auto; }
.reader-auth-fields.is-signup > .btn-cta { grid-column: auto; }
.reader-auth-fields.is-signin { grid-template-columns: 1fr; }
.reader-auth-switch { margin-top: 14px; color: var(--gray); font-size: 0.84rem; }
.reader-auth-switch a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.reader-auth-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}
.reader-auth-modal[hidden] { display: none; }
.reader-auth-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(4, 12, 28, 0.66);
  cursor: default;
}
.reader-auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 38px 40px 36px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(4, 12, 28, 0.3);
}
.reader-auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}
.reader-auth-kicker { color: var(--blue); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; }
.reader-auth-dialog h2 { margin-top: 7px; font-size: 1.65rem; font-weight: 900; }
.reader-auth-description { margin-top: 10px; color: #536078; font-size: 0.9rem; line-height: 1.75; }
.reader-auth-form { margin-top: 24px; }
.reader-auth-form .reader-auth-fields { grid-template-columns: 1fr; }
.reader-auth-form .reader-auth-fields > .btn-cta { width: 100%; justify-self: stretch; text-align: center; }
body.reader-auth-open { overflow: hidden; }

.form-message { margin-top: 10px; font-size: 0.9rem; }
.form-success { color: var(--blue); }
.form-error { color: #C0392B; }
form[data-members-form].success .form-success { display: block; }
form[data-members-form].error .form-error { display: block; }
.hero-reader-account {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 700;
}
.hero-reader-account:hover { text-decoration: underline; }

.hero-benefits {
  margin-top: 30px; display: flex; flex-wrap: nowrap; align-items: stretch;
}
.hero-benefits li {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; line-height: 1.5; color: var(--navy);
  white-space: nowrap;
  padding: 2px 8px 2px 0;
}
.hero-benefits li + li {
  border-left: 1px solid rgba(118, 129, 149, 0.35);
  padding-left: 8px;
}
.hero-benefits svg { width: 20px; height: 20px; color: var(--yellow); flex: none; stroke-width: 2; }
.hero-visual { position: relative; min-height: 320px; }
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* ---------- home sections ---------- */
.home-columns {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.15fr;
  gap: 46px;
  padding-top: 64px; padding-bottom: 72px;
}
.section-title {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.22rem; font-weight: 700;
  margin-bottom: 24px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-yellow { background: var(--yellow); }
.dot-blue { background: var(--blue); }
.dot-navy { background: var(--navy); }

/* featured */
.featured-wrap {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 22px; align-items: stretch;
}
.featured-main { display: flex; }
.featured-main > a { display: block; width: 100%; }
.featured-main-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 100%; min-height: 300px; background: var(--navy);
}
.featured-main-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.featured-main a:hover img { transform: scale(1.03); }
.tag-chip {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}
.featured-main-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 18px 13px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--navy);
}
.featured-main-overlay h3 { font-size: 1.24rem; font-weight: 700; line-height: 1.5; color: var(--navy); }
.featured-main-overlay .meta { margin-top: 5px; font-size: 0.8rem; color: var(--gray); opacity: 1; }

.featured-list .post-row:first-child { padding-top: 0; }
.featured-list .post-row:last-child { padding-bottom: 0; }
.featured-list .post-row-media { width: 84px; }
.featured-list .post-row-media img, .featured-list .post-row-placeholder { width: 84px; height: 62px; }
.featured-list .post-row-title { font-size: 0.95rem; }

/* post rows（小カード） */
.post-row {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(118, 129, 149, 0.18);
}
.post-row:last-child { border-bottom: none; }
.post-row-media { flex: none; width: 92px; }
.post-row-media img, .post-row-placeholder {
  width: 92px; height: 68px; object-fit: cover;
  border-radius: 7px; background: var(--field); display: block;
}
.post-row-tag { font-size: 0.78rem; font-weight: 700; color: var(--blue); }
.post-row-tag:hover { text-decoration: underline; }
.post-row-title { font-size: 1rem; font-weight: 700; line-height: 1.55; margin-top: 2px; }
.post-row-title a:hover { color: var(--blue); }
.post-row-date { display: block; margin-top: 5px; font-size: 0.79rem; font-weight: 400; color: var(--gray); }

.more-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 0.92rem; font-weight: 700; color: var(--blue);
}
.more-link:hover { text-decoration: underline; }

.empty-note { color: var(--gray); font-size: 0.9rem; }
.empty-note-inverse { color: rgba(255,255,255,0.75); }

/* theme cards */
.theme-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.theme-card {
  border: 1px solid rgba(118, 129, 149, 0.24);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 5px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.theme-card-svg {
  width: 52px; height: 52px; margin-bottom: 10px;
  color: var(--navy);
  object-fit: contain;
}
.theme-card-svg .ic-blue { color: var(--blue); }
/* サイエンスと日常 = 温かい白の横長カード（限定テーマ色の許容用途） */
.theme-card.theme-card-science-to-nichijo {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 16px;
  background: var(--warm); border-color: transparent;
}
.theme-card.theme-card-science-to-nichijo .theme-card-svg { margin-bottom: 0; }
.theme-card-body { display: flex; flex-direction: column; gap: 3px; }
.theme-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.theme-card-icon { width: 40px; height: 40px; object-fit: contain; margin-bottom: 6px; }
.theme-card-name { font-weight: 700; font-size: 1.1rem; }
.theme-card-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.55; }

/* series band（紺帯） */
.series-band {
  background: var(--navy); color: var(--white);
  padding: 44px 0 52px;
}
.series-band-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.section-title-inverse { color: var(--white); margin-bottom: 0; }
.bar-yellow { width: 4px; height: 20px; background: var(--yellow); border-radius: 2px; }
.more-link-inverse { color: var(--white); margin-top: 0; }
.series-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.series-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(1, 12, 35, 0.2);
  aspect-ratio: 16 / 10;
}
.series-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.series-card::after {
  content: ""; position: absolute; inset: 24% 0 0 0;
  background: linear-gradient(to top, rgba(4, 12, 28, 0.54), transparent);
}
.series-card h3 {
  z-index: 1;
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 16px 14px;
  background: rgba(244, 247, 251, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--navy);
  font-size: 1.05rem; font-weight: 700; line-height: 1.5;
  text-shadow: none;
}
.series-chip {
  z-index: 1;
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--navy);
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
}
.series-card:hover img { opacity: 1; }

/* ---------- archive ---------- */
.archive { padding: 48px 0 64px; }
.archive-head { margin-bottom: 32px; }
.archive-kicker { color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.archive-title { font-size: 2rem; font-weight: 900; }
.archive-desc { color: var(--gray); margin-top: 8px; max-width: 640px; }

/* ---------- author and system pages ---------- */
.author-profile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px 30px;
  background: var(--field);
  border: 1px solid rgba(118, 129, 149, 0.16);
  border-radius: var(--radius);
}
.author-profile-media img,
.author-profile-placeholder {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
}
.author-profile-media img { object-fit: cover; }
.author-profile-placeholder { background: var(--white); color: var(--blue); }
.author-profile-placeholder svg { width: 52px; height: 52px; }
.author-profile-bio { max-width: 680px; margin-top: 9px; color: #536078; line-height: 1.8; }
.author-profile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--gray); font-size: 0.82rem; }
.author-profile-meta a { color: var(--blue); font-weight: 700; }
.archive-section-head { margin-bottom: 18px; }
.curated-archive .archive-head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(118, 129, 149, 0.22);
}
.curated-archive .card-grid,
.card-grid.related-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.curated-post-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 17px;
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(118, 129, 149, 0.2);
}
.curated-post-card:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
.curated-post-media {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--field);
  border-radius: 9px;
}
.curated-post-media img,
.curated-post-placeholder { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.curated-post-media img { z-index: 1; object-fit: cover; transition: transform 0.25s ease; }
.curated-post-media img[hidden] { display: none; }
.curated-post-card:hover .curated-post-media img { transform: scale(1.025); }
.curated-post-placeholder {
  background:
    radial-gradient(circle at 26% 34%, rgba(26, 91, 218, 0.12) 0 4px, transparent 5px),
    linear-gradient(145deg, #F5F7FB, #E9EEF6);
}
.curated-post-body { min-width: 0; }
.curated-post-title {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.curated-post-title a:hover { color: var(--blue); }
.curated-post-excerpt {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #536078;
  font-size: 0.82rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.curated-post-card .post-row-date { margin-top: 7px; }
.archive-empty {
  padding: 40px 24px;
  background: var(--field);
  border-radius: var(--radius);
  color: #536078;
  text-align: center;
}
.archive-empty a { display: inline-flex; margin-top: 12px; color: var(--blue); font-weight: 700; }

.error-page-section { padding: 64px 0 58px; background: var(--field); text-align: center; }
.error-page-inner { max-width: 780px; }
.error-page-code {
  color: var(--blue);
  font-size: clamp(4.5rem, 11vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  opacity: 0.12;
}
.error-page-section .archive-kicker { margin-top: -10px; }
.error-page-title { margin-top: 10px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.42; }
.error-page-description { max-width: 620px; margin: 18px auto 0; color: #536078; line-height: 1.85; }
.error-page-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.error-search-button {
  padding: 11px 22px;
  border: 1px solid rgba(118, 129, 149, 0.38);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.error-recommendations { padding: 42px 0 64px; }

.standalone-page { min-height: 100vh; background: var(--field); color: var(--navy); }
.standalone-shell {
  display: grid;
  width: min(100% - 32px, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
  place-content: center;
  justify-items: center;
}
.standalone-logo { display: inline-flex; margin-bottom: 24px; color: var(--navy); font-size: 1.4rem; font-weight: 900; }
.standalone-logo img { width: auto; height: 38px; }
.standalone-card {
  width: 100%;
  padding: 44px 42px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(118, 129, 149, 0.16);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(10, 33, 74, 0.1);
  text-align: center;
}
.standalone-code { color: var(--blue); font-size: 3.8rem; font-weight: 900; line-height: 1; opacity: 0.2; }
.standalone-card h1 { margin-top: 10px; font-size: 1.8rem; font-weight: 900; line-height: 1.45; }
.standalone-card > p:not(.standalone-code, .archive-kicker) { margin: 14px auto 0; color: #536078; line-height: 1.8; }
.standalone-card > .btn-cta { display: inline-flex; margin-top: 25px; }
.standalone-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 195, 0, 0.16);
  color: #C79500;
}
.standalone-mark svg { width: 26px; height: 26px; }
.private-access-form { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.private-access-label { color: #536078; font-size: 0.8rem; font-weight: 700; }
.private-access-form .btn-cta { width: 100%; justify-content: center; border: 0; }
.standalone-admin-link { margin-top: 18px; color: var(--gray); font-size: 0.78rem; }

@media (max-width: 860px) {
  .curated-archive .card-grid,
  .card-grid.related-card-grid { grid-template-columns: 1fr; gap: 0; }
  .curated-post-card,
  .curated-post-card:nth-child(-n + 2) { grid-template-columns: 148px minmax(0, 1fr); gap: 15px; padding: 17px 0; border-top: 1px solid rgba(118, 129, 149, 0.2); }
  .curated-post-card:first-child { padding-top: 0; border-top: 0; }
  .author-profile { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 24px; }
  .author-profile-media img,
  .author-profile-placeholder { width: 88px; height: 88px; }
  .author-profile-placeholder svg { width: 42px; height: 42px; }
  .error-page-section { padding: 50px 0 46px; }
  .error-recommendations { padding: 34px 0 48px; }
}

@media (max-width: 600px) {
  .curated-post-card,
  .curated-post-card:nth-child(-n + 2) { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .curated-post-card:first-child { padding-top: 0; }
  .curated-post-media { border-radius: 7px; }
  .curated-post-title { margin-top: 3px; font-size: 0.9rem; line-height: 1.48; }
  .curated-post-excerpt { margin-top: 4px; font-size: 0.74rem; line-height: 1.55; -webkit-line-clamp: 2; }
  .curated-post-card .post-row-date { margin-top: 4px; }
  .author-profile {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 26px;
    padding: 20px 18px;
    text-align: center;
  }
  .author-profile-media img,
  .author-profile-placeholder { width: 76px; height: 76px; margin: 0 auto; }
  .author-profile-placeholder svg { width: 36px; height: 36px; }
  .author-profile-bio { margin-top: 7px; font-size: 0.86rem; line-height: 1.75; }
  .author-profile-meta { justify-content: center; margin-top: 10px; font-size: 0.76rem; }
  .archive-section-head { margin-bottom: 14px; }
  .error-page-section { padding: 38px 0 36px; }
  .error-page-code { font-size: 4.2rem; }
  .error-page-title { font-size: 1.65rem; }
  .error-page-description { margin-top: 14px; font-size: 0.86rem; line-height: 1.75; }
  .error-page-actions { flex-direction: column; gap: 9px; margin-top: 22px; }
  .error-page-actions .btn-cta,
  .error-search-button { width: 100%; justify-content: center; }
  .error-recommendations { padding: 28px 0 40px; }
  .standalone-shell { width: min(100% - 28px, 680px); padding: 24px 0; }
  .standalone-logo { margin-bottom: 18px; }
  .standalone-logo img { height: 31px; }
  .standalone-card { padding: 30px 20px; border-radius: 14px; }
  .standalone-code { font-size: 3.2rem; }
  .standalone-card h1 { font-size: 1.48rem; }
  .standalone-card > p:not(.standalone-code, .archive-kicker) { font-size: 0.86rem; line-height: 1.75; }
}

.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card-media img {
  aspect-ratio: 16 / 10; width: 100%; object-fit: cover;
  border-radius: var(--radius); background: var(--field);
}
.post-card-body { padding-top: 12px; }
.post-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.55; margin-top: 2px; }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { font-size: 0.88rem; color: var(--gray); margin-top: 6px; }

.pagination {
  display: flex; justify-content: center; gap: 20px; margin-top: 44px;
  font-weight: 700; color: var(--blue);
}
.pagination a:hover { text-decoration: underline; }

/* ---------- article ---------- */
.article-header { padding: 52px 0 8px; }
.article-tag {
  color: var(--blue); font-weight: 700; font-size: 0.9rem;
}
.article-title {
  font-family: var(--font-gothic) !important;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900; line-height: 1.4; margin-top: 10px;
}
.article-excerpt { margin-top: 14px; font-size: 1.05rem; color: var(--gray); }
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; font-size: 0.88rem; color: var(--gray);
}
.article-feature { padding: 28px 0 8px; }
.article-feature img { border-radius: var(--radius); width: 100%; }
.article-feature figcaption {
  text-align: center; font-size: 0.82rem; color: var(--gray); margin-top: 10px;
}

.article-content { padding: 28px 0 24px; font-size: 1.05rem; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content h2 { font-size: 1.45rem; line-height: 1.5; margin-top: 2.2em; }
.gh-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.gh-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(7, 88, 217, 0.45); }
.gh-content a:hover { text-decoration-color: var(--blue); }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content ul { list-style: disc; }
.gh-content figcaption { font-size: 0.82rem; color: var(--gray); text-align: center; margin-top: 8px; }
.gh-content hr { border: none; border-top: 1px solid rgba(118, 129, 149, 0.3); margin-top: 2.4em; }
.gh-content img { border-radius: 8px; }

/* エディタのカード幅（wide / full） */
.gh-content .kg-width-wide {
  position: relative;
  width: min(980px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gh-content .kg-width-full img { border-radius: 0; }

/* 引用＝温かい白＋オーカー＋明朝（限定用途） */
.gh-content blockquote {
  font-family: var(--font-mincho);
  background: var(--warm);
  border-left: 3px solid var(--ochre);
  border-radius: 6px;
  padding: 1.2em 1.5em;
}

/* 記事末尾CTA */
.article-cta {
  background: var(--field);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin: 36px 0;
}
.article-cta h2 { font-size: 1.25rem; }
.article-cta p { margin-top: 6px; color: var(--gray); font-size: 0.95rem; }
.article-cta form { margin-top: 18px; max-width: 480px; }
.reader-engagement .reader-engagement-note {
  margin-top: 12px;
  color: #536078;
  font-size: 0.88rem;
}
.reader-engagement .reader-discussion-signin { margin-top: 12px; font-size: 0.82rem; }

.article-comments { margin: 40px 0; }
.reader-discussion-intro {
  margin-bottom: 22px;
  padding: 26px 28px;
  background: var(--field);
  border: 1px solid rgba(118, 129, 149, 0.18);
  border-radius: var(--radius);
}
.reader-discussion-intro h2 { font-size: 1.22rem; line-height: 1.5; }
.reader-discussion-intro > p { margin-top: 7px; color: #536078; font-size: 0.92rem; line-height: 1.75; }
.reader-discussion-intro > .btn-cta { margin-top: 18px; }
.reader-discussion-intro .reader-discussion-signin { margin-top: 11px; font-size: 0.82rem; }
.reader-discussion-signin a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.related { background: var(--field); padding: 48px 0 60px; }
.related .curated-post-media { background: var(--white); }

/* ---------- longread ---------- */
.article-longread {
  --longread-width: 720px;
  color: #152B50;
  background: var(--white);
}
.longread-header {
  padding: 72px 0 42px;
  background: linear-gradient(180deg, var(--field) 0%, var(--white) 100%);
}
.longread-header-inner { max-width: 940px; }
.longread-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.longread-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.longread-title {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0.015em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.longread-lead {
  max-width: 780px;
  margin-top: 24px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.025em;
}
.longread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--gray);
  font-size: 0.86rem;
}
.longread-feature { padding: 0 0 56px; }
.longread-feature-inner { max-width: 1160px; }
.longread-feature img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 0 0 var(--radius) var(--radius);
}
.longread-feature figcaption {
  max-width: var(--longread-width);
  margin: 12px auto 0;
  color: var(--gray);
  font-size: 0.78rem;
  line-height: 1.65;
  text-align: left;
}
.longread-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, var(--longread-width));
  justify-content: center;
  align-items: start;
  gap: 64px;
  padding-top: 34px;
  padding-bottom: 84px;
}
.longread-toc {
  position: sticky;
  top: 110px;
  overflow: hidden;
  padding: 24px 22px 22px;
  border: 1px solid rgba(7, 88, 217, 0.13);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 12px 12px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 33, 74, 0.09);
}
.longread-toc[hidden] { display: none; }
.longread-toc[hidden] + .longread-main {
  grid-column: 1 / -1;
  width: 100%;
  max-width: var(--longread-width);
  margin-right: auto;
  margin-left: auto;
}
.longread-toc-title {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.longread-toc-title::before {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(251, 198, 0, 0.16);
  content: "";
}
.longread-toc ol {
  counter-reset: longread-index;
  margin-top: 16px;
  padding-left: 2px;
  list-style: none;
}
.longread-toc li {
  counter-increment: longread-index;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.longread-toc li::before {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(7, 88, 217, 0.18);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  content: counter(longread-index, decimal-leading-zero);
}
.longread-toc li + li {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(118, 129, 149, 0.14);
}
.longread-toc a {
  display: block;
  color: #41506A;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.65;
  transition: color .2s, transform .2s;
}
.longread-toc a:hover {
  color: var(--blue);
  transform: translateX(2px);
}
.longread-toc-sub { padding-left: 0; }
.longread-main { min-width: 0; }
.longread-content {
  max-width: var(--longread-width);
  padding: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.025em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  font-kerning: normal;
  font-synthesis: none;
}
.longread-content > * + * { margin-top: 1.55em; }
.longread-content p + p { margin-top: 1.55em; }
.longread-content h2 {
  scroll-margin-top: 120px;
  margin-top: 3.8em;
  padding-top: 0.7em;
  border-top: 3px solid var(--navy);
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.longread-content h3 {
  scroll-margin-top: 120px;
  margin-top: 2.8em;
  padding-left: 14px;
  border-left: 4px solid var(--yellow);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.6;
}
.longread-content h2 + p,
.longread-content h3 + p { margin-top: 1.25em; }
.longread-content blockquote {
  margin-top: 2.2em;
  margin-bottom: 2.2em;
  padding: 1.4em 1.6em;
  font-size: 1.05rem;
  line-height: 2;
}
.longread-content figure,
.longread-content .kg-card { margin-top: 2.4em; margin-bottom: 2.4em; }
.longread-content .kg-width-wide,
.longread-content .kg-width-full {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  transform: none;
}
.longread-content .kg-width-full img { border-radius: 8px; }
.longread-content .kg-image-card img,
.longread-content .kg-gallery-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
.longread-content .kg-gallery-card,
.longread-content .kg-gallery-container,
.longread-content .kg-gallery-row {
  width: 100%;
  max-width: 100%;
}
.longread-content .kg-gallery-container {
  overflow: hidden;
  border-radius: 8px;
}
.longread-content .kg-gallery-row {
  align-items: flex-start;
}
.longread-content figcaption {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
}
.longread-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.longread-footer {
  max-width: var(--longread-width);
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(118, 129, 149, 0.25);
}
.longread-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.longread-author > img {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
}
.longread-author-label {
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.longread-author-name { margin-top: 1px; font-weight: 700; }
.longread-author-bio {
  margin-top: 5px;
  color: #536078;
  font-size: 0.86rem;
  line-height: 1.75;
}
.longread-cta { margin-top: 42px; margin-bottom: 0; }
.longread-related { border-top: 1px solid rgba(118, 129, 149, 0.18); }
.longread-back-to-top {
  --back-to-top-bottom: 28px;
  position: fixed;
  z-index: 90;
  right: max(24px, calc((100vw - 1120px) / 2 - 72px));
  bottom: var(--back-to-top-bottom);
  display: grid;
  width: 54px;
  height: 54px;
  padding: 6px 4px 5px;
  place-content: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--white);
  background: rgba(10, 33, 74, 0.92);
  box-shadow: 0 8px 24px rgba(10, 33, 74, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease,
              bottom .25s ease, background-color .2s ease;
}
.longread-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.longread-back-to-top.is-near-footer { --back-to-top-bottom: 96px; }
.longread-back-to-top:hover { background: var(--blue); }
.longread-back-to-top:focus-visible {
  outline: 3px solid rgba(251, 198, 0, 0.72);
  outline-offset: 3px;
}
.longread-back-to-top svg {
  width: 19px;
  height: 19px;
  margin: 0 auto -1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.longread-back-to-top span {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .longread-header { padding-top: 52px; }
  .longread-layout {
    grid-template-columns: minmax(0, var(--longread-width));
    gap: 30px;
  }
  .longread-toc {
    position: static;
    padding: 22px 24px;
  }
  .longread-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }
  .longread-toc li + li {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .longread-back-to-top {
    --back-to-top-bottom: 20px;
    right: 18px;
  }
  .longread-back-to-top.is-near-footer { --back-to-top-bottom: 88px; }
}

@media (max-width: 600px) {
  .longread-header { padding: 38px 0 30px; }
  .longread-title {
    margin-top: 12px;
    font-size: clamp(1.8rem, 8.6vw, 2.35rem);
    line-height: 1.42;
  }
  .longread-lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.9;
  }
  .longread-meta { margin-top: 20px; gap: 5px 15px; font-size: 0.78rem; }
  .longread-feature { padding-bottom: 34px; }
  .longread-feature-inner { padding: 0; }
  .longread-feature img { max-height: none; border-radius: 0; }
  .longread-feature figcaption { padding: 0 20px; }
  .longread-layout { gap: 24px; padding-top: 24px; padding-bottom: 60px; }
  .longread-toc { padding: 20px 18px; }
  .longread-toc ol { grid-template-columns: 1fr; }
  .longread-toc li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(118, 129, 149, 0.14);
  }
  .longread-content {
    font-size: 1.04rem;
    line-height: 2;
    letter-spacing: 0.02em;
  }
  .longread-content > * + *,
  .longread-content p + p { margin-top: 1.45em; }
  .longread-content h2 { margin-top: 3.2em; font-size: 1.4rem; }
  .longread-content h3 { margin-top: 2.5em; font-size: 1.16rem; }
  .longread-content blockquote { padding: 1.2em 1.25em; }
  .longread-author { gap: 14px; }
  .longread-author > img { width: 52px; height: 52px; }
  .longread-cta { padding: 26px 20px; }
  .longread-back-to-top {
    --back-to-top-bottom: 16px;
    right: 14px;
    width: 50px;
    height: 50px;
  }
  .longread-back-to-top.is-near-footer { --back-to-top-bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .longread-back-to-top { transition: none; }
}

/* ---------- simple post ---------- */
.article-simple {
  --simple-width: 700px;
  color: #152B50;
  background: var(--white);
}
.simple-header {
  padding: 54px 0 36px;
  background: linear-gradient(180deg, var(--field) 0%, var(--white) 100%);
}
.simple-header-inner { max-width: 860px; }
.simple-kicker { font-size: 0.86rem; }
.simple-title {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.012em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.simple-lead {
  max-width: 740px;
  margin-top: 19px;
  color: #41506A;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
.simple-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 22px;
  color: var(--gray);
  font-size: 0.84rem;
}
.simple-feature { padding: 4px 0 42px; }
.simple-feature-inner { max-width: 920px; }
.simple-feature img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}
.simple-feature figcaption {
  max-width: var(--simple-width);
  margin: 10px auto 0;
  color: var(--gray);
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
}
.simple-body {
  max-width: calc(var(--simple-width) + 48px);
  padding-top: 34px;
  padding-bottom: 72px;
}
.simple-content {
  padding: 0;
  font-size: 1.075rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.simple-content > * + *,
.simple-content p + p { margin-top: 1.45em; }
.simple-content h2 {
  margin-top: 3em;
  padding-top: 0.65em;
  border-top: 2px solid var(--navy);
  font-size: 1.46rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.015em;
}
.simple-content h3 {
  margin-top: 2.35em;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.6;
}
.simple-content h2 + p,
.simple-content h3 + p { margin-top: 1.15em; }
.simple-content blockquote {
  margin-top: 2em;
  margin-bottom: 2em;
  padding: 1.25em 1.45em;
  font-size: 1rem;
  line-height: 1.9;
}
.simple-content figure,
.simple-content .kg-card { margin-top: 2.1em; margin-bottom: 2.1em; }
.simple-content .kg-width-wide,
.simple-content .kg-width-full {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  transform: none;
}
.simple-content .kg-width-full img { border-radius: 8px; }
.simple-content .kg-image-card img,
.simple-content .kg-gallery-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
.simple-content .kg-gallery-card,
.simple-content .kg-gallery-container,
.simple-content .kg-gallery-row {
  width: 100%;
  max-width: 100%;
}
.simple-content .kg-gallery-container {
  overflow: hidden;
  border-radius: 8px;
}
.simple-content .kg-gallery-row { align-items: flex-start; }
.simple-content figcaption {
  margin-top: 9px;
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
}
.simple-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.simple-footer {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(118, 129, 149, 0.25);
}
.simple-author > img { width: 58px; height: 58px; }
.simple-cta { margin-top: 36px; margin-bottom: 0; }
.simple-related { border-top: 1px solid rgba(118, 129, 149, 0.18); }
.simple-related-grid {
  max-width: 920px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- simple page ---------- */
.page-simple-header { padding-bottom: 38px; }
.page-simple-title { margin-top: 0; }
.page-simple-lead { max-width: 700px; }
.page-simple-body { padding-bottom: 88px; }
.page-simple-spacer { height: 30px; }
.page-simple-content > :first-child { margin-top: 0; }
.page-simple-content ol,
.page-simple-content ul { padding-left: 1.55em; }
.page-simple-content li + li { margin-top: 0.45em; }
.page-simple-content li > ul,
.page-simple-content li > ol { margin-top: 0.45em; }
.page-simple-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.75;
}
.page-simple-content th,
.page-simple-content td {
  padding: 12px 14px;
  border: 1px solid rgba(118, 129, 149, 0.25);
  text-align: left;
  vertical-align: top;
}
.page-simple-content th {
  color: var(--navy);
  background: var(--field);
  font-weight: 700;
}

/* ---------- standard page ---------- */
.page-standard {
  --page-standard-width: 760px;
  color: #152B50;
  background: var(--white);
}
.page-standard-header {
  padding: 66px 0 44px;
  background: linear-gradient(180deg, var(--field) 0%, var(--white) 100%);
}
.page-standard-header-inner { max-width: 940px; }
.page-standard-header-inner::after {
  display: block;
  width: min(100%, var(--page-standard-width));
  height: 1px;
  margin-top: 22px;
  background: rgba(118, 129, 149, 0.24);
  content: "";
}
.page-standard-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 880px;
  margin-top: 0;
  font-size: clamp(2.25rem, 4.3vw, 3.7rem);
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: 0.012em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.page-standard-title::before {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 0.58em;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.page-standard-lead {
  max-width: 760px;
  margin-top: 23px;
  color: #41506A;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.025em;
}
.page-standard-feature { padding: 2px 0 52px; }
.page-standard-feature-inner { max-width: 1040px; }
.page-standard-feature img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
}
.page-standard-feature figcaption {
  max-width: var(--page-standard-width);
  margin: 11px auto 0;
  color: var(--gray);
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
}
.page-standard-spacer { height: 34px; }
.page-standard-body {
  max-width: calc(var(--page-standard-width) + 48px);
  padding-top: 44px;
  padding-bottom: 96px;
}
.page-standard-content {
  padding: 0;
  font-size: 1.075rem;
  line-height: 2;
  letter-spacing: 0.022em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.page-standard-content > :first-child { margin-top: 0; }
.page-standard-content > p:first-child {
  color: #233A60;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 2;
}
.page-standard-content > * + *,
.page-standard-content p + p { margin-top: 1.5em; }
.page-standard-content h2 {
  position: relative;
  margin-top: 3.5em;
  padding: 0 0 0.72em 22px;
  border-bottom: 2px solid var(--navy);
  font-size: 1.58rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.018em;
}
.page-standard-content h2::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.page-standard-content h3 {
  margin-top: 2.6em;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.65;
}
.page-standard-content h4 {
  margin-top: 2.2em;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
}
.page-standard-content h2 + p,
.page-standard-content h3 + p,
.page-standard-content h4 + p { margin-top: 1.15em; }
.page-standard-content blockquote {
  margin-top: 2.2em;
  margin-bottom: 2.2em;
  padding: 1.4em 1.6em;
  font-size: 1.02rem;
  line-height: 1.95;
}
.page-standard-content ul,
.page-standard-content ol { padding-left: 1.6em; }
.page-standard-content li + li { margin-top: 0.5em; }
.page-standard-content li > ul,
.page-standard-content li > ol { margin-top: 0.5em; }
.page-standard-content figure,
.page-standard-content .kg-card { margin-top: 2.35em; margin-bottom: 2.35em; }
.page-standard-content .kg-width-wide,
.page-standard-content .kg-width-full {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  transform: none;
}
.page-standard-content .kg-width-full img { border-radius: 8px; }
.page-standard-content .kg-image-card img,
.page-standard-content .kg-gallery-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
.page-standard-content .kg-gallery-card,
.page-standard-content .kg-gallery-container,
.page-standard-content .kg-gallery-row {
  width: 100%;
  max-width: 100%;
}
.page-standard-content .kg-gallery-container {
  overflow: hidden;
  border-radius: 8px;
}
.page-standard-content .kg-gallery-row { align-items: flex-start; }
.page-standard-content figcaption {
  margin-top: 10px;
  color: var(--gray);
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: left;
}
.page-standard-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.page-standard-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.75;
}
.page-standard-content th,
.page-standard-content td {
  padding: 13px 15px;
  border: 1px solid rgba(118, 129, 149, 0.25);
  text-align: left;
  vertical-align: top;
}
.page-standard-content th {
  color: var(--navy);
  background: var(--field);
  font-weight: 700;
}

@media (max-width: 600px) {
  .simple-header { padding: 36px 0 28px; }
  .simple-title {
    margin-top: 11px;
    font-size: clamp(1.72rem, 8vw, 2.15rem);
    line-height: 1.46;
  }
  .simple-lead {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.85;
  }
  .simple-meta { margin-top: 18px; gap: 5px 14px; font-size: 0.77rem; }
  .simple-feature { padding: 0 0 28px; }
  .simple-feature-inner { padding: 0; }
  .simple-feature img { max-height: none; border-radius: 0; }
  .simple-feature figcaption { padding: 0 20px; }
  .simple-body { padding-top: 24px; padding-bottom: 56px; }
  .simple-content { font-size: 1.02rem; line-height: 1.95; }
  .simple-content > * + *,
  .simple-content p + p { margin-top: 1.4em; }
  .simple-content h2 { margin-top: 2.7em; font-size: 1.32rem; }
  .simple-content h3 { margin-top: 2.2em; font-size: 1.12rem; }
  .simple-content blockquote { padding: 1.15em 1.2em; }
  .simple-footer { margin-top: 44px; }
  .simple-author { gap: 14px; }
  .simple-author > img { width: 52px; height: 52px; }
  .simple-cta { padding: 26px 20px; }
  .simple-related-grid { grid-template-columns: 1fr; }
  .page-simple-header { padding-bottom: 30px; }
  .page-simple-body { padding-bottom: 64px; }
  .page-simple-spacer { height: 18px; }
  .page-simple-content ol,
  .page-simple-content ul { padding-left: 1.35em; }
  .page-simple-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .page-simple-content th,
  .page-simple-content td { padding: 10px 12px; }
  .page-standard-header { padding: 40px 0 31px; }
  .page-standard-title {
    margin-top: 0;
    font-size: clamp(1.82rem, 8.4vw, 2.3rem);
    line-height: 1.44;
  }
  .page-standard-lead {
    margin-top: 17px;
    font-size: 0.99rem;
    line-height: 1.9;
  }
  .page-standard-feature { padding: 0 0 31px; }
  .page-standard-feature-inner { padding: 0; }
  .page-standard-feature img { max-height: none; border-radius: 0; }
  .page-standard-feature figcaption { padding: 0 20px; }
  .page-standard-spacer { height: 20px; }
  .page-standard-body { padding-top: 27px; padding-bottom: 66px; }
  .page-standard-content { font-size: 1.02rem; line-height: 1.95; }
  .page-standard-content > p:first-child {
    font-size: 1.04rem;
    line-height: 1.95;
  }
  .page-standard-content > * + *,
  .page-standard-content p + p { margin-top: 1.42em; }
  .page-standard-content h2 {
    margin-top: 3em;
    padding-left: 19px;
    font-size: 1.38rem;
  }
  .page-standard-content h2::before { width: 8px; height: 8px; }
  .page-standard-content h3 {
    margin-top: 2.35em;
    padding-left: 12px;
    font-size: 1.16rem;
  }
  .page-standard-content blockquote { padding: 1.2em 1.25em; }
  .page-standard-content ul,
  .page-standard-content ol { padding-left: 1.4em; }
  .page-standard-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .page-standard-content th,
  .page-standard-content td { padding: 10px 12px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0 36px; }
.footer-inner { display: grid; gap: 20px; }
.footer-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 1.2rem; font-weight: 900; }
.footer-desc { margin-top: 12px; font-size: 0.9rem; opacity: 0.8; max-width: 480px; }
.footer-nav .nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav .nav li a { font-size: 0.88rem; opacity: 0.85; }
.footer-nav .nav li a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .site-header-inner { gap: 18px; }
  .site-nav .nav li a { padding: 8px 9px; font-size: 0.92rem; }
}

@media (max-width: 1080px) {
  .site-header-inner { height: 72px; }
  .site-actions { margin-left: auto; }
  .site-actions > .btn-signin,
  .site-actions > .btn-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(118, 129, 149, 0.18);
    padding: 12px 24px 18px;
  }
  .site-nav.open { display: block; }
  .site-nav .nav { flex-direction: column; align-items: stretch; }
  .site-nav .nav li a { padding: 9px 12px; }
  .site-nav-reader-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 12px 0;
    border-top: 1px solid rgba(118, 129, 149, 0.18);
  }
  .site-nav-reader-actions .btn-signin { display: inline-flex; }
  .nav-toggle {
    display: grid;
    gap: 4px;
    border: none;
    background: none;
    padding: 8px;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }

  /*
   * Tablet hero: keep the image and copy in the same, compact viewport area.
   * The copy becomes a translucent card so the artwork remains visible without
   * sacrificing text/form contrast.
   */
  .hero { background: var(--field); }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 440px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero-copy,
  .hero-visual { grid-area: 1 / 1; }
  .hero-visual {
    position: relative;
    min-height: 440px;
    margin: 0 -24px;
  }
  .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    width: min(60%, 610px);
    margin: 30px 0;
    padding: 30px 32px;
    background: rgba(246, 248, 251, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(10, 33, 74, 0.12);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .hero-title { font-size: clamp(2.15rem, 4.5vw, 3rem); }
  .hero-subtitle { margin-top: 14px; font-size: 1rem; }
  .hero-signup { margin-top: 22px; }
  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  .hero-benefits li {
    min-width: 0;
    padding-right: 6px;
    white-space: normal;
    line-height: 1.4;
  }
  .hero-benefits li + li { padding-left: 8px; }

  .home-columns { grid-template-columns: 1fr 1fr; }
  .featured-wrap { grid-template-columns: 1fr; gap: 6px; }
  .featured-main-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .featured-list { margin-top: 6px; }
  .featured-list .post-row:first-child { padding-top: 16px; }
  .col-themes { grid-column: 1 / -1; }
  .theme-cards { grid-template-columns: repeat(3, 1fr); }
  .series-cards { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner { min-height: 460px; }
  .hero-visual { min-height: 460px; }
  .hero-copy {
    width: min(72%, 560px);
    margin: 24px 0;
    padding: 26px;
  }
  .hero-title { font-size: clamp(1.85rem, 6vw, 2.6rem); }
  .hero-benefits { flex-wrap: wrap; }
  .hero-benefits li { white-space: normal; }
  .home-columns { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .theme-cards { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-signup-row { flex-direction: column; }
  .series-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-logo img { height: 31px; }
  .site-logo-text { font-size: 1.2rem; }
  .site-actions { gap: 6px; }

  .hero-inner,
  .hero-visual { min-height: 440px; }
  .hero-visual img { object-position: center; }
  .hero-copy {
    width: min(82%, 390px);
    margin: 18px 0;
    padding: 20px 18px;
    background: rgba(246, 248, 251, 0.78);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
  }
  .hero-title {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 1.35;
  }
  .hero-subtitle {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.7;
  }
  .hero-signup { margin-top: 14px; }
  .hero-signup-row { gap: 8px; }
  .hero-signup-input,
  .btn-cta-lg {
    width: 100%;
    padding: 11px 13px;
    font-size: 0.9rem;
  }
  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  .hero-benefits li {
    min-width: 0;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    font-size: 0.65rem;
    line-height: 1.4;
    text-align: center;
  }
  .hero-benefits li + li {
    border-left: none;
    padding-left: 0;
  }
  .hero-benefits svg { width: 19px; height: 19px; }
  .home-columns { padding-top: 32px; }
}

/* ============================================================
   PC compact density
   1080px以下のタブレット・スマートフォン表示は既存値を維持する。
   ============================================================ */
@media (min-width: 1081px) {
  /* Header */
  .site-header-inner { height: 72px; gap: 24px; }
  .site-logo img { height: 34px; }
  .site-logo-text { font-size: 1.32rem; }
  .site-nav .nav li a { padding: 6px 10px; font-size: 0.9rem; }
  .site-actions { gap: 10px; }
  .search-toggle { width: 34px; height: 34px; }
  .search-toggle svg { width: 18px; height: 18px; }
  .btn-signin { font-size: 0.88rem; }
  .btn-cta { padding: 10px 20px; font-size: 0.92rem; }
  .btn-cta-lg { padding: 12px 24px; font-size: 0.96rem; }

  /* Homepage hero */
  .hero-inner {
    gap: 28px;
    padding-top: 26px;
    padding-bottom: 34px;
  }
  .hero-title {
    font-size: clamp(2.15rem, 3.9vw, 3.15rem);
    line-height: 1.25;
  }
  .hero-subtitle { margin-top: 14px; font-size: 1.02rem; }
  .hero-signup { margin-top: 20px; }
  .hero-signup-input { padding: 12px 15px; font-size: 0.92rem; }
  .hero-benefits { margin-top: 18px; }
  .hero-benefits li { font-size: 0.74rem; }
  .hero-benefits svg { width: 18px; height: 18px; }
  .hero-visual { min-height: 292px; }

  /* Homepage sections */
  .home-columns { gap: 34px; padding-top: 38px; padding-bottom: 48px; }
  .section-title { gap: 9px; margin-bottom: 16px; font-size: 1.1rem; }
  .dot { width: 8px; height: 8px; }
  .featured-wrap { gap: 16px; }
  .featured-main-media { min-height: 260px; }
  .tag-chip { top: 11px; left: 11px; padding: 3px 8px; font-size: 0.71rem; }
  .featured-main-overlay { padding: 11px 14px 10px; }
  .featured-main-overlay h3 { font-size: 1.1rem; }
  .featured-main-overlay .meta { margin-top: 3px; font-size: 0.73rem; }
  .post-row { gap: 12px; padding: 11px 0; }
  .post-row-media { width: 80px; }
  .post-row-media img,
  .post-row-placeholder { width: 80px; height: 59px; }
  .featured-list .post-row-media { width: 76px; }
  .featured-list .post-row-media img,
  .featured-list .post-row-placeholder { width: 76px; height: 56px; }
  .post-row-tag { font-size: 0.71rem; }
  .post-row-title { font-size: 0.92rem; line-height: 1.48; }
  .featured-list .post-row-title { font-size: 0.88rem; }
  .post-row-date { margin-top: 3px; font-size: 0.72rem; }
  .more-link { margin-top: 12px; font-size: 0.84rem; }
  .empty-note { font-size: 0.82rem; }
  .theme-cards { gap: 11px; }
  .theme-card { gap: 3px; padding: 17px 15px; }
  .theme-card-svg { width: 44px; height: 44px; margin-bottom: 6px; }
  .theme-card.theme-card-science-to-nichijo { gap: 12px; }
  .theme-card-name { font-size: 1rem; }
  .theme-card-desc { font-size: 0.74rem; }
  .series-band { padding: 32px 0 38px; }
  .series-band-head { margin-bottom: 16px; }
  .series-cards { gap: 14px; }
  .series-card h3 { left: 0; right: 0; bottom: 0; padding: 10px 13px 11px; font-size: 0.95rem; }
  .series-chip { top: 10px; left: 10px; font-size: 0.69rem; }

  /* Archives and standard posts */
  .archive { padding: 36px 0 48px; }
  .archive-head { margin-bottom: 22px; }
  .archive-kicker { font-size: 0.82rem; }
  .archive-title { font-size: 1.8rem; }
  .archive-desc { margin-top: 5px; font-size: 0.94rem; }
  .card-grid { gap: 22px; }
  .post-card-body { padding-top: 9px; }
  .post-card-title { font-size: 0.96rem; }
  .post-card-excerpt { margin-top: 4px; font-size: 0.81rem; }
  .pagination { margin-top: 32px; font-size: 0.92rem; }
  .article-header { padding: 40px 0 6px; }
  .article-tag { font-size: 0.82rem; }
  .article-title { margin-top: 7px; font-size: clamp(1.6rem, 3vw, 2.25rem); }
  .article-excerpt { margin-top: 10px; font-size: 0.98rem; }
  .article-meta { gap: 14px; margin-top: 13px; font-size: 0.81rem; }
  .article-feature { padding: 20px 0 6px; }
  .article-content { padding: 22px 0 18px; font-size: 1rem; }
  .gh-content h2 { font-size: 1.36rem; }
  .gh-content h3 { font-size: 1.13rem; }
  .article-cta { margin: 28px 0; padding: 25px 24px; }
  .article-cta h2 { font-size: 1.16rem; }
  .article-cta p { font-size: 0.88rem; }
  .article-comments { margin: 30px 0; }
  .related { padding: 36px 0 44px; }

  /* Longread: body reduction is intentionally limited to about 1px. */
  .longread-header { padding: 56px 0 34px; }
  .longread-kicker { font-size: 0.83rem; }
  .longread-title { margin-top: 13px; font-size: clamp(2.2rem, 4.1vw, 3.55rem); }
  .longread-lead { margin-top: 19px; font-size: 1.05rem; }
  .longread-meta { margin-top: 20px; font-size: 0.8rem; }
  .longread-feature { padding-bottom: 44px; }
  .longread-layout { gap: 54px; padding-top: 26px; padding-bottom: 68px; }
  .longread-toc { top: 94px; padding: 20px 18px 18px; }
  .longread-content { font-size: 1.0625rem; line-height: 2; }
  .longread-content > * + *,
  .longread-content p + p { margin-top: 1.48em; }
  .longread-content h2 { margin-top: 3.4em; font-size: 1.5rem; }
  .longread-content h3 { margin-top: 2.55em; font-size: 1.2rem; }
  .longread-content figure,
  .longread-content .kg-card { margin-top: 2.1em; margin-bottom: 2.1em; }
  .longread-footer { margin-top: 52px; padding-top: 27px; }
  .longread-author > img { width: 58px; height: 58px; }
  .longread-cta { margin-top: 34px; }

  /* Simple post / simple page */
  .simple-header { padding: 44px 0 30px; }
  .simple-kicker { font-size: 0.79rem; }
  .simple-title { margin-top: 11px; font-size: clamp(1.88rem, 3.35vw, 2.85rem); }
  .simple-lead { margin-top: 15px; font-size: 0.99rem; }
  .simple-meta { margin-top: 17px; font-size: 0.78rem; }
  .simple-feature { padding-bottom: 34px; }
  .simple-body { padding-top: 27px; padding-bottom: 60px; }
  .simple-content { font-size: 1.025rem; line-height: 1.9; }
  .simple-content > * + *,
  .simple-content p + p { margin-top: 1.38em; }
  .simple-content h2 { margin-top: 2.7em; font-size: 1.36rem; }
  .simple-content h3 { margin-top: 2.15em; font-size: 1.11rem; }
  .simple-content figure,
  .simple-content .kg-card { margin-top: 1.9em; margin-bottom: 1.9em; }
  .simple-footer { margin-top: 44px; padding-top: 24px; }
  .simple-author > img { width: 52px; height: 52px; }
  .simple-cta { margin-top: 30px; }
  .page-simple-header { padding-bottom: 30px; }
  .page-simple-body { padding-bottom: 70px; }
  .page-simple-spacer { height: 24px; }

  /* Standard page */
  .page-standard-header { padding: 42px 0 28px; }
  .page-standard-title { margin-top: 0; font-size: clamp(2rem, 3.2vw, 2.65rem); }
  .page-standard-lead { margin-top: 14px; font-size: 1.03rem; }
  .page-standard-header-inner::after { margin-top: 18px; }
  .page-standard-feature { padding-bottom: 40px; }
  .page-standard-spacer { height: 22px; }
  .page-standard-body { padding-top: 30px; padding-bottom: 76px; }
  .page-standard-content { font-size: 1.025rem; line-height: 1.94; }
  .page-standard-content > p:first-child { font-size: 1.04rem; line-height: 1.94; }
  .page-standard-content > * + *,
  .page-standard-content p + p { margin-top: 1.42em; }
  .page-standard-content h2 { margin-top: 3.1em; font-size: 1.46rem; }
  .page-standard-content h3 { margin-top: 2.35em; font-size: 1.16rem; }
  .page-standard-content h4 { margin-top: 2em; font-size: 1.01rem; }
  .page-standard-content figure,
  .page-standard-content .kg-card { margin-top: 2.05em; margin-bottom: 2.05em; }

  /* Footer */
  .site-footer { padding: 32px 0 28px; }
  .footer-inner { gap: 15px; }
  .footer-logo { height: 23px; }
  .footer-logo-text { font-size: 1.1rem; }
  .footer-desc { margin-top: 8px; font-size: 0.83rem; }
  .footer-nav .nav { gap: 16px; }
  .footer-nav .nav li a { font-size: 0.81rem; }
  .footer-copy { font-size: 0.74rem; }
}

/* ============================================================
   Tablet compact density
   スマートフォン（600px以下）には影響させない。
   ============================================================ */
@media (min-width: 601px) and (max-width: 1080px) {
  .wrap { padding-right: 18px; padding-left: 18px; }

  /* Header */
  .site-header-inner { height: 64px; }
  .site-logo img { height: 32px; }
  .site-logo-text { font-size: 1.28rem; }
  .site-actions { gap: 7px; }
  .search-toggle { width: 34px; height: 34px; }
  .search-toggle svg { width: 18px; height: 18px; }
  .nav-toggle { padding: 7px; }
  .site-nav { top: 64px; padding: 9px 18px 14px; }
  .site-nav .nav li a { padding: 7px 10px; font-size: 0.88rem; }

  /* Hero */
  .hero-inner,
  .hero-visual { min-height: 420px; }
  .hero-visual { margin-right: -18px; margin-left: -18px; }
  .hero-visual img {
    object-position: center;
    transform: translateX(6%);
  }
  .hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-card-content {
    width: min(56%, 460px);
    padding: 21px 22px;
    background: rgba(248, 250, 253, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 15px;
    box-shadow: 0 8px 26px rgba(10, 33, 74, 0.1);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }
  .hero-title {
    font-size: clamp(1.75rem, 4.6vw, 2.3rem);
    line-height: 1.3;
  }
  .hero-subtitle { margin-top: 10px; font-size: 0.9rem; line-height: 1.7; }
  .hero-signup { margin-top: 14px; }
  .hero-signup-row { gap: 8px; }
  .hero-signup-input,
  .btn-cta-lg { padding: 10px 12px; font-size: 0.86rem; }
  .hero-benefits {
    width: min(56%, 460px);
    gap: 5px;
    margin-top: 11px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(10, 33, 74, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .hero-benefits li { gap: 4px; padding-right: 4px; font-size: 0.66rem; }
  .hero-benefits li + li { padding-left: 5px; }
  .hero-benefits svg { width: 17px; height: 17px; }

  /* Homepage */
  .home-columns { gap: 28px 24px; padding-top: 30px; padding-bottom: 44px; }
  .section-title { gap: 9px; margin-bottom: 15px; font-size: 1.08rem; }
  .dot { width: 8px; height: 8px; }
  .featured-main-media { min-height: 220px; }
  .tag-chip { top: 10px; left: 10px; padding: 3px 8px; font-size: 0.7rem; }
  .featured-main-overlay { padding: 10px 13px; }
  .featured-main-overlay h3 { font-size: 1.04rem; }
  .featured-main-overlay .meta { margin-top: 3px; font-size: 0.72rem; }
  .post-row { gap: 11px; padding: 10px 0; }
  .post-row-media { width: 76px; }
  .post-row-media img,
  .post-row-placeholder { width: 76px; height: 56px; }
  .featured-list .post-row:first-child { padding-top: 10px; }
  .featured-list .post-row-media { width: 72px; }
  .featured-list .post-row-media img,
  .featured-list .post-row-placeholder { width: 72px; height: 53px; }
  .post-row-tag { font-size: 0.7rem; }
  .post-row-title { font-size: 0.9rem; line-height: 1.48; }
  .featured-list .post-row-title { font-size: 0.86rem; }
  .post-row-date { margin-top: 2px; font-size: 0.7rem; }
  .more-link { margin-top: 11px; font-size: 0.82rem; }
  .theme-cards { gap: 10px; }
  .theme-card { padding: 15px 14px; }
  .theme-card-svg { width: 42px; height: 42px; margin-bottom: 5px; }
  .theme-card.theme-card-science-to-nichijo { gap: 11px; }
  .theme-card-name { font-size: 0.96rem; }
  .theme-card-desc { font-size: 0.72rem; }
  .series-band { padding: 30px 0 36px; }
  .series-band-head { margin-bottom: 15px; }
  .series-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .series-card h3 {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px 12px 10px;
    color: var(--navy);
    font-size: 0.91rem;
  }
  .series-chip { top: 9px; left: 9px; font-size: 0.68rem; }

  /* Archives and standard posts */
  .archive { padding: 34px 0 46px; }
  .archive-head { margin-bottom: 22px; }
  .archive-title { font-size: 1.75rem; }
  .archive-desc { margin-top: 5px; font-size: 0.92rem; }
  .card-grid { gap: 20px 16px; }
  .post-card-body { padding-top: 9px; }
  .post-card-title { font-size: 0.96rem; }
  .post-card-excerpt { margin-top: 4px; font-size: 0.81rem; }
  .pagination { margin-top: 30px; }
  .article-header { padding: 38px 0 6px; }
  .article-title { font-size: clamp(1.65rem, 4.5vw, 2.3rem); }
  .article-excerpt { margin-top: 10px; font-size: 0.98rem; }
  .article-meta { margin-top: 14px; font-size: 0.81rem; }
  .article-feature { padding-top: 20px; }
  .article-content { padding-top: 22px; font-size: 1rem; }
  .article-cta { margin: 28px 0; padding: 25px 22px; }
  .article-comments { margin: 30px 0; }
  .related { padding: 34px 0 44px; }

  /* Longread */
  .longread-header { padding: 44px 0 30px; }
  .longread-title { margin-top: 12px; font-size: clamp(2rem, 4.2vw, 3.2rem); }
  .longread-lead { margin-top: 17px; font-size: 1.03rem; }
  .longread-meta { margin-top: 18px; }
  .longread-feature { padding-bottom: 32px; }
  .longread-layout { gap: 22px; padding-top: 22px; padding-bottom: 58px; }
  .longread-toc { padding: 18px 19px; }
  .longread-toc ol { margin-top: 13px; }
  .longread-content { font-size: 1.05rem; line-height: 1.98; }
  .longread-content > * + *,
  .longread-content p + p { margin-top: 1.45em; }
  .longread-content h2 { margin-top: 3.25em; font-size: 1.46rem; }
  .longread-content h3 { margin-top: 2.45em; font-size: 1.17rem; }
  .longread-footer { margin-top: 48px; padding-top: 25px; }

  /* Simple post / page */
  .simple-header { padding: 40px 0 28px; }
  .simple-title { margin-top: 11px; font-size: clamp(1.85rem, 4.4vw, 2.7rem); }
  .simple-lead { margin-top: 15px; font-size: 0.98rem; }
  .simple-meta { margin-top: 17px; }
  .simple-feature { padding-bottom: 30px; }
  .simple-body { padding-top: 24px; padding-bottom: 56px; }
  .simple-content { font-size: 1.02rem; line-height: 1.92; }
  .simple-footer { margin-top: 42px; padding-top: 23px; }
  .page-simple-header { padding-bottom: 28px; }
  .page-simple-body { padding-bottom: 58px; }
  .page-simple-spacer { height: 18px; }

  /* Standard page */
  .page-standard-header { padding: 42px 0 30px; }
  .page-standard-title { margin-top: 0; font-size: clamp(1.95rem, 4.7vw, 3rem); }
  .page-standard-lead { margin-top: 16px; font-size: 1rem; }
  .page-standard-header-inner::after { margin-top: 17px; }
  .page-standard-feature { padding-bottom: 32px; }
  .page-standard-spacer { height: 20px; }
  .page-standard-body { padding-top: 27px; padding-bottom: 62px; }
  .page-standard-content { font-size: 1.02rem; line-height: 1.94; }
  .page-standard-content > p:first-child { font-size: 1.04rem; line-height: 1.94; }
  .page-standard-content h2 { margin-top: 3em; font-size: 1.4rem; }
  .page-standard-content h3 { margin-top: 2.3em; font-size: 1.14rem; }

  /* Footer */
  .site-footer { padding: 30px 0 26px; }
  .footer-inner { gap: 14px; }
  .footer-desc { margin-top: 7px; font-size: 0.82rem; }
  .footer-nav .nav { gap: 15px; }
  .footer-nav .nav li a { font-size: 0.8rem; }
}

/* Portrait tablet: feature first, then latest and themes side by side. */
@media (min-width: 721px) and (max-width: 860px) {
  .hero-card-content,
  .hero-benefits { width: min(58%, 460px); }
  .hero-visual img { transform: translateX(7%); }
  .home-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-featured { grid-column: 1 / -1; }
  .col-themes { grid-column: auto; }
  .featured-wrap {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
  }
  .featured-list { margin-top: 0; }
  .featured-list .post-row:first-child { padding-top: 0; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .series-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .hero-visual img { transform: translateX(6%); }
  .hero-benefits li { font-size: 0.62rem; white-space: nowrap; }
}

/* Narrow tablet: retain one column, but avoid oversized cards. */
@media (min-width: 601px) and (max-width: 720px) {
  .hero-card-content,
  .hero-benefits { width: min(58%, 400px); }
  .hero-card-content { padding: 19px 20px; }
  .hero-visual img { transform: translateX(7%); }
  .hero-inner,
  .hero-visual { min-height: 410px; }
  .home-columns { gap: 28px; padding-top: 26px; }
  .featured-main-media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ============================================================
   Smartphone compact density
   長文の可読性を維持しつつ、余白とカード寸法を小さくする。
   ============================================================ */
@media (max-width: 600px) {
  .wrap { padding-right: 16px; padding-left: 16px; }

  .gh-announcement-bar {
    padding: 6px 38px 6px 12px !important;
    font-size: 0.68rem !important;
    line-height: 1.5 !important;
  }
  .gh-announcement-bar-content,
  .gh-announcement-bar-content p { line-height: inherit !important; }

  /* Header */
  .site-header-inner { height: 60px; }
  .site-logo img { height: 28px; }
  .site-logo-text { font-size: 1.1rem; }
  .site-actions { gap: 3px; }
  .search-toggle { width: 32px; height: 32px; }
  .search-toggle svg { width: 18px; height: 18px; }
  .nav-toggle { padding: 6px; }
  .site-nav { top: 60px; padding: 8px 16px 12px; }
  .site-nav .nav li a { padding: 7px 9px; font-size: 0.86rem; }

  /* Mobile hero: artwork is decorative; only the content determines height. */
  .hero { background: var(--field); }
  .hero-inner {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hero-copy,
  .hero-visual { grid-area: auto; min-width: 0; }
  .hero-visual {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 340px;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, transparent 35%, var(--field) 100%),
      linear-gradient(to right, var(--field) 4%, rgba(246, 248, 251, 0.94) 38%, rgba(246, 248, 251, 0.3) 100%);
  }
  .hero-visual img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% top;
    transform: none;
  }
  .hero-copy {
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-card-content {
    width: 100%;
    margin: 0;
    padding: 22px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem);
    line-height: 1.4;
  }
  .hero-subtitle { margin-top: 14px; font-size: 0.9375rem; line-height: 1.8; }
  .hero-signup { margin-top: 22px; max-width: none; }
  .hero-signup .hero-signup-input,
  .hero-signup .btn-cta-lg { min-height: 48px; padding: 12px; font-size: 1rem; }
  .hero-benefits {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    margin: 18px 0 0;
    padding: 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-benefits li {
    flex-direction: row;
    gap: 10px;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: left;
    white-space: normal;
  }
  .hero-benefits li + li { border: 0; padding: 0; }
  .hero-benefits svg { width: 20px; height: 20px; }

  /* Homepage */
  .home-columns { gap: 28px; padding-top: 24px; padding-bottom: 36px; }
  .section-title { gap: 8px; margin-bottom: 12px; font-size: 1rem; }
  .dot { width: 7px; height: 7px; }
  .featured-main-media { aspect-ratio: 16 / 9; }
  .tag-chip { top: 9px; left: 9px; padding: 3px 7px; font-size: 0.68rem; }
  .featured-main-overlay { padding: 9px 11px; }
  .featured-main-overlay h3 { font-size: 1rem; line-height: 1.48; }
  .featured-main-overlay .meta { margin-top: 2px; font-size: 0.7rem; }
  .featured-list { margin-top: 3px; }
  .featured-list .post-row:first-child { padding-top: 9px; }
  .post-row { gap: 10px; padding: 9px 0; }
  .post-row-media,
  .featured-list .post-row-media { width: 72px; }
  .post-row-media img,
  .post-row-placeholder,
  .featured-list .post-row-media img,
  .featured-list .post-row-placeholder { width: 72px; height: 53px; }
  .post-row-tag { font-size: 0.68rem; }
  .post-row-title,
  .featured-list .post-row-title { font-size: 0.86rem; line-height: 1.46; }
  .post-row-date { margin-top: 2px; font-size: 0.69rem; }
  .more-link { margin-top: 10px; font-size: 0.8rem; }
  .theme-cards { gap: 9px; }
  .theme-card { gap: 2px; padding: 13px 12px; }
  .theme-card-svg { width: 38px; height: 38px; margin-bottom: 4px; }
  .theme-card.theme-card-science-to-nichijo { gap: 10px; }
  .theme-card-name { font-size: 0.92rem; }
  .theme-card-desc { font-size: 0.68rem; }
  .series-band { padding: 26px 0 30px; }
  .series-band-head { margin-bottom: 12px; }
  .series-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .series-card h3 {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 9px 9px;
    color: var(--navy);
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .series-chip { top: 8px; left: 8px; padding: 2px 7px; font-size: 0.64rem; }

  /* Archives and standard posts */
  .archive { padding: 28px 0 38px; }
  .archive-head { margin-bottom: 18px; }
  .archive-kicker { font-size: 0.8rem; }
  .archive-title { font-size: 1.58rem; }
  .archive-desc { margin-top: 4px; font-size: 0.88rem; }
  .card-grid { gap: 24px; }
  .post-card-body { padding-top: 8px; }
  .post-card-title { font-size: 0.94rem; }
  .post-card-excerpt { margin-top: 4px; font-size: 0.79rem; }
  .pagination { margin-top: 26px; font-size: 0.88rem; }
  .article-header { padding: 30px 0 5px; }
  .article-tag { font-size: 0.8rem; }
  .article-title { margin-top: 7px; font-size: clamp(1.55rem, 7.5vw, 2rem); }
  .article-excerpt { margin-top: 9px; font-size: 0.94rem; }
  .article-meta { gap: 10px; margin-top: 12px; font-size: 0.78rem; }
  .article-feature { padding: 17px 0 5px; }
  .article-content { padding: 19px 0 16px; font-size: 0.98rem; }
  .gh-content > * + * { margin-top: 1.32em; }
  .gh-content h2 { margin-top: 2em; font-size: 1.3rem; }
  .gh-content h3 { margin-top: 1.65em; font-size: 1.08rem; }
  .article-cta { margin: 24px 0; padding: 22px 18px; }
  .article-cta h2 { font-size: 1.12rem; }
  .article-cta p { font-size: 0.84rem; }
  .article-comments { margin: 26px 0; }
  .related { padding: 30px 0 36px; }

  /* Longread */
  .longread-header { padding: 30px 0 24px; }
  .longread-title { margin-top: 10px; font-size: clamp(1.65rem, 7.8vw, 2.12rem); }
  .longread-lead { margin-top: 14px; font-size: 0.96rem; line-height: 1.82; }
  .longread-meta { margin-top: 16px; }
  .longread-feature { padding-bottom: 27px; }
  .longread-feature figcaption { padding: 0 16px; }
  .longread-layout { gap: 19px; padding-top: 20px; padding-bottom: 52px; }
  .longread-toc { padding: 17px 15px; }
  .longread-toc ol { margin-top: 12px; }
  .longread-content { font-size: 1.02rem; line-height: 1.95; }
  .longread-content > * + *,
  .longread-content p + p { margin-top: 1.4em; }
  .longread-content h2 { margin-top: 3em; font-size: 1.34rem; }
  .longread-content h3 { margin-top: 2.3em; font-size: 1.11rem; }
  .longread-content figure,
  .longread-content .kg-card { margin-top: 1.9em; margin-bottom: 1.9em; }
  .longread-footer { margin-top: 40px; padding-top: 23px; }
  .longread-cta { margin-top: 28px; }

  /* Simple post / page */
  .simple-header { padding: 29px 0 23px; }
  .simple-title { margin-top: 9px; font-size: clamp(1.58rem, 7.5vw, 2rem); }
  .simple-lead { margin-top: 13px; font-size: 0.93rem; line-height: 1.82; }
  .simple-meta { margin-top: 14px; }
  .simple-feature { padding-bottom: 23px; }
  .simple-feature figcaption { padding: 0 16px; }
  .simple-body { padding-top: 20px; padding-bottom: 48px; }
  .simple-content { font-size: 1rem; line-height: 1.9; }
  .simple-content h2 { margin-top: 2.5em; font-size: 1.26rem; }
  .simple-content h3 { margin-top: 2em; font-size: 1.08rem; }
  .simple-footer { margin-top: 36px; padding-top: 21px; }
  .simple-cta { margin-top: 25px; }
  .page-simple-header { padding-bottom: 23px; }
  .page-simple-body { padding-bottom: 50px; }
  .page-simple-spacer { height: 14px; }

  /* Standard page */
  .page-standard-header { padding: 31px 0 24px; }
  .page-standard-title { margin-top: 0; font-size: clamp(1.65rem, 7.7vw, 2.08rem); }
  .page-standard-title { gap: 10px; }
  .page-standard-title::before { width: 7px; height: 7px; }
  .page-standard-lead { margin-top: 13px; font-size: 0.95rem; line-height: 1.82; }
  .page-standard-header-inner::after { margin-top: 14px; }
  .page-standard-feature { padding-bottom: 25px; }
  .page-standard-feature figcaption { padding: 0 16px; }
  .page-standard-spacer { height: 14px; }
  .page-standard-body { padding-top: 22px; padding-bottom: 52px; }
  .page-standard-content { font-size: 1rem; line-height: 1.9; }
  .page-standard-content > p:first-child { font-size: 1.02rem; line-height: 1.9; }
  .page-standard-content > * + *,
  .page-standard-content p + p { margin-top: 1.34em; }
  .page-standard-content h2 { margin-top: 2.7em; font-size: 1.3rem; }
  .page-standard-content h3 { margin-top: 2.1em; font-size: 1.1rem; }
  .page-standard-content figure,
  .page-standard-content .kg-card { margin-top: 1.85em; margin-bottom: 1.85em; }

  /* Footer */
  .site-footer { padding: 26px 0 22px; }
  .footer-inner { gap: 12px; }
  .footer-logo { height: 22px; }
  .footer-desc { margin-top: 6px; font-size: 0.79rem; }
  .footer-nav .nav { gap: 12px; }
  .footer-nav .nav li a { font-size: 0.77rem; }
  .footer-copy { font-size: 0.71rem; }
}

@media (max-width: 340px) {
  .hero-title { font-size: 1.6rem; }
}

/* ============================================================
   Writing page
   理念・沿革・特集解説など、固定ページの長文を読むためのテンプレート。
   ============================================================ */
.page-writing {
  --longread-width: 740px;
  color: #152B50;
  background: var(--white);
}
.page-writing-header {
  padding: 58px 0 38px;
  background: linear-gradient(180deg, var(--field) 0%, var(--white) 100%);
}
.page-writing-header-inner { max-width: 960px; }
.page-writing-header-inner::after {
  display: block;
  width: min(100%, var(--longread-width));
  height: 1px;
  margin-top: 24px;
  background: rgba(118, 129, 149, 0.22);
  content: "";
}
.page-writing-title {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  max-width: 920px;
  margin-top: 0;
  font-size: clamp(2.25rem, 4.3vw, 3.7rem);
  line-height: 1.38;
}
.page-writing-title::before {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 0.58em;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.page-writing-lead {
  max-width: var(--longread-width);
  margin-top: 20px;
  font-size: 1.06rem;
  line-height: 1.9;
}
.page-writing-feature { padding-bottom: 46px; }
.page-writing-feature img { max-height: 640px; }
.page-writing-spacer { height: 30px; }
.page-writing-layout { padding-top: 28px; padding-bottom: 78px; }
.page-writing-content > p:first-child {
  color: #233A60;
  font-size: 1.06em;
  font-weight: 500;
}
.page-writing-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.75;
}
.page-writing-content th,
.page-writing-content td {
  padding: 12px 14px;
  border: 1px solid rgba(118, 129, 149, 0.25);
  text-align: left;
  vertical-align: top;
}
.page-writing-content th {
  color: var(--navy);
  background: var(--field);
  font-weight: 700;
}

@media (min-width: 1081px) {
  .page-writing-header { padding: 46px 0 30px; }
  .page-writing-title { font-size: clamp(2rem, 3.2vw, 2.65rem); }
  .page-writing-lead { margin-top: 16px; font-size: 1.02rem; }
  .page-writing-header-inner::after { margin-top: 19px; }
  .page-writing-feature { padding-bottom: 40px; }
  .page-writing-layout { gap: 54px; padding-top: 25px; padding-bottom: 68px; }
  .page-writing-content { font-size: 1.0625rem; line-height: 2; }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .page-writing-header { padding: 38px 0 27px; }
  .page-writing-title { font-size: clamp(1.95rem, 4.7vw, 3rem); }
  .page-writing-lead { margin-top: 15px; font-size: 1rem; }
  .page-writing-header-inner::after { margin-top: 17px; }
  .page-writing-feature { padding-bottom: 31px; }
  .page-writing-layout { gap: 22px; padding-top: 22px; padding-bottom: 58px; }
  .page-writing-content { font-size: 1.05rem; line-height: 1.98; }
}

@media (max-width: 600px) {
  .page-writing-header { padding: 28px 0 22px; }
  .page-writing-title {
    gap: 10px;
    font-size: clamp(1.65rem, 7.7vw, 2.08rem);
    line-height: 1.42;
  }
  .page-writing-title::before { width: 7px; height: 7px; }
  .page-writing-lead { margin-top: 13px; font-size: 0.95rem; line-height: 1.82; }
  .page-writing-header-inner::after { margin-top: 14px; }
  .page-writing-feature { padding-bottom: 26px; }
  .page-writing-feature figcaption { padding: 0 16px; }
  .page-writing-spacer { height: 14px; }
  .page-writing-layout { gap: 19px; padding-top: 20px; padding-bottom: 52px; }
  .page-writing-content { font-size: 1.02rem; line-height: 1.95; }
}

/* ============================================================
   Standard post
   通常の記事運用に使う、情報量と読みやすさの基準テンプレート。
   ============================================================ */
.article-standard {
  --standard-post-width: 740px;
  color: #152B50;
  background: var(--white);
}
.standard-post-header {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, var(--field) 0%, var(--white) 100%);
}
.standard-post-header-inner { max-width: 940px; }
.standard-post-header-inner::after {
  display: block;
  width: min(100%, var(--standard-post-width));
  height: 1px;
  margin-top: 23px;
  background: rgba(118, 129, 149, 0.22);
  content: "";
}
.standard-post-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
}
.standard-post-tag::before {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.standard-post-title {
  max-width: 900px;
  margin-top: 11px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.012em;
}
.standard-post-lead {
  max-width: var(--standard-post-width);
  margin-top: 17px;
  color: #41506A;
  font-size: 1.04rem;
  line-height: 1.85;
}
.standard-post-meta { margin-top: 18px; font-size: 0.82rem; }
.standard-post-main { max-width: 1160px; }
.standard-post-feature { padding: 0 0 42px; }
.standard-post-feature-inner { width: 100%; max-width: 1040px; }
.standard-post-feature img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
}
.standard-post-feature figcaption {
  max-width: var(--standard-post-width);
  margin: 10px auto 0;
  text-align: left;
}
.standard-post-body {
  max-width: calc(var(--standard-post-width) + 48px);
  margin-right: auto;
  margin-left: auto;
  padding-top: 32px;
  padding-bottom: 76px;
}
.standard-post-content {
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.98;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
.standard-post-content > :first-child { margin-top: 0; }
.standard-post-content > p:first-child {
  color: #233A60;
  font-size: 1.04em;
  font-weight: 500;
}
.standard-post-content > * + *,
.standard-post-content p + p { margin-top: 1.45em; }
.standard-post-content h2 {
  position: relative;
  margin-top: 3.25em;
  padding: 0 0 0.68em 21px;
  border-bottom: 2px solid var(--navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.55;
}
.standard-post-content h2::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.standard-post-content h3 {
  margin-top: 2.45em;
  padding-left: 13px;
  border-left: 4px solid var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.62;
}
.standard-post-content h2 + p,
.standard-post-content h3 + p { margin-top: 1.15em; }
.standard-post-content blockquote {
  margin-top: 2em;
  margin-bottom: 2em;
  padding: 1.3em 1.5em;
  font-size: 1rem;
  line-height: 1.92;
}
.standard-post-content figure,
.standard-post-content .kg-card { margin-top: 2.15em; margin-bottom: 2.15em; }
.standard-post-content .kg-width-wide,
.standard-post-content .kg-width-full {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  transform: none;
}
.standard-post-content .kg-width-full img { border-radius: 8px; }
.standard-post-content .kg-image-card img,
.standard-post-content .kg-gallery-image img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
.standard-post-content .kg-gallery-card,
.standard-post-content .kg-gallery-container,
.standard-post-content .kg-gallery-row {
  width: 100%;
  max-width: 100%;
}
.standard-post-content .kg-gallery-container {
  overflow: hidden;
  border-radius: 8px;
}
.standard-post-content .kg-gallery-row { align-items: flex-start; }
.standard-post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.75;
}
.standard-post-content th,
.standard-post-content td {
  padding: 12px 14px;
  border: 1px solid rgba(118, 129, 149, 0.25);
  text-align: left;
  vertical-align: top;
}
.standard-post-content th { background: var(--field); font-weight: 700; }
.standard-post-footer {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(118, 129, 149, 0.25);
}
.standard-post-author > img { width: 58px; height: 58px; }
.standard-post-cta { margin-top: 34px; margin-bottom: 0; }
.standard-post-related { border-top: 1px solid rgba(118, 129, 149, 0.18); }

@media (min-width: 1081px) {
  .standard-post-header { padding: 44px 0 28px; }
  .standard-post-title { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
  .standard-post-lead { margin-top: 14px; font-size: 1rem; }
  .standard-post-meta { margin-top: 15px; }
  .standard-post-header-inner::after { margin-top: 18px; }
  .standard-post-main {
    display: flow-root;
    max-width: 980px;
    padding-top: 34px;
    padding-bottom: 64px;
  }
  .standard-post-main.is-without-feature {
    display: block;
    max-width: calc(var(--standard-post-width) + 48px);
  }
  .standard-post-feature {
    float: left;
    width: 340px;
    margin: 0 44px 26px 0;
    padding: 0;
  }
  .standard-post-feature img {
    max-height: 390px;
    object-fit: contain;
    background: var(--field);
  }
  .standard-post-feature figcaption { margin-top: 9px; }
  .standard-post-body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .standard-post-content { font-size: 1.04rem; line-height: 1.94; }
  .standard-post-content h2 { margin-top: 3em; font-size: 1.42rem; }
  .standard-post-content h3 { margin-top: 2.25em; font-size: 1.15rem; }
  .standard-post-footer { clear: both; margin-top: 46px; padding-top: 25px; }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .standard-post-header { padding: 37px 0 26px; }
  .standard-post-title { font-size: clamp(1.75rem, 4.5vw, 2.45rem); }
  .standard-post-lead { margin-top: 13px; font-size: 0.97rem; }
  .standard-post-meta { margin-top: 14px; }
  .standard-post-header-inner::after { margin-top: 16px; }
  .standard-post-main { max-width: 788px; }
  .standard-post-feature { padding-bottom: 28px; }
  .standard-post-feature-inner { max-width: 680px; margin: 0 auto; }
  .standard-post-body { padding-top: 23px; padding-bottom: 56px; }
  .standard-post-content { font-size: 1.02rem; line-height: 1.92; }
  .standard-post-content h2 { margin-top: 2.8em; font-size: 1.35rem; }
  .standard-post-content h3 { margin-top: 2.15em; font-size: 1.12rem; }
  .standard-post-footer { margin-top: 40px; padding-top: 23px; }
}

@media (max-width: 600px) {
  .standard-post-header { padding: 28px 0 22px; }
  .standard-post-tag { font-size: 0.76rem; }
  .standard-post-tag::before { width: 7px; height: 7px; }
  .standard-post-title {
    margin-top: 8px;
    font-size: clamp(1.55rem, 7.5vw, 1.95rem);
    line-height: 1.43;
  }
  .standard-post-lead { margin-top: 11px; font-size: 0.91rem; line-height: 1.78; }
  .standard-post-meta { gap: 9px; margin-top: 12px; font-size: 0.74rem; }
  .standard-post-header-inner::after { margin-top: 14px; }
  .standard-post-feature { padding-bottom: 23px; }
  .standard-post-feature-inner { padding: 0; }
  .standard-post-feature img { max-height: none; border-radius: 0; }
  .standard-post-feature figcaption { padding: 0 16px; }
  .standard-post-body { padding-top: 20px; padding-bottom: 48px; }
  .standard-post-content { font-size: 1rem; line-height: 1.9; }
  .standard-post-content > * + *,
  .standard-post-content p + p { margin-top: 1.35em; }
  .standard-post-content h2 { margin-top: 2.6em; padding-left: 18px; font-size: 1.28rem; }
  .standard-post-content h2::before { width: 8px; height: 8px; }
  .standard-post-content h3 { margin-top: 2em; padding-left: 11px; font-size: 1.08rem; }
  .standard-post-content figure,
  .standard-post-content .kg-card { margin-top: 1.8em; margin-bottom: 1.8em; }
  .standard-post-footer { margin-top: 35px; padding-top: 21px; }
  .standard-post-author { gap: 13px; }
  .standard-post-author > img { width: 50px; height: 50px; }
  .standard-post-cta { margin-top: 25px; }
}

/* ============================================================
   Template alignment
   01.Post Standardを全テンプレートのタイトルと画像回り込みの基準にする。
   ============================================================ */
.template-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.4;
}

@media (min-width: 1081px) {
  .template-title {
    font-size: clamp(38px, 2.8vw, 42px);
    line-height: 1.36;
  }

  html body .standard-post-content h2,
  html body .longread-content h2,
  html body .simple-content h2,
  html body .page-standard-content h2 {
    font-size: clamp(24px, 1.8vw, 27px) !important;
    line-height: 1.5 !important;
  }

  html body .standard-post-content h3,
  html body .longread-content h3,
  html body .simple-content h3,
  html body .page-standard-content h3 {
    font-size: clamp(19px, 1.4vw, 21px) !important;
    line-height: 1.55 !important;
  }

  .longread-main,
  .simple-body,
  .page-standard-body {
    display: flow-root;
  }

  .simple-body:has(> .template-flow-feature),
  .page-standard-body:has(> .template-flow-feature) {
    max-width: 980px;
  }

  .template-flow-feature {
    float: left;
    width: 340px;
    margin: 0 44px 26px 0;
    padding: 0;
  }

  .template-flow-feature > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .template-flow-feature img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    background: var(--field);
  }

  .template-flow-feature figcaption {
    margin-top: 9px;
    padding: 0;
  }

  /* A heading beside a floated feature image must keep its rule inside the
     text column. Once it clears the image, the block naturally returns to
     the full content width. */
  .standard-post-main:has(> .standard-post-feature) .standard-post-content h2,
  .longread-main:has(> .template-flow-feature) .longread-content h2,
  .simple-body:has(> .template-flow-feature) .simple-content h2,
  .page-standard-body:has(> .template-flow-feature) .page-standard-content h2 {
    display: flow-root;
  }

  .longread-footer,
  .simple-footer {
    clear: both;
  }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .template-title {
    font-size: clamp(1.75rem, 3.6vw, 2.125rem);
    line-height: 1.34;
  }

  html body .standard-post-content h2,
  html body .longread-content h2,
  html body .simple-content h2,
  html body .page-standard-content h2 {
    font-size: clamp(20px, 2.3vw, 22px) !important;
    line-height: 1.5 !important;
  }

  html body .standard-post-content h3,
  html body .longread-content h3,
  html body .simple-content h3,
  html body .page-standard-content h3 {
    font-size: clamp(17px, 1.9vw, 18px) !important;
    line-height: 1.55 !important;
  }

  .standard-post-main,
  .longread-main,
  .simple-body,
  .page-standard-body {
    display: flow-root;
  }

  .standard-post-feature,
  .template-flow-feature {
    float: left;
    width: clamp(240px, 38vw, 320px);
    margin: 0 28px 22px 0;
    padding: 0;
  }

  .standard-post-feature-inner,
  .template-flow-feature > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .standard-post-feature img,
  .template-flow-feature img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: var(--field);
  }

  .standard-post-feature figcaption,
  .template-flow-feature figcaption {
    margin-top: 9px;
    padding: 0;
  }

  .standard-post-body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
  }

  .standard-post-main:has(> .standard-post-feature) .standard-post-content h2,
  .longread-main:has(> .template-flow-feature) .longread-content h2,
  .simple-body:has(> .template-flow-feature) .simple-content h2,
  .page-standard-body:has(> .template-flow-feature) .page-standard-content h2 {
    display: flow-root;
  }

  .standard-post-footer,
  .longread-footer,
  .simple-footer {
    clear: both;
  }
}

@media (max-width: 600px) {
  .template-title {
    font-size: clamp(1.45rem, 6.2vw, 1.75rem);
    line-height: 1.34;
  }

  html body .standard-post-content h2,
  html body .longread-content h2,
  html body .simple-content h2,
  html body .page-standard-content h2 {
    font-size: clamp(18px, 4.8vw, 20px) !important;
    line-height: 1.5 !important;
  }

  html body .standard-post-content h3,
  html body .longread-content h3,
  html body .simple-content h3,
  html body .page-standard-content h3 {
    font-size: clamp(16px, 4.2vw, 17px) !important;
    line-height: 1.55 !important;
  }

  .template-flow-feature {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .standard-post-feature img,
  .template-flow-feature img {
    max-height: 420px;
    max-height: min(52svh, 420px);
    object-fit: contain;
    background: var(--field);
  }
}


/* ============================================================
   フォント最終指定（Ghostカスタムフォント対応）
   未設定時はNoto Sans JP系。引用のみブランド用途の明朝を維持する。
   ============================================================ */
html body,
html body p, html body a, html body span, html body li,
html body time, html body figcaption, html body blockquote cite,
html body input, html body button, html body textarea {
  font-family: var(--font-gothic) !important;
}

html body h1, html body h2, html body h3,
html body h4, html body h5, html body h6,
html body .section-title, html body .post-row-title,
html body .post-card-title, html body .featured-main-overlay h3,
html body .series-card h3, html body .theme-card-name,
html body .article-title, html body .gh-content h2, html body .gh-content h3 {
  font-family: var(--font-heading) !important;
}
/* 引用のみ明朝（ブランド限定用途） */
html body .gh-content blockquote,
html body .gh-content blockquote p {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif !important;
}
@media (max-width: 600px) {
  .reader-auth-fields,
  .reader-auth-fields.is-signup { grid-template-columns: 1fr; }
  .reader-auth-modal { padding: 14px; }
  .reader-auth-dialog { max-height: calc(100vh - 28px); padding: 32px 20px 26px; border-radius: 14px; }
  .reader-auth-dialog h2 { font-size: 1.42rem; }
  .site-nav-reader-actions { align-items: stretch; flex-direction: column; }
  .site-nav-reader-actions .btn-signin,
  .site-nav-reader-actions .btn-cta { justify-content: center; text-align: center; }
  .reader-discussion-intro { padding: 22px 20px; }
  .reader-discussion-intro h2 { font-size: 1.08rem; }
}
