.home-hero-scene {
  color-scheme: light;
  --ink: #143653;
  --paper: var(--sb-world-ground);
  --blue: #16477a;
  --pink: #f39a9a;
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.home-hero-scene * {
  box-sizing: border-box;
}

.home-hero-scene {
  margin: 0;
}

.home-hero-scene button,
.home-hero-scene input,
.home-hero-scene select {
  font: inherit;
}

.home-hero-scene button,
.home-hero-scene a {
  -webkit-tap-highlight-color: transparent;
}

.home-hero-scene button {
  cursor: pointer;
}

.home-hero-scene a {
  color: inherit;
  text-underline-offset: .2em;
}

.home-hero-scene [hidden] {
  display: none !important;
}

.home-hero-scene :focus-visible {
  outline: 3px solid #ed766d;
  outline-offset: 5px;
}

.home-hero-scene .hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.home-hero-scene .scene {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-scene .sky-art {
  mix-blend-mode: multiply;
}

.home-hero-scene.is-opening[data-ready='false'] .sky-art {
  opacity: 0;
}

.home-hero-scene.no-motion .hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: url('/assets/img/home-hero-v1/sky-wide-v01.webp') center / cover;
  mask-image: linear-gradient(#000 45%, transparent 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.home-hero-scene.is-opening[data-ready='false'] .color-layer,
.home-hero-scene.is-opening[data-ready='false'] [data-street-flag] {
  opacity: 0;
}

.home-hero-scene.no-motion .stage-action {
  display: none;
}

.home-hero-scene.no-motion .scene {
  visibility: hidden;
}

.home-hero-scene.no-motion .hero {
  background: var(--paper) url('/assets/img/home-hero-v1/town-b-wide-v01.webp') center bottom / cover no-repeat;
}

.home-hero-scene .stage-action {
  position: absolute;
  z-index: 3;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(19px, env(safe-area-inset-bottom));
  padding: 8px 12px;
  border: 1px solid rgb(20 54 83 / 18%);
  border-radius: 2px;
  background: rgb(252 246 232 / 88%);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
}

.home-hero-scene.is-opening[data-ready='false'] .stage-action {
  visibility: hidden;
}

.home-hero-scene .breeze-toggle {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: max(19px, env(safe-area-inset-bottom));
  padding: 8px 12px;
  border: 1px solid rgb(20 54 83 / 18%);
  border-radius: 2px;
  background: rgb(252 246 232 / 88%);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
}

.home-hero-scene .scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .15em;
  text-decoration: none;
}

.home-hero-scene.is-navigable .scroll-hint {
  visibility: visible;
  opacity: var(--nav-reveal, 1);
}

@media (width <= 760px) {
  .home-hero-scene .stage-action {
    right: 15px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
}

@media (max-aspect-ratio: 23/20) {
  .home-hero-scene.no-motion .hero::before {
    background-image: url('/assets/img/home-hero-v1/sky-tall-v01.webp');
  }
  .home-hero-scene.no-motion .hero {
    background-image: url('/assets/img/home-hero-v1/town-b-tall-v01.webp');
  }
}

@media (min-aspect-ratio: 47/25) {
  .home-hero-scene.no-motion .hero {
    background-image: url('/assets/img/home-hero-v1/town-extended-v03.webp');
  }
}

/* 終景の文字と操作。街・人物・旗の位置と描画は採用版を維持する。 */
.home-hero-scene .hero [data-logo] {
  display: none;
}

.home-hero-scene .ending-copy {
  position: absolute;
  z-index: 2;
  top: clamp(100px, 16svh, 205px);
  left: clamp(32px, 6vw, 160px);
  max-width: 620px;
  color: #112f4b;
  opacity: var(--copy-reveal, 0);
  visibility: hidden;
  transform: translateY(calc((1 - var(--copy-reveal, 0)) * 7px));
  text-shadow: 0 1px 12px rgb(255 249 227 / 80%);
}

.home-hero-scene .ending-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -24px -30px -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(252 246 232 / 68%) 15%, rgb(252 246 232 / 45%) 50%, transparent 74%);
  filter: blur(14px);
  pointer-events: none;
}

.home-hero-scene[data-ending-visible='true'] .ending-copy {
  visibility: visible;
}

.home-hero-scene .ending-category {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .17em;
}

.home-hero-scene .ending-copy h1 {
  margin: 0;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(32px, 3.25vw, 59px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .055em;
}

.home-hero-scene .ending-copy h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero-scene .ending-description {
  margin: 19px 0 23px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .025em;
}

.home-hero-scene .ending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-scene .ending-cta {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 47px;
  padding: 11px 19px;
  border: 1px solid #143653;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background-color .2s, color .2s;
}

.home-hero-scene .ending-cta-primary {
  background: #143653;
  color: #fff9e9;
}

.home-hero-scene .ending-cta-secondary {
  background: rgb(252 246 232 / 84%);
  color: #143653;
}

.home-hero-scene .ending-cta:hover {
  background: #fff5d8;
  color: #143653;
}

.home-hero-scene .ending-nav {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 90px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 48px);
  opacity: var(--ending-nav-reveal, 0);
  visibility: hidden;
  color: #112f4b;
  text-shadow: 0 0 2px #fff8df, 0 0 3px #fff8df, 0 0 5px #fff8df, 0 0 8px #fff8df;
}

.home-hero-scene[data-nav-placement='top'] .ending-nav {
  top: max(20px, env(safe-area-inset-top));
}

.home-hero-scene[data-nav-placement='bottom'] .ending-nav {
  bottom: max(24px, env(safe-area-inset-bottom));
  left: clamp(250px, 22vw, 800px);
  right: auto;
}

.home-hero-scene[data-ending-nav-visible='true'] .ending-nav {
  visibility: visible;
}

.home-hero-scene .ending-nav a,
.home-hero-scene .ending-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-shadow: inherit;
}

