:root {
  --blue: #004d9c;
  --sky: #48aece;
  --yellow: #ffdf37;
  --text: #373737;
  --line: #d1d1d1;
  --bg: #f0f6fb;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.9;
  font-size: 16px;
}
a { color: var(--blue); }
h1, h2, p, ol, ul { margin: 0; }

#header { background: var(--blue); position: fixed; top: 0; left: 0; width: 100%; z-index: 999; }
#header .inner {
  margin: auto; width: min(95%, 1080px); height: 50px;
  display: flex; align-items: center; justify-content: space-between;
}
#header .logo img { display: block; height: 22px; width: auto; }
#header .back { color: #fff; font-size: 13px; text-decoration: none; border: 1px solid rgba(255,255,255,.6); padding: 3px 14px; border-radius: 999px; }
#header .back:hover { background: #fff; color: var(--blue); }

.hero {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--blue) 0%, #0a6bc4 60%, var(--sky) 100%);
  color: #fff; text-align: center;
  padding: clamp(48px, 9vw, 96px) 5%;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
  background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .en { font-size: 13px; letter-spacing: .25em; opacity: .85; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 900; letter-spacing: .08em; margin: 8px 0 14px; }
.hero .lead { font-size: clamp(13px, 2vw, 16px); opacity: .95; }
.hero .badge { display: inline-block; margin-top: 20px; background: var(--yellow); color: var(--blue); font-weight: 700; padding: 3px 18px; border-radius: 999px; font-size: 14px; }

.wrap { width: min(92%, 1080px); margin: 0 auto; padding: 40px 0 72px; display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 70px; background: var(--bg); border-radius: 12px; padding: 18px 20px; font-size: 14px; }
.toc p { font-weight: 700; color: var(--blue); letter-spacing: .15em; margin-bottom: 8px; border-bottom: 2px solid var(--sky); padding-bottom: 4px; }
.toc ol { list-style: none; padding: 0; line-height: 1.5; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 4px; text-decoration: none; color: var(--text); border-radius: 6px; }
.toc a:hover, .toc a.active { background: #fff; color: var(--blue); font-weight: 700; }

.terms article { margin-bottom: 36px; }
.terms h2 {
  font-size: clamp(18px, 2.6vw, 22px); color: var(--blue);
  border-left: 6px solid var(--sky); border-bottom: 1px solid var(--line);
  padding: 4px 0 6px 14px; margin-bottom: 14px; line-height: 1.5;
}
.terms h2 .no { color: var(--sky); margin-right: .4em; }
.terms p { margin-bottom: 8px; }
.terms ol { list-style: none; padding: 0; }
.terms ol > li { position: relative; padding-left: 2.2em; margin-bottom: 8px; }
.terms ol > li > .n { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--blue); }
.terms ol ol { margin-top: 6px; }
.terms ol ol > li { padding-left: 2.8em; }
.terms ol ol ol > li { padding-left: 2em; }
.terms ol ol ol > li > .n { color: var(--text); font-weight: 500; }

.terms .note { background: var(--bg); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 8px; }

.footer { padding: 15px 0; background: var(--sky); text-align: center; color: #fff; font-size: clamp(12px, 1.4vw, 15px); }
.footer a { color: #fff; }

@media (max-width: 800px) {
  body { font-size: 15px; }
  .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
}
@media print {
  #header, .toc, .hero::after { display: none; }
  .hero { margin-top: 0; color: #000; background: none; padding: 12px 0; }
  .wrap { display: block; }
}
