/* site.css — suzumushi.jp の見た目（サイト所有）。トークンは /theme.css。 */
body { background: var(--color-bg); font-family: var(--font-sans); }
h1, h2, h3 { color: var(--sz-night); font-family: var(--font-serif); letter-spacing: .02em; }
a { text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── ヘッダー ───────────────────────────── */
.site-header { background: var(--sz-night); border-bottom: 3px solid var(--sz-andon); box-shadow: 0 4px 16px rgba(20, 33, 61, .35); }
.site-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--sz-moon); text-decoration: none; font-family: var(--font-serif); font-weight: 700; }
.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo__mark { flex: none; transition: transform .6s ease; }
.site-logo:hover .site-logo__mark { transform: rotate(-8deg) scale(1.06); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.28rem; letter-spacing: .08em; }
.site-logo__text small { font-family: var(--font-sans); font-size: .66rem; font-weight: 400; letter-spacing: .14em; color: var(--sz-andon); }
.site-nav__item > a { color: #e8ecf5; font-weight: 600; border-radius: 999px; padding: .45rem .95rem; }
.site-nav__item > a:hover { background: var(--sz-andon); color: var(--sz-night); text-decoration: none; }
.site-nav__item.is-active > a { background: var(--sz-moon); color: var(--sz-night); }
.breadcrumb { background: transparent; border: 0; padding-top: 1rem; }
.skip-link:focus { background: var(--sz-andon); color: var(--sz-night); }

/* ── トップ: 夜空のヒーロー ─────────────── */
.page--home .page__header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page--home .page__body { margin-top: 0; }
.hero { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); min-height: 540px; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #0b1430 0%, #14213d 45%, #26406e 100%); }
.hero__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container-width-wide); margin: 0 auto; padding: 4rem 1.4rem 5.5rem; }
.hero__eyebrow { display: inline-block; background: var(--sz-andon); color: var(--sz-night); font-weight: 700; font-size: .84rem; letter-spacing: .12em; padding: .3rem .9rem; border-radius: 999px; margin: 0 0 1rem; }
.hero__title { font-family: var(--font-serif); font-size: clamp(2.1rem, 6vw, 3.9rem); line-height: 1.3; font-weight: 700; margin: 0 0 1rem; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero__title em { font-style: normal; color: var(--sz-moon); }
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 33em; margin: 0 0 1.6rem; color: #e6ebf6; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--sz-andon); color: var(--sz-night); box-shadow: 0 5px 0 var(--sz-andon-deep); transition: transform .15s, box-shadow .15s; }
.pill:hover { text-decoration: none; color: var(--sz-night); transform: translateY(3px); box-shadow: 0 2px 0 var(--sz-andon-deep); }
.pill--ghost { background: transparent; color: #fff; border: 2px solid var(--sz-moon); box-shadow: none; }
.pill--ghost:hover { color: var(--sz-night); background: var(--sz-moon); box-shadow: none; }
.hero__grass { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 1; }
.star { animation: twinkle 3.2s ease-in-out infinite; }
.star:nth-child(2n) { animation-duration: 4.4s; animation-delay: -1.3s; }
.star:nth-child(3n) { animation-duration: 2.6s; animation-delay: -.7s; }
.andon { animation: glow 3.8s ease-in-out infinite alternate; }
.andon:nth-child(2n) { animation-delay: -1.5s; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes glow { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .star, .andon { animation: none; } }

/* ── 見出し・タイル ─────────────────────── */
.page__body h2.section-title { display: block; text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 3rem 0 .4rem; border: 0; padding: 0; background: none; }
.page__body h2.section-title::after { content: ""; display: block; width: 64px; height: 3px; margin: .7rem auto 0; background: var(--sz-andon); border-radius: 2px; }
.section-sub { text-align: center; color: var(--color-text-muted); margin: 0 auto 1.8rem; max-width: 36em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tile { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; border: 1px solid var(--color-border); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tile a { display: block; color: inherit; text-decoration: none; }
.tile__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sz-night-2); }
.tile__badge { position: absolute; top: .8rem; left: .8rem; background: var(--sz-night); color: var(--sz-moon); font-weight: 700; font-size: .78rem; padding: .28rem .8rem; border-radius: 999px; }
.tile__body { display: block; padding: 1rem 1.2rem 1.3rem; }
.tile__title { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--sz-night); line-height: 1.45; margin-bottom: .35rem; }
.tile__text { display: block; color: var(--color-text-muted); font-size: .93rem; line-height: 1.65; }
.tile__go { display: inline-block; margin-top: .7rem; font-weight: 700; color: var(--color-accent); }
.tile__go::after { content: " →"; transition: margin .2s; }
.tile:hover .tile__go::after { margin-left: .35rem; }

/* ── 一覧・記事ページ ───────────────────── */
.page__hero { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.page__header h1 { font-size: clamp(1.65rem, 4.2vw, 2.4rem); line-height: 1.35; }
.page__meta { color: var(--color-text-muted); }
.child-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.child-list a { border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; background: #fff; border-left: 6px solid var(--sz-andon); }
.child-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.child-list__title { color: var(--sz-night); font-family: var(--font-serif); font-size: 1.1rem; }
.page__body { line-height: 1.95; }
.page__body h2 { margin-top: 2.8rem; padding: .2rem 0 .35rem .8rem; border: 0; border-left: 6px solid var(--sz-andon); border-bottom: 1px solid var(--color-border); }
.page__body h3 { color: var(--sz-night-2); margin-top: 2rem; }
.page__body img { border-radius: var(--radius-md); }
.page__body blockquote { border-left: 5px solid var(--sz-inaho); background: #fff; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow-sm); }
.page__body table { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.page__body th { background: var(--sz-night); color: var(--sz-moon); }
.toc { background: #fff; border: 2px dashed var(--sz-inaho); border-radius: var(--radius-md); }

/* 記事の冒頭「要点」ボックス */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1.4rem 0 2rem; }
.glance__item { background: #fff; border-radius: var(--radius-md); padding: .9rem 1rem; box-shadow: var(--shadow-sm); border-left: 5px solid var(--sz-andon); }
.glance__item:nth-child(2) { border-color: var(--sz-moss); } .glance__item:nth-child(3) { border-color: var(--sz-night-2); } .glance__item:nth-child(4) { border-color: var(--sz-inaho); }
.glance__label { display: block; font-size: .78rem; font-weight: 700; color: var(--color-text-muted); letter-spacing: .06em; }
.glance__value { display: block; font-weight: 700; color: var(--sz-night); line-height: 1.5; }

/* 写真のキャプション（名詞句で止める） */
.figure { margin: 1.6rem 0; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: .86rem; color: var(--color-text-muted); margin-top: .4rem; text-align: center; }

/* ── フッター ───────────────────────────── */
.site-footer { background: var(--sz-night); color: #cfd6e6; margin-top: 4rem; border-top: 3px solid var(--sz-andon); }
.site-footer a { color: #fff; }
.site-footer__logo { color: var(--sz-moon); font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; }
.site-footer__heading a { color: var(--sz-andon); }
.site-footer__note { font-size: .82rem; color: #aab4cc; margin: .6rem 0 0; }

@media (max-width: 720px) { .hero { min-height: 480px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
