:root {
  --story-viewport-h: 100vh;
  --frame-ratio: 0.78;
  --frame-gap-y: 6px;
  --frame-gap-x: 16px;
  --side-reserve: 352px;
  --header-h: 80px;
  --frame-shift-y: 0px;
  --frame-size: min(
    min(100vw, var(--story-viewport-h)) * var(--frame-ratio),
    var(--story-viewport-h) - 2 * (var(--header-h) + var(--frame-gap-y)),
    100vw - 2 * (var(--side-reserve) + var(--frame-gap-x))
  );
  --frame-top: calc((var(--story-viewport-h) - var(--frame-size)) / 2 + var(--frame-shift-y));
  --frame-bottom: calc((var(--story-viewport-h) + var(--frame-size)) / 2 + var(--frame-shift-y));
}
@supports (height: 100dvh) {
  :root {
    --story-viewport-h: 100dvh;
  }
}
@media (max-width: 1023px) {
  :root {
    --side-reserve: 0px;
    --frame-gap-x: 0px;
  }
}
@media (max-width: 767px) {
  :root {
    --frame-ratio: 0.856;
    --frame-shift-y: 25px;
  }
}

#frame {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--frame-shift-y));
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: opacity;
}
.panel__inner {
  position: absolute;
  inset: 0;
}
.panel__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.panel.is-active .panel__link {
  pointer-events: auto;
}
.panel__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.panel[data-chapter="12"] .panel__photo-zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel[data-chapter="12"].is-active:has(.panel__link:focus-visible) .panel__photo-zoom {
  transform: scale(1.08);
}
.panel__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  will-change: transform;
}

