/* あっせんブリ本部長 / seaside character page
   Palette, width and motion settings are collected here for easy maintenance. */
:root {
  --navy: #174c85;
  --ink: #20486f;
  --blue: #1979bd;
  --sky: #4ba7d2;
  --sea: #f0f9fc;
  --paper: #f8f6ef;
  --yellow: #f6d858;
  --header-height: 86px;
  --content-width: 1240px;
  --sans: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--sea); font: 500 15px/1.9 var(--sans); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg use { pointer-events: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 900; line-height: 1.5; }
h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: .02em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #e99c19; outline-offset: 5px; }
::selection { background: #f6d858; color: #123b65; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(var(--content-width), calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -100px; background: white; padding: 10px 24px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.keep-together { display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fffffff2; box-shadow: 0 2px 20px #154c7410; backdrop-filter: blur(16px); }
.header-inner { max-width: 1560px; min-height: var(--header-height); padding-inline: 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; flex-shrink: 0; }
.brand-mark { width: 48px; height: 54px; display: grid; place-items: center; background: var(--blue); color: white; clip-path: polygon(50% 0,65% 8%,83% 12%,87% 28%,100% 50%,87% 74%,82% 90%,63% 94%,50% 100%,35% 94%,18% 90%,10% 74%,0 50%,10% 26%,18% 12%,35% 7%); }
.brand-mark svg { width: 33px; height: 33px; transform: rotate(-26deg); stroke-width: 1.7; }
.brand-type { color: var(--navy); font-size: 23px; font-weight: 900; line-height: 1.3; letter-spacing: -.04em; }
.brand-type > span { color: var(--blue); }
.brand-type small { display: block; font: 800 9px/1.6 Arial, sans-serif; letter-spacing: .34em; margin-top: 4px; }
.main-nav { display: flex; align-items: stretch; gap: 11px; align-self: stretch; }
.main-nav > a { min-width: 65px; padding: 16px 8px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; position: relative; color: var(--navy); font-size: 11px; font-weight: 800; white-space: nowrap; transition: background .2s, color .2s; }
.main-nav > a > svg { width: 23px; height: 23px; stroke-width: 2.4; }
.main-nav > a::after { content: ""; height: 3px; position: absolute; bottom: 0; left: 12%; width: 76%; background: var(--sky); border-radius: 3px; transform: scaleX(0); transition: transform .2s; }
.main-nav > a[aria-current]::after, .main-nav > a:hover::after { transform: scaleX(1); }
.main-nav > a:hover { color: var(--blue); background: #dff3ff44; }
.main-nav > .site-top-link { min-width: 146px; min-height: 44px; flex-direction: row; gap: 9px; align-self: center; margin-left: 15px; padding: 10px 18px; color: white; background: linear-gradient(140deg,#348fde,#196fc3); border-radius: 12px; box-shadow: inset 0 1px 2px #ffffff70,0 5px 12px #1c6bac18; font-size: 12px; }
.main-nav > .site-top-link:hover { background: #185fa5; color: white; }
.main-nav > .site-top-link::after { content: none; }
.site-top-link svg { width: 19px!important; height: 19px!important; }
.menu-toggle { display: none; }
.page-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #46b7dd; transform: scaleX(0); transform-origin: left; }

/* Shared glass buttons */
.glass-button { --glass-x: 45%; --glass-y: 20%; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 51px; padding: 10px 26px; border: 1px solid #bceeff77; border-radius: 100px; color: white; background: linear-gradient(140deg,#298bcae8,#1763a5f2); box-shadow: inset 0 1px 2px #ffffffa3, inset 0 -2px 3px #003c6b22, 0 6px 12px #1253871c; font-size: 14px; font-weight: 800; letter-spacing: .06em; isolation: isolate; transition: transform .3s,box-shadow .3s; overflow: hidden; }
.glass-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at var(--glass-x) var(--glass-y),#ffffff60,transparent 60%); opacity: .45; transition: opacity .3s; }
.glass-button svg { width: 24px; height: 24px; transition: transform .3s; }
.glass-button:hover { transform: translateY(-3px); box-shadow: inset 0 1px 2px #ffffff, 0 10px 20px #12538730; }
.glass-button:hover::before { opacity: 1; }
.glass-button:hover svg { transform: translateX(4px); }
.glass-button--light { border-color: #ffffff9c; background: #ffffff22; backdrop-filter: blur(12px); box-shadow: inset 0 1px 2px #ffffffe0,0 6px 24px #07447125; }
.glass-button--light:hover { background-color: #ffffff35; }

/* Sea hero */
.hero { position: relative; height: min(770px,calc(100svh - var(--header-height) + 35px)); min-height: 620px; background: #39a6e4; isolation: isolate; overflow-x: clip; }
.hero-scenery, .hero-tint { position: absolute; inset: 0; z-index: -1; }
.hero-scenery { background: url("ocean-factory.png") center 58% / cover no-repeat; }
.hero-tint { background: linear-gradient(90deg,#0965ad75,transparent 59%),linear-gradient(0deg,#16a9db33,transparent 50%); }
.hero-inner { height: 100%; position: relative; }
.hero-copy { position: relative; z-index: 3; width: 52%; padding-top: clamp(80px,9vw,130px); color: white; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 13px; margin-bottom: 22px; text-shadow: 0 2px 10px #0c548f4d; }
.hero-kicker > span { width: 21px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(48px,4.7vw,72px); color: white; line-height: 1.55; letter-spacing: .09em; text-shadow: 0 3px 18px #125b8855; transform: rotate(-4deg); transform-origin: left; }
.hero-lead { margin-top: 30px; font-weight: 800; font-size: 17px; line-height: 2; letter-spacing: .055em; text-shadow: 0 1px 8px #074a798c; }
.hero-copy .glass-button { margin-top: 26px; }
.hero-character { position: absolute; z-index: 2; right: -32px; bottom: 3%; width: min(64vw,780px); }
.hero-character > img { width: 100%; transform: rotate(3deg); filter: drop-shadow(0 14px 14px #124f7f20); }
.hero-callout { position: absolute; z-index: 1; right: 3%; top: 16%; writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; font-size: clamp(22px,2.3vw,33px); font-weight: 900; letter-spacing: .1em; line-height: 1.45; color: #133c66; transform: rotate(10deg); paint-order: stroke fill; -webkit-text-stroke: 5px white; filter: drop-shadow(0 4px 0 #1e5b8530); }
.hero-callout strong { color: #165794; font-size: 1.3em; }
.callout-bang { text-combine-upright: all; text-orientation: upright; letter-spacing: 0; }
.hero-character-label { position: absolute; right: 12%; bottom: 12%; padding: 6px 14px; background: #fffef0e8; color: var(--navy); transform: rotate(-5deg); border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 4px 10px #1b4d791c; }
.hero-coordinate { position: absolute; bottom: 110px; left: 27px; writing-mode: vertical-rl; color: #fff; font: 10px/1 Arial,sans-serif; letter-spacing: .2em; opacity: .85; }
.section-wave { position: absolute; left: 0; width: 100%; height: 100px; stroke: none; pointer-events: none; }
.hero-wave { bottom: -1px; z-index: 3; }
.scroll-cue { position: absolute; bottom: -23px; left: calc(50% - 45px); z-index: 5; width: 90px; height: 108px; display: flex; align-items: center; flex-direction: column; gap: 7px; background: #fff; border-radius: 50%; padding-top: 19px; color: var(--navy); box-shadow: 0 -5px 20px #92d5f316; }
.scroll-cue > span:first-child { font: 800 9px Arial,sans-serif; letter-spacing: .17em; }
.scroll-cue > span:last-child { font-size: 22px; line-height: 1; }
.mouse-shape { width: 17px; height: 26px; border: 1.7px solid var(--blue); border-radius: 9px; position: relative; }
.mouse-shape::after { content: ""; width: 3px; height: 6px; position: absolute; left: 5.3px; top: 4px; background: var(--blue); border-radius: 2px; animation: scroll-dot 1.7s ease-in-out infinite; }
@keyframes scroll-dot { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* Character chapter. JS enables pinning only when the viewport can fit it. */
.character-scene { background: var(--sea); position: relative; scroll-margin-top: 0; overflow-x: clip; }
.character-stage { position: relative; min-height: 740px; padding: 110px 0 110px; isolation: isolate; }
.motion-enabled .character-scene.is-pinned { height: calc(100svh - var(--header-height) + 360px); }
.motion-enabled .is-pinned .character-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 0; display: grid; align-items: center; padding-block: 66px 80px; }
.underwater-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; background: radial-gradient(ellipse at 55% 53%,#fff 0,transparent 65%); }
.gear { position: absolute; width: 155px; height: 155px; stroke: var(--sky); stroke-width: 10px; opacity: .13; }
.gear-one { top: 40px; left: -70px; transform: rotate(20deg); }
.gear-two { bottom: 82px; right: -65px; width: 200px; height: 200px; transform: rotate(-24deg); }
.little-fish { position: absolute; width: 95px; height: 70px; color: #a9d9ed; fill: #a9d9ed; stroke: none; opacity: .55; }
.fish-one { left: 38%; top: 32px; transform: rotate(-8deg); }
.fish-two { left: 22%; bottom: 68px; width: 45px; transform: rotate(10deg); }
.fish-three { right: 30%; bottom: 82px; width: 65px; transform: rotate(-12deg); }
.bubble { position: absolute; border: 1px solid #9ed6ed77; border-radius: 50%; width: 20px; height: 20px; background: #ffffff50; }
.bubble-one { left: 52%; top: 70px; }.bubble-two { left: 35%; top: 250px; width: 9px; height: 9px; }.bubble-three { right: 35%; bottom: 170px; width: 35px; height: 35px; }
.character-layout { display: grid; grid-template-columns: 1fr 1.13fr .95fr; align-items: center; gap: 24px; position: relative; }
.section-copy { position: relative; z-index: 3; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 800 14px/1.5 Arial,sans-serif; color: #4398c5; letter-spacing: .14em; margin-bottom: 12px; }
.eyebrow > span { width: 25px; padding-bottom: 3px; border-bottom: 1px solid #79b5d3; font-size: 11px; letter-spacing: .06em; }
.section-subtitle { color: var(--blue); font-size: 17px; font-weight: 800; margin-top: 8px; letter-spacing: .025em; }
.body-copy { line-height: 2.15; margin-top: 28px; font-size: 15px; }
.section-copy > .glass-button { margin-top: 29px; }
.character-performance { position: relative; min-width: 0; padding-top: 65px; text-align: center; }
.character-pop { position: relative; transform-origin: 50% 76%; }
/* Motion-graphics entrance: invisible -> a quick, oversized pop -> a calm settle.
   Scroll triggers the sequence; pausing the scroll never freezes it halfway. */
.motion-enabled .is-awaiting .character-pop { opacity: 0; transform: translate3d(0,48px,0) scale(0) rotate(-5deg); }
.motion-enabled .is-awaiting .speech-bubble,
.motion-enabled .is-awaiting .speech-button { opacity: 0; visibility: hidden; }
.motion-enabled .is-entering .character-pop { animation: buri-pop-in .82s both; will-change: transform,opacity; }
.motion-enabled .is-entering .speech-bubble { animation: buri-speech-in .4s .32s both; }
.motion-enabled .is-entering .speech-button { animation: buri-button-in .28s .51s both; }
@keyframes buri-pop-in {
  0% { opacity: 0; transform: translate3d(0,48px,0) scale(0) rotate(-5deg); animation-timing-function: cubic-bezier(.16,.82,.3,1); }
  18% { opacity: 1; }
  62% { opacity: 1; transform: translate3d(0,-7px,0) scale(1.13) rotate(1deg); animation-timing-function: cubic-bezier(.25,0,.2,1); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1) rotate(0deg); }
}
@keyframes buri-speech-in {
  from { opacity: 0; transform: translate3d(0,8px,0) scale(.82) rotate(5deg); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1) rotate(5deg); }
}
@keyframes buri-button-in { from { opacity: 0; } to { opacity: 1; } }
.sprite-frame { position: relative; width: min(100%,340px); aspect-ratio: 3 / 4; display: block; margin-inline: auto; overflow: hidden; }
.sprite-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Both 768×1024 canvases keep identical coordinates. Only opacity changes. */
#profile-buri-open { opacity: 0; }
.sprite-frame.is-speaking #profile-buri { opacity: 0; }
.sprite-frame.is-speaking #profile-buri-open { opacity: 1; }
.character-shadow { display: block; width: 60%; height: 22px; position: absolute; left: 20%; bottom: -7px; z-index: -1; border-radius: 50%; background: #28739318; filter: blur(5px); }
.speech-bubble { position: absolute; top: -8px; right: -6px; padding: 17px 25px; border: 2px solid #2979b2; border-radius: 48% 48% 43% 48%; background: #fffffff2; z-index: 4; transform: rotate(5deg); color: var(--blue); font-size: 14px; font-weight: 800; line-height: 1.7; min-width: 175px; min-height: 95px; box-shadow: 0 4px 0 #bce2f331; }
.speech-bubble::after { content: ""; position: absolute; bottom: -12px; left: 28px; width: 21px; height: 22px; border-bottom: 2px solid #2979b2; border-left: 2px solid #2979b2; background: white; transform: skew(-22deg,-28deg); }
.speech-bubble p { position: relative; z-index: 1; }
.speech-bubble strong { font-size: 20px; }
.speech-button { min-height: 42px; border: 0; border-bottom: 1px dashed #4a93bc77; background: none; color: #337ba6; padding: 4px 5px; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.speech-button > span { margin-right: 7px; font-size: 17px; }
.speech-button:hover { color: var(--navy); }
.profile-board { position: relative; padding: 26px 22px 42px; border: 3px solid #3172a5; border-radius: 7px; background: linear-gradient(130deg,#fffefb,#f5fcff); box-shadow: 8px 10px 0 #afd0e333,0 8px 25px #235c7310; transform: rotate(1deg); }
.board-clip { position: absolute; left: calc(50% - 41px); top: -20px; width: 82px; height: 30px; border-radius: 7px 7px 3px 3px; background: #296c9f; box-shadow: inset 0 1px 1px #ffffff55; }
.board-clip::before { content: ""; position: absolute; width: 25px; height: 30px; top: -19px; left: 28px; border: 9px solid #296c9f; border-bottom: 0; border-radius: 50% 50% 0 0; background: var(--sea); }
.board-heading { display: flex; align-items: center; gap: 8px; padding-bottom: 15px; border-bottom: 1px solid #badbed; font-size: 12px; color: var(--blue); font-weight: 800; }
.board-heading svg { width: 22px; height: 22px; }
.profile-board dl { margin: 0; font-size: 12px; line-height: 1.9; }
.profile-board dl > div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #cde7f3; }
.profile-board dt { font-weight: 800; color: var(--blue); }
.profile-board dd { margin: 0; font-weight: 700; }
.profile-board dd small { font-size: 10px; display: block; font-weight: 500; }
.profile-board dt span { display: inline-block; padding: 0 5px; background: #5caace; border-radius: 4px; color: white; font-size: 10px; }
.board-stamp { position: absolute; bottom: 7px; right: 18px; color: #3a8db4; opacity: .6; border: 1.5px solid; font-size: 8px; width: 32px; height: 32px; text-align: center; line-height: 1.5; transform: rotate(-13deg); border-radius: 4px; }
.chapter-guide { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); font: 10px/1.5 Arial,sans-serif; letter-spacing: .15em; color: #4d96bd; white-space: nowrap; }
.chapter-guide span { margin-inline: 10px; font: 500 10px/1.5 var(--sans); letter-spacing: .02em; }
.conveyor { position: absolute; bottom: 32px; right: 0; width: 24%; min-width: 200px; height: 18px; transform: rotate(-9deg); transform-origin: right bottom; opacity: .65; pointer-events: none; overflow: visible; }
.conveyor-belt { height: 100%; border: 4px solid #467a94; border-radius: 18px; background: radial-gradient(circle,#f4fafb 28%,#92b3c4 31%,#92b3c4 43%,transparent 46%) 0 0 / 22px 11px repeat-x, #375d71; box-shadow: 0 4px 0 #bad1db,0 18px 0 -4px #e9d693; }
.parcel { position: absolute; bottom: 18px; width: 36px; height: 31px; border: 1px solid #b5a783; border-radius: 2px; background: linear-gradient(90deg,transparent 42%,#d0b580 42%,#d0b580 56%,transparent 56%),#e8d7b3; transform: rotate(9deg); }
.parcel-one { right: 18%; }.parcel-two { right: 44%; width: 44px; height: 39px; }.parcel-three { right: 70%; width: 28px; height: 25px; }

/* Company chapter */
.company-section { position: relative; min-height: 660px; padding-block: 105px 100px; background: linear-gradient(118deg,#fbf8ef 0,#f4f9f7 34%,#dcf1fa 100%); isolation: isolate; overflow: hidden; }
.company-wave { top: -1px; height: 64px; z-index: 2; }
.company-layout { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 42px; }
.company-layout .section-copy { max-width: 520px; }
.company-section h2 { font-size: clamp(25px,2.7vw,37px); }
.company-section .body-copy { font-size: 14px; }
.world-note { margin-top: 15px; font-size: 10px; color: #5c7b88; }
.gear-company { z-index: -1; left: -70px; top: 45px; stroke: #a1a79c; opacity: .17; width: 180px; height: 180px; }
.factory-visual { position: relative; align-self: stretch; min-height: 465px; }
.factory-picture { position: absolute; inset: -35px -95px -35px -40px; background: url("ocean-factory.png") right center / auto 108% no-repeat; -webkit-mask-image: radial-gradient(ellipse at 66% 50%,#000 33%,#000e 52%,transparent 74%); mask-image: radial-gradient(ellipse at 66% 50%,#000 33%,#000e 52%,transparent 74%); }
.factory-message { position: absolute; top: -7px; left: 5%; z-index: 2; color: #196ead; transform: rotate(-9deg); font-size: 23px; line-height: 1.65; font-weight: 900; letter-spacing: .06em; text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
/* Continuous white outline, then blue fill: no diagonal shadow duplicates.
   Keep real text so wording can still be edited in buri/index.html. */
@supports (paint-order: stroke fill) and (-webkit-text-stroke: 1px #fff) {
  .factory-message {
    -webkit-text-stroke: .16em #fff;
    paint-order: stroke fill;
    text-shadow: 0 2px 8px #ffffff80;
  }
}
.factory-message > span { font-size: 1.05em; }
.factory-name { position: absolute; right: 6%; top: 42%; display: flex; align-items: center; gap: 9px; color: #1c6096; padding: 7px 12px; background: #f6f9f0ea; font-size: 18px; font-weight: 900; line-height: 1.3; transform: rotate(-1deg); border: 1px solid #aec4d5; box-shadow: 0 2px 4px #2a567325; }
.factory-name small { display: block; font-size: 13px; letter-spacing: .12em; margin-top: 3px; }
.factory-name > svg { width: 42px; height: 42px; fill: #e1f2f6; }
.scene-caption { position: absolute; bottom: 0; right: 10px; font: 10px/1.5 Arial,sans-serif; letter-spacing: .2em; color: #32789d; }

/* Contents and footer */
.contents-section { position: relative; background: #f8f6ef; padding-top: 72px; }
.contents-section::before { content: ""; position: absolute; left: 0; top: -25px; width: 100%; height: 35px; border-radius: 50% 50% 0 0; background: inherit; }
.contents-layout { display: grid; grid-template-columns: 235px 1fr; gap: 28px; padding-bottom: 72px; }
.contents-heading { padding-top: 10px; }
.contents-heading h2 { font-size: 32px; }
.contents-heading > p:last-child { color: #47769a; font-size: 12px; margin-top: 10px; }
.content-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.content-card { position: relative; background: linear-gradient(145deg,#fffdf9,#eff6fa); border: 1px solid #d6e1e4; border-radius: 20px; padding: 18px 6px 27px; text-align: center; box-shadow: 0 3px 6px #46728409,inset 0 1px 3px #ffffff; transition: transform .3s,box-shadow .3s,border-color .3s; scroll-margin-top: 130px; }
.content-card:hover { transform: translateY(-7px); box-shadow: 0 12px 25px #376f8b19; border-color: #83b5d3; }
.content-card h3 { font-size: 19px; letter-spacing: .06em; margin-top: 6px; }
.content-card p { font-size: 10px; color: #427193; margin-top: 3px; line-height: 1.8; }
.content-art { display: grid; place-items: center; height: 97px; width: 100%; position: relative; }
.content-art > img { max-height: 110px; width: 115px; object-fit: contain; }
.character-art svg { position: absolute; width: 47px; height: 47px; left: calc(50% - 22px); top: 54px; fill: #f9faf3; stroke: #3077aa; stroke-width: 1.5; transform: rotate(-7deg); }
.game-art svg { width: 57px; height: 57px; left: calc(50% - 27px); top: 47px; fill: #81b8d6; stroke: #206195; transform: rotate(-5deg); filter: drop-shadow(0 2px 1px #fff); }
.keychain-art > img { max-height: 99px; transform: rotate(7deg); filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 3px 1px #6b8ea344); }
.keyring { position: absolute; top: -4px; left: calc(50% - 2px); width: 16px; height: 22px; border: 2px solid #5890b3; border-radius: 50%; transform: rotate(15deg); }
.icon-art svg { width: 78px; height: 78px; fill: #81b8d6; stroke: #206195; stroke-width: 1.1; filter: drop-shadow(0 4px 1px #c2d9e233); }
.icon-art.x-art svg { fill: none; stroke-width: 2; }
.card-arrow { position: absolute; right: 12px; bottom: 5px; color: #6f9cb7; font-size: 16px; }
.ocean-strip { min-height: 160px; padding: 25px 20px 30px; background: linear-gradient(#429dcc65,#65b8d38c),url("ocean-factory.png") center 97% / cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #ffffffed; position: relative; overflow: hidden; }
.ocean-farewell { display: flex; align-items: center; justify-content: center; gap: 20px; position: relative; }
.ocean-farewell > svg { width: 42px; height: 30px; stroke-width: 1; fill: #ffffffaa; stroke: none; }
.ocean-farewell > span { font-weight: 700; letter-spacing: .35em; font-size: 13px; }
.ocean-home { max-width: 100%; gap: 12px; }
.water-lights { position: absolute; inset: 0; pointer-events: none; opacity: .35; background: radial-gradient(circle at 20% 70%,#ffffff 0,transparent 3%),radial-gradient(circle at 50% 30%,#fff 0,transparent 4%),radial-gradient(circle at 85% 80%,#fff 0,transparent 5%); }
.site-footer { padding: 32px 0 25px; background: #f6f5f0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 22px; }
.footer-wordmark { color: #307eaf; font: 800 14px/1.5 Arial,sans-serif; letter-spacing: .22em; display: flex; align-items: center; gap: 16px; }
.footer-wordmark > svg { width: 32px; height: 25px; stroke-width: 1; fill: #4188b4; }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 10px; color: #658394; }
.footer-links a { text-decoration: underline; text-underline-offset: 4px; }
#motion-toggle { min-height: 40px; padding: 3px 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }
.footer-inner > small { font: 9px/1.6 Arial,sans-serif; color: #728796; letter-spacing: .06em; }
.back-top { position: fixed; bottom: 20px; right: 23px; width: 54px; height: 54px; z-index: 15; border-radius: 50%; display: grid; place-items: center; background: #226fa8ee; color: white; box-shadow: 0 4px 10px #1b5b792b,inset 0 1px 2px #ffffff55; transition: transform .3s; }
.back-top > svg { transform: rotate(-90deg); width: 28px; height: 28px; }
.back-top:hover { transform: translateY(-4px); }

/* Details open over the current chapter; native <dialog> manages keyboard focus. */
.detail-dialog { width: min(680px,calc(100% - 40px)); max-height: calc(100svh - 60px); padding: 54px 48px 44px; border: 2px solid #a5d2e5; border-radius: 22px; color: var(--ink); background: #fcfdf9; box-shadow: 0 25px 120px #062b5070; overflow: auto; overscroll-behavior: contain; }
.detail-dialog::backdrop { background: #0d355a88; backdrop-filter: blur(7px); }
.detail-dialog.dialog-fallback { position: relative; margin: 40px auto; }
.detail-dialog.dialog-fallback form { display: none; }
.detail-dialog form { margin: 0; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 40px; height: 40px; display: grid; place-items: center; background: #eaf4f8; border: 0; border-radius: 50%; font: 25px/1 Arial,sans-serif; }
.detail-dialog h2 { font-size: 28px; margin-bottom: 25px; }
.detail-dialog p:not(.eyebrow) { margin-top: 16px; }
.detail-dialog .glass-button { margin-top: 24px; }
.dialog-quote { background: #e8f4fa; border-left: 4px solid var(--sky); padding: 15px; font-weight: 800; color: var(--blue); }
.company-facts { margin: 25px 0; background: #ecf6fa; padding: 15px 20px; border-radius: 10px; }
.company-facts > div { display: grid; grid-template-columns: 70px 1fr; padding: 8px 0; }
.company-facts dt { font-weight: 800; }.company-facts dd { margin: 0; }

/* Image links: plain HTML remains usable offline and without JavaScript. */
.detail-dialog .collection-note { font-size: 12px; color: #55758b; }
.collection-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.collection-link { display: grid; grid-template-columns: auto minmax(0,1fr) 20px; align-items: center; gap: 14px; min-height: 65px; padding: 14px 17px; border: 1px solid #c3dfe9; border-radius: 14px; background: linear-gradient(125deg,#fff,#edf7fb); box-shadow: 0 3px 8px #19578208; transition: border-color .2s, background .2s, box-shadow .2s; }
.collection-link:hover { border-color: var(--blue); background: #e3f3fa; box-shadow: 0 4px 12px #19578218; }
.collection-link:focus-visible { outline-offset: 2px; }
.episode-number { padding: 4px 8px; border-radius: 7px; background: #ddecf5; color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.collection-title { color: var(--navy); font-size: 15px; font-weight: 800; line-height: 1.7; overflow-wrap: anywhere; }
.collection-arrow { color: var(--blue); font-size: 21px; text-align: right; }
/* Two stories share one image and one full-card link. */
.collection-link--manga { grid-template-columns: minmax(0,1fr) 20px; min-height: 112px; padding: 18px 20px; }
.episode-pair { display: grid; gap: 10px; min-width: 0; }
.episode-row { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; }
.collection-link--goods { grid-template-columns: 88px minmax(0,1fr) 20px; }
.goods-thumbnail { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: white; }
.game-list-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #ddecf5; color: var(--blue); }
.game-list-icon svg { width: 36px; height: 36px; }
.collection-description { display: block; margin-top: 4px; font-size: 11px; color: #55758b; line-height: 1.8; }
@media (max-width: 480px) {
  .collection-link { padding: 12px; gap: 9px; }
  .episode-number { padding: 4px 6px; font-size: 11px; }
  .collection-title { font-size: 13px; }
  .episode-row { gap: 9px; }
  .collection-link--goods { grid-template-columns: 62px minmax(0,1fr) 18px; }
  .goods-thumbnail { width: 62px; height: 62px; }
}

/* Reveals are progressive enhancement. Content is visible with JS disabled. */
.motion-enabled .reveal { transition: opacity .85s ease,translate .85s cubic-bezier(.2,.75,.25,1); }
.motion-enabled .reveal:not(.is-visible) { opacity: 0; translate: 0 28px; }
.motion-enabled .content-card.reveal:nth-child(2) { transition-delay: .06s; }
.motion-enabled .content-card.reveal:nth-child(3) { transition-delay: .12s; }
.motion-enabled .content-card.reveal:nth-child(4) { transition-delay: .18s; }
.motion-disabled .character-pop { opacity: 1 !important; transform: none !important; animation: none !important; will-change: auto; }
.motion-disabled .speech-bubble, .motion-disabled .speech-button { opacity: 1 !important; visibility: visible !important; animation: none !important; }
.motion-disabled .mouse-shape::after { animation: none; }
.motion-disabled, .motion-disabled * { scroll-behavior: auto !important; }
.motion-disabled *, .motion-disabled *::before, .motion-disabled *::after { transition: none !important; }

@media (min-width:1600px) { .hero-character { right: -15px; } }
@media (max-width:1200px) {
  .container { width: calc(100% - 80px); }
  .header-inner { padding-inline: 22px; gap: 12px; }
  .brand-type { font-size: 20px; }.brand-mark { width: 39px; height: 46px; }
  .main-nav { gap: 3px; }.main-nav > a { min-width: 58px; padding-inline: 6px; font-size: 10px; }.main-nav > .site-top-link { min-width: 126px; margin-left: 8px; padding-inline: 12px; font-size: 11px; }
  .character-layout { gap: 15px; grid-template-columns: 1fr 1.1fr 1fr; }
  .character-layout h2 { font-size: 27px; }.body-copy { font-size: 13px; }.section-subtitle { font-size: 15px; }
  .profile-board { padding-inline: 16px; }.profile-board dl { font-size: 11px; }
  .speech-bubble { font-size: 12px; padding: 15px 18px; min-width: 160px; }.speech-bubble strong { font-size: 17px; }
  .contents-layout { grid-template-columns: 185px 1fr; gap: 20px; }.contents-heading h2 { font-size: 26px; }
  .content-grid { gap: 9px; }.content-card h3 { font-size: 16px; }.content-card p { font-size: 9px; }.content-art { height: 87px; }.icon-art svg { width: 65px; height: 65px; }
}
@media (max-width:1000px) {
  :root { --header-height: 74px; }
  .header-inner { padding-inline: 24px; min-height: var(--header-height); }
  .brand-type { font-size: 21px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 55px; min-height: 50px; padding: 0; border: 0; background: none; }
  .menu-bars { width: 25px; height: 15px; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); position: relative; }
  .menu-bars::after { content: ""; position: absolute; left: 0; top: 5px; width: 25px; border-top: 2px solid var(--navy); }
  .menu-label { font-size: 8px; font-weight: 800; line-height: 1; white-space: nowrap; }
  .menu-toggle[aria-expanded="true"] .menu-bars { border-bottom: 0; border-top: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: rotate(45deg); }.menu-toggle[aria-expanded="true"] .menu-bars::before { content: ""; width: 25px; position: absolute; left: 0; top: 5px; border-top: 2px solid var(--navy); transform: rotate(-45deg); }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-height); padding: 16px 24px 24px; background: #fffffff9; box-shadow: 0 20px 20px #19497122; max-height: calc(100svh - var(--header-height)); overflow: auto; }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .main-nav > a { padding: 14px 8px; min-height: 68px; font-size: 11px; border-radius: 8px; background: #f0f8fc; }
  .main-nav > .site-top-link { grid-column: 1 / -1; width: 100%; margin: 8px 0 0; min-height: 46px; }
  .hero { min-height: 570px; max-height: 680px; }.hero-copy { padding-top: 92px; }.hero h1 { font-size: clamp(42px,5.1vw,55px); }.hero-lead { font-size: 14px; }.hero-kicker { font-size: 10px; }.hero-character { width: 66vw; right: -25px; bottom: 7%; }.hero-callout { top: 7%; font-size: 22px; right: 8%; }.hero-coordinate { left: 13px; }
  .character-stage { min-height: 690px; padding-block: 105px 95px; }
  .character-layout { grid-template-columns: 1fr 1.1fr; gap: 35px; align-items: start; }
  .character-layout .section-copy { grid-column: 1; grid-row: 1; padding-top: 15px; }
  .character-performance { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .profile-board { grid-column: 1; grid-row: 2; padding: 18px 19px 26px; }.board-heading { display: none; }.profile-board dl > div { padding: 7px 0; }.profile-board dd small { display: inline; }.board-clip { width: 62px; left: calc(50% - 31px); height: 22px; top: -16px; }.board-clip::before { left: 18px; top: -14px; height: 23px; border-width: 7px; width: 25px; }
  .character-layout h2 { font-size: 30px; }.character-layout .body-copy { margin-top: 15px; font-size: 13px; }.character-layout .glass-button { margin-top: 20px; }
  .company-layout { gap: 20px; grid-template-columns: 1fr 1fr; }.company-section h2 { font-size: 30px; }.factory-message { font-size: 18px; }.factory-visual { min-height: 430px; }.factory-picture { inset: 0 -70px -20px -20px; }.factory-name { font-size: 14px; right: 0; }.factory-name small { font-size: 11px; }.factory-name > svg { width: 30px; }.company-section .body-copy { font-size: 13px; }.desktop-br { display: none; }
  .contents-layout { display: block; }.contents-heading { margin-bottom: 30px; }.contents-heading > p:last-child br { display: none; }.contents-heading > p:last-child { margin-top: 6px; }.contents-heading h2 { font-size: 30px; }.content-grid { gap: 15px; }.content-card { padding-block: 22px 28px; }.content-card h3 { font-size: 18px; }.content-art { height: 100px; }.content-card p { font-size: 10px; }
}
@media (max-width:700px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 40px); }
  .header-inner { padding-inline: 16px; }.brand { gap: 8px; }.brand-mark { width: 33px; height: 41px; }.brand-mark svg { width: 25px; }.brand-type { font-size: 18px; }.brand-type small { font-size: 7px; letter-spacing: .28em; }.menu-toggle { width: 43px; }
  .hero { height: 780px; min-height: 690px; max-height: 850px; }
  .hero-scenery { background-position: 72% 50%; }.hero-tint { background: linear-gradient(180deg,#0963ac61,transparent 52%); }
  .hero-copy { width: 100%; padding-top: 42px; }.hero-kicker { font-size: 10px; margin-bottom: 13px; }.hero h1 { font-size: clamp(36px,8.8vw,52px); line-height: 1.55; letter-spacing: .09em; }.hero-lead { font-size: 12px; line-height: 1.9; margin-top: 18px; }.hero-copy .glass-button { min-height: 42px; padding: 8px 19px; gap: 18px; font-size: 11px; margin-top: 18px; }.hero-copy .glass-button svg { width: 20px; height: 20px; }
  .hero-character { width: min(107vw,550px); right: -25px; bottom: 23px; }.hero-callout { font-size: 19px; right: 9%; top: 12%; -webkit-text-stroke-width: 4px; }.hero-character-label { font-size: 9px; right: 14%; bottom: 12%; }
  .hero-coordinate { bottom: 210px; font-size: 8px; left: 8px; }.hero-wave { height: 72px; }.scroll-cue { transform: scale(.85); bottom: -25px; }
  .character-stage { min-height: 0; padding: 83px 0 83px; }.character-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }.character-layout .section-copy { text-align: center; padding: 0; }.character-layout .eyebrow { justify-content: center; }.character-layout h2 { font-size: 29px; }.section-subtitle { font-size: 14px; }.body-copy { font-size: 13px; }.character-layout .body-copy { margin-top: 20px; line-height: 2; }.character-layout .glass-button { margin-top: 22px; }.glass-button { min-height: 47px; font-size: 12px; }
  .character-performance { width: 100%; max-width: 340px; align-self: center; margin-top: 45px; padding-top: 57px; }.sprite-frame { width: min(77vw,285px); }.speech-bubble { top: 0; right: -1px; min-height: 85px; font-size: 12px; padding: 13px 20px; }.speech-bubble strong { font-size: 18px; }.speech-button { margin-top: 14px; font-size: 11px; }
  .profile-board { width: min(100%,390px); align-self: center; margin-top: 50px; padding: 27px 24px 39px; }.board-heading { display: flex; }.profile-board dl { font-size: 12px; }.profile-board dl > div { padding: 11px 0; grid-template-columns: 46px 1fr; gap: 16px; }.profile-board dd small { display: block; font-size: 10px; }.board-clip { width: 82px; height: 30px; top: -20px; left: calc(50% - 41px); }.board-clip::before { top: -19px; left: 28px; width: 25px; height: 30px; border-width: 9px; }
  .gear-one { width: 120px; left: -70px; top: 33px; }.gear-two { bottom: 190px; }.fish-one { top: 360px; left: 0; width: 60px; }.fish-two { bottom: 485px; left: 80%; }.fish-three { bottom: 48px; left: 9%; width: 42px; }.bubble-three { bottom: 655px; right: 5%; }.conveyor { bottom: 8px; width: 40%; min-width: 140px; opacity: .4; }.parcel-three { display: none; }.chapter-guide { bottom: 22px; z-index: 2; }
  .company-section { padding: 80px 0 55px; }.company-layout { display: flex; flex-direction: column; gap: 28px; }.company-layout .section-copy { width: 100%; }.company-section h2 { font-size: clamp(24px,6.6vw,30px); }.company-section .body-copy { margin-top: 20px; font-size: 13px; }.company-section .section-subtitle { font-size: 14px; }.company-section .glass-button { margin-top: 23px; }.world-note { font-size: 9px; }.company-wave { height: 45px; }.gear-company { width: 130px; left: -80px; top: 110px; }
  .factory-visual { min-height: 345px; width: 100%; }.factory-picture { inset: -10px -20px -15px -20px; background-position: right center; background-size: auto 105%; -webkit-mask-image: radial-gradient(ellipse at 63% 52%,#000 36%,#000e 56%,transparent 77%); mask-image: radial-gradient(ellipse at 63% 52%,#000 36%,#000e 56%,transparent 77%); }.factory-message { font-size: 17px; left: 0; top: 0; }.factory-name { font-size: 14px; top: 46%; right: 5%; }.scene-caption { font-size: 8px; bottom: -10px; right: 0; }
  .contents-section { padding-top: 50px; }.contents-layout { padding-bottom: 43px; }.contents-heading { margin-bottom: 25px; }.contents-heading h2 { font-size: 29px; }.content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.content-card { padding: 15px 8px 23px; border-radius: 17px; }.content-art { height: 95px; }.content-card h3 { font-size: 19px; }.content-card p { font-size: 10px; }.ocean-strip { min-height: 148px; padding-block: 23px 27px; }.ocean-farewell > span { font-size: 11px; }.ocean-farewell > svg { width: 33px; }
  .footer-inner { flex-direction: column; gap: 12px; }.footer-wordmark { font-size: 12px; }.footer-inner > small { margin-top: 3px; }.site-footer { padding-block: 28px 36px; }.back-top { width: 44px; height: 44px; right: 12px; bottom: 12px; }.back-top > svg { width: 24px; }
  .detail-dialog { padding: 54px 25px 32px; width: calc(100% - 28px); max-height: calc(100svh - 30px); font-size: 13px; }.detail-dialog h2 { font-size: 23px; }.detail-dialog .eyebrow { font-size: 11px; }.company-facts { padding: 12px; }.company-facts > div { grid-template-columns: 58px 1fr; }
}
@media (max-width:380px) { .hero { height: 730px; }.hero-character { width: 111vw; right: -28px; bottom: 24px; }.brand-type { font-size: 16px; }.brand-mark { width: 29px; height: 36px; }.hero h1 { font-size: 34px; }.hero-callout { font-size: 17px; }.hero-character-label { font-size: 8px; }.character-layout h2 { font-size: 26px; }.profile-board { padding-inline: 18px; }.profile-board dl { font-size: 11px; }.speech-bubble { right: -7px; }.eyebrow { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .character-pop { opacity: 1 !important; transform: none !important; }
  .speech-bubble, .speech-button { opacity: 1 !important; visibility: visible !important; }
  .motion-enabled .reveal { opacity: 1 !important; translate: none !important; }
  .motion-enabled .character-scene.is-pinned { height: auto; }
  .motion-enabled .is-pinned .character-stage { position: relative; height: auto; min-height: 740px; }
}