.home-hero-scene .ending-nav a:hover,
.home-hero-scene .ending-nav button:hover {
  text-decoration: underline;
}

.home-hero-scene .menu-lines {
  width: 21px;
  height: 8px;
  border-block: 1px solid currentcolor;
}

.home-hero-scene .hero .stage-action {
  min-height: 44px;
  bottom: max(20px, env(safe-area-inset-bottom));
}

.home-hero-scene[data-ending-visible='true'] .stage-action,
.home-hero-scene .hero .breeze-toggle {
  display: none;
}

.home-hero-scene .ending-menu {
  inset: auto 0 0 auto;
  width: min(510px, 100%);
  max-height: calc(100svh - 24px);
  margin: 12px;
  padding: 30px 38px;
  border: 0;
  border-radius: 3px;
  background: var(--sb-world-ground);
  color: #143653;
  box-shadow: 0 12px 80px rgb(17 47 75 / 20%);
}

.home-hero-scene .ending-menu::backdrop {
  background: rgb(17 47 75 / 24%);
}

.home-hero-scene .ending-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-hero-scene .ending-menu-head p {
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
}

.home-hero-scene .ending-menu button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
}

.home-hero-scene .ending-menu nav {
  display: grid;
}

.home-hero-scene .ending-menu nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(20 54 83 / 18%);
  font-family: 'Yu Mincho', serif;
  font-size: 20px;
  text-decoration: none;
}

