:root{
  --bg:#fdf7f2; --card:#ffffff; --ink:#3d3330; --sub:#8a7a74;
  --accent:#e88ca0; --accent-dark:#d96e8a; --accent2:#f6c6d3; --line:#f0e2dc;
  --ok:#5aa469; --over:#d9534f; --soft:#fffaf7;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Noto Sans JP",sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.8;
  padding:20px 14px 48px; font-size:15px;
}
.wrap{max-width:720px; margin:0 auto;}
a{color:var(--accent-dark);}

/* ヘッダー */
header.site{text-align:center; margin-bottom:14px;}
header.site .logo{font-size:26px; font-weight:700; letter-spacing:.04em;}
header.site .logo a{color:var(--ink); text-decoration:none;}
header.site .tagline{color:var(--sub); font-size:13px; margin-top:4px;}
nav.main{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:14px 0 20px;
}
nav.main a{
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:6px 14px; font-size:13px; color:var(--ink); text-decoration:none;
}
nav.main a:hover{border-color:var(--accent);}
nav.main a.current{background:var(--accent); color:#fff; border-color:var(--accent);}

/* カード */
.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:18px 16px; box-shadow:0 4px 18px rgba(190,140,140,.08); margin-bottom:18px;
}
.card h2{font-size:17px; margin-bottom:10px;}
.card h3{font-size:15px; margin:16px 0 6px;}
.card p{margin-bottom:10px;}
.card ul,.card ol{margin:0 0 10px 1.4em;}
.card li{margin-bottom:4px;}
.card table{width:100%; border-collapse:collapse; margin:10px 0 14px; font-size:14px;}
.card th,.card td{border:1px solid var(--line); padding:8px 10px; text-align:center;}
.card th{background:var(--soft); font-weight:700;}
.card td:first-child,.card th:first-child{text-align:left;}
.note{font-size:12.5px; color:var(--sub); line-height:1.7;}
.big{font-size:20px; font-weight:700;}

/* ツール */
textarea{
  width:100%; min-height:220px; border:1px solid var(--line); border-radius:12px;
  padding:14px; font-size:16px; line-height:1.8; resize:vertical; outline:none;
  font-family:inherit; color:var(--ink); background:#fffdfb;
}
textarea:focus{border-color:var(--accent);}
.btns{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap;}
button{
  border:none; border-radius:999px; padding:10px 20px; font-size:14px;
  cursor:pointer; font-family:inherit;
}
.copy{background:var(--accent); color:#fff;}
.clear{background:#f3e7e2; color:var(--ink);}
.stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px; margin-top:16px;
}
.stat{background:var(--soft); border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center;}
.stat .num{font-size:24px; font-weight:700;}
.stat .label{font-size:12px; color:var(--sub); margin-top:4px;}

/* 読み上げ時間 */
.speeds{display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 4px;}
.speeds button{
  background:#fff; border:1.5px solid var(--line); color:var(--ink); padding:8px 16px;
}
.speeds button.active{background:var(--accent); border-color:var(--accent); color:#fff;}
.custom-speed{display:flex; align-items:center; gap:8px; margin-top:8px; font-size:14px; flex-wrap:wrap;}
input[type="number"]{
  width:90px; padding:8px 10px; border:1px solid var(--line); border-radius:10px;
  font-size:15px; font-family:inherit; color:var(--ink); background:#fffdfb; outline:none;
}
input[type="number"]:focus{border-color:var(--accent);}
.read-result{
  background:var(--soft); border:1px solid var(--line); border-radius:12px;
  padding:14px; text-align:center; margin-top:12px;
}
.read-result .time{font-size:38px; font-weight:700; letter-spacing:.05em;}
.read-result .sub{font-size:13px; color:var(--sub);}
.read-table{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px;}
.read-table .stat .num{font-size:19px;}
.reverse{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; font-size:15px;
}
.reverse .ans{font-weight:700; color:var(--accent-dark); font-size:18px;}

/* SNS制限バー */
.limits h2{font-size:15px; margin-bottom:10px;}
.limit{margin-bottom:12px;}
.limit .row{display:flex; justify-content:space-between; font-size:13px; margin-bottom:5px;}
.limit .row .st{font-weight:700;}
.bar{height:10px; background:#f6e9e4; border-radius:999px; overflow:hidden;}
.bar i{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg,var(--accent2),var(--accent));
  border-radius:999px; transition:width .25s;
}
.bar i.over{background:var(--over);}
.ok{color:var(--ok);} .ng{color:var(--over);}

/* 記事ページ */
article.card h1{font-size:22px; line-height:1.5; margin-bottom:12px;}
article.card h2{font-size:17px; margin:20px 0 8px; padding-left:10px; border-left:4px solid var(--accent);}
article.card h2:first-of-type{margin-top:8px;}
.cta{
  background:var(--soft); border:1px dashed var(--accent); border-radius:12px;
  padding:14px; text-align:center; margin-top:18px;
}
.cta a{
  display:inline-block; background:var(--accent); color:#fff; text-decoration:none;
  border-radius:999px; padding:10px 26px; font-weight:700; margin-top:6px;
}

/* フッター */
footer.site{
  text-align:center; color:var(--sub); font-size:12px; margin-top:24px; line-height:1.9;
}
footer.site a{color:var(--sub);}
footer.site .links{margin-bottom:6px;}
footer.site .links a{margin:0 8px;}

@media (max-width:480px){
  header.site .logo{font-size:22px;}
  .read-result .time{font-size:32px;}
  .read-table{grid-template-columns:repeat(3,1fr); gap:6px;}
  .read-table .stat{padding:8px 4px;}
  .read-table .stat .num{font-size:16px;}
}
