:root {
  --ink: #30251f;
  --ink-soft: #675a50;
  --paper: #fbf6ed;
  --paper-deep: #f0e6d8;
  --night: #102836;
  --night-soft: #173d4d;
  --sakura: #a63e54;
  --sakura-soft: #e7bcc5;
  --gold: #b3955f;
  --line: rgba(65, 48, 38, 0.16);
  --white: #fffdf9;
  --shadow: 0 24px 64px rgba(42, 29, 20, 0.12);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button { color: inherit; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--night);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.preview-bar {
  padding: 7px 20px;
  color: #fff;
  background: #783143;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  background: rgba(251, 246, 237, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { color: var(--sakura); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.main-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.main-nav .language-link { color: var(--sakura); }
.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border: 1px solid var(--sakura);
  border-radius: 999px;
  color: #fff !important;
  background: var(--sakura);
  box-shadow: 0 12px 28px rgba(139, 45, 64, .2);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.button:hover,
.nav-cta:hover { filter: brightness(.95); transform: translateY(-1px); }
.button.secondary {
  color: var(--ink) !important;
  background: rgba(255,255,255,.72);
  border-color: var(--line);
  box-shadow: none;
}
.button.small { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(610px, 73vw, 780px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}
.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 30, .92), rgba(6, 26, 39, .62) 47%, rgba(6, 22, 32, .1) 76%),
    linear-gradient(0deg, rgba(5, 17, 25, .65), transparent 60%);
}
.hero-copy { padding: clamp(82px, 10vw, 128px) 0 clamp(62px, 8vw, 96px); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--sakura);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #f3c6cf; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.2;
}
.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.95;
  letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button.secondary {
  color: #fff !important;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.42);
}
.hero-note { margin: 20px 0 0; font-size: 14px; opacity: .86; }

.section { padding: clamp(80px, 10vw, 132px) 0; }
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .05em;
}
.section-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 2;
}
.about {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(179, 149, 95, .16), transparent 45%),
    var(--paper);
}
.about .section-lead { margin-inline: auto; }
.about-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 34px auto 0;
  color: var(--sakura);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
}

