:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:rgba(229,231,235,.88);
  --blue:#1d4ed8;
  --blue2:#0b3aa6;
  --chip:#eaf0ff;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:18px;
  --max:1040px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  background:linear-gradient(180deg,#eef3ff 0%, var(--bg) 28%, var(--bg) 100%);
  color:var(--text);
}

a{color:inherit}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px 70px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.topBar{
  margin-bottom:18px;
}

.topBarInner{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  flex-wrap:wrap;
}

.topLink{
  text-decoration:none;
  font-weight:900;
  color:#0f2a5a;
}

.topLink:hover{
  text-decoration:underline;
}

.topSep{
  color:#94a3b8;
  font-weight:900;
}

.topCurrent{
  color:#64748b;
  font-weight:900;
}

.articleShell{
  display:block;
}

.articleHero{
  padding:26px 22px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(29,78,216,.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
}

.articleHeroInner{
  max-width:100%;
}

.articleMetaTop{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#64748b;
  font-size:13px;
  font-weight:900;
}

.metaDot{
  color:#94a3b8;
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  padding:8px 10px;
  border-radius:999px;
  background:var(--chip);
  border:1px solid rgba(29,78,216,.18);
  color:#173a8f;
  font-size:12px;
  font-weight:950;
}

.articleTitle{
  margin:14px 0 0;
  max-width:100%;
  font-size:52px;
  line-height:1.16;
  color:#0f2a5a;
  font-weight:950;
  letter-spacing:-0.01em;
  word-break:normal;
  overflow-wrap:break-word;
}

.articleLead{
  margin:16px 0 0;
  max-width:100%;
  color:#475569;
  font-weight:800;
  line-height:1.9;
  font-size:16px;
}

.articleLayout{
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:18px;
  align-items:start;
}

.articleMain{
  min-width:0;
}

.articleBody{
  padding:24px 22px;
}

.articleBody section + section{
  margin-top:28px;
}

.articleBody h2{
  margin:0 0 12px;
  font-size:28px;
  line-height:1.35;
  color:#0f2a5a;
  font-weight:950;
}

.articleBody h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.4;
  color:#0f2a5a;
  font-weight:950;
}

.articleBody p{
  margin:0;
  color:#374151;
  font-weight:800;
  line-height:1.95;
}

.articleBody p + p{
  margin-top:14px;
}

.articleBody ul,
.articleBody ol{
  margin:12px 0 0;
  padding-left:1.4em;
  color:#374151;
}

.articleBody li{
  margin:8px 0;
  line-height:1.85;
  font-weight:800;
}

.infoBox{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:rgba(243,246,255,.82);
  border:1px solid rgba(29,78,216,.16);
}

.infoBoxTitle{
  margin:0 0 8px;
  font-size:16px;
  color:#173a8f;
  font-weight:950;
}

.tableWrap{
  margin-top:14px;
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
}

th, td{
  padding:12px 12px;
  text-align:left;
  vertical-align:top;
  border-top:1px solid rgba(229,231,235,.9);
  line-height:1.7;
}

thead th{
  background:#f8fafc;
  color:#0f2a5a;
  font-weight:950;
  border-top:none;
}

.relatedSection{
  margin-top:4px;
  padding-top:4px;
}

.relatedGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:12px;
}

.relatedCard{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  text-decoration:none;
  box-shadow:0 10px 22px rgba(17,24,39,.04);
  transition:.15s transform ease, .15s box-shadow ease;
}

.relatedCard:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(17,24,39,.07);
}

.relatedCard strong{
  color:#0f2a5a;
  font-size:17px;
  line-height:1.4;
}

.relatedCard p{
  margin:0;
  color:#475569;
  line-height:1.75;
  font-size:14px;
}

.relatedChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  padding:6px 9px;
  border-radius:999px;
  background:var(--chip);
  border:1px solid rgba(29,78,216,.18);
  color:#173a8f;
  font-size:11px;
  font-weight:950;
}

.articleSide{
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:18px;
}

.sideCard{
  padding:18px 16px;
}

.sideTitle{
  margin:0 0 12px;
  font-size:18px;
  line-height:1.4;
  color:#0f2a5a;
  font-weight:950;
}

.sideList{
  margin:0;
  padding-left:1.2em;
  color:#374151;
}

.sideList li{
  margin:8px 0;
  line-height:1.75;
  font-weight:850;
}

.tagRow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:999px;
  background:#f3f4f6;
  border:1px solid rgba(229,231,235,.9);
  color:#374151;
  font-size:12px;
  font-weight:900;
}

.sideText{
  margin:0;
  color:#475569;
  font-weight:800;
  line-height:1.8;
}

.sideActions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
  transition:.15s transform ease, .15s background ease, .15s border ease, .15s box-shadow ease;
  user-select:none;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn.primary{
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue2) 100%);
  color:#fff;
  border-color:rgba(29,78,216,.55);
  box-shadow:0 10px 24px rgba(29,78,216,.18);
}

.footer{
  margin-top:30px;
  text-align:center;
  color:#6b7280;
  font-weight:900;
}

.footerLink{
  text-decoration:none;
}

.footerLink:hover{
  text-decoration:underline;
}

@media (min-width: 1200px){
  :root{ --max:1320px; }
}

@media (max-width: 1100px){
  .articleLayout{
    grid-template-columns:minmax(0, 1fr);
  }

  .articleSide{
    position:static;
  }

  .articleTitle{
    font-size:44px;
  }
}

@media (max-width: 900px){
  .relatedGrid{
    grid-template-columns:1fr;
  }

  .articleTitle{
    font-size:32px;
  }

  .articleBody h2{
    font-size:24px;
  }
}

@media (max-width: 640px){
  .container{
    padding:18px 14px 56px;
  }

  .articleHero{
    padding:22px 18px;
  }

  .articleBody{
    padding:20px 16px;
  }

  .articleTitle{
    font-size:28px;
  }

  .articleLead{
    font-size:15px;
  }

  .articleBody h2{
    font-size:22px;
  }

  .btn{
    width:100%;
  }

  .topBarInner{
    gap:8px;
  }
}