/* 南国海洋研究所 — static site */
:root {
  --ink: #1d2b3a;
  --ink-soft: #4a5966;
  --navy: #22364c;
  --teal: #1489a8;
  --teal-soft: #e6f3f7;
  --gray: #eef0f2;
  --line: #dde2e6;
  --bg: #ffffff;
  --max: 1160px;
  --header-h: 92px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Jost", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .35s, box-shadow .35s, height .35s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -80px; background: linear-gradient(rgba(8,18,28,.68), rgba(8,18,28,.35) 55%, rgba(8,18,28,0)); transition: opacity .35s; pointer-events: none; }
@media (min-width: 861px) {
  body:not(.is-sub) .site-header:not(.is-solid) .gnav a { text-shadow: 0 1px 6px rgba(0,0,0,.45); }
  body:not(.is-sub) .site-header:not(.is-solid) .gnav svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
}
body:not(.is-sub) .site-header:not(.is-solid) .logo-white { filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.site-header .inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; width: min(1320px, 100% - 40px); margin-inline: auto; }
.site-logo { display: block; flex: 0 0 auto; }
.site-logo img { width: 220px; height: auto; }
.site-logo .logo-color { display: none; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.gnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; padding: 8px 6px; text-decoration: none; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; transition: color .25s, background .25s; }
.gnav a:hover { background: rgba(255,255,255,.12); }
.gnav svg { width: 28px; height: 28px; stroke: currentColor; }
.site-header.is-solid { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08); height: 76px; }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .logo-white { display: none; }
.site-header.is-solid .logo-color { display: block; }
.site-header.is-solid .gnav a { color: var(--ink); }
.site-header.is-solid .gnav svg { stroke: var(--teal); }
.site-header.is-solid .gnav a:hover { background: var(--teal-soft); }
/* ヘッダーが最初から白いページ（記事・一覧など） */
body.is-sub .site-header { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08); height: 76px; }
body.is-sub .site-header::before { display: none; }
body.is-sub .site-header .logo-white { display: none; }
body.is-sub .site-header .logo-color { display: block; }
body.is-sub .gnav a { color: var(--ink); }
body.is-sub .gnav svg { stroke: var(--teal); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 30px; height: 30px; stroke: currentColor; }
.site-header.is-solid .nav-toggle, body.is-sub .nav-toggle { color: var(--ink); }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-menu { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }
body.nav-open { overflow: hidden; }

