* { box-sizing: border-box; }
:root {
  color: #35292d;
  background: #f6efe8;
  font-family: "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  color-scheme: light;
}
body { margin: 0; background: radial-gradient(ellipse at 50% 0%, #fdf9ed, transparent 34rem); }
header, footer { max-width: 700px; margin: auto; padding: 16px 22px; font-size: .8rem; color: #6d4b50; }
header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid #d9c6aa; }
header span:first-child { font-weight: 700; letter-spacing: .11em; }
.edition, .kicker { letter-spacing: .11em; }
main {
  max-width: 700px; margin: 24px auto; padding: clamp(18px, 5vw, 44px);
  background: #fffcf6; border: 1px solid #e5d7c8;
  box-shadow: 0 18px 50px #52333113;
  overflow-wrap: anywhere; line-break: strict;
}
.hero, .result {
  padding: clamp(16px, 4vw, 30px); border: 1px solid #d6bd9a;
  background: radial-gradient(ellipse at top left, #fffaf0, transparent 75%), linear-gradient(145deg, #f8e9e7, #f3dedf);
}
.hero::before {
  content: ""; display: block; height: clamp(108px, 29vw, 184px); margin-bottom: 18px;
  border-bottom: 1px solid #d8bca4;
  background: url(flowers.svg) right 8% bottom / auto 112% no-repeat,
    radial-gradient(circle at 28% 48%, #fffbed 0 21px, #fff7dc8a 22px 32px, transparent 70px),
    linear-gradient(130deg, #ead3d7, #f8ede2 65%, #e9cfd3);
}
.result { border-top: 3px solid #b79366; }
.kicker { color: #764b52; font-size: .8rem; font-weight: 700; }
h1, h2, header { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; }
h1 { font-size: clamp(1.5rem, 5.6vw, 2.35rem); font-weight: 600; line-height: 1.5; margin: .6em 0 .8em; }
.hero h1 { font-size: clamp(1.55rem, 5.3vw, 2.8rem); letter-spacing: .035em; }
.result h1 { margin-bottom: .22em; }
h2 { font-size: 1.18rem; margin: 0; }
p { margin: .45rem 0 0; }
.hero p { font-weight: 700; color: #69434c; }
.intro { margin-top: 22px; }
.meta, .note { font-size: .87rem; color: #694d50; margin-top: 17px; }
progress { display: block; width: 100%; height: 8px; margin: 10px 0 22px; accent-color: #8b5360; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend { padding: 0; margin-bottom: 12px; color: #694d50; }
label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 13px; margin-bottom: 10px; border: 1px solid #ceb5ae; background: #fffaf5; cursor: pointer; }
label:has(:checked) { background: #f5e2e4; border-color: #945962; }
input { accent-color: #864d59; width: 18px; height: 18px; margin: 0; flex: none; }
button, a { display: block; min-height: 48px; padding: 11px 16px; color: #fff; background: #783e4c; border: 1px solid #783e4c; border-radius: 3px; text-align: center; font: inherit; cursor: pointer; }
button { width: 100%; margin-top: 12px; }
button:hover:not(:disabled), a:hover { filter: brightness(1.13); }
button:disabled { background: #ede1dc; color: #745f60; border-color: #d8c5c3; cursor: default; }
.secondary { background: transparent; color: #783e4c; }
:focus-visible { outline: 2px solid #76474e; outline-offset: 3px; }
section { padding: 19px 0; border-bottom: 1px solid #e4d5c7; }
section h2 { color: #6b414a; }
section:nth-of-type(4) { margin-top: 14px; padding: 16px; background: #f8ece9; border: 1px solid #e4cfc8; }
aside { margin: 24px 0; padding: 16px; background: #f3ece1; }
aside a { margin-top: 12px; }
footer { text-align: center; }
@media (max-width: 730px) { main { margin: 12px; } }
h1, label span { text-wrap: balance; }
.conversation { margin-top: 28px; border: 1px solid #dcc6ae; background: #faf1e9; padding: clamp(16px, 5vw, 26px); }
.conversation h2 { color: #6b414a; line-height: 1.55; }
.conversation h3 { font-size: 1rem; color: #633d48; margin: 0; }
.conversation-topic { background: #fffaf5; border-left: 3px solid #b79366; margin: 16px 0; padding: 12px 14px; }
.line-entry { border-top: 1px solid #dcc6ae; padding-top: 12px; }
.line-name { font-weight: 700; }
.line-small { font-size: .82rem; color: #694d50; margin-top: 10px; }
.line-entry a { background: #216748; border-color: #216748; color: #fff; text-decoration: none; font-weight: 700; }
.line-entry a:hover { background: #195238; filter: none; }
/* V1.5 editorial layout */
:root { background: #f5eee7; }
body { background: radial-gradient(ellipse at 50% 0%, #fffaf0, transparent 40rem); }
header { padding-block: 13px; }
main { border: 0; border-radius: 18px; box-shadow: 0 18px 54px #4b2c3010; }
.hero, .result { border: 0; padding: 0; background: none; }
.hero::before { content: none; }
.cover-art, .result-art { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero .kicker, .result .kicker { margin-top: 18px; }
.hero h1 { margin: .35em 0; line-height: 1.4; }
.hero p { margin-top: 12px; font-size: .92rem; }
.intro { margin-top: 15px; }
.meta { margin-top: 12px; }
button, .line-entry a { min-height: 52px; border-radius: 100px; }
button { transition: background-color .15s, box-shadow .15s; }
button:not(:disabled):active { transform: translateY(1px); }
[data-screen=quiz] { padding-block: clamp(25px, 6vw, 44px); }
[data-screen=quiz] h1 { margin-block: .75em 1em; }
progress { appearance: none; border: 0; background: #ebded8; border-radius: 20px; overflow: hidden; }
progress::-webkit-progress-bar { background: #ebded8; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#bd8b84,#824d5b); border-radius: 20px; }
progress::-moz-progress-bar { background: #824d5b; }
label { border-radius: 12px; min-height: 64px; padding: 14px; transition: background-color .15s, box-shadow .15s; }
label:has(:checked) { box-shadow: inset 0 0 0 1px #945962; }
.result h1 { margin: .25em 0 .55em; letter-spacing: .06em; }
.detail { padding: 19px 4px; }
.detail h2 { display: flex; align-items: baseline; gap: 9px; }
.detail h2::before { content: ""; width: 7px; height: 7px; flex: none; background: #ad8062; transform: rotate(45deg); align-self: center; }
.detail-0 { background: #f8f0e7; border-radius: 0 0 12px 12px; border: 0; padding: 14px 16px; margin-bottom: 6px; }
.result-art { border-radius: 12px 12px 0 0; }
.detail:nth-of-type(4) { background: linear-gradient(135deg,#faeee8,#f1e0e4); border: 0; border-radius: 12px; }
.conversation { border: 0; border-radius: 16px; background: linear-gradient(135deg,#f6e7e1,#fbf3e7); box-shadow: inset 0 2px #c49b75; }
.conversation-topic { border-radius: 4px 10px 10px 4px; }
.line-entry a { box-shadow: 0 5px 15px #21674820; }
@media (prefers-reduced-motion: no-preference) {
  .hero, .result, [data-screen=quiz] fieldset { animation: editorial-in .2s ease-out; }
  @keyframes editorial-in { from { opacity: .82; transform: translateY(3px); } }
}
@media (max-width: 365px) {
  main { margin-inline: 8px; padding-inline: 15px; }
  .hero h1 { font-size: 1.48rem; }
}