.home-hero-scene .ending-menu-tools {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* 通常ヘッダーの意匠は仮のまま。表示条件だけ本文の開始へ合わせる。 */

@media (width <= 760px) {
  .home-hero-scene .ending-copy {
    top: max(85px, 12svh);
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .home-hero-scene .ending-category {
    margin-bottom: 13px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .home-hero-scene .ending-copy h1 {
    font-size: clamp(24px, 7.2vw, 41px);
    line-height: 1.55;
    letter-spacing: .025em;
  }

  .home-hero-scene .ending-description {
    margin: 15px 0 18px;
    font-size: 11px;
    line-height: 1.9;
  }

  .home-hero-scene .ending-actions {
    gap: 9px;
  }

  .home-hero-scene .ending-cta {
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 11px;
  }

  .home-hero-scene .ending-nav {
    left: 24px;
    right: 24px;
    justify-content: space-between;
    gap: 12px;
  }

  .home-hero-scene[data-nav-placement='bottom'] .ending-nav {
    bottom: max(17px, env(safe-area-inset-bottom));
    left: 24px;
    right: 24px;
  }

  .home-hero-scene[data-nav-placement='top'] .ending-nav {
    top: max(14px, env(safe-area-inset-top));
  }

  .home-hero-scene .ending-nav a,
.home-hero-scene .ending-nav button {
    font-size: 11px;
    letter-spacing: .04em;
  }

  .home-hero-scene .ending-menu {
    width: calc(100% - 24px);
    padding: 24px;
  }

  .home-hero-scene .ending-menu nav a {
    font-size: 18px;
  }
}

@media (height <= 700px) and (max-aspect-ratio: 23/20) {
  .home-hero-scene .ending-copy {
    top: 70px;
  }

  .home-hero-scene .ending-category {
    margin-bottom: 9px;
  }

  .home-hero-scene .ending-copy h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .home-hero-scene .ending-description {
    margin: 11px 0 12px;
    font-size: 10.5px;
  }
}

@media (height <= 560px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene .ending-copy {
    top: 65px;
  }

  .home-hero-scene .ending-copy h1 {
    font-size: 29px;
    line-height: 1.4;
  }

  .home-hero-scene .ending-category {
    margin-bottom: 10px;
  }

  .home-hero-scene .ending-description {
    margin: 10px 0 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-scene .ending-copy {
    transform: none;
    transition: none;
  }
}

.home-hero-scene.no-motion .ending-copy,
.home-hero-scene.no-motion .ending-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 青空の上に、白い太文字で案内を添える。通常ヘッダーには適用しない。 */
.home-hero-scene .ending-nav {
  color: #fffdf2;
  text-shadow: 0 1px 3px rgb(10 45 78 / 85%), 0 0 7px rgb(10 45 78 / 55%);
}

.home-hero-scene .ending-nav a,
.home-hero-scene .ending-nav button {
  font-size: 14px;
  font-weight: 800;
}

.home-hero-scene[data-menu-tone='ink'] .ending-nav {
  color: #112f4b;
  text-shadow: 0 0 2px #fff8df, 0 0 3px #fff8df, 0 0 5px #fff8df;
}

.home-hero-scene .ending-menu {
  inset: 0 0 auto auto;
}

@media (width <= 760px) {
  .home-hero-scene .ending-nav {
    justify-content: flex-end;
  }

  .home-hero-scene .ending-nav > a {
    display: none;
  }

  .home-hero-scene .ending-nav button {
    font-size: 12px;
  }
}

.home-hero-scene[data-finish='refined'] .ending-copy {
  top: clamp(68px, 8.9svh, 128px);
}

@media (width <= 760px) {
  .home-hero-scene[data-finish='refined'] .ending-copy {
    top: max(85px, env(safe-area-inset-top));
  }
}

@media (height <= 700px) and (max-aspect-ratio: 23/20) {
  .home-hero-scene[data-finish='refined'] .ending-copy {
    top: 55px;
  }
}

@media (height <= 560px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene[data-finish='refined'] .ending-copy {
    top: 45px;
  }

  .home-hero-scene[data-finish='refined'] .ending-copy h1 {
    font-size: 24px;
  }
}

@media (height <= 480px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene[data-finish='refined'] .ending-copy {
    top: max(25px, env(safe-area-inset-top));
  }

  .home-hero-scene[data-finish='refined'] .ending-category {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .home-hero-scene[data-finish='refined'] .ending-copy h1 {
    font-size: 20px;
    line-height: 1.45;
  }

  .home-hero-scene[data-finish='refined'] .ending-description {
    display: none;
  }

  .home-hero-scene[data-finish='refined'] .ending-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .home-hero-scene[data-finish='refined'] .ending-cta {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 11px;
  }
}

.home-hero-scene[data-presentation='practical'] .ending-copy {
  max-width: 740px;
  opacity: 1;
  transform: none;
}

.home-hero-scene[data-presentation='practical'] .ending-copy h1 {
  font-size: clamp(30px, 3.2vw, 51px);
  line-height: 1.48;
  letter-spacing: .025em;
}

.home-hero-scene[data-presentation='practical'] .ending-copy h1 strong {
  font-size: 1.07em;
  font-weight: 700;
  letter-spacing: -.025em;
}

.home-hero-scene[data-presentation='practical'] .ending-copy h1 span {
  opacity: var(--headline-one, 0);
  transform: translateY(calc((1 - var(--headline-one, 0)) * 11px));
}

.home-hero-scene[data-presentation='practical'] .ending-copy h1 span + span {
  opacity: var(--headline-two, 0);
  transform: translateY(calc((1 - var(--headline-two, 0)) * 11px));
}

.home-hero-scene[data-presentation='practical'] .ending-category {
  opacity: var(--headline-one, 0);
}

.home-hero-scene[data-presentation='practical'] .ending-description,
.home-hero-scene[data-presentation='practical'] .ending-actions {
  opacity: var(--detail-reveal, 0);
  transform: translateY(calc((1 - var(--detail-reveal, 0)) * 6px));
}

.home-hero-scene[data-presentation='practical'] .ending-description small {
  font-size: .86em;
}

/* スキップと再生を同じ場所で入れ替える。終景でも操作を残す。 */
.home-hero-scene[data-presentation] .hero .stage-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  min-width: 104px;
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  color: #143653;
  font-size: 12px;
  letter-spacing: .04em;
}

.home-hero-scene[data-presentation] .hero .stage-action::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgb(20 54 83 / 24%);
  border-radius: 2px;
  background: rgb(252 246 232 / 88%);
}

.home-hero-scene[data-presentation] .hero .stage-action:hover::before {
  background: #fff5d8;
}

.home-hero-scene[data-presentation] .hero .stage-action:focus-visible {
  outline: 2px solid #143653;
  outline-offset: 3px;
}

.home-hero-scene.no-motion .home-hero-scene[data-presentation] .hero .stage-action {
  display: none;
}

@media (width <= 760px) {
  .home-hero-scene[data-presentation='practical'] .ending-copy h1 {
    font-size: clamp(17px, 5.75vw, 28px);
    line-height: 1.65;
  }

  .home-hero-scene[data-presentation='practical'] .ending-description {
    margin: 14px 0 18px;
  }

  .home-hero-scene[data-presentation] .hero .stage-action {
    right: 12px;
    bottom: max(5px, env(safe-area-inset-bottom));
    min-width: 96px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .home-hero-scene[data-presentation] .hero .stage-action::before {
    inset: 4px 0;
  }
}

@media (height <= 560px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene[data-presentation='practical'] .ending-copy h1 {
    font-size: 24px;
    line-height: 1.4;
  }
}

@media (height <= 700px) and (max-aspect-ratio: 23/20) {
  .home-hero-scene[data-presentation='practical'] .ending-copy {
    top: 45px;
  }

  .home-hero-scene[data-presentation] .hero .stage-action {
    bottom: max(0px, env(safe-area-inset-bottom));
  }
}

@media (height <= 480px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene[data-presentation='practical'] .ending-copy h1 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-scene[data-presentation] .hero .stage-action {
    display: none;
  }

  .home-hero-scene[data-presentation='practical'] .ending-copy h1 span,
.home-hero-scene[data-presentation='practical'] .ending-description,
.home-hero-scene[data-presentation='practical'] .ending-actions {
    transform: none;
  }
}

.home-hero-scene.no-motion .home-hero-scene[data-presentation='practical'] .ending-category,
.home-hero-scene.no-motion .home-hero-scene[data-presentation='practical'] .ending-copy h1 span,
.home-hero-scene.no-motion .home-hero-scene[data-presentation='practical'] .ending-description,
.home-hero-scene.no-motion .home-hero-scene[data-presentation='practical'] .ending-actions {
  opacity: 1;
  transform: none;
}

/* この候補が描かれたトップだけ、共通ヘッダーの場所を連携する。 */
body:has(.home-hero-scene[data-boot]) .site-spacer {
  display: none;
}

body:has(.home-hero-scene[data-body-header='false']) > .site-header {
  visibility: hidden;
  pointer-events: none;
}

.home-hero-scene {
  isolation: isolate;
}

.home-hero-scene .hero-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.home-hero-scene .hero-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-scene:not([data-boot]) .scene,
.home-hero-scene[data-boot='failed'] .scene {
  visibility: hidden;
}

.home-hero-scene[data-initial='play']:not([data-boot='failed']) .hero-poster,
.home-hero-scene[data-ready='true']:not([data-boot='failed']) .hero-poster {
  display: none;
}

.home-hero-scene:not([data-boot]),
.home-hero-scene[data-initial='still']:not([data-ready='true']),
.home-hero-scene[data-boot='failed'] {
  --headline-one: 1;
  --headline-two: 1;
  --detail-reveal: 1;
  --copy-reveal: 1;
  --ending-nav-reveal: 1;
}

.home-hero-scene:not([data-boot]) .stage-action,
.home-hero-scene:not([data-boot]) [data-ending-menu],
.home-hero-scene[data-boot='failed'] .stage-action {
  display: none;
}

.home-hero-scene.is-opening[data-ready='false'] .stage-action {
  visibility: visible;
}

.home-hero-scene .hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  padding: 8px 12px;
  color: #143653;
  background: rgb(252 246 232 / 80%);
  border-radius: 30px;
  font-size: 12px;
  text-decoration: none;
  transform: translateX(-50%);
}

.home-hero-scene[data-boot][data-ending-visible='false'] .hero-scroll {
  visibility: hidden;
}

.home-hero-scene .ending-menu::backdrop {
  background: rgb(20 54 83 / 35%);
}

@media (width <= 1000px) {
  .home-hero-scene .ending-nav > a {
    display: none;
  }
}

@media (height <= 480px) and (min-aspect-ratio: 23/20) {
  .home-hero-scene[data-nav-placement='top'] .ending-nav {
    color: #163b54;
    text-shadow: 0 1px 5px rgb(252 246 232 / 80%);
  }
}

/* 終景モードはSVGへ自動で差し替えず、同じpictureを表示し続ける。 */
#home-hero .hero-poster[data-dynamic-poster],
#home-hero .hero-color-overlay {
  display: none;
}

#home-hero[data-hero-mode='still'] .hero-poster,
#home-hero[data-hero-mode='color'] .hero-poster,
#home-hero[data-hero-mode='replay-pending'] .hero-poster {
  display: block;
}

#home-hero .hero-poster img,
#home-hero .hero-color-overlay img {
  object-position: 50% 100%;
}

