:root{
  --bg:#ffffff;
  --card:#f7f8fb;
  --border:#e2e5ec;
  --text:#14161c;
  --sub:#5b6070;
  --accent1:#ff6b35;
  --accent2:#4361ee;
  --accent3:#2ec4b6;
  --accent4:#ffbe0b;
  --accent5:#e63946;
  --good:#1a936f;
}
*{box-sizing:border-box;}
body{
  margin:0;
  padding:14px;
  background:var(--bg);
  color:var(--text);
  font-family:"Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  font-weight:700;
  font-size:16px;
  line-height:1.5;
}
h1{
  font-size:24px;
  margin:2px 0 10px;
  font-weight:900;
}
h2{
  font-size:20px;
  margin:18px 0 8px;
  font-weight:900;
  color:var(--accent2);
}
.badge{
  display:inline-block;
  background:var(--accent1);
  color:#fff;
  font-size:14px;
  padding:3px 10px;
  border-radius:20px;
  margin-bottom:8px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:10px;
  font-size:16px;
}
.flow{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.step{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:2px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
}
.step .num{
  min-width:30px;
  height:30px;
  border-radius:50%;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:900;
}
.n1{background:var(--accent1);}
.n2{background:var(--accent2);}
.n3{background:var(--accent3);}
.step .main{flex:1;}
.step .title{font-size:17px;font-weight:900;}
.step .sub{font-size:14px;color:var(--sub);font-weight:700;}
.arrow{
  text-align:center;
  color:var(--sub);
  font-size:20px;
  margin:-2px 0;
}

/* 円グラフ（app.js が生成） */
.pie-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
  margin:10px 0;
}
svg.pie{
  overflow:visible;
  flex-shrink:0;
  filter:drop-shadow(0 4px 14px rgba(0,0,0,0.12));
}
svg.pie text{font-weight:900;}
.legend{font-size:15px;}
.legend-item{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}
.legend-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  flex-shrink:0;
}

.example{
  background:linear-gradient(135deg,#fff7e6,#fff);
  border:2px dashed var(--accent4);
  border-radius:12px;
  padding:12px;
  margin-top:8px;
  font-size:16px;
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
}
.table-wrap{
  overflow-x:auto;
  overscroll-behavior-x:none;
  margin-top:8px;
}
th,td{
  border:1px solid var(--border);
  padding:8px 10px;
  text-align:left;
  white-space:nowrap;
}
th{background:var(--accent2);color:#fff;}
.warn{
  background:#fff0f0;
  border-left:4px solid var(--accent5);
  padding:10px 12px;
  border-radius:6px;
  font-size:15px;
  margin-top:6px;
}
.tip{
  background:#eefaf6;
  border-left:4px solid var(--good);
  padding:10px 12px;
  border-radius:6px;
  font-size:15px;
  margin-top:6px;
}
ul{margin:6px 0;padding-left:22px;font-size:16px;}
li{margin-bottom:6px;}
.small-note{font-size:14px;color:var(--sub);font-weight:700;margin-top:6px;}
