/* 偏集 / SHIMANAMI JOURNAL — Figma 44:94（PC 1440）・44:95（スマホ 390）準拠 */
:root {
  --sky: #63c5e8;
  --paper: #e4f6fc;
  --citrus: #ffe156;
  --ink: #123c55;
  --footer-surface: #333333;
  --footer-content: #ffffff;
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  --gutter: 48px;
  --toc-item: 304px;
  --toc-gap: 32px;
}
@media (max-width: 899px) {
  :root { --gutter: 24px; --toc-item: 256px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--footer-surface); scroll-padding-top: 136px; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--footer-surface); color: var(--ink); font-family: var(--font-ja); line-height: 1.7; overflow-x: hidden; }
body > main { flex: 1 0 auto; background: var(--sky); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 8px; }
.only-mobile { display: none; }
@media (max-width: 899px) { .only-desktop { display: none; } .only-mobile { display: inline; } }

/* ヘッダー */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; padding: 0 var(--gutter); background: var(--sky); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; flex: 0 0 auto; width: 108px; height: 72px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 108px; height: auto; object-fit: contain; }
.header-meta { display: flex; align-items: center; gap: 24px; }
.header-tagline { display: flex; gap: 16px; width: 550px; margin: 0; font-size: 12px; font-weight: 400; line-height: 18px; }
.header-social { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.header-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.header-social img { width: 22px; height: 22px; }
.header-social a:hover { opacity: 0.72; }
/* 通常時の領域を残し、固定バーの縮小で本文位置が動かないようにする。 */
.header-shell { --header-height: 120px; flex: 0 0 var(--header-height); height: var(--header-height); }
.header-shell--issue { --header-height: 104px; }
.header-shell.is-enhanced > header { position: fixed; z-index: 5; top: 0; left: 0; width: 100%; height: var(--header-height); transition: height 0.25s ease; }
.header-shell.is-compact > header { height: 64px; padding-top: 0; padding-bottom: 0; }
.header-shell.is-compact .brand { width: 96px; height: 48px; }
.header-shell.is-compact .brand-mark { width: 96px; }
.header-shell.is-compact .magazine-header-inner { grid-template-rows: 1fr; }
@media (max-width: 899px) {
  html { scroll-padding-top: 128px; }
  .header-shell { --header-height: 112px; }
  .header-shell--issue { --header-height: 83px; }
  .header-shell.is-compact .brand, .header-shell.is-compact .brand-mark { width: 76px; }
  .site-header { height: 83px; gap: 16px; }
  .brand { width: 76px; height: 55px; }
  .brand-mark { width: 76px; height: auto; }
  .header-concept, .header-sep { display: none; }
  .header-meta { gap: 12px; }
  .header-tagline { width: 72px; }
  .header-journal { display: block; width: min-content; font-family: var(--font-en); font-weight: 700; font-size: 14px; line-height: 24px; letter-spacing: 0.04em; }
}

/* ユーザー修正Figma：PC 1440×810／スマホ390×693.33の映像上に配置 */
.hero { --hero-scale: calc(100vw / 1440); color: var(--paper); background: var(--ink); }
.hero-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-media, .hero-poster, .hero-poster img, .hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster img, .hero-video { object-fit: cover; }
/* 動画面を透明化/別画像で覆わず、初期画像はnative posterと下置pictureで表示する。 */
.hero-video { opacity: 1; }
.hero-shade { background: linear-gradient(to bottom, rgba(18, 60, 85, 0.72), rgba(18, 60, 85, 0) 25%); }
.hero-copy-shade { position: absolute; left: 0; top: 0; width: calc(599 * var(--hero-scale)); height: 100%; background: rgba(0, 21.6846, 76.533, 0.28); }
.hero-intro { position: absolute; left: calc(80 * var(--hero-scale)); top: calc(194 * var(--hero-scale)); width: calc(582 * var(--hero-scale)); font-size: max(12px, calc(15 * var(--hero-scale))); font-weight: 400; line-height: calc(38 * var(--hero-scale)); }
.hero-intro p { margin: 0; overflow-wrap: anywhere; }
.hero-mobile-break { display: none; }
.hero-copy { position: absolute; left: calc(80 * var(--hero-scale)); top: calc(594 * var(--hero-scale)); width: calc(1280 * var(--hero-scale)); margin: 0; font-weight: 900; font-size: calc(43 * var(--hero-scale)); line-height: calc(66.8 * var(--hero-scale)); }
@media (max-width: 899px) {
  .hero { --hero-scale: calc(100vw / 390); }
  .hero-visual { aspect-ratio: 9 / 16; }
  .hero-copy-shade { left: calc(-2 * var(--hero-scale)); top: calc(220 * var(--hero-scale)); width: calc(305 * var(--hero-scale)); height: calc(473 * var(--hero-scale)); }
  .hero-intro { left: calc(19 * var(--hero-scale)); top: calc(241 * var(--hero-scale)); width: calc(342 * var(--hero-scale)); font-size: max(11px, calc(11 * var(--hero-scale))); line-height: calc(29 * var(--hero-scale)); }
  .hero-mobile-break { display: initial; }
  .hero-copy { left: calc(19 * var(--hero-scale)); top: calc(595 * var(--hero-scale)); width: calc(342 * var(--hero-scale)); font-size: calc(22 * var(--hero-scale)); line-height: calc(36 * var(--hero-scale)); }
}
/* 目次（PC 1440×414、スマホ 390×438） */
.toc { background: var(--sky); }
.toc-inner { padding: 24px var(--gutter) 32px; }
.toc-eyebrow { margin: 0; font-size: 14px; font-weight: 700; line-height: 21px; }
.toc-heading { margin: 13px 0 0; font-size: 36px; font-weight: 900; line-height: 46.8px; }
.toc-viewport { margin-top: 29px; height: 200px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
.toc-viewport::-webkit-scrollbar { display: none; }
.toc-track { position: relative; width: calc(11 * var(--toc-item) + 10 * var(--toc-gap)); height: 190px; }
.toc-route { position: absolute; left: 22px; top: 108px; width: calc(100% - 34px); height: 49px; pointer-events: none; }
.toc-route img { width: 100%; height: 100%; }
.toc-bike { position: absolute; left: 240px; top: 76px; width: 84px; height: 78px; pointer-events: none; }
.toc-list { position: relative; display: flex; gap: var(--toc-gap); margin: 0; padding: 0; list-style: none; }
.toc-item { position: relative; flex: 0 0 var(--toc-item); height: 160px; scroll-snap-align: start; }
.toc-link { display: flex; align-items: center; gap: 16px; width: calc(var(--toc-item) - 32px); height: 78px; margin: 16px 0 0 16px; text-decoration: none; color: var(--ink); }
.toc-no { flex: 0 0 55px; font-family: var(--font-en); font-weight: 700; font-size: 52px; line-height: 58px; }
.toc-title { position: relative; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; line-height: 24px; word-break: keep-all; overflow-wrap: anywhere; }
.toc-status { position: absolute; left: 0; top: calc(100% + 4px); padding: 0 6px; border: 1px solid var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
a.toc-link:hover .toc-title, a.toc-link:focus-visible .toc-title { text-decoration: underline; text-underline-offset: 4px; }
.toc-dot { position: absolute; left: 16px; top: 102px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--citrus); background: transparent; }
.toc-item.is-published .toc-dot { background: var(--citrus); }
.toc-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.toc-hint { margin: 12px 0 0; font-size: 12px; font-weight: 700; line-height: 18px; }
.toc-arrows { display: flex; gap: 8px; }
.toc-arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.toc-arrow[aria-disabled='true'] { opacity: 0.35; cursor: default; }
@media (max-width: 899px) {
  .toc-heading { font-size: 26px; line-height: 33.8px; }
  .toc-viewport { margin-top: 28px; }
  .toc-bike { left: 220px; top: 93px; width: 66px; height: 61px; }
  .toc-inner { padding-bottom: 8px; }
  .toc-controls { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 26px; }
  .toc-hint { margin-top: 0; }
  .toc-arrows { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .header-shell.is-enhanced > header { transition: none; }
  .toc-viewport { scroll-behavior: auto; }
}

/* フッター */
.site-footer { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 24px 32px; align-items: start; padding: 48px var(--gutter); background: var(--footer-surface); color: var(--footer-content); }
.site-footer .brand { color: inherit; }
.site-footer :focus-visible { outline-color: var(--footer-content); }
.footer-main { display: flex; align-items: flex-start; gap: 32px; }
.footer-concept { margin: 0; font-size: 14px; font-weight: 700; line-height: 25px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; line-height: 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 18px; }
.footer-copy small { font-size: inherit; }
@media (max-width: 899px) {
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding: 24px var(--gutter); }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav ul { justify-content: flex-start; }
}

/* プライバシーポリシー・お問い合わせ・404 */
.page-privacy main, .page-contact main, .page-not-found main { background: var(--paper); }
.doc { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.doc--center { text-align: center; }
.doc-title { margin: 0 0 40px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.3; }
.doc-section { margin-top: 48px; }
.doc-section h2 { margin: 0 0 16px; font-size: clamp(20px, 2.4vw, 24px); font-weight: 900; line-height: 1.5; }
.doc p { margin: 0 0 1em; font-size: 16px; line-height: 1.9; }
.doc-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.doc-list dt { font-weight: 700; }
.doc-list dd { margin: 0; }
.doc-date { margin-top: 48px; font-size: 14px; }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.doc-section h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 700; line-height: 1.5; }
@media (max-width: 599px) { .doc-list { grid-template-columns: 1fr; } .doc-list dd { margin-bottom: 8px; } }

/* お問い合わせ / Figma 400:726・400:727 */
.doc .contact-intro { margin: 0; }
.contact-form { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 32px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label { font-size: 14px; font-weight: 700; line-height: 24px; }
.contact-field input, .contact-field textarea { width: 100%; min-width: 0; border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; background: transparent; color: var(--ink); font: 400 16px/24px var(--font-ja); }
.contact-field input { height: 48px; }
.contact-field textarea { height: 180px; min-height: 180px; resize: vertical; }
.contact-consent { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 24px; }
.contact-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.contact-consent a { text-underline-offset: 3px; }
.doc .contact-note { margin: 0; font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.contact-submit { align-self: flex-start; width: 192px; height: 48px; border: 0; border-radius: 0; background: var(--citrus); color: var(--ink); font: 700 14px/24px var(--font-ja); cursor: pointer; }
.contact-submit:hover { filter: brightness(0.96); }
.contact-honey { display: none; }
