:root { color-scheme: light; --background: #fafafa; --surface: #f1f3f5; --ink: #17191c; --muted: #606873; --accent: #264d73; --line: #dfe3e8; --page-width: 1080px; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 1rem/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; background: var(--background); overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 20; background: white; padding: 8px 14px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.character-site { width: min(var(--page-width), calc(100% - 48px)); margin: 24px auto; background: var(--background); border: 5px solid transparent; }
.game-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.project-logo { text-decoration: none; line-height: 1.4; }
.project-logo > span { display: block; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.project-logo small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; letter-spacing: .12em; }
.game-header nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.game-header nav a { font-size: .875rem; font-weight: 700; text-decoration: none; letter-spacing: .035em; padding-block: 5px; border-bottom: 2px solid transparent; }
.game-header nav a:hover, .game-header nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.page-heading { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 35px 24px 28px; text-align: center; }
.page-heading p { font-size: .875rem; letter-spacing: .2em; color: var(--muted); }
.page-heading h1 { color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: .14em; line-height: 1.3; }
.heading-rule { width: 90px; height: 1px; background: var(--line); }
.character-select { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 0 32px 30px; }
.character-choice { display: flex; flex-direction: column; align-items: stretch; position: relative; padding: 5px 5px 9px; border: 2px solid var(--line); border-radius: 2px; background: var(--background); color: var(--ink); cursor: pointer; min-width: 0; }
.character-choice[aria-pressed="true"] { border-color: var(--accent); }
.character-choice:hover { border-color: var(--accent); }
.face-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 110px; background: var(--surface); color: var(--muted); }
.face-placeholder > span { font-size: 2.7rem; line-height: 1; font-weight: 300; }
.face-placeholder small { margin-top: 5px; font-size: .75rem; letter-spacing: .12em; }
.face-placeholder { position: relative; overflow: hidden; background: var(--background); }
/* 肩から頭の範囲。キャラごとに位置を調整します。 */
.character-choice { --portrait-x: 52%; --portrait-y: 5.5%; --character-accent: #b18a0b; }
.character-choice[data-character="02"] { --portrait-x: 52%; --portrait-y: 3.5%; --character-accent: #8c3045; }
.character-choice[data-character="03"] { --portrait-x: 52%; --portrait-y: 5%; --character-accent: #3979b0; }
.character-choice[data-character="04"] { --portrait-x: 53%; --portrait-y: 7.5%; --character-accent: #929aa3; }
.face-placeholder img { position: absolute; top: 0; left: 50%; display: block; width: 220%; max-width: none; height: auto; transform: translate(calc(-1 * var(--portrait-x)), calc(-1 * var(--portrait-y))); }
.character-empty { background: var(--surface); cursor: default; }
.character-empty:hover { border-color: var(--line); }
.character-description { white-space: pre-line; }
.choice-name { margin-top: 8px; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.choice-english { color: var(--ink); font-size: .75rem; letter-spacing: .12em; }
.character-profile { --character-color: var(--ink); --character-pale: var(--surface); --character-edge: var(--line); position: relative; background: var(--background); }
.profile-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 34px; border-block: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.profile-ribbon p { font-size: 1rem; font-weight: 700; }
.profile-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; padding: 36px 38px 30px; }
.character-copy { z-index: 1; min-width: 0; padding-block: 8px; }
.name-reading { margin-left: 3px; color: var(--muted); font-size: .875rem; letter-spacing: .12em; }
.name-block h2 { color: var(--ink); font-size: clamp(1.75rem, 3.3vw, 2.65rem); line-height: 1.55; font-weight: 600; }
.name-english { margin-top: 2px; color: var(--ink); font-size: 1.1rem; letter-spacing: .14em; }
.character-quote { margin-block: 24px 30px; color: var(--character-color); font-size: 1rem; font-weight: 600; line-height: 1.9; }
.profile-heading { display: flex; align-items: baseline; gap: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--character-edge); }
.profile-heading h3 { color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: .1em; }
.profile-heading span { font-size: .875rem; color: var(--muted); }
.profile-facts { margin-top: 10px; }
.profile-facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding-block: 8px; border-bottom: 1px dotted var(--character-edge); font-size: .875rem; }
.profile-facts dt { color: var(--character-color); font-weight: 600; }
.profile-facts dd { color: var(--muted); }
.character-description { margin-top: 22px; font-size: 1rem; line-height: 2; }
.standing-art { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.standing-placeholder { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 520px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.standing-number { position: absolute; top: 30px; left: 20px; color: #c6ccd3; font-size: clamp(4rem, 12vw, 8rem); font-weight: 300; line-height: 1; }
.standing-label { text-align: center; font-size: 1.5rem; line-height: 1.6; letter-spacing: .1em; }
.standing-note { margin-top: 15px; font-size: .875rem; }
.standing-art > img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; }
.expression-stage { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 680px; background: var(--background); touch-action: manipulation; }
.expression-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.expression-navigation[hidden] { display: none; }
.expression-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; opacity: 0; pointer-events: none; cursor: pointer; }
.expression-arrow img { display: block; width: 100%; height: 100%; filter: brightness(0) invert(1) drop-shadow(0 1px 3px #0005); }
.expression-previous { left: 12px; }
.expression-next { right: 12px; }
.expression-stage:hover .expression-arrow { opacity: .65; pointer-events: auto; }
.expression-stage .expression-arrow:hover { opacity: .85; }
.expression-stage .expression-arrow:focus-visible { opacity: .85; pointer-events: auto; }
@media (hover: none), (pointer: coarse), (max-width: 640px) { .expression-navigation { display: none; } }
@media print { .expression-navigation { display: none; } }
.standing-art figcaption { color: var(--muted); font-size: .75rem; letter-spacing: .12em; margin-top: 10px; }
.profile-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 32px; border-top: 1px solid var(--character-edge); color: var(--character-color); background: var(--character-pale); font-size: .75rem; letter-spacing: .14em; }
.selection-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.game-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 26px 32px; color: var(--muted); font-size: .8125rem; }
.game-footer small { font-size: inherit; }
@media (max-width: 760px) {
  .character-site { width: calc(100% - 24px); margin-block: 12px; border-width: 3px; }
  .game-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .game-header nav { gap: 8px 18px; }
  .page-heading { padding: 26px 12px 22px; gap: 10px; }
  .page-heading h1 { font-size: 1.5rem; letter-spacing: .08em; white-space: nowrap; }
  .heading-rule { width: 22px; flex-shrink: 0; }
  .character-select { padding-inline: 16px; gap: 8px; }
  .face-placeholder { height: 75px; }
  .choice-name { font-size: .875rem; }
  .choice-english { font-size: .75rem; letter-spacing: 0; }
  .profile-ribbon { padding: 18px 20px; gap: 12px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 28px; }
  .character-copy { display: contents; }
  .character-introduction { order: 0; padding-top: 8px; }
  .character-introduction .character-quote { margin-bottom: 0; }
  .profile-layout > .standing-art { order: 1; }
  .profile-details { order: 2; }
  .standing-placeholder { min-height: 360px; }
  .profile-bottom, .game-footer { padding-inline: 20px; }
}
@media print { body { background: white; } .character-site { width: 100%; box-shadow: none; } .character-select, .game-header nav, .game-footer > a { display: none; } }

/* 6人を1行に収め、狭い画面ではラベルをコンパクトにします。 */
.character-select { gap: 10px; }
.choice-name { font-size: .875rem; }
.choice-english, .face-placeholder small { font-size: .625rem; letter-spacing: .03em; }
@media (max-width: 760px) {
  .character-select { padding-inline: 8px; gap: 4px; }
  .character-choice { padding: 3px 2px 6px; }
  .face-placeholder { height: 64px; }
  .face-placeholder > span { font-size: clamp(1.25rem, 5vw, 2rem); }
  .face-placeholder small, .choice-english { display: none; }
  .choice-name { font-size: clamp(.5rem, 1.8vw, .75rem); line-height: 1.6; }
}

/* VIDEO・RESEARCHと同じ見出しサイズと位置。 */
.page-heading { width: min(920px, calc(100% - 16px)); margin-inline: auto; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; padding: 38px 0 24px; text-align: left; }
.page-heading h1 { font-size: 1.5rem; line-height: 1.45; font-weight: 600; letter-spacing: .02em; }
.page-heading > span { color: var(--muted); font-size: .875rem; }
.character-profile { --tagline-color: #b18a0b; }
.character-profile[data-theme="02"] { --tagline-color: #8c3045; }
.character-profile[data-theme="03"] { --tagline-color: #3979b0; }
.character-profile[data-theme="04"] { --tagline-color: #929aa3; }
.character-choice[aria-pressed="true"], .character-choice:not(:disabled):hover { border-color: var(--character-accent); }
.profile-ribbon p { font-size: clamp(1.15rem, 2.3vw, 1.55rem); line-height: 1.6; font-weight: 600; }
.tagline-lead { color: var(--muted); }
.tagline-emphasis { color: var(--tagline-color); font-size: 1.3em; font-weight: 800; }
.tagline-tail { color: var(--tagline-color); }
.tagline-emoji { display: inline-block; margin-left: .25em; font-size: 1.15em; }
@media (min-width: 641px) and (max-width: 760px) { .page-heading { width: calc(100% - 40px); } }
@media (max-width: 640px) {
  .page-heading { padding-block: 28px 18px; }
  .page-heading h1 { letter-spacing: .02em; }
  .profile-ribbon { align-items: flex-start; }
}
