
:root{
  --bg:#0f1020; 
  --panel:#171833; 
  --ink:#f2f3f7; 
  --muted:#aeb3c2;
  --accent:#7aa2ff; 
  --accent2:#ff6b6b; 
  --ok:#25c2a0;
  --maxw:960px;
}

/* 全体の基本設定 */
html{
  scroll-behavior:smooth;
} 

body{
  margin:0; 
  font-family:system-u"Noto Sans JP",sans-serif;
  color:#000;
  background:linear-gradient#fff;
}

/* 共通ユーティリティ */
.wrap{
  max-width:var(--maxw); 
  margin:auto; 
  padding:0 16px
}

a{
  color:#000; 
  text-decoration:none
}

a:hover{
  text-decoration:underline
}

.small{
  font-size:.88rem
}

.lead{
  color:#000; 
  line-height:1.8;
}

.hint{
  color:var(--muted)
}

.kicker{
  color:var(--ok); 
  font-weight:600; 
  letter-spacing:.05em; 
  font-size:.85rem
}

p{
  line-height:1.8;
  margin-bottom:1.2rem;
  font-size:1.1rem;
}

/* ヘッダー */
.site-header{
  position:sticky; 
  top:0; z-index:10; 
  backdrop-filter: blur(6px); 
  font-family:"Noto Sans JP",sans-serif;
  background:rgba(0, 6, 83, 0.9); 
  border-bottom:1px solid rgba(255, 255, 255, 0.06);  
  color:#ffffff; 
  padding:20px 0;
}

.brand{
  display:flex; 
  align-items:center; 
  gap:.6rem; 
  padding:14px 0
}

.logo{
  width:28px;
  height:28px;
  border-radius:8px;
  background:transparent;
}

.title{
  font-size:2rem; 
  margin:0; 
  line-height:1;
}

.badge{
  margin-left:auto; 
  font-size:.8rem; 
  color:var(--muted); 
  padding:.2rem .5rem; 
  border:1px solid rgba(255,255,255,.16); 
  display:inline block; 
  border-radius: 999px; 
   cursor:pointer; 
  }

.badge a:hover{
  text-decoration:underline;
}

.card{
  margin:26px 0; 
  padding:22px; 
  background:#fff;
  border:1px solid rgb(255, 255, 255); 
  border-radius:12px;
  text-align: center;
}

/* 目次 */
.toc-box h3{
  margin:0 0 .6rem; 
  font-size:1.05rem
}

.toc-box ol{
  margin:0; 
  padding-left:1.2rem
}

.toc-box li{
  margin:.4rem 0
}

.toc-box a{
  color:#000;
}

#toc{
  border:2px solid rgba(0,0,0,0.3);
  border-radius: 2px;
  padding:16px;
  background-color:#fff;
  color:#000;
  margin:26px 0;
}

#toc a:hover{
  text-decoration: underline;
  color:#007acc;
}

@media (min-width:1000px){
  .two-col{display:grid; 
  grid-template-columns: 1.2fr .8fr; 
  gap:22px}
}

.chart{
  margin:14px 0; 
  padding:18px; 
  border:1px dashed rgba(255,255,255,.25);
  border-radius:10px;
  color:var(--muted); 
  font-size:.95rem
}

/* ボタン */
.cta-row{
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
  margin-top:12px
}

.btn{
  display:inline-block; 
  padding:10px 14px; 
  border-radius:10px; 
  border:1px solid rgba(255,255,255,.16);
  background:#1b1d3d; 
  color:var(--ink)
}
.btn.alt{
  background:#192039; 
  border-color:rgba(122,162,255,.4)
}

/* ページ上部へ戻るボタン */
.toplink{
  position:fixed;
  right:16px; 
  bottom:16px; 
  background:#192039; 
  border:1px solid rgba(255,255,255,.16); 
  padding:10px 12px; 
  border-radius:999px;
  color: #fff;
}

.title-container{
  max-width:800px;
  margin:0 auto;
  text-align:center;
}

.big-title {
  font-size:2.5rem; 
  font-weight:bold; 
  color:rgba(0,0,0,0.6); 
  margin-top: 1rem; 
  margin-bottom: 1rem; 
  text-align:left;
}

.date{
  font-size:14px;
  color:#555;
  margin-bottom: 8px;
  text-align:left;
}

/*テーマ1の修正 */
#theme1 p {
  text-align: center !important; 
  width:100%;  
  margin: 0 auto;  
  font-size:1.1rem;
} 

#theme1 .two-col > p { 
  grid-column: 1 / -1; 
  justify-self: center; 
  align-self: start; 
} 

@media (max-width: 768px) { #theme1 .two-col { display: block; } 
}

.theme1-image{
  display:block;
  margin:0 auto 30px;
  width: 100%;
  max-width:800px;
  height:auto;
}

.card-1{
  font-size:1.9rem
}

.card-2{
  display:block; 
  text-align:center; 
  margin-left:auto; 
  margin-right:auto; 
  font-size:1.4rem; 
}

.card-2 p{
  font-size:1.1rem; 
  margin-top:1.5rem; 
  margin-bottom:1.5rem;
}

.data1-image{
  display:block;
  margin:0 auto 30px;
  width: 100%;
  max-width:650px;
  height:auto;
  padding-top:20px;
}

/* テーマ2の修正*/
.theme2-image{
  display:flex;
  justify-content:center;
  gap:20px;
}

.theme2-image img{
  width:70%;
  height:auto;
}


.chart-row {
  display: flex;
  gap: 20px;              
  justify-content: center;
      
}


.data2-image {
  display: block;
  margin: 0 auto 30px;
  width: 100%;
  max-width: 600px;       
  height: auto;
  flex: 1 1 48%;          
}


@media (max-width: 768px) {
  .data2-image {
    flex: 1 1 100%;      
    max-width: 100%;     
  }
}



/* 出典・参考資料セクション */
#reference.card {
  margin: 2em 0; 
  padding: 1.5em; 
  background-color: #f9f9f9; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; 
}

#reference h2 { 
  font-size: 1.5em; 
  margin-bottom: 0.8em;  
  padding-left: 0.5em; 
  color: #333;
}

#reference h3 { 
  font-size: 1.2em; 
  margin-top: 1.2em; 
  margin-bottom: 0.5em; 
  color: #444; 
  border-bottom: 1px solid #ccc; 
  padding-bottom: 0.2em; 
}

#reference ul { 
  list-style-type: none; 
  padding-left: 0; 
  margin: 0; 
}

#reference ul li {
  margin-bottom: 0.6em;
  line-height: 1.5; 
}

#reference ul li a { 
  color: #0073e6; 
  text-decoration: none; 
  transition: color 0.3s; 
}

 #reference ul li a:hover { 
  color: #005bb5; 
  text-decoration: underline; 
}



/* グラフ下の参照表示 */
.ref {
  font-size: 0.9rem;
  color: #555;
  margin-top: -15px; 
  margin-bottom: 20px; 
  text-align: center;
  font-style: italic;
}

.link a:hover {
  color: #005bb5;
  text-decoration: underline;
}
