/* 即日換算ツール フル実装 CSS
   - モバイルファースト
   - 高コントラスト、十分なタップ領域
*/
:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --text: #0f172a;
  --result-bg: linear-gradient(90deg,#0f172a,#0b2440);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15,23,42,0.06);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP",sans-serif;
  font-size: 16px;
  color-scheme: light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  padding:24px;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  font-variant-numeric: tabular-nums;
}
.container{
  width:100%;
  max-width:1100px;
}
.header{
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:56px;
  height:56px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  font-size:18px;
  box-shadow:var(--shadow);
}
.title{
  font-size:20px;
  font-weight:700;
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(min-width:980px){
  .grid{grid-template-columns: 1fr 360px}
}
.section{
  padding:12px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(250,250,253,1), rgba(245,247,250,1));
  border:1px solid rgba(15,23,42,0.03);
}
.section h2{
  margin:0 0 8px 0;
  font-size:16px;
}
.row{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:8px;
}
.col{flex:1}
label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
input[type="date"], input[type="number"], input[type="text"], select, button, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.06);
  font-size:15px;
  outline:none;
  background:#fff;
  color:var(--text);
}
select{appearance:none;background-image:none}
input:focus, select:focus, button:focus{
  box-shadow:0 4px 18px rgba(37,99,235,0.12);
  border-color:var(--accent);
}
.actions{display:flex;gap:8px;margin-top:10px}
button{
  cursor:pointer;
  border:none;
  background:var(--accent);
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  font-weight:600;
}
button.secondary{
  background:#f1f5f9;
  color:var(--text);
  border:1px solid rgba(15,23,42,0.04);
}
.result{
  margin-top:12px;
  padding:12px;
  border-radius:10px;
  background:var(--result-bg);
  color:#fff;
  font-weight:600;
  font-size:14px;
}
.help{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
}
.share{
  display:flex;
  gap:8px;
  margin-top:10px;
  align-items:center;
}
.share input[type="text"]{
  font-size:13px;
  padding:8px 10px;
}
.footer{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.small{font-size:12px;color:var(--muted)}
.badge{
  background:rgba(37,99,235,0.08);
  color:var(--accent);
  padding:6px 8px;
  border-radius:8px;
  font-weight:600;
  font-size:13px;
}
hr.sep{border:none;height:1px;background:linear-gradient(90deg,transparent,#e6eefc,transparent);margin:14px 0}