/* ===== Hero ===== */
.hero { position: relative; height: min(100vh, 780px); min-height: 520px; overflow: hidden; background: #0d1a26; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1.0); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(rgba(5,15,25,0), rgba(5,15,25,.55)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: max(20px, calc((100% - 1320px) / 2)); bottom: 72px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-copy .en { font-family: var(--font-en); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; opacity: .9; margin: 0 0 10px; }
.hero-copy .lead { font-size: clamp(22px, 3.2vw, 38px); font-weight: 700; letter-spacing: .08em; line-height: 1.5; margin: 0; }
.hero-arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 56px; height: 72px; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .85; }
.hero-arrow:hover { opacity: 1; }
.hero-arrow svg { width: 34px; height: 54px; stroke: currentColor; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 24px; translate: -50% 0; display: flex; gap: 10px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dots button.is-active { background: #fff; transform: scale(1.25); }

/* ===== Notice band ===== */
.notice { padding: 44px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.notice .label { display: inline-block; min-width: 128px; padding: 3px 18px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.notice ul { list-style: none; margin: 14px 0 0; padding: 0; }
.notice li { font-size: 15px; line-height: 1.9; }
.notice a { color: var(--teal); }
.notice time { color: var(--ink-soft); margin-right: .8em; font-family: var(--font-en); }

/* ===== Big cards ===== */
.bigcards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 52px 0 12px; }
.bigcard { display: flex; align-items: center; gap: 26px; padding: 30px 30px; background: var(--gray); border-radius: 10px; text-decoration: none; transition: background .25s, transform .25s; }
.bigcard:hover { background: #e3e7ea; transform: translateY(-2px); }
.bigcard .icon { flex: 0 0 auto; width: 86px; height: 86px; border-radius: 50%; border: 1.6px solid var(--ink); display: grid; place-items: center; background: #fff; }
.bigcard .icon svg { width: 40px; height: 40px; stroke: var(--ink); }
.bigcard .ttl { font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: .04em; }
.bigcard .sub { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.bigcard .arrow { margin-left: auto; width: 18px; height: 34px; stroke: var(--ink-soft); flex: 0 0 auto; }

/* ===== Section heading ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--gray); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head svg { width: 34px; height: 34px; stroke: var(--ink-soft); display: block; margin: 0 auto 8px; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .1em; font-weight: 700; }
.sec-head .en { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: .34em; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; }
.sec-head::after { content: ""; display: block; width: min(300px, 60%); height: 1px; background: var(--ink); margin: 26px auto 0; opacity: .5; }

/* ===== Themes ===== */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.theme { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; }
.theme figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.theme figure img { width: 100%; height: 100%; object-fit: cover; }
.theme .body { padding: 22px 24px 26px; }
.theme .num { font-family: var(--font-en); color: var(--teal); font-size: 13px; letter-spacing: .2em; }
.theme h3 { margin: 4px 0 8px; font-size: 19px; letter-spacing: .04em; }
.theme p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ===== Post cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.card { text-decoration: none; display: block; }
.card figure { margin: 0 0 12px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--gray); }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover figure img { transform: scale(1.05); }
.card .meta { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.card .meta time { font-family: var(--font-en); letter-spacing: .06em; }
.chip { display: inline-block; padding: 1px 10px; font-size: 11.5px; border: 1px solid var(--teal); color: var(--teal); border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.card h3 { margin: 6px 0 0; font-size: 16.5px; line-height: 1.6; font-weight: 700; }
.card:hover h3 { color: var(--teal); }

/* ===== News list ===== */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 120px 1fr 18px; align-items: center; gap: 16px; padding: 20px 8px; text-decoration: none; transition: background .2s; }
.news-list a:hover { background: var(--teal-soft); }
.news-list time { font-family: var(--font-en); color: var(--ink-soft); letter-spacing: .06em; }
.news-list .chip { justify-self: start; }
.news-list .ttl { font-size: 15.5px; }
.news-list svg { width: 10px; height: 18px; stroke: var(--ink-soft); }

.more { text-align: center; margin-top: 44px; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 40px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; letter-spacing: .08em; background: #fff; transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 9px; height: 15px; stroke: currentColor; }

/* ===== Access ===== */
.access { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.access figure { margin: 0; border-radius: 10px; overflow: hidden; }
.access figure figcaption { font-size: 12.5px; color: var(--ink-soft); padding-top: 8px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 8.5em; background: var(--navy); color: #fff; font-weight: 700; border-bottom-color: #3a4f66; }
.access .btn { margin-top: 26px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #d9e2ea; padding: 56px 0 30px; font-size: 13.5px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.site-footer img { width: 220px; }
.site-footer .tagline { margin: 12px 0 0; font-size: 13px; color: #b7c4d0; }
.fnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.fnav a { text-decoration: none; }
.fnav a:hover { color: #fff; text-decoration: underline; }
.site-footer .fiction { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12.5px; color: #aebbc8; }
.site-footer .copy { margin: 8px 0 0; font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: #8fa0b0; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .bigcard { gap: 18px; padding: 26px 22px; }
  .bigcard .icon { width: 70px; height: 70px; }
  .bigcard .icon svg { width: 34px; height: 34px; }
  .bigcard .ttl { font-size: 19px; }
}
@media (max-width: 980px) {
  .gnav a { min-width: 74px; font-size: 11.5px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .themes { gap: 18px; }
  .theme .body { padding: 18px 18px 22px; }
  .theme h3 { font-size: 17px; }
  .access { grid-template-columns: 1fr; }
  .access figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
}
@media (max-width: 760px) {
  .themes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-logo img { width: 180px; }
  .nav-toggle { display: block; }
  .gnav { position: fixed; inset: 0; background: #fff; padding: 84px 24px 30px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
  .gnav.is-open { transform: none; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { flex-direction: row; gap: 16px; color: var(--ink); font-size: 16px; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav svg { stroke: var(--teal); }
  .nav-toggle { position: relative; z-index: 60; }
  .nav-open .nav-toggle { color: var(--ink); }
  .site-header.is-solid, body.is-sub .site-header { height: 64px; }
  .hero { height: 64vh; min-height: 420px; }
  .hero-copy { bottom: 58px; }
  .hero-arrow { display: none; }
  .bigcards { grid-template-columns: 1fr; gap: 16px; padding-top: 36px; }
  .bigcard { padding: 22px; gap: 18px; }
  .bigcard .icon { width: 68px; height: 68px; }
  .bigcard .icon svg { width: 32px; height: 32px; }
  .bigcard .ttl { font-size: 18px; }
  .section { padding: 60px 0; }
  .news-list a { grid-template-columns: 1fr 14px; gap: 6px 12px; padding: 16px 4px; }
  .news-list time, .news-list .chip { grid-column: 1; }
  .news-list .ttl { grid-column: 1; }
  .news-list svg { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide img, .reveal, .card figure img { transition: none !important; }
  .hero-slide img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== Sub pages ===================== */
body.is-sub main { padding-top: 76px; }
.page-head { position: relative; background: var(--navy) center / cover no-repeat; color: #fff; padding: 64px 0 56px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,38,58,.92), rgba(20,38,58,.62)); }
.page-head .container { position: relative; }
.page-head .en { font-family: var(--font-en); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; opacity: .85; margin: 0 0 6px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: .08em; line-height: 1.45; }
.breadcrumb { font-size: 12.5px; margin: 0 0 22px; opacity: .9; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { opacity: .8; }

.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* Article */
.entry { padding: 56px 0 24px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.entry-meta time { font-family: var(--font-en); letter-spacing: .06em; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--teal); color: #fff; }
.entry-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; letter-spacing: .04em; margin: 12px 0 22px; }
.entry-eyecatch { margin: 0 0 34px; border-radius: 10px; overflow: hidden; }
.entry-eyecatch img { width: 100%; }
.entry-body { font-size: 16px; line-height: 2; }
.entry-body p { margin: 0 0 1.4em; }
.entry-body h3 { font-size: 21px; margin: 2.2em 0 .9em; padding: .2em 0 .2em .8em; border-left: 4px solid var(--teal); line-height: 1.5; }
.entry-body h4 { font-size: 17.5px; margin: 1.9em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.entry-body img { margin: 1.4em auto; border-radius: 8px; }
.entry-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-body a { color: var(--teal); word-break: break-all; }
.entry-body strong { background: linear-gradient(transparent 62%, #d6eef4 62%); }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.share.bottom { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.share .label { font-family: var(--font-en); font-size: 12px; letter-spacing: .24em; color: var(--ink-soft); align-self: center; margin-right: 6px; }
.share a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: #fff; }
.share .x { background: #111; }
.share .fb { background: #1877f2; }
.share .hb { background: #00a4de; }
.share a:hover { opacity: .85; }

/* Prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 40px 0 10px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--teal); background: var(--teal-soft); }
.pager .dir { font-family: var(--font-en); font-size: 11.5px; letter-spacing: .24em; color: var(--teal); }
.pager .t { font-weight: 700; font-size: 15px; line-height: 1.55; }
.pager .next { text-align: right; grid-column: 2; }

/* Archive navigation (categories / months) */
.archive-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.archive-nav h2 { font-size: 16px; letter-spacing: .1em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); display: flex; gap: 8px; align-items: center; }
.archive-nav h2 svg { width: 20px; height: 20px; stroke: var(--teal); }
.archive-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.archive-nav a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); text-decoration: none; font-size: 14.5px; }
.archive-nav a:hover { color: var(--teal); }
.archive-nav a[aria-current] { color: var(--teal); font-weight: 700; }
.archive-nav .n { font-family: var(--font-en); color: var(--ink-soft); }

/* Company page */
.company-body h3 { margin-top: 2.6em; }

/* ===================== /first/ (mc-*) ===================== */
.first-body { padding: 56px 0 30px; }
.first-body .mc-section { margin: 0 0 56px; }
.first-body .mc-alt { background: var(--gray); border-radius: 14px; padding: 40px clamp(18px, 4vw, 40px); }
.first-body .mc-header { text-align: center; margin-bottom: 28px; }
.first-body .mc-header p { margin: 0; }
.first-body .mc-num { display: block; width: 46px; height: 46px; line-height: 44px; margin: 0 auto 10px; border: 1.5px solid var(--teal); border-radius: 50%; color: var(--teal); font-family: var(--font-en); font-size: 15px; }
.first-body .mc-title { display: block; font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; letter-spacing: .1em; }
.first-body .mc-en { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.first-body .mc-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; color: var(--teal); }
.first-body .mc-line span { width: 70px; height: 1px; background: var(--line); }
.first-body .mc-line em { font-style: normal; font-size: 12px; }
.first-body .mc-ao-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px clamp(18px, 4vw, 40px); box-shadow: 0 6px 24px rgba(20,40,60,.06); }
.first-body .mc-ao-name { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.first-body .mc-ao-name strong { display: inline-block; font-size: 20px; color: var(--ink); margin-left: 8px; letter-spacing: .08em; }
.first-body .mc-ao-msg p { margin: 0 0 1.1em; font-size: 15.5px; line-height: 2; }
.first-body .mc-manual-img { margin: 0 auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(20,40,60,.1); }
.first-body .mc-manual-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
.first-body .mc-line-card, .first-body .mc-guide-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.first-body .mc-line-lead { margin: 0; font-size: 15.5px; }
.first-body .mc-btn-line-sub { font-family: var(--font-en); font-size: 12px; color: var(--ink-soft); }
.first-body .mc-guide-card { flex-direction: row; text-align: left; flex-wrap: wrap; justify-content: space-between; }
.first-body .mc-guide-icon { font-size: 30px; }
.first-body .mc-guide-body { flex: 1 1 240px; }
.first-body .mc-guide-title { font-weight: 700; font-size: 16.5px; }
.first-body .mc-guide-desc { font-size: 13.5px; color: var(--ink-soft); }
.first-body .mc-footer { text-align: center; font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); padding: 10px 0 0; }
.first-body .mc-reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.first-body .mc-reveal.in { opacity: 1; transform: none; }

/* 404 */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound .code { font-family: var(--font-en); font-size: 64px; color: var(--teal); margin: 0; line-height: 1; }
.notfound h1 { font-size: 22px; margin: 16px 0 10px; }
.notfound p { color: var(--ink-soft); margin: 0 0 30px; }

@media (max-width: 860px) {
  body.is-sub main { padding-top: 64px; }
  .page-head { padding: 44px 0 40px; }
  .archive-nav { grid-template-columns: 1fr; gap: 30px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (max-width: 560px) {
  .archive-nav ul { grid-template-columns: 1fr; }
  .first-body .mc-guide-card { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .first-body .mc-reveal { opacity: 1; transform: none; transition: none; }
}