#home-hero .hero-color-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

#home-hero .hero-color-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-hero[data-hero-mode='color'] .hero-color-overlay {
  display: block;
}

#home-hero[data-hero-mode='still'],
#home-hero[data-hero-mode='color'],
#home-hero[data-hero-mode='replay-pending'] {
  --headline-one: 1 !important;
  --headline-two: 1 !important;
  --detail-reveal: 1 !important;
  --copy-reveal: 1 !important;
  --ending-nav-reveal: 1 !important;
}

#home-hero[data-hero-mode='still'] .scene,
#home-hero[data-hero-mode='color'] .scene,
#home-hero[data-hero-mode='replay-pending'] .scene {
  display: none;
}

#home-hero[data-hero-mode='motion'] .hero-color-overlay {
  display: none;
}

#home-hero[data-hero-mode='still'] .stage-action,
#home-hero[data-hero-mode='color'] .stage-action,
#home-hero[data-hero-mode='replay-pending'] .stage-action {
  min-width: 8.5em;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  #home-hero .stage-action {
    display: none;
  }
}

#home-hero .ending-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .1em;
}

#home-hero .ending-category::before {
  width: 24px;
  height: 2px;
  background: currentcolor;
  content: '';
}

#home-hero .ending-actions {
  gap: 12px;
}

