/* 単語リスト変換：えいたんカードと同じ紙色の世界で、アクセントは緑（学習アプリのオレンジと区別する） */
:root{
  --ink:#20281f;
  --orange:#ff7a1a;
  --orange-deep:#e05e00;
  --green:#4c7a5e;
  --green-deep:#365a44;
  --paper:#fff8ef;
  --card:#fffcf7;
  --muted:#e8dcc8;
  --muted-2:#c9bda3;
  --danger:#c65b3f;
  --radius-md:16px;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Inter','Zen Maru Gothic',sans-serif;
  background:
    radial-gradient(circle at 12% 8%, #e6efe1 0%, transparent 45%),
    radial-gradient(circle at 88% 92%, #ffe9d2 0%, transparent 40%),
    var(--paper);
  color:var(--ink);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 16px 60px;
}
.app{width:100%;max-width:480px;}

/* 共通ナビ: body の余白（上28px・左右16px）を打ち消して、画面の上端と左右いっぱいに置く */
.site-bar{margin:-28px -16px 24px;width:calc(100% + 32px);}

.topbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;}
.back-btn{
  background:var(--card);
  border:1.5px solid var(--muted);
  width:34px;height:34px;
  border-radius:50%;
  font-size:15px;
  color:#7a6f5c;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
}
.back-btn:hover{border-color:var(--green);}
.tool-icon{
  width:34px;height:34px;
  border-radius:10px;
  background:var(--green);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;
  font-weight:700;
  flex-shrink:0;
}
.brand{display:flex;flex-direction:column;line-height:1.15;}
.brand-mark{font-family:'Baloo 2','Zen Maru Gothic',sans-serif;font-weight:800;font-size:19px;color:var(--green-deep);}
.brand-sub{font-size:11.5px;color:#8a7f6b;font-weight:500;}

h1{font-family:'Baloo 2','Zen Maru Gothic',sans-serif;font-size:21px;font-weight:700;margin:0 0 4px;line-height:1.4;}
p.lead{
  font-size:14px;
  font-weight:500;
  line-height:1.75;
  letter-spacing:.02em;
  color:#6b604f;
  margin:0 0 16px;
}

.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

textarea#source-text{
  width:100%;
  min-height:150px;
  resize:vertical;
  border:1.5px solid var(--muted);
  border-radius:var(--radius-md);
  padding:14px 16px;
  font-family:'Inter','Zen Maru Gothic',sans-serif;
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:var(--card);
  outline:none;
  transition:border-color .15s ease;
}
textarea#source-text:focus{border-color:var(--green);}
textarea#source-text::placeholder{color:#a79c88;}

.status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;min-height:28px;}
.status{font-size:13px;font-weight:600;color:#8a7f6b;}
.status.is-ok{color:var(--green-deep);}
.status.is-ok::before{content:'✓ ';}
.status.is-warn{color:var(--danger);}
.sample-btn{
  border:none;
  background:none;
  padding:4px 2px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  color:var(--green-deep);
  text-decoration:underline;
  text-decoration-color:var(--muted-2);
  text-underline-offset:3px;
  cursor:pointer;
}

details.skipped,
details.format-hint{
  margin-top:8px;
  border-radius:12px;
  font-size:12.5px;
  line-height:1.6;
}
details.skipped{background:#fbeae5;color:#8a3f2a;}
details.format-hint{background:#f1ece1;color:#7a6f5c;}
details summary{padding:8px 12px;cursor:pointer;font-weight:700;list-style:none;}
details summary::-webkit-details-marker{display:none;}
details summary::before{content:'＋ ';}
details[open] summary::before{content:'− ';}
details ul{margin:0;padding:0 12px 0 30px;}
details.skipped li{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all;}
details p{margin:6px 0 0;padding:0 12px 10px;}

.io-arrow{text-align:center;color:var(--muted-2);font-size:18px;margin:10px 0;}
.io-out{
  padding:16px;
  border:1.5px solid var(--muted);
  border-radius:var(--radius-md);
  background:var(--card);
  box-shadow:0 14px 30px -22px rgba(32,40,31,.4);
}

.study-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:16px;
  padding:13px 16px;
  border:1.5px dashed var(--orange);
  border-radius:999px;
  color:var(--orange-deep);
  font-weight:700;
  font-size:14.5px;
  text-decoration:none;
}
.study-link:hover{background:#fff1e3;}
.study-link[aria-disabled="true"]{border-color:var(--muted-2);color:#a79c88;pointer-events:none;}

.message{
  margin-top:12px;
  padding:10px 14px;
  border-radius:10px;
  background:#fbeae5;
  color:#a8452c;
  font-size:14px;
  line-height:1.6;
}
