/* LINEスタンプ添削システム 共通の見た目
   方針：あたたかい紙の色・こげ茶の文字・ピンクの差し色。
   カードの縁は全周同じ太さ。片側だけの色帯は使わない。 */
:root {
  --paper: #fbf6ee;
  --card: #fffdf9;
  --ink: #4a3a2e;
  --ink-soft: #7d6b5d;
  --line: #e6d9c8;
  --pink: #e9879a;
  --pink-soft: #fde9ec;
  --mint: #dff1e6;
  --mint-ink: #2f7a55;
  --butter: #fdf1cf;
  --butter-ink: #8a6512;
  --talk: #8cabd8;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 18px 80px; }
.wrap.wide { max-width: 1180px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 6px; letter-spacing: .02em; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { color: var(--ink-soft); margin-bottom: 22px; }
.small { font-size: .85rem; color: var(--ink-soft); }
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-weight: 700; margin-bottom: 4px; }
label.field > small { display: block; color: var(--ink-soft); font-size: .85rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.7; field-sizing: content; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}
button, .btn {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #b98884;
  border: 1.5px solid #b98884;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover { filter: brightness(.96); }
button:disabled { opacity: .5; cursor: default; }
button.ghost, .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
button.mini { padding: 4px 14px; font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { border-radius: 12px; padding: 10px 14px; margin: 12px 0; border: 1.5px solid var(--line); background: #fff; }
.msg.err { background: var(--pink-soft); border-color: #f3c3cb; }
.msg.ok { background: var(--mint); border-color: #bfe2cd; color: var(--mint-ink); }
.chip {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  white-space: nowrap;
}
.chip.pink { background: var(--pink-soft); border-color: #f3c3cb; }
.chip.mint { background: var(--mint); border-color: #bfe2cd; color: var(--mint-ink); }
.chip.butter { background: var(--butter); border-color: #efdca0; color: var(--butter-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumb {
  aspect-ratio: 370 / 320;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.thumb img { max-width: 100%; max-height: 100%; display: block; }
.bg-talk .thumb { background: var(--talk); }
.bg-dark .thumb { background: #2b2b2b; }
.bg-check .thumb {
  background-color: #fff;
  background-image: linear-gradient(45deg, #e3e3e3 25%, transparent 25%, transparent 75%, #e3e3e3 75%), linear-gradient(45deg, #e3e3e3 25%, transparent 25%, transparent 75%, #e3e3e3 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.stars { display: inline-flex; gap: 1px; vertical-align: middle; font-size: 1.45rem; line-height: 1; color: #f0b429; }
.stars .off { color: #e6d9c8; }
.avatar { width: 92px; height: auto; border-radius: 16px; border: 1.5px solid var(--line); background: #f3eee2; flex: none; display: block; }
ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin-bottom: 6px; }
@media (max-width: 520px) {
  h1 { font-size: 1.35rem; }
  .card { padding: 16px; }
}

.msg.ai-note { background: var(--butter); border-color: #efdca0; font-size: .92rem; }

[hidden] { display: none !important; }
.field-title { font-weight: 700; margin-bottom: 4px; }