.stories { color: #fff; background: var(--night); }
.stories .eyebrow { color: #edc4cc; }
.stories-head {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 54px;
  align-items: end;
  margin-bottom: 48px;
}
.stories-head p { margin: 0; color: rgba(255,255,255,.76); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kmh-japanese-home .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) 1fr;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0,0,0,.18);
}
.kmh-japanese-home .story-card { grid-template-columns: 1fr; }
.story-cover { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.kmh-japanese-home .story-cover {
  height: auto;
  min-height: 0;
  aspect-ratio: 515.905 / 728.504;
  object-position: center top;
}
.story-copy { display: flex; flex-direction: column; padding: 34px 30px; }
.story-number { color: var(--sakura); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.story-copy h3 {
  margin: 13px 0 14px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.55;
}
.story-copy p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.story-language-notice {
  margin: 30px 0 0;
  padding: 18px 20px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
}
.story-language-notice a { color: #fff; font-weight: 800; }

.characters { background: var(--paper-deep); }
.characters-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}
.characters-head .section-lead { margin: 0; }
.character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.character-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(66, 45, 31, .08);
}
.character-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.character-copy { padding: 18px 16px 21px; }
.character-role { margin: 0; color: var(--sakura); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.character-copy h3 { margin: 4px 0 8px; font-family: var(--serif); font-size: 23px; }
.character-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.continue { background: var(--white); }
.continue-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: stretch;
}
.continue-main,
.share-panel {
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.continue-main { color: #fff; background: var(--night-soft); }
.continue-main .eyebrow { color: #efc3cc; }
.continue-main .section-title { font-size: clamp(29px, 4vw, 44px); }
.continue-main p { max-width: 620px; color: rgba(255,255,255,.8); }
.continue-main .button.secondary {
  color: #fff !important;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.34);
}
.share-panel h3 { margin: 0; font-family: var(--serif); font-size: 25px; }
.share-panel p { margin: 10px 0 20px; color: var(--ink-soft); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 15px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.share-button:hover { background: var(--paper-deep); transform: translateY(-1px); }
.share-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 32px;
  color: #fff;
  background: #3578c8;
  border-radius: 50%;
}
.share-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.share-button[data-share="x"] .share-icon { background: #111; }
.share-button[data-share="line"] .share-icon { background: #06c755; }
.share-button[data-share="line"] .share-icon svg circle { fill: currentColor; stroke: none; }
.share-button[data-share="copy"] .share-icon { background: #74665d; }
.share-label { white-space: nowrap; }

.closing { text-align: center; }
.closing .section-lead { margin-inline: auto; }
.closing .button { margin-top: 28px; }
.site-footer { padding: 44px 0; color: rgba(255,255,255,.78); background: #0b202a; }
.footer-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand { margin: 0 0 10px; color: #fff; font-family: var(--serif); font-size: 24px; letter-spacing: .1em; }
.footer-copy { margin: 0; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.footer-nav a { font-size: 14px; text-decoration: none; }

.kmh-english-page { line-height: 1.7; }
.kmh-english-page .brand { letter-spacing: .04em; }
.kmh-english-page .hero h1,
.kmh-english-page .section-title { letter-spacing: .02em; }
.kmh-english-page .hero-lead,
.kmh-english-page .section-lead { line-height: 1.75; }
.reader-header-actions { display: flex; align-items: center; gap: 10px; }
.reader-header-actions .button { white-space: nowrap; }

.reader-page { background: #efe7dc; }
.reader-hero { padding: 52px 0 32px; text-align: center; }
.reader-kicker { margin: 0; color: var(--sakura); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.reader-hero h1 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); line-height: 1.45; }
.reader-wrap { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 80px; }
.reader-stage {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  scroll-margin-top: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.reader-stage img { width: 100%; height: auto; background: #fff; }
.reader-toolbar {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  width: min(760px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 10px;
  background: rgba(16, 40, 54, .94);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(10, 26, 35, .22);
  backdrop-filter: blur(12px);
}
.reader-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 18px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.reader-nav-button:last-child { justify-self: end; }
.reader-nav-button:disabled,
.reader-nav-button.is-disabled,
.reader-nav-button[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.reader-progress { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.reader-progress select { padding: 6px 26px 6px 10px; border: 0; border-radius: 8px; background: #fff; }
.reader-download { margin: 18px 0 0; text-align: center; }
.reader-download a { color: var(--ink-soft); font-size: 14px; }
.reader-end {
  margin-top: 38px;
  padding: clamp(32px, 5vw, 58px);
  color: #fff;
  text-align: center;
  background: var(--night);
  border-radius: 22px;
}
.reader-end[hidden] { display: none; }
.reader-end h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 5vw, 42px); }
.reader-end p { max-width: 600px; margin: 16px auto 24px; color: rgba(255,255,255,.78); }
.reader-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reader-end .button.secondary {
  color: #fff !important;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
}
.reader-end .share-button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.reader-end .share-buttons { justify-content: center; margin-top: 18px; }

:focus-visible { outline: 3px solid #e7a8b5; outline-offset: 3px; }

@media (min-width: 761px) {
  .reader-hero { padding: 20px 0 14px; }
  .reader-hero h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; }
  .reader-stage {
    width: min(900px, calc((100vh - 300px) * .708), calc(100vw - 48px));
  }
  .reader-stage img {
    width: 100%;
    max-height: calc(100vh - 300px);
    object-fit: contain;
  }
}

@media (max-width: 980px) {
  .character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kmh-japanese-home .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card { grid-template-columns: 1fr; }
  .story-cover { max-height: 520px; min-height: 0; object-position: center 18%; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 66px; padding: 10px 16px; }
  .menu-button { display: inline-grid; place-items: center; }
  .main-nav {
    position: fixed;
    inset: 98px 14px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav .nav-cta { margin-top: 8px; }
  .reader-header-actions { gap: 7px; }
  .reader-header-actions .button { padding-inline: 13px; }
  .hero { min-height: 650px; }
  .hero > img { object-position: 62% center; }
  .hero::before { background: linear-gradient(0deg, rgba(4, 18, 28, .95) 0%, rgba(4, 18, 28, .67) 58%, rgba(4, 18, 28, .16)); }
  .hero h1 { font-size: clamp(42px, 13vw, 61px); }
  .stories-head,
  .characters-head,
  .continue-grid { grid-template-columns: 1fr; gap: 26px; }
  .story-grid { grid-template-columns: 1fr; }
  .kmh-japanese-home .story-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .reader-toolbar { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .reader-progress { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .reader-nav-button { grid-row: 2; }
  .reader-end-actions { flex-direction: column; }
  .reader-end-actions .button { width: 100%; }
}

@media (max-width: 430px) {
  .brand { font-size: 19px; }
  .reader-page .brand { font-size: 16px; }
  .reader-header-actions .button { min-height: 38px; padding: 6px 10px; font-size: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .character-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .character-copy { padding: 14px 12px 17px; }
  .character-copy h3 { font-size: 20px; }
  .character-copy p { font-size: 13px; }
  .share-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .share-button { min-width: 0; flex-direction: column; gap: 4px; padding: 7px 4px; border-radius: 14px; font-size: 11px; }
  .share-icon { width: 30px; height: 30px; flex-basis: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
