:root {
  --ink: #173c44;
  --muted: #49676c;
  --sky: #d7f2fa;
  --cinema-sky: #b8e2f2;
  --teal: #c0efe1;
  --orange: #fc8b45;
  --line: #c9dadb;
  --paper: #ffffff;
  --gutter: 64px;
  --header-height: 80px;
  --bridge-height: 56px;
  --stage-height: calc(100svh - var(--header-height) - var(--bridge-height));
  font-family: Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; font-size: 17px; line-height: 1.8; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0b758e; outline-offset: 5px; }
button { border: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
[data-i18n] { white-space: pre-line; }
svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
[hidden] { display: none !important; }
#main:focus { outline: none; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
#site-header { position: sticky; top: 0; z-index: 10; min-height: var(--header-height); background: #ffffff; border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-height); padding: 0 36px; display: flex; align-items: center; gap: 28px; max-width: 2000px; margin: auto; }
.brand { line-height: 1; flex-shrink: 0; }
.brand a { display: block; }
.brand-logo { display: block; width: 156px; height: 39px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { position: relative; font-size: 14px; font-weight: 700; line-height: 44px; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.language-switch { display: none; border-bottom: 1px solid var(--line); gap: 2px; }
.has-js .language-switch { display: flex; }
.language-button { display: grid; place-items: center; padding: 0 9px; min-width: 40px; height: 44px; font-size: 12px; font-weight: 700; background: transparent; color: var(--muted); }
.language-button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px; font-size: 13px; font-weight: 700; line-height: 1.6; border-radius: 4px; background: var(--orange); }
.header-cta svg { width: 18px; height: 18px; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 44px; background: var(--paper); color: var(--ink); border: 1px solid #ffffff77; position: relative; transition: background 160ms, transform 160ms; }
.icon-button:hover { background: var(--teal); }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 10px); right: 0; padding: 6px 12px; border-radius: 4px; background: var(--ink); color: white; font-size: 12px; line-height: 1.5; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }
.story { position: relative; }
.cinema { position: relative; }
.film-stage { position: relative; isolation: isolate; overflow: hidden; background: var(--cinema-sky); color: white; }
.home-stage { height: var(--stage-height); min-height: 390px; }
.film { position: absolute; width: 100%; height: 100%; top: 0; left: 0; object-fit: cover; object-position: center; z-index: -1; }
.film-topline { display: flex; align-items: center; justify-content: space-between; position: absolute; top: 26px; left: var(--gutter); right: var(--gutter); font-size: 11px; font-weight: 700; line-height: 1.5; text-shadow: 0 1px 5px #173c4488; }
.film-wordmark { position: absolute; top: 58px; left: var(--gutter); font-size: 108px; font-weight: 900; font-style: italic; line-height: 1; text-shadow: 0 2px 14px #173c4470; }
.brand-wordmark { width: 480px; aspect-ratio: 600 / 148; }
.brand-wordmark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 3px #ffffffcc); }
.wordmark-dot { color: #fc8b45; font-style: normal; }
.chapter-copy { position: absolute; left: var(--gutter); right: auto; bottom: 54px; max-width: min(610px, calc(100% - var(--gutter) * 2 - 130px)); text-shadow: 0 2px 9px #173c44bb, 0 1px 2px #173c4488; }
.chapter-copy h2, .page-caption { font-size: 46px; font-weight: 800; line-height: 1.4; }
.chapter-copy .eyebrow { margin-bottom: 14px; }
[data-caption-position="right"] .chapter-copy { left: auto; right: var(--gutter); text-align: right; }
.eyebrow, .section-number { font-size: 11px; font-weight: 700; line-height: 1.6; }
.eyebrow.light { color: white; }
.film-controls { display: none; gap: 10px; position: absolute; bottom: 50px; right: var(--gutter); }
.has-js .film-controls { display: flex; }
[data-caption-position="right"].home-stage .chapter-copy { bottom: 126px; }
.film-progress { height: 3px; background: #ffffff44; width: 100%; position: absolute; left: 0; bottom: 0; }
.film-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--orange); }
.video-fallback { position: absolute; left: var(--gutter); right: var(--gutter); top: 184px; padding: 8px 12px; width: fit-content; background: white; color: var(--ink); font-size: 13px; line-height: 1.5; }
.story-bridge { height: var(--bridge-height); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: #fff; font-size: 12px; border-bottom: 1px solid var(--line); }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
.icon-link:hover { color: #0a8670; }
.section { padding: 90px var(--gutter) 104px; }
.section > * { max-width: 1472px; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.section-number { color: var(--muted); text-align: right; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 96px; align-items: start; }
.display { font-size: 49px; font-weight: 700; line-height: 1.45; }
.lead { font-size: 20px; line-height: 2; text-wrap: pretty; }
.small-copy { font-size: 13px; line-height: 1.8; color: var(--muted); }
.intro-body > * + * { margin-top: 26px; }
.intro-body { padding-top: 7px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 15px; line-height: 1.8; font-weight: 700; padding: 10px 0; border-bottom: 1px solid currentColor; }
.text-link svg, .pill-link svg, .closing-link svg { transition: transform 180ms; }
.text-link:hover svg, .pill-link:hover svg, .closing-link:hover svg { transform: translate(3px, -3px); }
.pill-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; font-weight: 700; font-size: 15px; line-height: 1.7; padding: 15px 24px; min-height: 56px; border-radius: 4px; background: var(--ink); color: white; }
.sky-band { background: var(--sky); }
.teal-band { background: var(--teal); }
.karte-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #7fb7c1; margin-top: 62px; padding-top: 44px; font-size: 12px; font-weight: 700; }
.karte-line svg { width: 32px; height: 32px; color: #4f8992; }
.karte-logotype { font-size: 72px; font-weight: 800; font-style: italic; line-height: 1; }
.karte-logotype span { color: #f1772e; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.manga-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.manga-card { display: block; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--sky); box-shadow: 0 5px 18px #173b4512; }
.manga-card img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; transition: transform 180ms ease; }
.manga-card:hover img { transform: scale(1.02); }
.manga-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.manga-note { margin-top: 28px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.manga-hero { background: var(--sky); padding-top: 64px; padding-bottom: 48px; }
.manga-hero h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.12; letter-spacing: -0.04em; margin-top: 18px; }
.manga-hero .lead { margin-top: 24px; max-width: 1472px; }
.manga-hero .text-link { margin-top: 20px; }
.manga-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 16px var(--gutter); font-size: 26px; font-weight: 800; line-height: 1.4; background: var(--teal); border-top: 1px solid var(--line); }
.manga-entry:hover { background: var(--sky); }
.service-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 52px; }
.preview-item { position: relative; display: flex; flex-direction: column; padding: 30px 42px 32px 0; border-top: 1px solid var(--line); min-height: 146px; gap: 18px; }
.preview-item h3 { font-size: 24px; line-height: 1.5; }
.preview-item svg { position: absolute; right: 3px; bottom: 39px; }
.preview-item:hover { color: #07836d; }
.closing { background: var(--orange); padding: 68px var(--gutter) 78px; }
.closing > * { max-width: 1472px; margin-left: auto; margin-right: auto; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-top: 26px; }
.closing h2 { font-size: 56px; line-height: 1.4; }
.closing-link { display: flex; align-items: center; gap: 28px; font-size: 17px; font-weight: 700; }
.circle-arrow { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; }
.circle-arrow svg { width: 38px; height: 38px; }
#site-footer { padding: 60px var(--gutter) 28px; background: #eef9fc; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; max-width: 1472px; margin: 0 auto 50px; }
.footer-brand { display: inline-block; }
.footer-brand .brand-logo { width: 300px; height: 75px; }
.footer-tagline { font-size: 13px; margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: 450px; font-weight: 700; font-size: 13px; padding-top: 8px; }
.footer-nav a { min-height: 44px; display: flex; align-items: center; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; font-size: 11px; color: var(--muted); gap: 22px; max-width: 1472px; margin: auto; }
.page-stage { height: min(680px, calc(100svh - var(--header-height) - 160px)); min-height: 440px; }
.page-wordmark { font-size: 92px; top: 64px; }
.group-stage .page-wordmark { left: auto; right: var(--gutter); text-align: right; }
.page-intro { padding-top: 56px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; }
.steps li { border-top: 1px solid #8eb6bf; padding-top: 20px; }
.step-number { display: block; font-size: 72px; font-weight: 400; line-height: 1; color: #1f838c; margin-bottom: 28px; }
.steps h3 { font-size: 23px; line-height: 1.5; margin-bottom: 16px; }
.steps p { font-size: 16px; line-height: 1.9; }
.service-section { padding-top: 0; }
.service-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 44px; gap: 44px; border-top: 1px solid var(--line); padding: 46px 0; scroll-margin-top: 24px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-index > span { display: block; font-size: 44px; line-height: 1; margin-bottom: 16px; color: #31888f; }
.service-row h2 { font-size: 29px; line-height: 1.5; margin-bottom: 20px; }
.service-row p:not(.eyebrow) { color: var(--muted); max-width: 680px; font-size: 17px; line-height: 1.9; }
.service-row .icon-link { align-self: center; border-radius: 50%; border: 1px solid var(--line); }
.company-details { margin-top: 64px; max-width: 1000px; }
.company-details > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding: 24px 0; border-top: 1px solid var(--line); }
.company-details > div:last-child { border-bottom: 1px solid var(--line); }
.company-details dt { font-size: 14px; color: var(--muted); padding-top: 3px; }
.company-details dd { margin: 0; font-size: 19px; }
.company-details .text-link { padding: 0; font-size: 19px; }
.cast-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
.cast-list li { padding-top: 24px; border-top: 1px solid #8eb6bf; }
.cast-number { font-size: 12px; color: var(--muted); }
.cast-list h3 { font-size: 25px; margin: 20px 0 12px; }
.cast-list p { font-size: 13px; line-height: 1.8; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 64px; }
.contact-options article { display: flex; align-items: flex-start; flex-direction: column; padding: 28px 0 0; border-top: 1px solid var(--line); }
.contact-options h3 { display: flex; align-items: center; gap: 14px; font-size: 29px; line-height: 1.5; margin: 24px 0 18px; }
.contact-options h3 svg { width: 28px; height: 28px; }
.contact-options p { color: var(--muted); margin-bottom: 30px; }
.contact-options a { margin-top: auto; }
.faq-list { max-width: 960px; margin-top: 58px; }
.faq-list details { border-top: 1px solid #8eb6bf; padding: 0; }
.faq-list details:last-child { border-bottom: 1px solid #8eb6bf; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; cursor: pointer; padding: 24px 0; font-size: 18px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { transition: transform 160ms; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list details p { padding: 0 50px 28px 0; color: var(--muted); }
.noscript-note { padding: 20px var(--gutter); font-size: 13px; }
html:not(.has-js) #site-footer { display: none; }
@media (min-width: 761px) {
  .page-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, #173c4499 0, #173c4400 38%), linear-gradient(to top, #173c44b3 0, #173c4400 52%); }
  .page-stage .film-topline { font-size: 12px; text-shadow: 0 1px 6px #173c44cc, 0 0 2px #173c44aa; }
  .page-stage .film-wordmark { text-shadow: 0 2px 16px #173c44aa; }
  .page-stage .chapter-copy .eyebrow { text-shadow: 0 1px 6px #173c44cc; }
  .home-stage:not([data-chapter="office"]) .film-wordmark { font-size: 60px; }
  .home-stage:not([data-chapter="office"]) .brand-wordmark { width: 270px; }
}
@media (min-width: 1800px) {
  :root { --gutter: 88px; }
  .film-wordmark { font-size: 132px; }
  .brand-wordmark { width: 580px; }
  .chapter-copy h2, .page-caption { font-size: 52px; }
  .page-wordmark { font-size: 92px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .header-inner { padding: 0 24px; gap: 24px; }
  .primary-nav { gap: 18px; }
  .header-actions { gap: 14px; }
  .header-cta { padding: 10px 12px; }
  .header-cta span { display: none; }
  .header-cta svg { width: 22px; height: 22px; }
  .intro-layout { gap: 52px; }
  .display { font-size: 39px; }
  .lead { font-size: 18px; }
  .service-row { grid-template-columns: 180px minmax(0, 1fr) 44px; gap: 28px; }
  .cast-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { gap: 28px; }
  .manga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --header-height: 136px; --bridge-height: 50px; }
  .header-inner { padding: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: calc(var(--header-height) - 88px) 88px; gap: 0; }
  .header-inner > .brand { margin-left: 20px; }
  .brand-logo { width: 130px; height: 32.5px; }
  .header-actions { grid-column: 2; grid-row: 1; margin-left: auto; margin-right: 20px; gap: 10px; }
  .header-cta { display: none; }
  .language-button { width: 34px; min-width: 34px; padding: 0; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 44px); align-items: stretch; gap: 0; margin: 0; padding: 0 12px; border-top: 1px solid var(--line); }
  .primary-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 16px; line-height: 1.3; text-align: center; white-space: normal; }
  .primary-nav a::after { left: 8px; right: 8px; bottom: 6px; }
  .home-stage { min-height: 410px; }
  .film { object-fit: contain; }
  .film-topline { top: 19px; font-size: 9px; color: var(--ink); text-shadow: none; }
  .film-wordmark { top: 47px; font-size: 64px; color: var(--ink); text-shadow: none; }
  .brand-wordmark { width: 280px; }
  .brand-wordmark img { filter: none; }
  .chapter-copy, [data-caption-position="right"] .chapter-copy { left: var(--gutter); right: 100px; bottom: 28px; text-align: left; max-width: none; color: var(--ink); text-shadow: none; }
  .chapter-copy .eyebrow { margin-bottom: 10px; color: var(--ink); }
  .chapter-copy h2, .page-caption { font-size: 27px; line-height: 1.5; }
  [data-caption-position="right"].home-stage .chapter-copy { bottom: 28px; }
  .film-controls { right: 18px; bottom: 26px; flex-direction: column; gap: 8px; }
  .film-controls .icon-button { width: 38px; height: 38px; flex-basis: 38px; }
  .film-controls svg { width: 18px; height: 18px; }
  .story-bridge { font-size: 11px; padding: 0 var(--gutter); }
  .story-bridge > span { max-width: calc(100% - 44px); }
  .section { padding: 54px var(--gutter) 64px; }
  .section-heading { margin-bottom: 32px; gap: 12px; }
  .eyebrow, .section-number { font-size: 9px; }
  .intro-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .display { font-size: 32px; line-height: 1.5; }
  .lead { font-size: 17px; line-height: 1.95; }
  .intro-body { padding-top: 0; }
  .intro-body > * + * { margin-top: 22px; }
  .small-copy { font-size: 12px; }
  .text-link { gap: 24px; font-size: 14px; }
  .pill-link { font-size: 14px; padding: 14px 20px; }
  .karte-line { gap: 12px; margin-top: 40px; padding-top: 26px; font-size: 9px; }
  .karte-line svg { width: 20px; height: 20px; }
  .karte-logotype { font-size: 42px; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .manga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .manga-card { border-radius: 12px; }
  .manga-note { margin-top: 22px; font-size: 15px; }
  .manga-hero { padding-top: 32px; padding-bottom: 32px; }
  .manga-hero .lead { font-size: 16px; margin-top: 18px; }
  .manga-hero .text-link { margin-top: 12px; }
  .manga-section { padding-top: 32px; }
  .manga-entry { min-height: 68px; font-size: 22px; gap: 16px; }
  .service-preview { grid-template-columns: minmax(0, 1fr); }
  .preview-item { min-height: 124px; padding: 24px 32px 24px 0; gap: 14px; }
  .preview-item h3 { font-size: 21px; }
  .preview-item svg { bottom: 29px; width: 20px; height: 20px; }
  .closing { padding: 48px var(--gutter) 54px; }
  .closing-row { align-items: flex-start; flex-direction: column; gap: 28px; }
  .closing h2 { font-size: 39px; line-height: 1.5; }
  .closing-link { width: 100%; font-size: 15px; justify-content: space-between; }
  .circle-arrow { width: 60px; height: 60px; }
  .circle-arrow svg { width: 28px; height: 28px; }
  #site-footer { padding: 42px var(--gutter) 24px; }
  .footer-top { flex-direction: column; gap: 24px; margin-bottom: 30px; }
  .footer-brand .brand-logo { width: 234px; height: 58.5px; }
  .footer-nav { gap: 0 23px; max-width: 360px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 10px; }
  .page-stage { height: 540px; min-height: 0; }
  .page-wordmark { font-size: 58px; top: 47px; }
  .group-stage .page-wordmark { left: var(--gutter); right: auto; text-align: left; }
  .page-stage .chapter-copy { right: var(--gutter); bottom: 34px; }
  .page-intro { padding-top: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .step-number { font-size: 50px; margin-bottom: 20px; }
  .steps h3 { font-size: 22px; }
  .service-section { padding-top: 0; }
  .service-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 20px; padding: 30px 0; }
  .service-index { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
  .service-index > span { font-size: 30px; margin-bottom: 0; }
  .service-row h2 { font-size: 23px; }
  .service-row p:not(.eyebrow) { font-size: 16px; }
  .service-row .icon-link { align-self: start; margin-top: 3px; }
  .company-details { margin-top: 40px; }
  .company-details > div { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 20px 0; }
  .company-details dd { font-size: 17px; }
  .cast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 40px; }
  .cast-list h3 { font-size: 23px; margin-top: 14px; }
  .cast-list p { font-size: 12px; }
  .contact-options { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
  .contact-options h3 { font-size: 24px; }
  .faq-list { margin-top: 40px; }
  .faq-list summary { font-size: 16px; gap: 18px; }
  .faq-list details p { font-size: 15px; padding-right: 24px; }
  .video-fallback { top: 121px; font-size: 11px; }
}
@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .film-wordmark { font-size: 55px; }
  .brand-wordmark { width: 244px; }
  .page-wordmark { font-size: 49px; }
  .display { font-size: 28px; }
  .chapter-copy h2, .page-caption { font-size: 23px; }
  .karte-logotype { font-size: 36px; }
  .closing h2 { font-size: 34px; }
}
@media (max-height: 620px) and (min-width: 761px) {
  :root { --header-height: 64px; --bridge-height: 50px; }
  .home-stage { min-height: 280px; }
  .film-wordmark { font-size: 74px; top: 45px; }
  .chapter-copy { bottom: 28px; }
  .chapter-copy h2, .page-caption { font-size: 30px; }
  .film-controls { bottom: 26px; }
  [data-caption-position="right"].home-stage .chapter-copy { bottom: 98px; }
  .page-stage { min-height: 320px; }
}
@media (max-height: 480px) {
  :root { --header-height: 52px; --bridge-height: 40px; }
  .home-stage { min-height: 210px; }
  .film-topline { top: 12px; font-size: 9px; }
  .film-wordmark { top: 33px; font-size: 48px; }
  .brand-wordmark { width: 240px; }
  .chapter-copy, [data-caption-position="right"].home-stage .chapter-copy { bottom: 22px; }
  .chapter-copy .eyebrow { margin-bottom: 6px; }
  .chapter-copy h2, .page-caption { font-size: 24px; line-height: 1.3; }
  .film-controls { bottom: 20px; }
  [data-caption-position="right"].home-stage .chapter-copy { right: 170px; }
  .page-stage { height: calc(100svh - 92px); min-height: 230px; }
}
@media (max-height: 480px) and (max-width: 760px) {
  :root { --header-height: 136px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* OP player: original film, chapter copy, and visible controls. */
.home-stage { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(360px, 1fr); grid-template-rows: 52px minmax(0, 1fr); height: auto; min-height: calc(100svh - var(--header-height)); color: var(--ink); }
.op-topline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: #edfaff; border-bottom: 1px solid var(--line); }
.op-chapter-meta { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; white-space: nowrap; }
.next-scene { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; }
.next-scene svg { width: 17px; height: 17px; }
.op-media { position: relative; min-width: 0; background: var(--cinema-sky); }
.op-media .film { object-fit: contain; z-index: 0; }
.op-panel { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(24px, 3vw, 48px); background: linear-gradient(135deg, #f2fcff, #d7f2fa); border-left: 1px solid #ffffff99; }
.home-stage .chapter-copy { position: static; max-width: none; text-align: left; text-shadow: none; color: var(--ink); }
.op-eyebrow { color: #a4450d; letter-spacing: 0.12em; }
.home-stage .chapter-copy .eyebrow { color: #a4450d; margin-bottom: 14px; }
.home-stage h1 { font-size: clamp(44px, 3.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.op-description { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.op-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 12px; border: 1px solid #819fa4; border-radius: 7px; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; }
.op-action-primary { background: var(--orange); border-color: var(--orange); }
.op-action:hover { background: var(--teal); }
.op-action svg { width: 18px; height: 18px; }
.player-time { font-size: 14px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 1.4; }
.player-time > span:last-child { color: var(--muted); }
.film-controls { position: static; gap: 10px; margin-top: 12px; }
.player-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 52px; padding: 10px 14px; flex: 1; border: 1px solid #819fa4; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.4; background: transparent; }
.player-button.sound-button { flex: 1.4; background: #fff; border-color: #fff; }
.player-button svg { width: 19px; height: 19px; }
.player-button:hover { background: var(--teal); }
.film-progress { position: static; display: flex; gap: 8px; width: 100%; height: 3px; margin-top: 22px; background: transparent; }
.film-progress > span { flex: var(--segment-duration); width: auto; background: #9cbdc6; transform: none; }
.film-progress i { display: block; width: 100%; height: 100%; background: #e9782c; transform: scaleX(0); transform-origin: left; }
.op-media .video-fallback { top: auto; bottom: 16px; left: 16px; right: 16px; z-index: 1; }
html:not(.has-js) .op-player { display: none; }
html:not(.has-js) .next-scene { display: none; }
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .header-inner .brand-logo { width: 132px; height: 33px; }
  .primary-nav { gap: 12px; }
  .home-stage h1 { font-size: clamp(44px, 5.6vw, 64px); }
  .op-panel { padding: 28px; gap: 20px; }
  .op-description { font-size: 16px; }
  .op-action { font-size: 14px; }
}
@media (max-width: 760px) {
  .header-inner { gap: 0; }
  .primary-nav { gap: 0; }
  .home-stage { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height)); }
  .op-topline { min-height: 44px; padding: 0 var(--gutter); }
  .op-chapter-meta { gap: 8px; font-size: 10px; letter-spacing: 0.1em; }
  .next-scene { font-size: 12px; gap: 6px; }
  .op-media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .op-panel { flex: 1; gap: 14px; padding: 20px var(--gutter) 18px; border-left: 0; }
  .home-stage h1 { font-size: clamp(44px, 13.6vw, 64px); line-height: 1.05; }
  .home-stage .chapter-copy .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .op-description { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .op-actions { gap: 8px; }
  .op-action { min-height: 46px; padding: 8px 6px; gap: 6px; font-size: 13px; }
  .op-action [data-i18n] { white-space: nowrap; }
  .player-time { font-size: 12px; }
  .film-controls { flex-direction: row; gap: 8px; margin-top: 8px; }
  .player-button { min-height: 46px; font-size: 14px; padding: 8px 10px; gap: 8px; }
  .film-progress { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 380px) {
  .op-actions { grid-template-columns: minmax(0, 1fr); }
}
/* Home: keep the video and text column the same height so no blank sky band appears around the video. */
.op-media .film { object-fit: cover; }
.op-media { min-height: 360px; }
.op-media .film { object-position: 50% 40%; }
@media (min-width: 761px) and (max-width: 1100px) {
  .home-stage { display: flex; flex-direction: column; }
  .op-media { flex: none; width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .op-panel { flex: 1; border-left: 0; padding: 24px var(--gutter); }
  .home-stage h1 { font-size: clamp(48px, 8vw, 72px); }
}
@media (max-width: 760px) {
  .op-media { min-height: 0; }
  .op-media .film { object-fit: contain; }
}
/* Karte page: intro video and the can / cannot lists */
.karte-video .display { margin-bottom: 36px; }
.video-frame { max-width: 1100px; border-radius: 16px; overflow: hidden; background: #0f2f3a; box-shadow: 0 10px 34px #173b4526; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0f2f3a; }
.video-note { max-width: 1100px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.cap-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.cap-list li { border-top: 1px solid #8eb6bf; padding-top: 18px; position: relative; }
.cap-list li::before { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; color: #fff; }
.cap-can li::before { content: "\2713"; background: #1f838c; }
.cap-cant li::before { content: "\00d7"; background: #a4450d; font-size: 17px; }
.cap-list h3 { font-size: 21px; line-height: 1.5; margin: 6px 0 12px; }
.cap-list p { font-size: 16px; line-height: 1.9; color: var(--muted); }
.cap-cant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-note { max-width: 960px; margin-top: 48px; padding: 20px 24px; border-radius: 8px; background: #edfaff; font-size: 14px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1100px) { .cap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (max-width: 760px) {
  .cap-list, .cap-cant { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 34px; }
  .cap-list h3 { font-size: 19px; }
  .cap-list p { font-size: 15px; }
  .karte-video .display { margin-bottom: 24px; }
  .video-frame { border-radius: 10px; }
}
.karte-video .video-frame, .karte-video .video-note, .cap-note { margin-left: 0; margin-right: 0; }
.karte-video .video-frame { width: 100%; }

/* 頭のメニュー：「学ぶ」にまとめる（漫画・ガイド・ブログ・地図） */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; line-height: 44px; white-space: nowrap; position: relative; user-select: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::before { content: ""; order: 2; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms; }
.nav-more[open] > summary::before { transform: translateY(1px) rotate(225deg); }
.nav-more > summary::after, .nav-more[data-current] > summary::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.nav-more[data-current] > summary::after, .nav-more:hover > summary::after, .nav-more[open] > summary::after { transform: scaleX(1); }
.nav-more-panel { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 30; min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px #173c4426; display: grid; gap: 2px; }
.primary-nav .nav-more-panel a { display: flex; align-items: center; padding: 0 16px; min-height: 46px; line-height: 1.4; font-size: 15px; border-radius: 10px; }
.primary-nav .nav-more-panel a::after { display: none; }
.primary-nav .nav-more-panel a:hover, .primary-nav .nav-more-panel a:focus-visible { background: var(--sky); }
.primary-nav .nav-more-panel a[aria-current="page"] { background: var(--sky); box-shadow: inset 3px 0 var(--orange); }
@media (max-width: 760px) {
  .nav-more { position: static; display: flex; align-items: stretch; }
  .nav-more > summary { width: 100%; justify-content: center; min-height: 44px; font-size: 16px; line-height: 1.3; }
  .nav-more > summary::after { left: 8px; right: 8px; bottom: 6px; }
  .nav-more-panel { position: absolute; left: 12px; right: 12px; top: var(--header-height); transform: none; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 0 0 14px 14px; }
}
