:root {
  --paper: #fffaf2;
  --ink: #24413f;
  --body: #495c59;
  --line: #cbd8cf;
  --aqua: #d7f3ee;
  --butter: #fff1c0;
  --accent: #08776e;
  --button: #9eebd4;
  --sans: ui-rounded, "Hiragino Maru Gothic ProN", "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  --mono: "Courier New", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
:is(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
.wrap { width: min(1220px, calc(100% - 112px)); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; padding: 9px 15px; background: white; z-index: 20; }
.skip:focus { top: 8px; }

.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .foot-inner { display: flex; align-items: center; gap: 26px; }
.mast-inner { min-height: 78px; }
.signature { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.06em; }
.signature .mascot-mark { display: block; width: 39px; height: 39px; object-fit: contain; mix-blend-mode: multiply; }
.mast nav { display: flex; gap: 30px; margin-left: auto; margin-right: 20px; }
.mast nav a, .nav-brief, .action, .text-link { font-size: 14px; font-weight: 700; }
:is(.mast nav a, .text-link, .service-list a, .official-link, footer a):hover { color: var(--accent); }
.nav-brief, .action {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 46px; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 999px; line-height: 1.2;
  transition: background .18s, transform .18s;
}
.nav-brief { margin-left: auto; background: var(--ink); color: var(--paper); }
.mast nav + .nav-brief { margin-left: 0; }
.action { background: var(--button); color: #163e39; }
.nav-brief:hover { background: #365e58; }
.action:hover { background: #83dcc2; transform: translateY(-1px); }
.arrow-icon { display: inline-block; vertical-align: -.1em; }
.nav-brief > span, .action > span, #brief .brief-submit > span[aria-hidden] { display: inline-flex; align-items: center; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 6%; padding-block: clamp(40px, 5vw, 76px); }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; }
.mini-line { display: inline-block; width: 22px; height: 3px; background: var(--accent); border-radius: 4px; }
.hero h1 { margin: 25px 0 19px; font-size: clamp(54px, 5.3vw, 78px); font-weight: 800; line-height: .98; letter-spacing: -.067em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 420px; color: var(--body); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 27px; }
.text-link, .official-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid currentColor; }
.official-link { color: var(--accent); font-size: 14px; font-weight: 700; }

.hero-art { min-width: 0; }
.hero-frame {
  display: grid; justify-items: center; gap: clamp(14px, 2vw, 24px);
  padding: clamp(19px, 3vw, 42px); border: 1px solid #bedbd1; border-radius: 24px; background: var(--aqua);
}
.plate-label, .hero-panel, .plate-translation { width: min(100%, 494px); }
.plate-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; align-items: baseline; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.plate-label > :first-child { text-transform: uppercase; }
.plate-label > :last-child { color: #4c6861; }
.hero-frame .hero-panel { display: block; height: auto; object-fit: contain; background: #fff; box-shadow: 0 1px 0 #a9c3bb; }
.plate-translation { margin: 0; padding: 0; color: #27514b; font-size: clamp(17px, 1.8vw, 23px); font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.hero-art figcaption, .episode-page figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; margin: 9px 4px 0; color: var(--body); font-size: 12px; }
.hero-art figcaption i { color: var(--accent); padding: 0 3px; font-style: normal; }

.section-pad { padding: clamp(45px, 5vw, 75px) 0; }
.concepts, .services, .process { border-top: 1px solid var(--line); }
.concepts { background: #fff6db; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.story-copy { width: min(100%, 455px); }
.story-copy h2, .section-intro h2, .process h2 { font-size: clamp(39px, 4vw, 60px); letter-spacing: -.055em; }
.story-copy h2, .process h2 { margin-top: 11px; }
.red { color: var(--accent); }
.story-deck, .section-intro p, .process-grid p, .service-list p { color: var(--body); font-size: 15px; line-height: 1.6; }
.story-deck { margin-top: 17px; font-size: 17px; }
.story-translation { margin: 24px 0 17px; padding: 13px 0; border-block: 1px solid #d8cfb0; }
.story-translation summary { cursor: pointer; font-size: 14px; font-weight: 750; }
.story-translation p { margin-top: 11px; color: var(--body); font-size: 14px; }
.episode-page { justify-self: center; width: min(100%, 390px); min-width: 0; }
.episode-enlarge { display: block; width: 100%; padding: 7px; border: 1px solid #c4bea7; border-radius: 8px; background: #fff; cursor: zoom-in; box-shadow: 0 2px 0 #dbcfa8; transition: border-color .2s; }
.episode-enlarge:hover { border-color: var(--accent); }
.episode-enlarge img { display: block; width: 100%; height: auto; object-fit: contain; }
.enlarge-label { color: var(--accent); font-weight: 750; }

.services { background: #eef8f2; }
.info-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 10%; }
.section-intro h2 { margin: 16px 0; }
.section-intro p { max-width: 345px; }
.service-list article { border-top: 1px solid #afc9c0; padding: 19px 0 23px; }
.service-list article:last-child { padding-bottom: 0; }
.service-list h3, .process-grid h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; letter-spacing: -.035em; }
.service-list p { margin: 9px 0; }
.service-list a { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.service-list a span { margin-left: 4px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 29px; padding: 0; list-style: none; counter-reset: step; }
.process-grid li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 15px; }
.process-grid li::before { content: "0" counter(step); color: var(--accent); font: 700 12px var(--mono); }
.process-grid h3 { margin: 11px 0 7px; font-size: 24px; }
.process-grid p { max-width: 345px; }
main #brief { background: #e5f5ee; --brief-ink: var(--ink); --brief-muted: var(--body); --brief-rule: #b3c9c0; }
main #brief .brief-intro h2, main #brief .brief-intro em { font-family: var(--sans); font-weight: 800; font-style: normal; letter-spacing: -.062em; }
main #brief .brief-intro em { color: var(--accent); }
footer { padding: 26px 0; border-top: 1px solid var(--line); }
.foot-inner > span, .foot-inner > a:last-child { font: 12px var(--sans); }
.foot-inner > a:last-child { margin-left: auto; }


#episode-dialog { position: fixed; width: min(540px, calc(100% - 28px)); max-height: 92dvh; padding: 0; overflow: auto; border: 1px solid var(--ink); border-radius: 14px; color: var(--ink); background: white; }
#episode-dialog::backdrop { background: #203a37cd; }
.reader-bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 13px 6px 17px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 750; }
.close-reader { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 16px; line-height: 1; cursor: pointer; }
.close-reader:hover { border-color: var(--accent); }
.reader-page { display: block; width: min(100%, 494px); height: auto; margin: 12px auto; object-fit: contain; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 4%; }
  .hero h1 { font-size: clamp(48px, 5.8vw, 65px); }
  .nav-brief, .action { gap: 12px; }
  .mast nav { gap: 21px; margin-right: 4px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 64px; gap: 12px; }
  .mast nav { display: none; }
  .mast nav + .nav-brief { margin-left: auto; }
  .signature { font-size: 25px; }
  .signature .mascot-mark { width: 32px; height: 32px; }
  .nav-brief { padding: 9px 15px; min-height: 41px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 34px; }
  .hero h1 { margin: 17px 0 14px; font-size: clamp(44px, 10.6vw, 65px); }
  .hero-copy > p { max-width: 480px; }
  .hero-actions { margin-top: 18px; gap: 12px 20px; }
  .hero-frame { border-radius: 17px; padding: clamp(11px, 3.6vw, 20px); gap: 12px; }
  .plate-label { font-size: 10px; }
  .section-pad { padding-block: 38px; }
  .story-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .story-copy { width: min(100%, 500px); }
  .story-deck { margin-top: 11px; font-size: 16px; }
  .story-translation { margin: 16px 0 12px; }
  .episode-page { width: min(100%, 408px); }

  .info-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-intro h2 br { display: none; }
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .process-grid li { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; }
  .process-grid h3 { margin: 0; }
  .process-grid p { grid-column: 2; margin-top: 5px; max-width: none; }
  .foot-inner { flex-wrap: wrap; gap: 13px; }
  .foot-inner > span, .foot-inner > a:last-child { font-size: 11px; }
  #episode-dialog { width: calc(100% - 12px); max-height: 94dvh; border-radius: 9px; }
  .reader-page { margin-block: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

#brief {
  --brief-ink: #182d25;
  --brief-muted: #4e5c51;
  --brief-rule: #b9c2b2;
  color: var(--brief-ink);
  background: #eaf0df;
  border-top: 1px solid var(--brief-ink);
  scroll-margin-top: 1.5rem;
}
#brief [hidden] { display: none !important; }
#brief .brief-layout {
  width: min(100% - clamp(2.4rem, 10vw, 12rem), 1280px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}
#brief .brief-intro h2 {
  font: 700 clamp(3.6rem, 6.4vw, 6.5rem)/.93 Arial, Helvetica, sans-serif;
  letter-spacing: -.085em;
  margin: 0 0 1.5rem;
}
#brief .brief-intro em {
  font: italic .99em/.95 Georgia, 'Times New Roman', serif;
  letter-spacing: -.085em;
}
#brief .brief-intro p, #brief-confirmation p {
  max-width: 35ch;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.6;
}
#brief .brief-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.1rem;
}
#brief .brief-field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  color: var(--brief-ink);
  font-weight: 650;
  font-size: .87rem;
  line-height: 1.4;
  min-width: 0;
}
#brief .brief-wide { grid-column: 1 / -1; }
#brief input, #brief select, #brief textarea {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: .75rem .83rem;
  border: 1px solid var(--brief-rule);
  border-radius: .2rem;
  background-color: #f8f8ef;
  color: var(--brief-ink);
  font: 400 1rem/1.35 inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}
#brief select {
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 48%, #233b2d 50%, #233b2d 68%, transparent 70%), linear-gradient(135deg, transparent 33%, #233b2d 35%, #233b2d 52%, transparent 54%);
  background-size: .43rem .43rem, .43rem .43rem;
  background-position: right 1.03rem center, right .65rem center;
  background-repeat: no-repeat;
}
#brief textarea { resize: vertical; min-height: 112px; }
#brief ::placeholder, #brief select:invalid { color: #59675a; opacity: 1; }
#brief .brief-field :focus { outline: 2px solid #315438; outline-offset: 2px; }
#brief .brief-details { border-block: 1px solid var(--brief-rule); margin-top: 1.25rem; }
#brief .brief-details summary {
  list-style: none;
  display: block;
  position: relative;
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 650;
  font-size: .88rem;
}
#brief .brief-details summary::-webkit-details-marker { display: none; }
#brief .brief-details summary::after { content: '+'; position: absolute; right: .2rem; font-size: 1.3rem; font-weight: 450; top: 50%; transform: translateY(-50%); }
#brief .brief-details[open] summary::after { content: '−'; }
#brief .brief-details summary span { color: var(--brief-muted); font-weight: 400; }
#brief .brief-details .brief-fields { padding-bottom: 1.35rem; }
#brief .brief-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#brief .brief-privacy { max-width: 64ch; margin: 1.1rem 0; color: var(--brief-muted); font-size: .81rem; line-height: 1.55; }
#brief .brief-submit, #brief .brief-restart {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.7rem;
  min-height: 46px;
  padding: .65rem 1.25rem .65rem 1.45rem;
  border: 1px solid var(--brief-ink);
  border-radius: 999px;
  background: var(--brief-ink);
  color: #fff9ed;
  font-family: inherit;
  font-weight: 650;
  font-size: .94rem;
  line-height: 1.25;
  cursor: pointer;
}
#brief .brief-submit:hover, #brief .brief-restart:hover { background: #294b36; }
#brief .brief-submit span[aria-hidden], #brief .brief-restart span { font-size: 1.25em; }
#brief .brief-submit:disabled { opacity: .65; cursor: wait; }
#brief :is(button, summary, [tabindex="-1"]):focus-visible { outline: 2px solid #315438; outline-offset: 4px; }
#brief-error { padding: .75rem 1rem; color: #782a22; background: #ffe6d5; border-left: 2px solid #bb493a; font-size: .9rem; }
#brief-confirmation { padding: 1.75rem; border: 1px solid var(--brief-rule); border-radius: .25rem; }
#brief .brief-check { font-size: 1.5rem; color: #345c3e; margin-bottom: 1rem; }
#brief-confirmation h3 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 4rem); font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.055em; line-height: 1; }
#brief-confirmation .brief-reference { margin: 1rem 0 1.25rem; font-size: .85rem; }
#brief-reference { display: block; font-family: monospace; margin-top: .2rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #brief .brief-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  #brief .brief-intro h2 br { display: none; }
  #brief .brief-intro h2 em::before { content: ' '; }
  #brief .brief-intro p { max-width: 50ch; }
}
@media (max-width: 440px) {
  #brief .brief-fields { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  #brief .brief-submit { width: 100%; }
}