/* Positions match the 1260 artboard of top-11.webp (type exported at half size, shown at 2×). */
.galaxy-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(84 / 1260 * 100%) 0 0 calc(63 / 1260 * 100%);
  box-sizing: border-box;
  pointer-events: none;
}
.galaxy-copy__line {
  display: block;
  overflow: hidden;
  line-height: 0;
}
.panel__inner .galaxy-copy__line img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  will-change: transform;
}
.galaxy-copy__line--life {
  width: calc(145 / 1260 * 100%);
}
.galaxy-copy__line--reimagined {
  width: calc(430 / 1260 * 100%);
  margin-top: calc(10 / 1260 * 100% + 2px);
}
.galaxy-copy__line--make {
  width: calc(94 / 1260 * 100%);
  margin-top: calc(34 / 1260 * 100%);
}
.galaxy-copy__line--tomorrow {
  width: calc(200 / 1260 * 100%);
  margin-top: calc(14 / 1260 * 100%);
}
.galaxy-copy__line--illuminated {
  width: calc(225 / 1260 * 100%);
  margin-top: calc(14 / 1260 * 100%);
}
.galaxy-copy--company {
  padding: calc(734 / 1260 * 100% - 10px) 0 0 calc(66 / 1260 * 100%);
}
.galaxy-copy--sdx {
  padding: calc(758 / 1260 * 100% - 20px) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy__line--social {
  width: calc(228 / 1260 * 100%);
}
.galaxy-copy__line--design {
  width: calc(292 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.galaxy-copy--hdx {
  padding: calc(754 / 1260 * 100%) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy__line--dx {
  width: calc(83 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.galaxy-copy--hdx .galaxy-copy__line--healthcare {
  width: calc(344 / 1197 * 100%);
}
.galaxy-copy--hdx .galaxy-copy__line--dx {
  width: calc(72 / 1197 * 100%);
  margin-top: calc(22 / 1197 * 100%);
}
.galaxy-copy--hdx .galaxy-copy__line--make {
  width: calc(82 / 1197 * 100%);
  margin-top: calc(32 / 1197 * 100%);
}
.galaxy-copy--hdx .galaxy-copy__line--tomorrow {
  width: calc(174 / 1197 * 100%);
  margin-top: calc(13 / 1197 * 100%);
}
.galaxy-copy--hdx .galaxy-copy__line--illuminated {
  width: calc(196 / 1197 * 100%);
  margin-top: calc(15 / 1197 * 100%);
}
.galaxy-copy--pdx {
  padding: calc(618 / 1260 * 100% - 20px) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy--edx {
  padding: calc(758 / 1260 * 100% - 20px) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy--spirits {
  padding: calc(618 / 1260 * 100% - 20px) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy--partner {
  padding: calc(758 / 1260 * 100% - 20px) 0 0 calc(63 / 1260 * 100%);
}
.galaxy-copy__line--the {
  width: calc(113 / 1260 * 100%);
}
.galaxy-copy__line--star {
  width: calc(359 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.galaxy-copy__line--spirits {
  width: calc(251 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.galaxy-copy__line--partner {
  width: calc(334 / 1260 * 100%);
}
.galaxy-copy__line--ship {
  width: calc(147 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.panel--spirits,
.panel--partner {
  background: #001e40;
}
.star-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: calc(208 / 1260 * 100%);
  height: auto;
  pointer-events: none;
}
.panel__inner .star-mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.partner-mark {
  position: absolute;
  left: calc(234 / 1260 * 100%);
  top: calc(241 / 1260 * 100%);
  z-index: 1;
  width: calc(786 / 1260 * 100%);
  height: calc(781 / 1260 * 100%);
  pointer-events: none;
}
.panel__inner .partner-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.galaxy-copy__line--public {
  width: calc(223 / 1260 * 100%);
}
.galaxy-copy__line--infrastructure {
  width: calc(557 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.galaxy-copy__line--essential {
  width: calc(336 / 1260 * 100%);
}
.galaxy-copy__line--life-dx {
  width: calc(226 / 1260 * 100%);
  margin-top: calc(15 / 1260 * 100% + 2px);
}
.panel--sdx {
  background: transparent;
}
.sdx-art,
.sdx-art__outline {
  display: block;
  width: 100%;
  height: 100%;
}
.sdx-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}
.sdx-art__background {
  fill: #001e3f;
}
.sdx-art__copy {
  pointer-events: none;
}
.sdx-art__pentagon {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.panel--dx {
  will-change: opacity, background-color;
}
.panel__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.color-code {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  padding: 19px;
  pointer-events: none;
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 8px;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
  font-weight: 400;

  @media screen and (min-width: 768px) {
    font-size: 10px;
    padding: 30px;
  }
}

.panel__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8% 7%;
  color: #fff;

  &:has(.panel__label-img) {
    .panel__label-title,
    .panel__label-sub {
      display: none;
    }
  }
}
.panel__label-img {
  max-width: max-content;
  max-height: 70%;

  @media screen and (min-width: 768px) {
    max-width: 260px;
    max-height: 300px;
  }
}
.panel__label-title {
  margin: 0 0 10px;
  font-family: var(--font-en02);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 4.4vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  transform: scaleX(0.82);
  transform-origin: left bottom;
}
.panel__label-sub {
  margin: 0;
  font-family: var(--font-en02);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(9px, 1.6vw, 12px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.panel--news {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.news {
  position: absolute;
  left: 0;
  top: 0;
  width: 630px;
  height: 630px;
  transform-origin: 0 0;
  transform: scale(var(--news-scale, 1));
}

.story-pin {
  position: sticky;
  top: 0;
  height: var(--story-viewport-h);
  pointer-events: none;
}

.story-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.story-left {
  pointer-events: none;
  position: absolute;
  left: var(--gutter);
  bottom: calc(100% - var(--frame-top) + var(--gap));

  @media screen and (min-width: 768px) and (max-width: 1023px) {
    left: calc(var(--gutter) / 2);
  }

  @media screen and (min-width: 1024px) {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 365px;
  }
}

.story-letter {
  display: block;
  overflow: hidden;
  line-height: 0;
  color: var(--color-primary);
}

.story-letter img {
  display: block;
  will-change: transform;
}

/* .story-letter--m {
  position: absolute;
  left: 30px;
  top: 30%;
} */

.story-right {
  position: absolute;
  right: 30px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 60px;
  transform: translateY(-50%);
}

.story-nav {
  text-align: right;
}
.story-nav > ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.story-nav > ul > li {
  color: var(--color-primary);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.story-nav > ul > li.is-active {
  opacity: 1;
}

.story-nav > ul > li[data-chapter="service"] {
  margin-bottom: -3px;
}

.story-nav > ul > li[data-chapter="news"] {
  margin-top: 3px;
}

.story-nav__label {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  pointer-events: auto;
  color: inherit;
}
.story-nav__label:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.story-nav__clip {
  display: block;
  overflow: hidden;
  height: 19px;
}
.story-nav__slide {
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-nav__a,
.story-nav__b {
  display: block;
  height: 19px;
  line-height: 19px;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.story-nav__a {
  font-size: 14px;
}
.story-nav__b {
  font-size: 15px;
  font-weight: 700;
}
.story-nav > ul > li.is-active .story-nav__slide {
  transform: translateY(-19px);
}

.story-nav__label::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-nav > ul > li.is-active .story-nav__label::before {
  transform: scaleX(1);
}

.story-nav__service {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.story-nav__subs {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.story-nav__sub {
  position: relative;
  display: inline-block;
  pointer-events: auto;
  padding-bottom: 4.5px;
  color: inherit;
  text-decoration: none;
}

.story-nav__sub-clip {
  display: block;
  overflow: hidden;
  height: 10px;
}

.story-nav__sub-slide {
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-nav__sub-a,
.story-nav__sub-b {
  display: block;
  height: 10px;
  line-height: 10px;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.story-nav__sub-b {
  font-weight: 700;
}

.story-nav__sub::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-nav__sub.is-current .story-nav__sub-slide,
.story-nav__sub:focus-visible .story-nav__sub-slide {
  transform: translateY(-10px);
}

.story-nav__sub.is-current::after,
.story-nav__sub:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.story-nav__sub:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

@media (hover: hover) {
  .story-nav > ul > li:hover {
    opacity: 1;
  }

  .story-nav__label:hover .story-nav__slide {
    transform: translateY(-19px);
  }

  .story-nav__label:hover::before {
    transform: scaleX(1);
  }

  .story-nav__sub:hover .story-nav__sub-slide {
    transform: translateY(-10px);
  }

  .story-nav__sub:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .story-copy__link:hover .story-copy__link-slide {
    transform: translateY(-50%);
  }
  .story-copy__link:hover .story-copy__arrow-inner {
    animation: story-copy-arrow-loop 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .story-copy__link:hover .story-copy__underline.is-drawn {
    animation: story-copy-rule-loop 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .panel[data-chapter="12"].is-active:has(.panel__link:hover) .panel__photo-zoom {
    transform: scale(1.05);
  }
}

.story-nav__label--img img {
  display: block;
  transform-origin: 100% 50%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/*.story-nav li.is-active .story-nav__label--img img { transform: scale(1.2); }*/

.story-copy {
  position: absolute;
  left: 49px;
  top: 0;
  width: 247px;
  height: 100%;
}
.story-copy__block {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}
.story-copy__line {
  display: block;
  overflow: hidden;
}
.story-copy__reveal {
  display: block;
  will-change: transform;
}
.story-copy__catch {
  font-size: 34px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}
.story-copy__catch--ikiru {
  line-height: 0;
}
.story-copy__catch--ikiru .story-copy__line + .story-copy__line {
  margin-top: 25px;
  @media screen and (max-width: 767px) {
    margin-top: 12px;
  }
}
.story-copy__catch--ikiru img {
  display: block;
  height: 40px;
  width: auto;
}
.story-copy__label {
  margin-top: 34px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--color-primary);
}
.story-copy__link {
  position: relative;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 81.5px;
  padding-bottom: 11.5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.625;
  color: var(--color-primary);
  letter-spacing: 0.06em;

  @media screen and (max-width: 767px) {
   letter-spacing: 0.14em;
  }
}
.story-copy__block.is-active .story-copy__link {
  pointer-events: auto;
}
.story-copy__link-text {
  display: block;
}
.story-copy__link-text.en {
  font-weight: 500;
}
.story-copy__link-clip {
  display: block;
  overflow: hidden;
  height: 1.625em;
}
.story-copy__link-slide {
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-copy__link-clip .story-copy__line {
  height: 1.625em;
  line-height: 1.625em;
}
.story-copy__underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  clip-path: inset(0% 100% 0% 0%);
}
.story-copy__underline.is-drawn {
  clip-path: inset(0% 0% 0% 0%);
}

.story-copy__arrow {
  flex: 0 0 auto;
  overflow: hidden;
  width: 1em;
  height: 1em;
}
.story-copy__arrow-inner {
  display: block;
  will-change: transform;
}
.story-copy__arrow img {
  display: block;
  width: 100%;
  height: auto;
}

.story-copy__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.story-copy__link:focus-visible .story-copy__link-slide {
  transform: translateY(-50%);
}
.story-copy__link:focus-visible .story-copy__arrow-inner {
  animation: story-copy-arrow-loop 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-copy__link:focus-visible .story-copy__underline.is-drawn {
  animation: story-copy-rule-loop 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes story-copy-arrow-loop {
  0% {
    transform: translateX(0);
  }
  38% {
    transform: translateX(110%);
  }
  38.01% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes story-copy-rule-loop {
  0% {
    clip-path: inset(0 0 0 0);
  }
  38% {
    clip-path: inset(0 0 0 100%);
  }
  38.01% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-copy__link-slide {
    transition: none;
  }
  .panel[data-chapter="12"] .panel__photo-zoom {
    transition: none;
  }
  .panel[data-chapter="12"].is-active:has(.panel__link:hover) .panel__photo-zoom,
  .panel[data-chapter="12"].is-active:has(.panel__link:focus-visible) .panel__photo-zoom {
    transform: none;
  }
  .story-copy__link:hover .story-copy__arrow-inner,
  .story-copy__link:focus-visible .story-copy__arrow-inner,
  .story-copy__link:hover .story-copy__underline.is-drawn,
  .story-copy__link:focus-visible .story-copy__underline.is-drawn {
    animation: none;
  }
}

@keyframes story-scroll-letter {
  0% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-100%);
  }
  5.01% {
    transform: translateY(100%);
  }
  27.3% {
    transform: translateY(100%);
  }
  34% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.story-scroll__c {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.story-scroll__c > span {
  display: inline-block;
}
.story-scroll.is-news .story-scroll__c > span {
  animation: story-scroll-letter 3.55s cubic-bezier(0.67, 0, 0.4, 1.01) infinite;
}
.story-scroll.is-news .story-scroll__c:nth-child(2) > span {
  animation-delay: 0.095s;
}
.story-scroll.is-news .story-scroll__c:nth-child(3) > span {
  animation-delay: 0.19s;
}
.story-scroll.is-news .story-scroll__c:nth-child(4) > span {
  animation-delay: 0.285s;
}
.story-scroll.is-news .story-scroll__c:nth-child(5) > span {
  animation-delay: 0.38s;
}
.story-scroll.is-news .story-scroll__c:nth-child(6) > span {
  animation-delay: 0.475s;
}

@media (prefers-reduced-motion: reduce) {
  .story-scroll.is-news .story-scroll__c > span {
    animation: none;
    transform: translateY(0);
  }
}

.story-scroll {
  position: absolute;
  left: 50%;
  bottom: max(env(safe-area-inset-bottom), 8px);
  display: flex;
  pointer-events: auto;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}
.story-scroll:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
.story-scroll::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  /* The uppercase ink ends 6px above the 60px line box, so a 22px overlay masks 16px of the painted letters. */
  height: min(22px, 0.3667em);
  background: #fff;
  content: '';
  pointer-events: none;
}

.news {
  color: var(--color-primary);
  font-family: var(--font-base);
}
.news__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.news__entry {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
}
.news__entry:not(:last-child)::after {
  position: absolute;
  right: 33px;
  bottom: 0;
  left: 19px;
  height: 1px;
  background: #1a1a1a;
  content: '';
}
.news__item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  text-decoration: none;

  @media screen and (min-width: 767px) {
    padding: 0 33px 0 19px;
  }
}
.panel--news.is-active .news__item[href] {
  pointer-events: auto;
}
.news__item[href] {
  transition: background-color 0.25s ease;
}
.news__item[href]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.news__date {
  flex: 0 0 77px;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;

  @media screen and (min-width: 768px) {
    flex: 0 0 82px;
    font-size: 14px;
  }
}
.news__tag {
  display: none;
  /* display: inline-flex;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin-left: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em; */
}
.news__title {
  min-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;

  @media screen and (min-width: 768px) {
    margin-left: 17px;
    font-size: 14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .news__item[href]:hover {
    background: rgb(0 30 64 / 6%);
  }
}

#story {
  position: relative;
  width: 100%;
  height: var(--story-viewport-h);

  @media (max-width: 1023px) {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 1023px) {
  .story-ui {
    --gutter: 7.2vw;
    --gap: 3.5vw;
    --scroll-fs: min(12vw, 56px);
    --band-top: calc(var(--frame-top) - var(--header-h) - var(--gap) * 2);
    --band-bottom: calc(
      var(--story-viewport-h) - var(--frame-bottom) - var(--gap) * 2 - var(--scroll-fs) * 1.2
    );
  }

  .story-nav {
    display: none;
  }

  .story-right {
    position: static;
  }

  .story-letter {
    img {
      height: min(8.1vw, 38px);
    }
  }

  /* .story-letter--m {
    left: var(--gutter);
    top: auto;
    bottom: calc(100% - var(--frame-top) + var(--gap));
  } */

  .story-letter--t {
    position: absolute;
    left: auto;
    right: var(--gutter);
    top: auto;
    bottom: calc(100% - var(--frame-top) + var(--gap));
  }

  .story-letter--i {
    position: absolute;
    left: auto;
    right: var(--gutter);
    top: calc(var(--frame-bottom) + var(--gap));
  }

  .story-copy {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .story-copy__block {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .story-copy__catch {
    position: absolute;
    left: var(--gutter);
    bottom: calc(100% - var(--frame-top) + var(--gap));
    width: 48vw;
    font-size: clamp(20px, min(7.6vw, calc(var(--band-top) / 2.5)), 60px);
    line-height: 1.15;
  }

  .story-copy__catch--ikiru img {
    height: clamp(20px, min(7.6vw, calc(var(--band-top) / 2.5)), 60px);
  }

  .story-copy__catch--logo {
    img {
      width: min(48vw, 180px);
      height: auto;
    }
  }

  .story-copy__label {
    position: absolute;
    left: auto;
    top: auto;
    right: var(--gutter);
    bottom: calc(100% - var(--frame-top) + var(--gap) + 8px);
    width: clamp(120px, 17.5vw, 180px);
    margin: 0;
    text-align: right;
    font-size: clamp(11px, 1.6vw, 13.5px);
    line-height: 1.25;
  }

  .story-copy__link {
    position: absolute;
    left: auto;
    right: var(--gutter);
    top: calc(var(--frame-bottom) + var(--gap));
    width: 50%;
    margin: 0;
    font-size: clamp(
      12px,
      min(3.8vw, calc((var(--band-bottom) - 12px) / 3.2)),
      24px
    );
    line-height: 1.4;
  }

  .story-scroll {
    font-size: var(--scroll-fs);
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .story-copy__catch {
    left: calc(var(--gutter) / 1.5);
  }

  .story-letter--t,
  .story-letter--i,
  .story-copy__label,
  .story-copy__link {
    right: calc(var(--gutter) / 1.5);
  }
}

@media screen and (max-width: 767px) {
  .story-scroll {
    bottom: max(calc(env(safe-area-inset-bottom, 0px) - 8px), -4px);
  }

  .story-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 17px;
    background: var(--color-white);
  }

  .story-copy__catch {
    bottom: calc(100% - var(--frame-top) + var(--gap) + 5px);
  }

  .story-copy__link {
    font-size: clamp(12px,min(3.4vw, calc((var(--band-bottom) - 12px) / 3.2)),24px);
  }
}

body.is-sp-news #story {
  height: auto;
}

body.is-sp-news .story-pin {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  position: relative;
  height: auto;
  padding: calc(var(--header-h, 80px) + 12px) 20px 8px;
  pointer-events: auto;
}

body.is-sp-news #stage,
body.is-sp-news .story-left,
body.is-sp-news .story-right,
body.is-sp-news .story-copy__block:not([data-copy='news']) {
  display: none;
}

body.is-sp-news .story-ui,
body.is-sp-news .story-copy,
body.is-sp-news .story-copy__block[data-copy='news'] {
  display: contents;
}

body.is-sp-news .story-copy__catch,
body.is-sp-news .story-copy__label {
  position: static;
  width: auto;
  margin: 0;
  inset: auto;
  transform: none;
}

body.is-sp-news .story-copy__catch {
  order: 1;
}

body.is-sp-news .story-copy__label {
  order: 2;
  margin-left: auto;
  text-align: right;
}

body.is-sp-news .panel--news {
  order: 3;
  position: relative;
  width: 100%;
  height: auto;
  left: auto;
  top: auto;
  z-index: 1;
  overflow: visible;
  pointer-events: auto;
  margin-top: 20px;
}

body.is-sp-news .panel--news .panel__inner {
  position: relative;
  inset: auto;
  height: auto;
}

body.is-sp-news .news {
  position: relative;
  width: 100%;
  height: auto;
  transform: none;
}

body.is-sp-news .news__list {
  height: auto;
}

body.is-sp-news .news__entry {
  flex: 0 0 auto;
}

body.is-sp-news .news__entry:not(:last-child)::after {
  right: 0;
  left: 0;
}

body.is-sp-news .news__item {
  height: auto;
  min-height: 52px;
  align-items: flex-start;
  padding: 14px 0;
}

body.is-sp-news .news__date {
  padding-top: 3px;
}

body.is-sp-news .news__title {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
}

body.is-sp-news .story-copy__link {
  order: 4;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  margin-top: 24px;
  font-size: 14px;
}

body.is-sp-news .story-scroll {
  position: relative;
  left: auto;
  bottom: auto;
  order: 5;
  justify-content: center;
  width: 100%;
  margin-top: 56px;
  font-size: min(12vw, 56px);
}