#home-hero .ending-cta {
  min-width: 164px;
  min-height: 52px;
  padding: 10px 15px 10px 20px;
  gap: 20px;
  border: 1px solid #173c51;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
  transition: background-color .2s, color .2s;
}

#home-hero .ending-cta-primary {
  background: #173c51;
  color: #fffaf0;
}

#home-hero .ending-cta-secondary {
  border-color: rgb(23 60 81 / 48%);
  background: rgb(255 250 240 / 74%);
  color: #173c51;
}

#home-hero .ending-cta .cta-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
}

#home-hero .cta-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

#home-hero .ending-cta:hover {
  background: #fff8e8;
  color: #173c51;
}

#home-hero .ending-cta:focus-visible {
  outline: 2px solid #173c51;
  outline-offset: 4px;
}

@media (width <= 1100px), (pointer: coarse) {
  #home-hero .stage-action,
  #home-hero .hero-scroll,
  #home-hero .ending-menu-tools {
    display: none;
  }
}

@media (width <= 620px) {
  #home-hero .ending-category {
    gap: 9px;
    font-size: 10px;
    letter-spacing: .09em;
  }

  #home-hero .ending-category::before {
    width: 18px;
  }

  #home-hero .ending-actions {
    display: grid;
    width: min(100%, 354px);
    grid-template-columns: .9fr 1.1fr;
    gap: 10px;
  }

  #home-hero .ending-cta {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .025em;
  }

  #home-hero .ending-cta .cta-arrow {
    width: 22px;
    height: 22px;
  }
}

