@import url("./reel.css");
@font-face {
  font-family: "Home Serif";
  src: url("/assets/noto-serif-jp-home-20261024.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* Desktop keeps its caption contour; mobile groups copy above a low photo reel. */
.stage {
  border-radius: 36px;
}
.home-intro {
  display: contents;
}
.home-description {
  display: none;
}
.home-caption p {
  font-family: "Home Serif", serif;
  font-weight: 400;
}
.mission {
  top: 26%;
}
.scene-reel.scene-dock {
  display: block;
  position: absolute;
  top: 52%;
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1160px, 88%);
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 3;
}
.scene-reel .scene-options {
  display: block;
  width: 100%;
  padding: 26px 0 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.scene-reel .swiper-slide {
  width: clamp(170px, 20vw, 240px);
  height: auto;
}
.scene-reel .scene-choice {
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0;
  aspect-ratio: 1.6;
  border: 0;
  border-radius: 17px;
  overflow: hidden;
  opacity: 1;
  filter: none;
  transform: translateY(var(--scene-drop, 0px)) scale(var(--scene-scale, 1));
  box-shadow:
    0 12px 36px #041f3238,
    inset 0 1px #fff8;
  transition: transform var(--scene-duration, 0ms) ease;
  cursor: pointer;
}
.scene-reel .scene-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.scene-reel .scene-choice:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  opacity: 1;
}
/* Scene pager (11/14 本人選択 P3): eight 1px lines; the current one draws white over the autoplay wait. */
.scene-reel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  margin: 2px auto 0;
}
.scene-tick {
  position: relative;
  display: block;
  flex: none;
  width: var(--tick-w, 46px);
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scene-tick::before,
.scene-tick-fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.scene-tick::before {
  background: #ffffff5c;
  transition: background 0.3s;
}
.scene-tick-fill {
  display: block;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.scene-tick:focus-visible {
  outline: none;
}
.scene-tick:focus-visible::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 12px;
  bottom: 12px;
  border: 1.5px solid #fff;
  border-radius: 8px;
}
/* Desktop: top/page.js narrows the lines (or hides them) where they would fall on the white caption cut-out. */
.scene-reel-controls[data-fit="none"] {
  display: none;
}
@media (forced-colors: active) {
  .scene-tick:focus-visible {
    outline: 2px solid CanvasText;
  }
}
@media (hover: hover) {
  .scene-tick:hover::before {
    background: #ffffffa6;
  }
}
.stage:not([data-view="home"]) .scene-reel {
  display: none;
}
.scene[data-landscape="craft"] img {
  object-position: 66% 50%;
}
.scene[data-landscape="snowtown"] img {
  object-position: 48% 50%;
}
@media (max-width: 1000px) and (min-width: 761px) {
  .mission {
    top: 25%;
  }
  .scene-reel.scene-dock {
    top: 51%;
    width: 88%;
  }
}
@media (max-width: 760px) {
  .stage {
    border-radius: 24px;
  }
  .home-caption {
    display: none;
  }
  .home-intro {
    display: block;
    position: absolute;
    left: 22px;
    right: 22px;
    top: 30%;
  }
  .home-intro .mission {
    position: static;
    inset: auto;
    width: min(84%, 360px);
    margin: 0;
    transform: none;
  }
  .home-description {
    display: block;
    margin: 24px 0 0;
    color: #fff;
    font-family: "Home Serif", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 16px #061b29bb;
    line-break: strict;
  }
  .home-description span {
    display: block;
  }
  .scene-reel.scene-dock {
    top: auto;
    bottom: 44px;
    width: min(100%, 440px);
  }
  .scene-reel .swiper-slide {
    width: 112px;
  }
  .scene-reel .scene-options {
    padding-block: 12px 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  }
  .scene-reel-controls {
    gap: 5px;
  }
  .scene-tick {
    width: 32px;
  }
  .panel-surface,
  .content-view {
    bottom: 56px;
  }
}
@media (max-width: 380px) {
  .home-intro {
    left: 18px;
    right: 18px;
  }
  .home-description {
    font-size: 16px;
    letter-spacing: 0;
  }
}
@media (max-width: 760px) and (max-height: 650px) {
  .home-intro {
    top: 26%;
  }
  .home-intro .mission {
    width: min(80%, 300px);
  }
  .home-description {
    margin-top: 18px;
    font-size: 13px;
  }
  .scene-reel .swiper-slide {
    width: 96px;
  }
  .scene-reel .scene-options {
    padding-block: 10px 4px;
  }
}
@media (min-width: 600px) and (max-width: 760px) and (max-height: 500px) {
  .stage {
    min-height: 0;
  }
  .home-intro {
    right: auto;
    width: calc(50% - 40px);
  }
  .home-intro .mission {
    width: min(100%, 220px);
  }
  .home-description {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0;
  }
  .scene-reel.scene-dock {
    left: auto;
    right: 18px;
    width: min(40%, 260px);
    transform: none;
  }
  .scene-reel-controls {
    gap: 4px;
  }
  .scene-tick {
    width: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-tick.is-active .scene-tick-fill {
    transform: none;
  }
}
/* 2026-11-14 owner, desktop: 「画像のスライドの画像1つ1つが大き過ぎるな。デスクトップ全体のかなりの割合占めちゃってる。あと、少し透過かけてもいいかも」
   then 「もうほんのちょっと小さくて、もうちょい透過あっても良いかもな」.
   Phones: 「もうちょい小さくしようか。今画像3つしか見えないから5つ見えて、両端は半分くらい映っててグラデーションで消えてる、
   透過もあるみたいな構成」.
   The reel sets --scene-scale (1 at the centre, less outward) and --scene-drop (the curve); the photos are see-through by
   that scale, and the curve is kept in proportion to the smaller photos. */
@media (min-width: 1001px) {
  .scene-reel.scene-dock {
    width: min(920px, 70%);
  }
}
@media (min-width: 761px) {
  .scene-reel .swiper-slide {
    width: clamp(124px, 10.6vw, 156px);
  }
  .scene-reel .scene-choice {
    border-radius: 13px;
    opacity: calc(0.86 - (1 - var(--scene-scale, 1)) * 1.25);
    transform: translateY(calc(var(--scene-drop, 0px) * 0.65)) scale(var(--scene-scale, 1));
    box-shadow:
      0 10px 26px #041f322b,
      inset 0 1px #fff8;
  }
}
/* Phones: five photos, the outer two half in view and fading out. The strip is the screen less 9px on each side,
   the reel keeps 20px between photos, so a quarter of the strip less 20px puts the outer centres on the edges. */
@media (max-width: 760px) {
  .scene-reel .swiper-slide {
    width: max(58px, calc(min(100vw - 18px, 440px) / 4 - 20px));
  }
  /* 11/14 owner: 「モバイルで画像の大小の違いがあまりにも分からなくなった。すこし修正して」 — the centre a little larger and the
     sides smaller (on phones the reel gives 1, .94, .88 by distance; drawn here as 1.12, .96, .81) */
  .scene-reel .scene-choice {
    border-radius: 8px;
    opacity: calc(0.88 - (1 - var(--scene-scale, 1)) * 2);
    transform: translateY(calc(var(--scene-drop, 0px) * 0.8)) scale(calc(1.12 - (1 - var(--scene-scale, 1)) * 2.6));
  }
}
/* 2026-11-14 the three policies (privacy, site use, anti-social forces): small links in the corner panel on desktop
   above the copyright, and at the foot of the menu on phones (the copyright on the photograph stays alone). */
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 6px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.footer-policies a {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .footer-policies a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.footer-policies a:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (min-width: 761px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
}
/* below 1281px the corner panel is narrower: the three links keep to one line inside its curve */
@media (min-width: 761px) and (max-width: 1280px) {
  .footer-policies {
    gap: 4px 9px;
    font-size: 10px;
    letter-spacing: 0;
  }
}
@media (max-width: 760px) {
  .footer-policies {
    display: none;
  }
}
