:root {
  --sea: #102b29;
  --deep: #0d211f;
  --paper: #f3ecdc;
  --ink: #272d26;
  --muted: #57594f;
  --gold: #bf9854;
  --edge: #c7b996;
  --display: Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 6vw, 108px);
  --mast-height: 68px;
  color: var(--ink);
  background: var(--deep);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, textarea, select, input { font: inherit; }
button, summary, select, label:has(input[type=radio]) { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; }
:focus-visible { outline: 3px solid #327fbc; outline-offset: 4px; }
.wrap { width: min(1170px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.mast {
  min-height: var(--mast-height); padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #102523; color: #fcf1dc; border-bottom: 1px solid #9e8755;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand span, footer > span { font: 600 clamp(1.1rem, 2vw, 1.55rem) var(--display); letter-spacing: -.035em; }
.brand img { width: 33px; height: 33px; object-fit: contain; }
.brand small { color: #ded6c6; border-left: 1px solid #62706a; padding-left: 14px; font-size: .81rem; }
.motion {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px;
  border: 1px solid #65736a; background: transparent; border-radius: 2px;
  color: #e9e3d4; padding: 5px 14px; font-size: .84rem;
}
.motion i { width: 9px; height: 11px; border-inline: 3px solid #d1b679; }
.motion[aria-pressed=true] i { height: 0; width: 0; border: 5px solid transparent; border-right: 0; border-left: 8px solid #d1b679; }
.motion:hover { border-color: var(--gold); }

.hero {
  position: relative; isolation: isolate; color: #fff4dc; background: #162c2b;
  display: grid; grid-template-columns: minmax(0,1fr) clamp(340px, 35vw, 675px);
  min-height: 525px; height: calc(100vh - var(--mast-height)); height: calc(100svh - var(--mast-height));
  border-bottom: 3px double #ae935e;
}
.hero-body {
  grid-area: 1 / 1; min-width: 0; display: flex; align-items: flex-end; padding: 5% 5% 6% var(--gutter);
  background: linear-gradient(90deg, rgba(9,21,21,.44), transparent 82%),
    linear-gradient(0deg, #0b2020 0%, rgba(10,24,23,.83) 16%, rgba(17,26,22,.34) 53%, rgba(15,28,27,.02) 83%),
    url("img/departure.webp") 55% 33% / cover;
}
.hero-copy { position: relative; width: 100%; padding-left: 3px; }
.genre { display: flex; align-items: center; gap: 12px; font-size: .83rem; font-weight: 700; letter-spacing: .12em; text-shadow: 0 1px 5px #0a1313; }
.genre i { width: 39px; height: 4px; border-top: 1px solid #dcc398; border-bottom: 1px solid #b39e79; }
.hero h1 { margin: 12px 0 5px; max-width: min(445px, 90%); line-height: 1; }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 3px 7px #171810); }
.hero-line { font-size: clamp(1.1rem, 1.65vw, 1.6rem); font-weight: 700; letter-spacing: .035em; text-shadow: 0 1px 4px #13221e; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; margin-top: 26px; }
.hero-action small { font-size: .82rem; color: #f4e9d6; }
.play {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  position: relative; min-height: 56px; padding: 12px 31px; border: 1px solid #f6da92; border-radius: 2px;
  background: linear-gradient(165deg,#efd69b 0%,#dcb773 55%,#c7a665 100%);
  color: #2b281c; font-weight: 700; text-decoration: none; letter-spacing: .055em;
  box-shadow: inset 0 0 0 3px #c8a467, inset 0 0 0 4px #f1d8a1, 0 4px 10px #08140f3b;
}
.play i { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.play:hover { background: #f4dba2; }
.play:active { background: #cfac6f; }
.film { grid-area: 1 / 2; position: relative; overflow: hidden; border-left: 3px double #b89a60; }
.film video { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 72%; }
.film::before { content: ""; position: absolute; z-index: 1; inset: 12px; pointer-events: none;
  background: linear-gradient(#dec38c,#dec38c) left top / 26px 1px, linear-gradient(#dec38c,#dec38c) left top / 1px 26px,
  linear-gradient(#dec38c,#dec38c) right bottom / 26px 1px, linear-gradient(#dec38c,#dec38c) right bottom / 1px 26px; background-repeat: no-repeat; }
.film-label { position: absolute; top: 25px; left: 25px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px;
  background: #142824; color: #fff0ce; border: 1px solid #ae9766; font-size: .78rem; letter-spacing: .045em; }
.film-label span { color: #ddcba3; font: .8rem var(--display); letter-spacing: .08em; }
.film-label i { width: 11px; height: 8px; border: 1px solid currentColor; position: relative; margin-right: 2px; }
.film-label i::after { content: ""; position: absolute; width: 3px; height: 4px; right: -4px; top: 1px; background: currentColor; }

.paper {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(96deg,transparent 0 3px,#a88a4426 4px,transparent 4.5px 7px);
  background-size: 4px 3px;
}
main > section:not(.hero) { padding-block: clamp(44px, 5.2vw, 82px); }
.kicker { display: flex; align-items: center; gap: 12px; color: #775420;
  font: 700 .8rem/1.4 var(--display); letter-spacing: .21em; text-transform: uppercase; margin-bottom: 8px; }
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
h2 { font-size: clamp(1.65rem, 3vw, 2.75rem); line-height: 1.32; letter-spacing: .045em; }
h3 { font-size: clamp(1.08rem, 1.65vw, 1.37rem); line-height: 1.52; }
.heading { margin-bottom: 26px; position: relative; }
.heading::after { content: ""; display: block; height: 3px; border-block: 1px solid var(--edge); margin-top: 15px; transform-origin: left; }
@supports (animation-timeline: view()) {
  html:not(.still):not(.away) .heading.visible::after { animation: rule .45s linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes rule { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
}
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px,2.5vw,38px); }
.art, .plate { position: relative; overflow: hidden; }
.art { aspect-ratio: 16/9; background: #463923; border-bottom: 2px solid var(--gold); }
.art > img, .art > noscript img, .plate > img, .plate > noscript img { width: 100%; height: 100%; object-fit: cover; }
.hint { display: block; color: #665230; font-size: .81rem; margin-top: 6px; }
.features h3 { margin: 14px 0 5px; }
.features p, .notes > p:not(.kicker), .crew p { color: var(--muted); }
.art[data-effect], .water { cursor: crosshair; touch-action: pan-y pinch-zoom; }
.dish-back { filter: brightness(.66); }
.dish { position: absolute; height: 97%; aspect-ratio: 1; top: 1%; left: 50%; transform: translateX(-50%) scaleY(.86); }
.dish img { width: 100%; height: 100%; }
.ball,.dish-art.visible .ball { background-image: url("img/ball.webp"); }
.socket { position: absolute; border-radius: 50%; transform: translate(-50%,-50%); }
.ball { z-index: 2; top: 50%; left: 18%; width: 11%; aspect-ratio: 1; background-position: center; background-size: contain; filter: drop-shadow(1px 3px 2px #281e15); }
.dish-art.visible .ball { background-image: url("img/ball.webp"); }
.socket { width: 10%; aspect-ratio: 1; background: #241a12; box-shadow: inset 0 2px 2px #0a0806, 0 1px 1px #d7a766; }
.falling { position: absolute; width: 11%; aspect-ratio: 1; background: url("img/coin.webp") center / contain; pointer-events: none; }
.sea-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  mask-image: radial-gradient(ellipse 26% 7% at 26% 53%,#000 45%,transparent); }
html:not(.still):not(.away) .ship-art.visible .sea-lines {
  background: url("img/shipyard.webp") center / cover; animation: tide 2.6s ease-in-out infinite alternate; }
@keyframes tide { from { opacity: .1; transform: translateY(0); } to { opacity: .92; transform: translateY(2px); } }
.dark { background: var(--sea); color: var(--paper); }
.dark .kicker { color: #dbbb7a; }
.spread { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(32px,6vw,90px); align-items: center; }
.notes > p:not(.kicker) { margin-top: 14px; }
.dark .notes > p:not(.kicker) { color: #e1dfce; }
.stages { border: 0; padding: 0; margin: 22px 0 0; color: #efe8d8; }
.stages legend { font-size: .81rem; padding: 0; margin-bottom: 7px; }
.stages label { display: inline-block; position: relative; }
.stages input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stages span { display: block; padding: 7px 21px; border: 1px solid #ad9b72; }
.stages input:checked + span { background: #d5bb85; color: #172920; font-weight: 700; }
.stages input:focus-visible + span { outline: 3px solid #75c2f7; outline-offset: 2px; }
.plate { aspect-ratio: 3/2; border: 1px solid #a9976d; background: #39453c; }
.plate::after { content: ""; position: absolute; inset: 7px; border: 1px solid #e9d5a46b; pointer-events: none; }
.plate .after { display: none; position: absolute; inset: 0; }
.yard:has(input[value=after]:checked) .after { display: block; }

.fleet {
  border-block: 3px double #937447;
  background: radial-gradient(ellipse at 78% 73%, #624026, transparent 62%), #211e19;
}
.fleet-intro { max-width: 38em; }
.fleet-intro h2 + p { margin-top: .8em; color: #eee1cb; }
.fleet-ships {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-top: clamp(26px, 4vw, 54px);
}
.fleet-frame { aspect-ratio: 3 / 2; overflow: hidden; background: #392b20; border: 1px solid #a78955; }
.fleet-frame img { width: 100%; height: auto; }
.fleet figcaption { margin-top: .7rem; line-height: 1.5; }
.fleet figcaption > * { display: block; }
.fleet figcaption small { color: #f4cc89; font-size: .875rem; }
.fleet figcaption strong { margin-block: .15em; font-size: clamp(1rem, 2vw, 1.45rem); text-wrap: balance; }
.fleet figcaption span { color: #eee1cb; font-size: .9rem; }
.fleet-sloop { width: 76%; justify-self: end; }
.fleet-carrack { width: 84%; }
.fleet-galleon { grid-column: 1 / -1; }
.fleet-galleon .fleet-frame { border: 3px double #e6c185; }
.fleet-galleon figcaption { padding-left: .9em; border-left: 2px solid #cfa465; }
.fleet-galleon figcaption strong { font-size: clamp(1.3rem, 3vw, 2.25rem); }
.fleet-note { margin-top: 1.3rem; color: #f2e1bf; }
@media (max-width: 740px) {
  .fleet-ships { grid-template-columns: minmax(0, 1fr); }
  .fleet-sloop, .fleet-carrack {
    display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
    gap: 14px; align-items: center; width: 100%;
  }
  .fleet-carrack { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .fleet-carrack .fleet-frame { grid-column: 2; grid-row: 1; }
  .fleet-carrack figcaption { grid-column: 1; grid-row: 1; }
  .fleet figcaption { margin-top: 0; }
  .fleet-galleon {
    margin-inline: calc(-1 * var(--gutter));
    display: grid;
    --fleet-animation: none;
  }
  .fleet-galleon .fleet-frame, .fleet-galleon figcaption { grid-area: 1 / 1; }
  .fleet-galleon .fleet-frame {
    aspect-ratio: auto;
    height: 76vh;
    height: 76svh;
    border: 0;
    transform-origin: center 24%;
  }
  .fleet-galleon img { height: 100%; object-fit: cover; object-position: 66% 50%; }
  .fleet-galleon figcaption {
    position: relative;
    align-self: end;
    padding: 3.5rem var(--gutter) 1.25rem;
    border: 0;
    color: #fff5dc;
    background: linear-gradient(transparent, #18120dec 55%, #18120d);
    text-shadow: 0 2px 4px #100c09;
  }
  .fleet-galleon figcaption strong {
    font-size: clamp(1.6rem, 7.5vw, 2.8rem);
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 95%) {
    .fleet-galleon { --fleet-animation: flagship-arrival; }
  }
}
@keyframes flagship-arrival {
  from { transform: scale(.48); }
  to { transform: scale(1); }
}
@keyframes fleet-arrival {
  from { clip-path: inset(9% 6%); transform: scale(.93); }
  to { clip-path: inset(0); transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.still):not(.away) .fleet figure.visible .fleet-frame {
    animation: var(--fleet-animation, fleet-arrival) 1.1s cubic-bezier(.2,.56,.3,1) both;
  }
  @supports (animation-timeline: view()) {
    html:not(.still):not(.away) .fleet figure.visible .fleet-frame {
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
  }
}

.plate figcaption,.placard { position: absolute; bottom: 15px; left: 15px; padding: 4px 12px;
  color: #fff4da; background: #192c26f0; border: 1px solid #a99063; font-size: .83rem; }
.placard { display: flex; align-items: center; gap: 9px; pointer-events: none; }
.placard i { font: italic 1.1rem var(--display); }
.placard small { font-size: .76rem; border-left: 1px solid #9b947e; padding-left: 9px; }
.harbor { grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); }
.water { position: absolute; inset: 50% 21% 26% 11%; overflow: hidden; }
.ripple { position: absolute; width: 11px; height: 4px; border: 1px solid #ffefc0; border-radius: 50%; pointer-events: none; box-shadow: 0 1px 2px #302b21; }
.crew { list-style: none; padding: 0; margin-top: 16px; }
.crew li { display: flex; gap: 13px; align-items: center; border-top: 1px solid var(--edge); padding: 11px 0; }
.crew img { flex: none; background: #d9c9a4; object-fit: cover; border: 1px solid #a99672; border-radius: 50%; }
.crew small { margin-left: 9px; color: var(--muted); }
.crew p { font-size: .9rem; }
.departure { position: relative; isolation: isolate; text-align: center; border-block: 3px double #a28a55; }
.departure.visible::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#102c29bd,#102c29f5 43%,#102c29eb 68%,#102c29bc),url("img/chart.webp") center / cover; }
.departure .kicker { justify-content: center; }
.departure .kicker::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.departure h2 + p { margin: 12px 0 17px; }
.save { max-width: 530px; margin: 18px auto 0; font-size: .875rem; color: #dfddcd; text-align: left; }
.journal-grid { display: grid; grid-template-columns: 1fr 1.5fr .85fr; gap: 30px; }
.journal h3 { margin-bottom: 8px; }
.update { border-bottom: 1px solid var(--edge); }
.update summary { padding: 9px 0; font-size: .93rem; }
.update time { margin-right: .8em; }
.update ul { padding: 0 0 12px 1.2rem; }
.article-link,.social a { display: block; padding: 7px 0; }
.ink-link { display: inline-block; font-size: .9rem; margin-top: 9px; }
.feedback { margin-top: 28px; border-block: 1px solid var(--edge); }
.feedback summary { padding: 14px 0; font-weight: bold; }
#feedback { max-width: 640px; padding-bottom: 18px; }
#feedback :is(label,output) { display: block; }
#feedback label { margin: 9px 0 3px; }
select,textarea { color: var(--ink); background: #fffaf1; border: 1px solid #8f886f; padding: 7px; box-sizing: border-box; }
textarea { width: 100%; resize: vertical; display: block; }
#feedback button { margin: 10px 0; padding: 8px 22px; background: var(--sea); color: white; border: 0; }
footer { padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 9px 30px; flex-wrap: wrap; color: #e7d6b6; }
footer small { font-size: .8rem; color: #cccfc0; }
.sticky { display: none; }

@media (max-width: 740px) {
  :root { --mast-height: 55px; --gutter: clamp(16px,5vw,30px); }
  .mast { padding-inline: 14px; }
  .brand { gap: 6px; }
  .brand img { width: 27px; height: 27px; }
  .brand small { padding-left: 7px; font-size: .75rem; }
  .motion { font-size: .78rem; padding: 4px 8px; min-height: 36px; gap: 6px; }
  .hero { display: grid; grid-template-columns: 1fr; height: calc(100vh - var(--mast-height)); height: calc(100svh - var(--mast-height)); min-height: 390px; }
  .film,.hero-body { grid-area: 1 / 1; }
  .film { border: 0; }
  .film video { object-position: center 60%; }
  .film-label { top: 16px; left: 16px; }
  .film::before { inset: 9px; }
  .hero-body { position: relative; z-index: 1; align-items: flex-end; pointer-events: none; text-align: center;
    padding: 0 12px max(18px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, #0c221f 0%, #0b1e1df5 12%, #0d1d1bd1 25%, #0b151367 42%, transparent 58%); }
  .hero-copy { padding: 0; }
  .genre { justify-content: center; gap: 9px; font-size: .78rem; }
  .genre i,.genre::after { content: ""; width: 22px; height: 1px; background: #d8bf91; border: 0; }
  .hero h1 { width: min(72vw, calc(100svh * .38), 345px); max-width: 100%; margin: 4px auto 0; }
  .hero-line { font-size: clamp(1rem,4.5vw,1.2rem); }
  .hero-action { margin-top: 13px; flex-direction: column; gap: 6px; }
  .hero-action .play { pointer-events: auto; }
  .hero-action small { font-size: .76rem; }
  .play { width: min(100%, 305px); min-height: 50px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .features article { display: grid; grid-template-columns: minmax(0,.77fr) minmax(0,1fr); column-gap: 16px; align-content: start; }
  .features .art { grid-row: span 2; aspect-ratio: 1.15; align-self: start; }
  .features h3 { margin: 0 0 4px; font-size: 1.07rem; }
  .features .hint { grid-column: 2; }
  .features p { line-height: 1.62; }
  .dish { height: auto; width: 95%; top: 0; }
  .spread,.harbor { grid-template-columns: 1fr; gap: 19px; }
  .harbor-plate { order: 2; }
  .sticky { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; justify-content: center; background: #102623; border-top: 2px solid #baa06c;
    padding: 7px max(16px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-bottom)); }
  .sticky .play { min-height: 43px; padding-block: 7px; }
  body:has(.sticky:not([hidden])) footer { padding-bottom: calc(83px + env(safe-area-inset-bottom)); }
  .journal-grid { grid-template-columns: 1fr; gap: 24px; }
  .heading { margin-bottom: 20px; }
  footer { display: grid; }
}
@media (max-width: 355px) {
  .brand small { display: none; }
  .features article { grid-template-columns: minmax(0,.61fr) minmax(0,1fr); gap: 0 12px; }
}
@media (min-width: 741px) and (max-height: 630px) {
  .hero { min-height: 350px; }
  .hero h1 { max-width: min(320px,70%); }
  .hero-body { padding-block: 20px; }
  .hero-action { margin-top: 13px; }
}
@media (max-width: 740px) {
  .hero-body { align-items: stretch; padding-top: 19px;
    background: linear-gradient(180deg,#0c1f1ddb 0%,#0c1c1ca6 19%,transparent 42%,transparent 69%,#0c1d1b6e 79%,#0d211fee 100%); }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-action { align-self: stretch; margin-top: auto; }
  .hero-action .play { width: min(83%,305px); }
  .film-label { left: 14px; top: 44%; }
}

/* 大黒 11/21：幅 390・320 で見出しの帯の文字が2行に折れる・小見出しが1字だけ次の行に落ちるのを直す */
.brand span, .brand small, .motion, .motion span { white-space: nowrap; }
h3 { text-wrap: balance; }
@media (max-width: 430px) { .brand small { display: none; } }
@media (max-width: 340px) { .brand span { font-size: 1rem; } .motion { font-size: .72rem; padding: 4px 6px; } }

h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* 11/26 守屋・オーナー OK：感想の欄の個人情報の注意 */
.fb-note { text-wrap: pretty; word-break: auto-phrase; margin: 6px 0 10px; font-size: .84rem; color: var(--ink2, #5b4a33); line-height: 1.6; }