/* 終景の情報群はV9が制御し、原画モーションの旧出現値と切り離す。 */
#home-hero .hero-brand {
  position: absolute;
  z-index: 4;
  top: max(23px, env(safe-area-inset-top));
  left: clamp(24px, 4vw, 90px);
  width: 168px;
  color: #173c51;
  text-decoration: none;
}

#home-hero .hero-brand img {
  display: block;
  width: 100%;
  height: auto;
}

#home-hero .hero-brand-text {
  display: none;
  font-size: 18px;
  font-weight: 700;
}

#home-hero .hero-brand[data-image-error='true'] img {
  display: none;
}

#home-hero .hero-brand[data-image-error='true'] .hero-brand-text {
  display: block;
}

#home-hero .ending-copy,
#home-hero .ending-nav,
#home-hero .ending-copy h1 > span,
#home-hero .ending-category,
#home-hero .ending-description,
#home-hero .ending-actions {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#home-hero .ending-copy::before {
  display: none;
}

#home-hero .ending-nav {
  left: auto;
  width: max-content;
}

#home-hero .ending-copy {
  top: clamp(112px, 14svh, 172px);
}

#home-hero .ending-category {
  margin-bottom: 16px;
  font-weight: 600;
}

#home-hero .ending-copy h1 > .ending-category {
  display: block;
  margin: 0 0 16px;
  font-family: var(--sb-world-font-body);
}

#home-hero .ending-copy h1 {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-size: clamp(30px, 3.05vw, 49px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .015em;
}

#home-hero[data-typeface='serif'] .ending-copy h1 {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
}

#home-hero .ending-copy h1 strong {
  font-size: 1.12em;
  font-weight: 700;
  letter-spacing: -.035em;
}

#home-hero .ending-description {
  margin: 18px 0 22px;
  font-size: 13px;
}

#home-hero[data-info-state='pending'] .hero-brand,
#home-hero[data-info-state='pending'] .ending-nav,
#home-hero[data-info-state='pending'] .ending-copy > *,
#home-hero[data-info-state='pending'] .ending-copy h1 > span {
  opacity: 0;
  visibility: hidden;
}

#home-hero .hero-brand:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 5px;
}

@media (width <= 760px) {
  #home-hero .hero-brand {
    top: max(22px, env(safe-area-inset-top));
    left: 22px;
    width: 150px;
  }

  #home-hero .ending-copy {
    top: 117px;
    left: 22px;
    right: 20px;
  }

  #home-hero .ending-copy h1 {
    font-size: clamp(17px, 5.65vw, 29px);
    line-height: 1.68;
  }

  #home-hero .ending-category {
    margin-bottom: 13px;
  }

  #home-hero .ending-description {
    margin: 15px 0 18px;
    font-size: 11px;
    letter-spacing: .01em;
  }
}

@media (height <= 480px) and (min-aspect-ratio: 23/20) {
  #home-hero .hero-brand {
    top: 15px;
    width: 120px;
  }

  #home-hero .ending-copy {
    top: 79px;
    left: 28px;
  }

  #home-hero .ending-copy h1 {
    font-size: 20px;
    line-height: 1.45;
  }

  #home-hero .ending-category {
    margin-bottom: 8px;
  }

  #home-hero .ending-description {
    margin: 8px 0 10px;
    font-size: 11px;
  }
}
