*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #1b2a4a;
  --navy-deep: #131f38;
  --navy-light: #24365c;
  --line: #34497a;
  --text: #ffffff;
  --muted: #b9c2d6;
  --sakura: #fde8ee;
  --sakura-mid: #f3b6c7;
  --radius: 6px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--navy);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

a { color: var(--sakura-mid); }

/* ヘッダー */
.site-header {
  background: var(--navy-deep);
  border-top: 3px solid var(--sakura-mid);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 820px; margin: 0 auto; padding: .6rem 1rem;
}
.site-title {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); font-size: 1.15rem; font-weight: 700; text-decoration: none; letter-spacing: .03em;
}
.site-title::before {
  width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--sakura-mid); box-shadow: inset 0 0 0 3px var(--sakura); content: "";
}
.site-nav { display: flex; gap: 1rem; font-size: .85rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--sakura); text-decoration: underline; }

/* 本文 */
main { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0;
  color: var(--sakura-mid); font-size: .75rem; font-weight: 600; letter-spacing: .08em;
}
.eyebrow::before {
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--sakura-mid); content: "";
}
h1 {
  margin: .25rem 0 .5rem; color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.4;
  word-break: keep-all; overflow-wrap: anywhere;
}
.nw { white-space: nowrap; }
.date { margin: 0 0 1rem; color: var(--muted); font-size: .85rem; }
.lead p { margin: 0 0 1rem; }

.block { margin-top: 2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.block h2 {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem;
  color: var(--text); font-size: 1.3rem; line-height: 1.4;
}
.block h2::before {
  flex: 0 0 auto; width: .3rem; height: 1.35rem; border-radius: 1px; background: var(--sakura-mid); content: "";
}
h3 {
  margin: 1.6rem 0 .5rem; padding-left: .6rem;
  border-left: 3px solid var(--sakura-mid);
  color: var(--sakura); font-size: 1.08rem; line-height: 1.4;
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li + li { margin-top: .25rem; }
li::marker { color: var(--sakura-mid); }
strong { color: var(--sakura); }
code { padding: 0 .3em; border-radius: 3px; background: var(--navy-light); }
hr { margin: 2rem 0 1rem; border: 0; border-top: 1px solid var(--line); }

/* 表 */
.table-wrap { margin: 0 0 1rem; overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; background: var(--navy-light);
  border: 1px solid var(--line); font-size: .95rem;
}
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy); background: var(--sakura); font-size: .85rem; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 6.5em; }

/* 動画 */
.video {
  position: relative; margin: 0 0 1.5rem; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-deep);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: grid; place-items: center; height: 100%; color: var(--sakura); font-size: .9rem; }
.shot { margin: 0 0 1.5rem; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.shot figcaption { margin-top: .4rem; font-size: .85rem; text-align: center; }

/* 機能のカード */
.card {
  padding: 1rem 1.1rem; background: var(--navy-light);
  border: 1px solid var(--line); border-top: 3px solid var(--sakura-mid); border-radius: var(--radius);
}
.card h3 { margin-top: 0; padding-left: 0; border-left: 0; }
.card p:last-child { margin-bottom: 0; }

/* ボタン */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .4rem 1.2rem; border-radius: 7px;
  background: var(--sakura); color: var(--navy); font-weight: 700; text-decoration: none;
}
.button::after { content: "→"; }
.button:hover { background: #fff; }
.button.sub { background: transparent; color: var(--sakura); border: 1px solid var(--sakura-mid); }
.button.sub:hover { background: var(--navy-light); }
.buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }

/* 囲み */
.note {
  padding: 1rem 1.1rem; background: var(--navy-deep);
  border: 1px solid var(--sakura-mid); border-radius: var(--radius);
}
.note ul { margin-bottom: .5rem; }
.cta {
  padding: 1rem 1.1rem; background: var(--navy-light);
  border: 1px solid var(--line); border-top: 3px solid var(--sakura-mid); border-radius: var(--radius);
}
.small { color: var(--muted); font-size: .85rem; }
.copyright { color: var(--muted); font-size: .8rem; }

/* 記事の一覧 */
.post-list { padding-left: 0; list-style: none; }
.post-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* フッター */
.site-footer {
  padding: 1.2rem 1rem; background: var(--navy-deep); border-top: 1px solid var(--line);
  font-size: .8rem; text-align: center;
}
.site-footer a { color: var(--sakura-mid); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; margin-bottom: .4rem; }
.site-footer p { margin: 0; color: var(--muted); }

@media (max-width: 600px) {
  body { line-height: 1.75; }
  .site-nav { gap: .7rem; font-size: .8rem; }
  .block h2 { font-size: 1.18rem; }
  th, td { padding: .5rem .55rem; font-size: .88rem; }
  .button { width: 100%; }
}
