:root {
  color-scheme: light;
  --paper: #fff9fc;
  --ink: #392d43;
  --muted: #796b7c;
  --line: #e5dce7;
  --accent: #884361;
  --secondary: #715981;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { touch-action: manipulation; }
.page { max-width: 896px; margin: 0 auto; padding: 0 16px; }
.site-header { background: linear-gradient(100deg, #2d2533, #3b3042, #2d2533); color: #fff; }
.header-inner { max-width: 896px; margin: 0 auto; padding: 24px 16px; display: flex; align-items: center; gap: 14px; }
.brand-icon { flex: 0 0 36px; width: 36px; height: 40px; }
.brand-copy { flex: 1; min-width: 0; }
h1 { font-family: var(--serif); font-size: 24px; line-height: 1.6; letter-spacing: .06em; margin: 0; }
.brand-copy p { color: #c4b5ca; font-size: 12px; margin: 4px 0 0; line-height: 1.9; }
.header-note { font-size: 10px; color: #f5d6e2; white-space: nowrap; border: 1px solid #88748e; border-radius: 4px; padding: 3px 7px; }
.hero-banner { margin: 16px 0 0; overflow: hidden; border: 1px solid #e7d1df; border-radius: 12px; box-shadow: 0 3px 10px #71598117; }
.hero-banner img { display: block; width: 100%; height: auto; }
.section-nav { display: flex; position: sticky; top: 0; z-index: 10; background: #fffafb; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.section-nav a { display: flex; align-items: center; gap: 8px; padding: 15px 20px; text-decoration: none; font-size: 13px; font-weight: 600; color: #635169; border-bottom: 3px solid transparent; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
.section-nav a span { font: 15px var(--serif); color: var(--secondary); }
#guide, #emotion-heading, #result-heading, #emotion-articles { scroll-margin-top: 85px; }
.intro { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin: 24px 0; border: 1px solid #ecd3df; border-radius: 9px; background: #fff2f6; }
.intro h2 { font-family: var(--serif); color: var(--accent); font-size: 18px; margin: 0 0 9px; }
.guide-mark { font: 25px var(--serif); color: var(--secondary); padding-top: 2px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--secondary); margin: 0 0 10px; }
.lead { color: #795369; font-size: 12px; line-height: 2; margin: 0; }
.lead strong { font-weight: 600; display: inline-block; margin-right: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 3px #392d4308; }
.controls { padding: 28px; }
.controls-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preset-panel { margin-bottom: 24px; }
.preset-panel h2 { font-family: var(--serif); font-size: 14px; color: #635169; font-weight: 600; margin-bottom: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-button { padding: 9px 13px; border: 1px solid #ecd3df; background: #fff7fa; border-radius: 7px; color: var(--accent); font-size: 12px; }
.preset-button:hover { border-color: var(--accent); background: #fceaf1; }
.selection-status { font-size: 12px; color: var(--muted); margin: -15px 0 24px; min-height: 1.8em; }
.endpoint-labels { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; }
.endpoint-labels > div { display: flex; align-items: baseline; gap: 12px; }
.endpoint-labels > div:last-child { text-align: right; }
.endpoint-labels span { font-size: 16px; font-weight: 600; }
.endpoint-labels strong { font: 28px Georgia, serif; }
.endpoint-labels > div:first-child { color: #9b4567; }
.endpoint-labels > div:last-child { color: #72538d; }
.blend-components { display: flex; flex-wrap: wrap; gap: 8px; }
.component-chip { font-size: 12px; border: 1px solid #e0d5eb; border-radius: 6px; padding: 4px 12px; color: var(--secondary); background: #f7f2fc; }
.blend-summary { font-size: 13px; color: var(--muted); margin: 16px 0 22px; line-height: 2; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
h2 { font-family: var(--serif); font-size: 18px; margin: 0; }
.step { display: inline-block; font: 12px Georgia, serif; color: #fff; background: var(--accent); border-radius: 4px; padding: 5px 6px; margin-right: 10px; vertical-align: 2px; }
.emotion-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 18px 0 32px; }
.emotion-button { min-height: 46px; border: 1px solid var(--line); border-radius: 7px; color: #635169; background: #fcf9fc; font-size: 14px; }
.emotion-button:hover { border-color: var(--accent); color: var(--accent); }
.emotion-button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 700; box-shadow: 0 1px 2px #88436126; }
.meter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
output { font-family: Georgia, serif; font-size: 32px; color: var(--accent); line-height: 1.2; }
output span { font: 12px sans-serif; color: var(--muted); }
.muted { color: var(--muted); }
#meter-hint { font-size: 13px; margin: 10px 0; }
.arc-meter { position: relative; border-radius: 12px; margin-top: 8px; }
.arc-meter:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
#intensity:focus-visible { outline: none; }
#meter-arc { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.arc-band { fill: none; stroke: url(#meter-gradient); stroke-width: 80; }
.arc-tick { stroke: #fff9fc; stroke-width: 3; }
.arc-tick-label { fill: var(--muted); font: 15px Georgia, serif; text-anchor: middle; }
.arc-marker { cursor: grab; }
#meter-arc.dragging, #meter-arc.dragging .arc-marker { cursor: grabbing; }
.marker-halo { fill: #fff; fill-opacity: .5; }
.marker-disc { fill: #fff9fc; stroke: #795369; stroke-width: 2.5; }
.marker-caption { fill: var(--muted); font: 10px sans-serif; text-anchor: middle; }
.marker-value { fill: var(--ink); font: bold 22px Georgia, serif; text-anchor: middle; }
.arc-level-title { fill: var(--ink); font: 22px var(--serif); text-anchor: middle; }
.arc-instructions { fill: var(--muted); font: 12px sans-serif; text-anchor: middle; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 0; }
.level-options { display: flex; gap: 6px; margin: 20px 0 12px; }
.level-button { flex: 1; min-height: 38px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; padding: 6px 3px; }
.level-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; background: #fceaf1; }
.small { font-size: 11px; line-height: 1.9; }
#meter-note { margin-bottom: 0; }
.results { padding-top: 32px; }
.result-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.result-header .eyebrow { margin-bottom: 4px; }
.result-header h2 { font-family: var(--serif); color: var(--accent); font-size: 24px; line-height: 1.6; }
.badge { font-size: 11px; color: var(--accent); background: #fff2f6; border: 1px solid #ecd3df; padding: 3px 10px; border-radius: 5px; white-space: nowrap; }
.word-panel { padding: 23px 26px; margin-bottom: 14px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
h3 { font-family: var(--serif); font-size: 14px; margin: 0; font-weight: 600; color: #635169; }
.words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.word { text-align: left; background: none; border: 0; padding: 0; color: var(--ink); border-radius: 4px; }
.word strong { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--accent); overflow-wrap: anywhere; }
.word:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.word span { display: block; font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 7px; }
.description-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sample-card { padding: 22px 26px; }
.sample-mark { color: var(--accent); margin-right: 7px; font-family: serif; }
.copy-button { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; padding: 7px 10px; min-height: 36px; }
.copy-button:hover { color: var(--accent); border-color: var(--accent); }
.sample-text { font-family: var(--serif); font-size: 16px; line-height: 2; margin: 17px 0 0; }
.body-card { grid-column: 1 / -1; }
.article-link { display: flex; gap: 14px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 18px; padding: 20px 0; }
.article-link p { margin: 0 0 5px; }
.article-link a { font-size: 13px; font-weight: 600; color: var(--secondary); }
.article-link > span { color: var(--accent); font-size: 23px; }
.editorial-note { margin-bottom: 32px; }
.article-directory { margin-top: 32px; padding: 26px; }
.article-directory h2 { color: var(--accent); }
.article-directory > p { font-size: 13px; margin: 12px 0 20px; line-height: 2; }
.article-directory-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.article-directory-links a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff9fc; text-decoration: none; }
.article-directory-links a:hover { border-color: var(--accent); background: #fff2f6; }
.article-directory-links strong { display: block; font-size: 14px; color: var(--accent); }
.article-directory-links span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
footer { padding: 25px 16px 30px; margin: 36px -16px 0; border-top: 1px solid var(--line); background: #f8f2f7; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; border-radius: 8px; padding: 10px 20px; font-size: 13px; max-width: calc(100vw - 32px); width: max-content; pointer-events: none; }
.toast:empty { display: none; }
.manual-copy { padding: 22px; margin-bottom: 30px; }
.manual-copy textarea { display: block; width: 100%; padding: 10px; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; color: var(--ink); background: white; }
.notice { padding: 20px; border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .header-inner { padding: 20px 16px; gap: 10px; flex-wrap: wrap; }
  .brand-icon { flex-basis: 28px; width: 28px; height: 34px; }
  h1 { font-size: 18px; letter-spacing: .02em; }
  .brand-copy p { font-size: 10px; }
  .header-note { margin-left: 38px; }
  .section-nav a { padding: 13px 10px; gap: 5px; font-size: 12px; }
  .intro { padding: 18px 16px; gap: 10px; }
  .intro h2 { font-size: 16px; }
  .guide-mark { font-size: 22px; }
  .lead { font-size: 12px; }
  .controls { padding: 22px 18px; }
  .endpoint-labels > div { gap: 7px; }
  .endpoint-labels span { font-size: 14px; }
  .endpoint-labels strong { font-size: 24px; }
  .controls-heading { align-items: flex-start; }
  .emotion-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 26px; }
  .emotion-button { font-size: 12px; }
  h2 { font-size: 15px; }
  output { font-size: 28px; }
  .step { margin-right: 6px; }
  .level-button { font-size: 11px; }
  .result-header h2 { font-size: 21px; }
  .word-panel, .sample-card { padding: 20px; }
  .words { grid-template-columns: 1fr; gap: 18px; }
  .word strong { font-size: 22px; }
  .word span { margin-top: 2px; }
  .description-grid { grid-template-columns: 1fr; }
  .article-directory { padding: 22px 18px; }
  .article-directory-links { grid-template-columns: 1fr; }
  .body-card { grid-column: auto; }
}
