/* Rounded, friendly typography with enough space for the artwork to breathe. */
:root {
  --font: "M PLUS Rounded 1c", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-head: "M PLUS Rounded 1c", "Zen Maru Gothic", sans-serif;
}
body { font-weight: 500; }
body h1, body h2, body h3 { font-family: var(--font-head); }
body #rules .h-left { font-family: var(--font-head) !important; font-weight: 700 !important; }
body .hero .hero-body h1 { font: 700 clamp(28px, 3.5vw, 48px)/1.6 var(--font-head); letter-spacing: .03em; }

/* One oversized canvas keeps scroll motion seamless between sections. */
.page-home .site-surface { position: relative; isolation: isolate; background: none; }
.home-background { position: fixed; z-index: -1; inset: -10% 0; background: linear-gradient(#fbf4fa33, #fbf4fa33), #fbf4fa url(/img/art/page-bg.webp) no-repeat center / cover; pointer-events: none; }
.page-home #flow .card-wrap { background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.8); }

/* The image contains no lettering; HTML copy is sized independently of the portrait. */
body .hero2-wrap, body .hero2.no-text { width: 100%; max-width: none; margin-inline: 0; border-radius: 0; }
body .hero2.no-text { min-height: 0 !important; height: 100svh; margin-top: 0; aspect-ratio: auto; background: transparent; }
body .hero2.no-text .hero2-slide { inset: 0; height: 100%; }
.hero-image-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-image-orientation { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image-mirrored { transform: scaleX(-1); }
body .hero2.no-text .hero2-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
body .hero2.no-text .hero2-arrow { top: 52%; }
.hero-copy {
  position: absolute; inset: var(--hd-h, 104px) 4% 110px 53%; transform: none;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: auto; z-index: 3; color: #633c70; text-align: center;
}
.hero-copy-right { text-align: center; }
.hero-copy-label { display: inline-block; background: #fff9fc; border: 1px solid #ead5ed; border-radius: 999px; padding: 8px 18px; margin: 0 0 20px; font-size: clamp(13px, 1.1vw, 18px); font-weight: 700; letter-spacing: .04em; }
.hero-copy-title { margin: 0; font-family: var(--banner-font, var(--font-head)); font-weight: var(--banner-weight, 800); font-size: clamp(44px, min(5.2vw, 10svh), 84px); line-height: 1.22; letter-spacing: .025em; text-shadow: 0 2px 16px rgba(255,255,255,.8); }
.hero-copy-title strong { font-weight: inherit; }
.hero-copy-tagline { margin: 18px 0 0; font-family: var(--banner-font, var(--font-head)); font-size: clamp(17px, 1.6vw, 25px); line-height: 1.7; text-wrap: balance; font-weight: var(--banner-caption-weight, 500); }
.hero-font-rounded { --banner-font: "M PLUS Rounded 1c", sans-serif; --banner-weight: 800; }
.hero-font-soft { --banner-font: "Zen Maru Gothic", sans-serif; --banner-weight: 700; color: #754465; }
.hero-font-handwritten { --banner-font: "Yomogi", cursive; --banner-weight: 400; --banner-caption-weight: 400; color: #694975; }
.hero-font-storybook { --banner-font: "Kiwi Maru", serif; --banner-weight: 500; color: #72536b; }
.hero-font-playful { --banner-font: "Hachi Maru Pop", cursive; --banner-weight: 400; --banner-caption-weight: 400; color: #764575; }
.hero-font-handwritten .hero-copy-title, .hero-font-playful .hero-copy-title { -webkit-text-stroke: .35px currentColor; }
body .hero2-news { bottom: 28px; min-height: 56px; }
body .hero2-dots { bottom: 12px; }
body .hero2-glow { opacity: .15; }

/* Gold crown-and-laurel trio, kept above the ticker and away from the portrait's face. */
.hero-awards { --award-size: clamp(112px, 11vw, 170px); position: absolute; z-index: 3; left: 7%; bottom: 148px; display: flex; gap: 8px; margin: 0; padding: 6px 10px; list-style: none; background: none; }
.hero-award { position: relative; width: var(--award-size); aspect-ratio: 140 / 160; flex: none; }
.hero-award > img { display: block; width: 100%; height: 100%; }
.hero-award-copy { position: absolute; inset: 33% 18% 15%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: #654271; text-align: center; white-space: nowrap; }
.hero-award-copy > span, .hero-award-copy > small { font-size: clamp(10px, .9vw, 14px); line-height: 1.2; font-weight: 700; }
.hero-award-copy > strong { font-size: clamp(24px, 2.7vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: 0; }
.hero-award-copy em { font-size: 11px; font-style: normal; margin-left: 2px; }

/* Full-body hosts stand on the card edge; the glow and contact shadow share their foot line. */
body #news { --stage-height: clamp(260px, 24vw, 330px); --stage-width: clamp(300px, 31vw, 420px); }
body #safety { --stage-height: clamp(260px, 24vw, 330px); --stage-width: clamp(230px, 25vw, 320px); }
body #news, body #safety { padding-top: calc(var(--stage-height) + 56px); }
.section-characters {
  position: absolute; inset: auto clamp(24px, 4vw, 64px) calc(100% - 5px) auto;
  width: var(--stage-width); height: var(--stage-height); max-width: none; aspect-ratio: auto;
  margin: 0; isolation: isolate; -webkit-mask-image: none; mask-image: none;
}
.section-characters img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.section-characters-news img { object-fit: cover; }
.section-characters::before { content: ""; position: absolute; z-index: 1; left: 12%; right: 12%; bottom: -3px; height: 16px; border-radius: 50%; border: 1px solid rgba(193,159,222,.65); background: radial-gradient(ellipse, rgba(122,80,155,.25), rgba(230,207,249,.55) 48%, transparent 75%); box-shadow: 0 0 20px rgba(208,173,238,.45), 0 3px 8px rgba(92,53,111,.12); }
.section-characters::after { content: ""; position: absolute; z-index: 0; inset: 25% -8% -10%; background: radial-gradient(ellipse at 50% 90%, rgba(232,207,252,.55), transparent 67%); pointer-events: none; }
.magic-spark { position: absolute; z-index: 3; display: block; width: 10px; height: 14px; background: #d9b96c; clip-path: polygon(50% 0,61% 38%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 38%); filter: drop-shadow(0 0 5px #fff3ce); }
.spark-one { left: 9%; top: 32%; }
.spark-two { right: 8%; top: 66%; width: 7px; height: 10px; }
.spark-three { right: 25%; top: 9%; width: 6px; height: 9px; }
.overview-intro { position: relative; display: block; padding: 32px 40px; margin-bottom: 28px; border: 1px solid #eadfec; border-radius: 28px; background: linear-gradient(120deg, #fff, #fbf6fe); box-shadow: 0 10px 32px rgba(100,63,115,.04); }
.overview-intro-label { color: #9a719d; font-size: 11px; letter-spacing: .18em; margin: 0 0 12px; font-weight: 700; }
.overview-intro-title { font: 700 clamp(26px, 3vw, 40px)/1.5 var(--font-head); color: #66386f; margin: 0 0 12px; }
.overview-intro-lead { font-size: 16px; color: #79637f; margin: 0; }
body #safety .sf-wrap { overflow: visible; }
body #safety .safety-heading { display: block; text-align: left; margin-bottom: 28px; }
body #safety .safety-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 40px) !important; line-height: 1.7 !important; }

/* Image-only gallery, with the whole image visible and no text panels. */
body .gal { --cw: min(720px, 76vw); --ch: clamp(360px, 47vw, 600px); }
body .gal .gal-card { display: block; padding: 10px; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 10px 30px rgba(87, 52, 106, .08); }
.gal-image-link { display: block; width: 100%; height: 100%; border-radius: 20px; }
.gal-image-link:focus-visible { outline: 3px solid #9e71b4; outline-offset: -3px; }
body .gal .gal-pic { width: 100%; height: 100%; margin: 0; border-radius: 20px; background: #fbf6fc; }
body .gal .gal-pic img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; object-fit: contain; transform: none; }

@media (max-width: 900px) {
  .hero-awards { --award-size: 110px; bottom: 128px; padding: 0; }
  .hero-copy-label { margin-bottom: 14px; padding: 6px 12px; font-size: 12px; }
  .hero-copy-title { font-size: clamp(36px, 5.8vw, 52px); }
  .hero-copy-tagline { margin-top: 14px; font-size: 16px; }
  body .hero2-news { min-height: 48px; bottom: 16px; }
  body #news, body #safety { --stage-height: 260px; }
  body #news { --stage-width: 330px; }
  body #safety { --stage-width: 250px; }
  .overview-intro { padding: 28px; }
}
@media (max-width: 600px) {
  /* Keep the artwork full-bleed; copy and controls remain overlaid. */
  body .hero2.no-text { height: 100svh; }
  body .hero2.no-text .hero2-slide { height: 100%; }
  .hero-image-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, #fff8fbbb 65%, #fff8fbe6); }
  body .hero2.no-text .hero2-slide img { object-position: 28% center; }
  body .hero2.no-text .hero-image-mirrored img { object-position: 72% center; }
  .hero-copy, .hero-copy-right { inset: var(--hd-h, 84px) 3% 230px 51%; width: auto; height: auto; padding: 8px 0; transform: none; background: transparent; text-align: center; }
  .hero-copy-label { margin-bottom: 8px; padding: 4px 8px; font-size: 11px; }
  .hero-copy-title { font-size: clamp(28px, 6.5vw, 38px); line-height: 1.2; }
  .hero-copy-title br { display: initial; }
  .hero-copy-tagline { font-size: 14px; line-height: 1.55; margin-top: 8px; }
  .hero-awards { --award-size: clamp(94px, 27vw, 112px); left: 50%; bottom: 108px; transform: translateX(-50%); gap: 8px; }
  body .hero2.no-text .hero2-arrow { top: calc((100% - 230px + var(--hd-h, 84px)) / 2); width: 32px; height: 32px; }
  body .hero2-news { bottom: 28px; min-height: 48px; }
  body .hero2-dots { bottom: 8px; }
  body #news, body #safety { --stage-height: 240px; padding-top: calc(var(--stage-height) + 40px); }
  body #news { --stage-width: min(330px, 88vw); }
  body #safety { --stage-width: 240px; }
  .section-characters { right: 50%; transform: translateX(50%); }
  .overview-intro { text-align: center; margin-bottom: 24px; padding: 28px 20px; }
  .overview-intro .section-characters { max-width: none; }
  body #safety .safety-heading { text-align: center; }
  body .gal { --cw: 86vw; --ch: 105vw; }
}
@media (min-width: 601px) and (max-height: 600px) {
  .hero-copy { bottom: 72px; }
  .hero-copy-label { margin-bottom: 8px; padding: 4px 10px; font-size: 11px; }
  .hero-copy-title { font-size: clamp(30px, 8svh, 48px); }
  .hero-copy-tagline { font-size: 14px; margin-top: 8px; }
  .hero-awards { --award-size: 82px; bottom: 100px; padding: 0; }
  .hero-award-copy > span, .hero-award-copy > small { font-size: 9px; }
  .hero-award-copy > strong { font-size: 20px; }
  body .hero2-news { min-height: 44px; bottom: 20px; }
}
