:root { --theme: #285a48; --theme-soft: #e5eddd; --theme-mid: #bbd0b8; --theme-deep: #173e32; }
[data-theme="A"] { --theme: #285a87; --theme-soft: #e4eef8; --theme-mid: #b7cce3; --theme-deep: #183951; }
[data-theme="B"] { --theme: #945022; --theme-soft: #fae9d9; --theme-mid: #edc9a8; --theme-deep: #6e3417; }
[data-theme="C"] { --theme: #694886; --theme-soft: #f0e8f6; --theme-mid: #d9c6e7; --theme-deep: #4e3268; }
[data-theme="D"] { --theme: #3b6645; --theme-soft: #e5efdf; --theme-mid: #c0d6b6; --theme-deep: #23472e; }
[data-theme="E"] { --theme: #8b4560; --theme-soft: #f7e6ec; --theme-mid: #e6bed0; --theme-deep: #692d47; }

.home-page { background-color: #f7f2e6; }
.home-page .site-header { background: #fffcf2; }
.home-page .hero { position: relative; padding: 20px clamp(14px, 4vw, 50px); margin-top: 10px; overflow: hidden; border: 1px solid #dedec9; border-radius: 23px; background: radial-gradient(ellipse at 74% 45%, #f8f2d9, transparent 65%), #fdfaf0; }
.home-page .hero::after { position: absolute; pointer-events: none; content: ''; inset: 0; background-image: radial-gradient(#68807130 .7px, transparent .8px); background-size: 13px 13px; opacity: .42; mask-image: linear-gradient(90deg, transparent 25%, black 100%); }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero-copy { animation: paper-enter .55s ease-out both; }
.hero-visual { animation: paper-enter .65s .08s ease-out both; }
.home-page .hero-title { font-size: clamp(2.6rem, 4.3vw, 4.3rem); }
.hero-lead { font-size: 1rem; color: #264b3d; line-height: 1.6; margin-block: 17px 18px; }
.hero-lead .tri-ja { white-space: pre-line; }
.hero-button { min-width: 185px; justify-content: space-between; text-align: left; }
.hero-button > span:last-child { font-size: 1.35rem; margin-left: 9px; }
.format-pins { display: flex; justify-content: center; gap: 11px; margin-top: -29px; position: relative; }
.format-pins span { background: #ebefdc; color: #294d3f; border: 1px solid #c0cdb2; padding: 5px 11px; border-radius: 5px; font-size: .85rem; font-weight: 750; transform: rotate(-3deg); box-shadow: 1px 3px 0 #e0dfca; }
.format-pins span:nth-child(2) { background: #f8e7c8; border-color: #e6c9a1; transform: rotate(3deg); }
.format-pins b { margin-right: 6px; font-variant-numeric: tabular-nums; }
.home-page .goal-band { margin-top: 14px; }
.step-card { transition: translate .18s ease, box-shadow .18s ease; }
.step-card:hover { translate: 0 -4px; box-shadow: 0 8px 0 #e1dfca; }
.step-top img { animation: paper-enter .4s ease-out both; }
.word-context { width: fit-content; color: var(--ink); border-left: 3px solid #a7c2ab; padding-left: 9px; margin-top: 14px; }
.word-context .tri-id, .word-context .tri-th { font-size: .73rem; }
.vocab-extra { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 9px; }
.vocab-extra summary { cursor: pointer; color: var(--ink); }
.vocab-extra summary .tri-id, .vocab-extra summary .tri-th { margin-left: 16px; }
.vocab-extra summary .tri-ja { display: inline; }
.home-page .setup-fields { grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); }
.home-page .set-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.home-page .set-options .choice-label { text-align: left; min-width: 0; padding: 7px 8px; transition: background .18s, border-color .18s, translate .18s; }
.home-page .set-options .choice-label:hover { translate: 0 -2px; border-color: var(--theme); }
.home-page .set-options .choice input:checked + .choice-label { background: var(--theme-soft); border-color: var(--theme); box-shadow: inset 0 0 0 1px var(--theme); }
.workplace-letter { display: grid; place-items: center; width: 28px; height: 28px; font-size: .94rem; font-weight: 900; color: var(--theme-deep); background: var(--theme-mid); border-radius: 8px; margin-bottom: 6px; }
.home-page .set-options .tri-ja { font-size: .85rem; }
.home-page .set-options .tri-id, .home-page .set-options .tri-th { font-size: .68rem; }
.vocab-jump { display: inline-block; font-size: .86rem; margin-top: 8px; text-underline-offset: .16em; }
.vocab-jump .tri-id, .vocab-jump .tri-th { font-size: .71rem; }
@keyframes paper-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1010px) { .home-page .setup-fields { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 625px) {
  .home-page .hero { margin-top: 7px; padding: 4px 13px 15px; }
  .home-page .hero-title { font-size: clamp(2.25rem, 9vw, 3.1rem); }
  .hero-copy { padding: 14px 4px 0; }
  .hero-lead { margin-block: 10px 12px; }
  .format-pins { margin-top: -15px; gap: 7px; }
  .format-pins span { font-size: .74rem; padding: 4px 7px; }
  .home-page .set-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
