.tomori {
  --paper: #f6f2e9;
  --linen: #faf7f0;
  --ink: #282822;
  --muted: #5d584f;
  --line: #cfc5b5;
  --accent: #774a34;
  --wash: #eee6d9;
  --dark: #31362e;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.8 var(--sans);
  -webkit-text-size-adjust: 100%;
}
.tomori *, .tomori *::before, .tomori *::after { box-sizing: inherit; }
.tomori [hidden] { display: none !important; }
.tomori figure, .tomori blockquote, .tomori fieldset { margin: 0; }
.tomori h1, .tomori h2 { font-family: var(--sans); font-weight: 650; line-height: 1.55; }
.tomori .title-phrase { display: inline-block; max-width: 100%; }
.tomori .hero h1, .tomori .result-hero h1 { font-family: var(--serif); font-weight: 600; }
.tomori p { margin: 0 0 1rem; }
.tomori a { color: inherit; text-underline-offset: .25em; }
.tomori button, .tomori input, .tomori select { font: inherit; }
.tomori button { cursor: pointer; color: inherit; }
.tomori :focus-visible { outline: 2px solid #81452a; outline-offset: 4px; }
.tomori [data-screen-heading]:focus { outline: none; }
.tomori .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tomori .shell { max-width: 1440px; padding: 0 clamp(1.25rem, 5.5vw, 5.5rem); margin: auto; }
.tomori .masthead {
  display: flex;
  min-height: 80px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.tomori .wordmark {
  display: inline-flex;
  align-items: center;
  gap: .76rem;
  min-height: 44px;
  text-decoration: none;
  font: 600 .76rem/1 var(--sans);
  letter-spacing: .26em;
}
.tomori .wordmark-symbol {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #ab8062;
  color: #774c34;
  font: 600 1.30rem/1 var(--serif);
  letter-spacing: 0;
}
.tomori .text-button { background: transparent; border: 0; padding: .55rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: .32em; }
.tomori .header-faq { font-size: .88rem; }
.tomori .hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(2.2rem, 6vw, 7.2rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}
.tomori .hero-copy { padding-left: clamp(0px, 1.8vw, 30px); }
.tomori .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  font-size: .87rem;
  letter-spacing: .17em;
  font-weight: 650;
}
.tomori .eyebrow span { width: 26px; height: 1px; background: currentColor; flex: none; }
.tomori .hero h1 {
  margin: 1.2rem 0 1.35rem;
  font-size: clamp(2.3rem, 4.4vw, 4.9rem);
  line-height: 1.43;
  letter-spacing: .05em;
}
.tomori .hero-intro { line-height: 2.05; color: var(--muted); }

.tomori .hero-figure {
  background: #ede6d9;
  border: 1px solid var(--line);
  padding: 10px;
  position: relative;
}
.tomori .hero-figure img {
  display: block;
  width: 100%;
  height: clamp(365px, 36vw, 510px);
  object-fit: cover;
  object-position: center 64%;
  background: #5e4b38;
}
.tomori .hero-figure figcaption {
  position: absolute;
  padding: .18rem .42rem;
  right: 15px;
  bottom: 15px;
  background: #282822;
  color: #fffaf0;
  font-size: .73rem;
}
.tomori .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.tomori .hero-actions { margin-top: 1.7rem; }
.tomori .button {
  min-height: 50px;
  max-width: 100%;
  padding: .64rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #afa291;
  background: var(--linen);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  transition: background-color .18s ease, border-color .18s ease;
}
.tomori .button.primary { background: var(--dark); color: #fffcf3; border-color: var(--dark); }
.tomori .button.primary:hover { background: #475042; }
.tomori .button.secondary:hover, .tomori .button.quiet:hover { background: #eae2d3; border-color: #8f7d69; }
.tomori .button.quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .3em; }
.tomori .intro-strip {
  display: grid;
  grid-template-columns: .80fr 1.05fr 1.15fr;
  border-block: 1px solid var(--line);
  padding: 1.15rem 0;
  color: var(--muted);
  font-size: .88rem;
}
.tomori .intro-strip span { padding: 0 1rem; text-align: center; }
.tomori .intro-strip span + span { border-left: 1px solid var(--line); }
.tomori .intro-strip strong { color: var(--ink); margin-right: .45rem; }
.tomori .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem 1rem;
  margin-top: clamp(2rem,5vw,4rem);
  padding: 1.45rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.tomori .intro-strip + .footer { border: 0; }
.tomori .footer small { display: block; margin-top: .15rem; font-size: .81rem; }
.tomori .external { margin-left: .4em; }
.tomori .reading { width: min(100%, 720px); margin-inline: auto; }
.tomori .question { padding-top: clamp(1.6rem, 4.4vw, 3.5rem); }
.tomori .question h1, .tomori .catalog h1 { font-size: clamp(1.5rem, 3.1vw, 2.35rem); margin: .85rem 0 1rem; letter-spacing: .015em; text-wrap: balance; }
.tomori .progress-wrap { margin-bottom: clamp(1.45rem, 3vw, 2rem); }
.tomori .progress-wrap p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  margin: 0 0 .5rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}
.tomori progress {
  display: block;
  width: 100%;
  height: 5px;
  appearance: none;
  color: var(--accent);
  border: 0;
  background: #e3dbcd;
}
.tomori progress::-webkit-progress-bar { background: #e3dbcd; }
.tomori progress::-webkit-progress-value { background: var(--accent); }
.tomori progress::-moz-progress-bar { background: var(--accent); }
.tomori .options { display: grid; gap: .65rem; }
.tomori .option {
  width: 100%;
  display: grid;
  grid-template-columns: .8rem minmax(0, 1fr) .75rem;
  align-items: center;
  gap: .95rem;
  min-height: 62px;
  padding: .85rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--linen);
  text-align: left;
  line-height: 1.62;
  transition: background-color .18s ease, border-color .18s ease;
}
.tomori .option:hover, .tomori .guide-card:hover, .tomori summary:hover, .tomori .option.chosen { background: #eee6d9; border-color: #9e8168; }
.tomori .option-mark { width: 10px; height: 10px; border: 1px solid #91745e; border-radius: 50%; }
.tomori .chosen .option-mark { background: var(--accent); border-color: var(--accent); }
.tomori .chevron { display: block; width: 7px; height: 7px; border: solid var(--accent); border-width: 1px 1px 0 0; transform: rotate(45deg); margin-right: 3px; }
.tomori .option.check { grid-template-columns: 1.55rem minmax(0, 1fr); cursor: pointer; }
.tomori input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--dark); margin: 0; }
.tomori .question-form fieldset { padding: 0; border: 0; min-inline-size: 0; }
.tomori .question-form .practice-fields { display: grid; gap: .9rem; margin-block: .95rem; }
.tomori .field { display: grid; gap: .3rem; font-weight: 650; }
.tomori .field select {
  max-width: 100%;
  min-height: 49px;
  border: 1px solid #a69784;
  border-radius: 0;
  appearance: none;
  color: var(--ink);
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 17px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 12px center / 5px 5px no-repeat, var(--linen);
  padding: .55rem 2.1rem .55rem .68rem;
  font-weight: 400;
}
.tomori .back-row { margin-top: .8rem; }
.tomori .form-error { color: #923520; }
.tomori .form-error:empty { display: none; }
.tomori .question-form > button { margin-top: .9rem; }
.tomori .question-note { color: var(--muted); margin-bottom: 1.15rem; }
.tomori .teacher-note {
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border-left: 2px solid var(--accent);
  background: var(--wash);
  margin-bottom: 1.5rem;
}
.tomori .teacher-note p { margin: .45rem 0; }
.tomori .teacher-note small { display: block; margin-top: .6rem; color: var(--muted); font-size: .84rem; }
.tomori .faq-list { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.tomori details { background: var(--linen); border: 1px solid var(--line); }
.tomori summary {
  padding: .77rem .88rem;
  min-height: 49px;
  font-weight: 650;
  cursor: pointer;
}
.tomori .faq-answer { padding: .15rem .9rem 1rem; }
.tomori .faq-answer ul, .tomori .related { padding-left: 1.3rem; margin: 0; }
.tomori .faq-answer li, .tomori .related li { margin-bottom: .28rem; overflow-wrap: anywhere; }
.tomori .faq-answer a, .tomori .related a { display: inline-block; min-height: 32px; }
.tomori .catalog { padding-top: clamp(1.8rem, 4vw, 3.4rem); }
.tomori .catalog-intro { margin-bottom: 1.8rem; text-align: center; }
.tomori .catalog-intro .eyebrow { justify-content: center; }
.tomori .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tomori .guide-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--linen);
  text-align: left;
}
.tomori .motif-frame { display: grid; place-items: center; }
.tomori .guide-card .motif-frame { width: 100%; background: var(--tint); }
.tomori .guide-card canvas { display: block; color: var(--motif); width: 100%; height: auto; }
.tomori .guide-card-body { display: grid; gap: .45rem; padding: .9rem 1rem 1.2rem; }
.tomori .guide-card-body strong { font: 650 1.19rem/1.5 var(--sans); }
.tomori .guide-card-body > span:last-child { color: var(--muted); }
.tomori .catalog > .actions { justify-content: center; margin-top: 1.5rem; }
.tomori .oat { --tint: #efe2c9; --motif: #75532b; }
.tomori .clay { --tint: #f2dfd6; --motif: #825747; }
.tomori .reed { --tint: #e9ead4; --motif: #5c642e; }
.tomori .mist { --tint: #deeaec; --motif: #41636a; }
.tomori .moss { --tint: #e0e8d9; --motif: #456344; }
.tomori .violet { --tint: #e9e3ec; --motif: #695577; }
.tomori .result {
  --result-measure: 40rem;
  --result-gap: clamp(3.5rem, 4.5vw, 4.5rem);
  --result-leading: 1.95;
  padding-top: clamp(1.5rem, 3.5vw, 3rem);
}
.tomori .result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem clamp(1.75rem, 5vw, 5rem);
  padding: clamp(2.75rem, 5.3vw, 5rem) clamp(2rem, 5.1vw, 4.75rem);
  background: var(--tint);
}
.tomori .result-hero canvas {
  display: block;
  color: var(--motif);
  width: min(100%, 290px);
  height: auto;
}
.tomori .type-tag { color: var(--motif); font: 650 .86rem/1.4 var(--sans); letter-spacing: .16em; }
.tomori .result-hero .type-tag { margin: 0 0 clamp(1.05rem, 2vw, 1.6rem); font-weight: 550; }
.tomori .result-hero h1 {
  margin: 0 0 clamp(1.65rem, 3vw, 2.5rem);
  font-size: clamp(1.9rem, 3.45vw, 3.45rem);
  line-height: 1.46;
  letter-spacing: .035em;
  text-wrap: balance;
}
.tomori .result-focus { max-width: 33rem; }
.tomori .result-focus h2 {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 550;
  letter-spacing: .06em;
}
.tomori .result-focus p {
  margin: 0;
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: var(--result-leading);
  text-wrap: pretty;
}
.tomori .result-body {
  width: min(100%, var(--result-measure));
  padding-top: var(--result-gap);
  display: grid;
  gap: var(--result-gap);
  line-height: var(--result-leading);
  font-weight: 400;
}
.tomori .result-body h2, .tomori .other-guides h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .025em;
}
.tomori .result-body p { margin: 0; }
.tomori .result-body p + p { margin-top: 1.2rem; }
.tomori .result-body .insight-headline {
  font-size: clamp(1.18rem, 2.05vw, 1.55rem);
  font-weight: 600;
  line-height: 1.65;
  text-wrap: pretty;
}
.tomori .result-body .next-step {
  background: var(--tint);
  padding: clamp(1.4rem, 3.35vw, 2.75rem);
}
.tomori .next-step .button, .tomori .share .actions { margin-top: 1.25rem; }
.tomori .result-body details, .tomori .result-body summary:hover { border: 0; background: transparent; }
.tomori .result-body summary {
  padding: .6rem 0;
  font-weight: 550;
  text-underline-offset: .3em;
}
.tomori .result-body summary:hover, .tomori .result-details > summary { text-decoration: underline; }
.tomori .result-body .faq-list { margin-bottom: 0; }
.tomori .result-body .faq-answer { padding: .45rem 0 .8rem 1rem; }
.tomori .result-body .faq-answer ul { margin-top: .75rem; }
.tomori .detail-body {
  display: grid;
  gap: var(--result-gap);
  padding-top: 1.65rem;
}
.tomori .result-body .result-quote {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
  background: transparent;
}
.tomori .result-quote figcaption {
  color: var(--muted);
  font-size: .87rem;
  font-weight: 550;
  margin-bottom: .7rem;
}
.tomori .result-quote blockquote { line-height: var(--result-leading); }
.tomori .result-body .share-status { margin-top: .55rem; }
.tomori .result-body .share-status:empty { margin: 0; }
.tomori .manual-copy { width: 100%; padding: .5rem; border: 1px solid var(--line); color: var(--ink); background: var(--linen); }
.tomori .other-guides { margin: var(--result-gap) auto 0; width: min(100%, var(--result-measure)); line-height: var(--result-leading); }
.tomori .other-guides .motif-frame { background: var(--linen); }
.tomori .other-guides .guide-card canvas, .tomori .other-guides .type-tag { color: var(--muted); }
.tomori .other-guides .guide-card-body strong { font-size: 1.04rem; font-weight: 600; }
.tomori .other-guides .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tomori .result-actions { justify-content: center; margin: var(--result-gap) auto 0; width: min(100%, var(--result-measure)); }
.tomori main > section, .tomori main > article { animation: tomori-enter .26s ease both; }
@keyframes tomori-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) {
  .tomori .shell { padding-inline: clamp(1.15rem, 4vw, 2.75rem); }
  .tomori .hero { gap: 1.6rem; }
  .tomori .hero-copy { padding-left: 0; }
  .tomori .intro-strip span { padding: 0 .5rem; }
}
@media (max-width: 680px) {
  .tomori .masthead { min-height: 61px; }
  .tomori .hero { grid-template-columns: minmax(0,1fr); gap: 1.25rem; padding-block: 1.65rem; }
  .tomori .hero h1 { font-size: clamp(1.95rem, 7.45vw, 3rem); letter-spacing: .035em; margin: .65rem 0 .9rem; }
  .tomori .hero-figure { padding: 6px; }
  .tomori .hero-figure img { height: clamp(190px, 56vw, 320px); object-position: center 64%; }
  .tomori .hero-figure figcaption { bottom: 10px; right: 10px; }
  .tomori .hero-actions { margin-top: .8rem; }
  .tomori .hero-actions .primary { width: 100%; }
  .tomori .hero-actions .quiet { width: 100%; min-height: 44px; }
  .tomori .intro-strip { grid-template-columns: 1fr; gap: .35rem; padding: .85rem 0; }
  .tomori .intro-strip span { padding: 0; text-align: left; }
  .tomori .intro-strip span + span { border-left: 0; }
  .tomori .desktop-break { display: none; }
  .tomori .footer { flex-wrap: wrap; }
  .tomori .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .tomori .result { --result-gap: 2.75rem; }
  .tomori .result-body, .tomori .other-guides { width: calc(100% - .75rem); }
  .tomori .result-hero { grid-template-columns: minmax(0, 1fr); padding: 2rem 1.35rem 2.25rem; }
  .tomori .result-hero .motif-frame { position: absolute; top: .65rem; right: .4rem; width: 6.35rem; }
  .tomori .result-hero .type-tag { margin-bottom: 1.35rem; padding-right: 5rem; }
  .tomori .result-hero h1 { margin-bottom: 1.5rem; font-size: clamp(1.55rem, 7.5vw, 1.9rem); }
  .tomori .result-focus h2 { margin-bottom: .45rem; }
  .tomori .hero-figure img { height: clamp(185px, 52vw, 295px); }
  .tomori .option { min-height: 60px; gap: .74rem; padding: .77rem .78rem; }
}
@media (max-width: 420px) {
  .tomori .card-grid, .tomori .other-guides .card-grid { grid-template-columns: 1fr; }
  .tomori .guide-card { display: grid; grid-template-columns: minmax(70px, 27%) minmax(0, 1fr); }
  .tomori .guide-card .motif-frame { align-self: stretch; }
  .tomori .guide-card canvas { object-fit: contain; }
  .tomori .guide-card-body { padding: .66rem .75rem .8rem; }
  .tomori .guide-card-body strong { font-size: 1.14rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tomori main > section, .tomori main > article { animation: none; }
  .tomori .button, .tomori .option { transition: none; }
}
