* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif; color: #182022; background: #f6f4ee; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #d99734; outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -10rem; z-index: 4; }
.skip:focus { top: 8px; color: #111; background: white; padding: .6rem; }
header { background: #fff; border-bottom: 1px solid #d8dcd6; }
.bar, .frame { width: min(1200px, calc(100% - clamp(28px, 7vw, 100px))); margin: auto; }
.bar { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 19px; font-weight: 700; color: #172c34; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.film { background: #111519; color: #f6f4ee; padding: clamp(16px, 2vw, 28px) 0 clamp(20px, 3vw, 40px); }
.back { font-size: .82rem; color: #d7dbd7; }
.titles { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: baseline; justify-content: space-between; margin: 10px 0 15px; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: clamp(2.1rem, 4.8vw, 4.4rem); line-height: 1.04; font-weight: 760; letter-spacing: -.065em; }
h1 span { margin-left: .4em; font-family: Georgia, serif; font-size: .36em; font-weight: 400; font-style: italic; letter-spacing: .02em; color: #f1ab56; }
.lede { font-size: clamp(.86rem, 1.4vw, 1rem); color: #e0e3e1; line-height: 1.65; }
video { width: 100%; height: auto; background: #10151a; display: block; }
.film video { aspect-ratio: 2 / 1; max-height: 68vh; object-fit: contain; }
figcaption, .sub { font-size: .83rem; line-height: 1.65; }
.film figcaption { display: flex; flex-wrap: wrap; gap: 3px 24px; align-items: center; justify-content: space-between; margin-top: 10px; color: #c8cfcb; }
.film figcaption a { color: #fff; }
.content { max-width: 1020px; }
.panel { padding: clamp(26px, 4.8vw, 60px) 0; }
.panel + .panel { border-top: 1px solid #c6cbc6; }
h2 { font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: -.04em; }
.panel p, li { line-height: 1.75; }
.heading { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.setting { color: #4b5956; }
.switch { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.switch[hidden] { display: none; }
button { appearance: none; font: inherit; font-size: .85rem; background: #fff; color: #182022; border: 1px solid #a8ada7; border-radius: 24px; padding: .55em 1em; cursor: pointer; }
button[aria-pressed="true"] { color: #fff; background: #243733; border-color: #243733; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.pair img, .pair video { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: #171c1e; }
.pair figcaption { padding: 4px 0; color: #3f4945; }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 30px; margin: 15px 0; }
.costs div { padding-top: 12px; border-top: 1px solid #c6cbc6; }
dt { font-weight: 700; } dd { margin: .32em 0 .6em; line-height: 1.7; }
ol { padding-left: 1.45em; margin: 14px 0; } li + li { margin-top: .55em; }
details { padding: 12px 0; border-top: 1px solid #c6cbc6; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: .65em 0; }
.kit { display: inline-block; background: #233832; color: white; padding: .65em 1em; border-radius: 4px; text-decoration: none; font-weight: 650; margin: 2px 0 16px; }
.foot { border-top: 1px solid #c6cbc6; padding: 18px 0 36px; display: flex; gap: 24px; font-size: .83rem; }
@media (max-width: 720px) {
 .bar { width: calc(100% - 16px); gap: 0; align-items: flex-start; flex-direction: column; padding-top: 6px; }
 .brand { font-size: 16px; }
 .titles { margin: 10px 0; }
 .pair { grid-template-columns: 1fr; gap: 5px; }
 .pair img, .pair video { max-height: 32vh; object-fit: contain; }
 .costs { grid-template-columns: 1fr; }
 .film video { max-height: none; }
}

.take-test video { width: min(100%, 65vh); height: auto; background: #111519; object-fit: contain; }

.prompt-sample, .device-guide { margin: 1.6rem 0; }
.prompt-sample h3, .device-guide h3 { margin: 0 0 .65rem; line-height: 1.45; }
.prompt-sample > p + p { margin: .6rem 0 .9rem; }
.prompt-sample pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #ebece6; color: #192925; font: .9rem/1.65 Consolas, monospace; padding: .8rem 1rem; }
.prompt-sample h4 { margin: 1.25rem 0 .3rem; }
.device-guide dl { margin: 0; }
.device-guide dl > div { border-top: 1px solid #c6cbc6; padding: .75rem 0 .4rem; }
