:root { color-scheme: light; font-size: 18px; --ink: #322747; --muted: #645372; --cream: #fffcf5; --paper: #fff; --lavender: #d9caff; --purple: #6843aa; --coral: #d84969; --yellow: #f7ce64; --line: #b7a3cd; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Meiryo, 'Yu Gothic', sans-serif; line-height: 1.8; overflow-wrap: anywhere; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: #62419c; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
h1, h2, h3, h4, h5 { line-height: 1.4; }
p + p { margin-top: .8rem; }
:focus-visible { outline: 3px solid #3e206e; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 30; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.content-width { width: min(1080px, calc(100% - 3rem)); margin-left: auto; margin-right: auto; }
.site-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(1220px, calc(100% - 3rem)); margin: auto; min-height: 82px; }
.site-name { color: var(--ink); font-family: 'Yu Mincho', serif; font-size: 1.05rem; font-weight: 700; text-decoration: none; letter-spacing: .07em; }
.page-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--ink); text-decoration: none; }
.page-nav a:hover { text-decoration: underline; }
.hero { background: var(--lavender); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; width: min(1220px, calc(100% - 3rem)); margin: auto; padding: 3.2rem 0 2.7rem; gap: 1rem; }
.hero-copy { position: relative; z-index: 1; max-width: 35rem; }
.article-topic { font-weight: 700; color: #593584; margin-bottom: .8rem; }
.hero h1 { font-family: 'Yu Gothic', Meiryo, sans-serif; font-size: clamp(2.05rem, 4.6vw, 3.55rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.25; }
.hero-intro { margin-top: 1.15rem; font-size: 1.05rem; line-height: 1.7; }
#type-form { margin-top: 1.6rem; max-width: 29rem; }
.type-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: 1.1rem; }
.type-field { min-width: 0; }
.type-field > label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.type-trigger { display: grid; grid-template-columns: minmax(0, 1fr) auto; text-align: left; align-items: center; width: 100%; min-height: 105px; background: var(--paper); border: 2px solid var(--purple); border-radius: 12px; padding: .6rem .8rem; line-height: 1.3; box-shadow: 0 4px 0 #bb9ede; }
.type-trigger strong { font-family: Arial, Meiryo, sans-serif; font-size: 1.8rem; letter-spacing: -.035em; }
.type-trigger > span:not(.picker-caret) { grid-column: 1; font-size: .9rem; margin-top: .2rem; }
.type-trigger-you strong { color: #ac3050; }
.type-trigger-other strong { color: #65429d; }
.picker-caret { grid-column: 2; grid-row: 1 / 3; font-size: 1.25rem; }
.type-trigger:hover { background: #fff8dc; }
.type-trigger[aria-invalid=true] { border-color: #9c2441; }
.field-error, .form-error { margin-top: .5rem; color: #922139; font-size: .9rem; line-height: 1.6; }
.primary-button { display: block; width: 100%; min-height: 56px; background: var(--purple); color: white; border: 2px solid var(--purple); border-radius: 30px; font-weight: 700; padding: .65rem 1rem; margin-top: 1.15rem; line-height: 1.5; }
.primary-button:hover { background: #55348e; border-color: #55348e; }
.picker-help { text-align: center; margin-top: .5rem; font-size: .9rem; color: #543e6c; }
.example-button { display: inline-flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: .1rem .5rem; min-height: 44px; text-align: left; padding: .3rem 0; background: none; border: none; margin-top: .8rem; font-size: .9rem; text-decoration: underline; text-underline-offset: .25em; }
.example-button span { font-family: Arial, sans-serif; font-weight: 700; }
.hero-art { align-self: end; margin: 0 -3rem -2.7rem -2rem; }
.hero-art img { display: block; width: 100%; height: auto; }
.no-script { padding-top: 1rem; }
.result { padding-top: 3.3rem; }
.pair-cover { position: relative; padding: 2rem 2rem 1.3rem; background: var(--lavender); border-radius: 28px; text-align: center; }
.pair-cover-label { font-size: .95rem; font-weight: 700; color: #593584; margin-bottom: .55rem; }
.pair-cover h2 { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-size: clamp(1.65rem, 3.7vw, 2.7rem); font-weight: 700; line-height: 1.45; scroll-margin-top: 1rem; }
.pair-cover h2 > span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: top; }
.pair-cover { scroll-margin-top: 1rem; }
.pair-portraits { position: relative; width: min(100%, 480px); margin: .6rem auto 0; }
.pair-portraits > img { display: block; width: 100%; height: auto; }
.pair-identities { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); align-items: end; gap: .6rem; margin-top: -2rem; }
.pair-person { margin: 0; display: grid; justify-items: center; line-height: 1.25; }
.person-role { background: var(--cream); border-radius: 20px; padding: .25rem .9rem; font-size: .9rem; font-weight: 700; }
.pair-person strong { display: block; font-family: Arial, Meiryo, sans-serif; font-size: clamp(2rem, 5.7vw, 3.7rem); letter-spacing: -.045em; margin: .25rem 0 .1rem; }
.pair-person-you strong { color: #aa294e; }
.pair-person-other strong { color: #5b3398; }
.person-name { font-size: 1rem; font-weight: 700; }
.pair-join { display: none; }
.pair-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem auto 0; max-width: 39rem; text-align: left; }
.pair-highlight { border-top: 2px solid #8761b6; padding-top: .6rem; min-width: 0; }
.pair-highlight h3 { font-size: .9rem; font-weight: 400; }
.pair-highlight p { margin-top: .2rem; font-size: 1.15rem; font-weight: 700; line-height: 1.55; }
.pair-highlight strong { display: block; font-family: Arial, sans-serif; font-size: 1.3rem; margin-bottom: .15rem; }
.pair-highlight p > span { display: block; }
.pair-theme { max-width: 39rem; margin: 1.1rem auto 0; padding: .65rem 1rem; background: var(--yellow); border-radius: 4px; line-height: 1.6; }
.pair-theme > span { display: block; font-size: .9rem; }
.pair-theme strong { font-size: 1.05rem; }
.editorial-note { font-size: .9rem; color: var(--muted); line-height: 1.65; margin-top: .75rem; }
.pair-cover .editorial-note { color: #513c69; }
.unknown-result { max-width: 37rem; margin: 1.2rem auto 0; text-align: left; }
.unknown-code { font-family: Meiryo, sans-serif !important; font-size: 1.3rem !important; letter-spacing: 0 !important; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: end; gap: 1.5rem; margin-bottom: 1.45rem; }
.section-heading h2 { font-family: 'Yu Gothic', Meiryo, sans-serif; font-size: 2rem; letter-spacing: -.04em; font-weight: 900; line-height: 1.35; }
.section-heading p { color: var(--muted); max-width: 25rem; }
.conversation-section { margin-top: 3.5rem; }
.scene-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.2rem; }
.scene-choices button { min-height: 52px; border: 1px solid #876aa6; background: var(--cream); border-radius: 28px; font-weight: 700; padding: .6rem .4rem; }
.scene-choices button[aria-pressed=true] { background: var(--purple); border: 2px solid var(--purple); color: white; }
.scene-choices button:hover:not([aria-pressed=true]) { background: #eee4ff; }
.question-stage { background: #f1e8ff; border-radius: 24px; padding: 2rem 2.5rem; }
.question-prompt { font-weight: 700; color: #654493; font-size: .95rem; }
.question-stage > h3 { font-family: 'Yu Gothic', Meiryo, sans-serif; font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1.5; font-weight: 900; letter-spacing: -.035em; max-width: 28rem; margin-top: .45rem; }
.scene-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.scene-answers button { min-height: 72px; text-align: center; background: white; border: 2px solid #8d73ac; border-radius: 12px; padding: .75rem; font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.scene-answers button:hover { background: #fff7d6; }
.scene-answers button[aria-pressed=true] { background: var(--yellow); border-color: #8b6729; }
.self-answer-note { margin-top: .85rem; font-size: .9rem; color: #665177; }
.conversation-answer { margin-top: 1.65rem; border-top: 1px solid #b69ccc; padding-top: 1.4rem; }
.answer-label { font-size: .9rem; color: #67477e; }
.conversation-answer h4 { font-size: 1.25rem; margin: .35rem 0 .8rem; scroll-margin-top: 1rem; }
.conversation-line { position: relative; background: white; border: 1px solid #b196c7; border-radius: 22px 22px 22px 3px; padding: 1.1rem 1.35rem; font-weight: 700; line-height: 1.9; }
.conversation-check { margin-top: 1.3rem; }
.conversation-check h5 { font-size: 1rem; color: #694898; margin-bottom: .4rem; }
.conversation-followup { margin-top: 1.1rem; }
.conversation-followup summary { min-height: 44px; cursor: pointer; display: list-item; padding: .4rem 0; color: #5b397c; }
.conversation-followup p { margin: .4rem 0 .6rem; }
.comparison-section { margin-top: 3.5rem; }
.comparison-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; padding: .5rem 1rem; color: #663991; font-weight: 700; }
.comparison-roles span:first-child { color: #a32e4d; }
.axis-comparison { list-style: none; padding: 0; margin: 0; }
.axis-row { border-top: 1px solid var(--line); padding: 1rem 0; }
.axis-title { text-align: center; font-size: 1rem; margin-bottom: .7rem; }
.axis-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.letter-value { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0; line-height: 1.5; min-width: 0; }
.letter-value strong { font: 700 2.15rem Arial, sans-serif; }
.letter-value strong[data-letter=you] { color: #a42b4d; }
.letter-value strong[data-letter=other] { color: #6843aa; }
.letter-meaning { font-size: 1rem; }
.match-label { font-size: .9rem; color: #624c74; border: 1px solid #9170ae; border-radius: 20px; padding: .25rem .75rem; line-height: 1.5; text-align: center; margin: 0; }
.axis-disclosure { max-width: 34rem; margin: .65rem auto 0; font-size: .95rem; }
.axis-disclosure summary { width: fit-content; margin: auto; min-height: 44px; padding: .45rem 0; cursor: pointer; color: #654590; text-decoration: underline; text-underline-offset: .25em; }
.axis-disclosure p { margin-top: .7rem; }
.disclosure-note { font-size: .9rem; color: var(--muted); }
.axis-explanation-link { display: inline-block; margin-top: .6rem; }
.comparison-note { font-size: .9rem; margin-top: .9rem; color: var(--muted); }
.type-directory { padding-top: 4rem; }
.directory-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 2.5rem; }
.directory-group { padding-top: .7rem; border-top: 2px solid var(--line); }
.directory-group h3 { font-size: 1.05rem; color: var(--purple); margin-bottom: .7rem; }
.directory-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.directory-type { display: flex; flex-wrap: wrap; gap: .2rem .65rem; align-items: baseline; padding: .3rem 0; }
.directory-type strong { font: 700 1.3rem Arial, sans-serif; }
.directory-type span { font-size: .9rem; }
.type-picker { margin: auto; width: min(740px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: 22px; background: var(--cream); color: var(--ink); padding: 1.5rem; overflow: auto; }
.type-picker::backdrop { background: rgba(41, 22, 61, .55); }
.picker-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.picker-heading h2 { flex: 1 1 7rem; min-width: 0; font-size: 1.3rem; }
.picker-close { min-height: 44px; padding: .4rem .7rem; border: 1px solid #9277a8; background: white; border-radius: 22px; font-size: .9rem; white-space: nowrap; flex-shrink: 0; }
.picker-description { margin: .4rem 0 1rem; font-size: .95rem; color: var(--muted); }
.picker-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.picker-group h3 { font-size: .95rem; margin-bottom: .5rem; color: var(--purple); }
.picker-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr)); gap: .5rem; }
.picker-types button { min-width: 0; min-height: 77px; padding: .6rem .5rem; border: 1px solid #967dad; border-radius: 10px; background: white; text-align: left; line-height: 1.4; }
.picker-types strong { display: block; font: 700 1.3rem Arial, sans-serif; }
.picker-types span { display: block; font-size: .9rem; margin-top: .15rem; }
.picker-types button[aria-pressed=true] { border: 2px solid var(--purple); background: #e6d9ff; padding: calc(.6rem - 1px) calc(.5rem - 1px); }
.picker-types button:hover { background: #fff2ce; }
.unknown-button { width: 100%; margin-top: 1.2rem; min-height: 48px; padding: .5rem; border: 1px solid #8d73a8; background: #ece2f6; border-radius: 10px; }
.article-body { width: min(43rem, calc(100% - 3rem)); margin: 4rem auto 0; }
.reading-section + .reading-section { margin-top: 3rem; }
.reading-section h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: .9rem; }
.axis-key { margin: 1.4rem 0; }
.axis-key > div { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.axis-key dt { font-weight: 700; margin-bottom: .6rem; }
.axis-key dt span { color: var(--purple); margin-right: .7rem; }
.axis-key dd { margin: 0; }
.static-question { padding-left: .8rem; border-left: 3px solid var(--lavender); }
.static-question strong { display: block; color: var(--purple); }
.static-scenes > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.static-scenes dt { font-weight: 700; color: var(--purple); }
.static-scenes dd { margin: .4rem 0 0; }
.source-section { font-size: .95rem; }
.source-section ul { padding-left: 1.3rem; }
.source-section li + li { margin-top: .5rem; }
.preview-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .site-heading { display: block; padding: .7rem 0 .4rem; min-height: 0; }
  .page-nav { gap: .1rem .8rem; }
  .page-nav a { font-size: .9rem; }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr); padding-top: 2rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero-art { margin-left: -3rem; margin-right: -2rem; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .section-heading h2 { font-size: 1.8rem; }
  .section-heading p { max-width: none; }
  .pair-cover { padding: 1.4rem; }
}
@media (max-width: 600px) {
  .content-width, .site-heading, .hero-inner, .article-body { width: calc(100% - 1.5rem); }
  .site-heading { padding-top: .55rem; }
  .site-name { font-size: .95rem; }
  .page-nav { justify-content: space-between; gap: .2rem; }
  .page-nav a { font-size: .9rem; min-height: 44px; }
  .hero-inner { display: block; padding: 1.2rem 0 1rem; }
  .hero-copy { max-width: none; }
  .article-topic { margin-bottom: .6rem; font-size: .95rem; }
  .hero h1 { font-size: clamp(1.7rem, 8.65vw, 2.1rem); letter-spacing: -.065em; line-height: 1.3; }
  .hero-intro { font-size: 1rem; margin-top: .8rem; }
  #type-form { margin-top: 1.1rem; max-width: none; }
  .type-fields { gap: .75rem; }
  .type-trigger { min-height: 93px; padding: .6rem; }
  .type-trigger strong { font-size: 1.65rem; }
  .type-trigger > span:not(.picker-caret) { font-size: .9rem; }
  .primary-button { margin-top: .95rem; min-height: 54px; }
  .picker-help { text-align: left; max-width: calc(100% - 120px); font-size: .9rem; }
  .example-button { position: relative; z-index: 2; max-width: calc(100% - 120px); margin-top: .4rem; line-height: 1.5; }
  .hero-art { position: absolute; right: -25px; bottom: 0; width: 145px; margin: 0; pointer-events: none; }
  .result { padding-top: 1.6rem; }
  .pair-cover { padding: 1.25rem .85rem 1rem; border-radius: 22px; }
  .pair-cover-label { font-size: .9rem; }
  .pair-cover h2 { font-size: 1.6rem; }
  .pair-portraits { max-width: 330px; margin-top: .7rem; }
  .pair-person strong { font-size: 2.05rem; }
  .person-role { padding: .2rem .75rem; font-size: .9rem; }
  .person-name { font-size: .9rem; }
  .pair-join { font-size: 1.25rem; padding-bottom: 1rem; }
  .pair-highlights { gap: .7rem; margin-top: 1rem; }
  .pair-highlight p { font-size: .95rem; }
  .pair-theme { text-align: left; padding: .6rem .75rem; margin-top: .8rem; }
  .pair-theme strong { font-size: .95rem; }
  .conversation-section, .comparison-section { margin-top: 2.5rem; }
  .section-heading h2 { font-size: 1.75rem; }
  .scene-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .question-stage { padding: 1.35rem 1rem; border-radius: 20px; }
  .question-stage > h3 { font-size: 1.7rem; }
  .scene-answers { gap: .7rem; margin-top: 1.2rem; }
  .scene-answers button { font-size: 1rem; padding: .65rem .45rem; min-height: 76px; }
  .conversation-line { padding: .9rem 1rem; }
  .axis-pair { gap: .5rem; }
  .letter-value { flex-direction: column; gap: .15rem; }
  .letter-value strong { font-size: 1.8rem; }
  .letter-meaning { font-size: .9rem; text-align: center; }
  .match-label { font-size: .9rem; padding: .2rem .4rem; }
  .type-directory { padding-top: 3rem; }
  .directory-groups { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .type-picker { padding: 1rem; width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .picker-heading h2 { font-size: 1.1rem; }
  .picker-groups { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .picker-types button { min-height: 73px; }
  .reading-section h2 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
