@charset "UTF-8";

/* ==========================================================================
   SEGA SAMMY PHOENIX — Base
   全ページ共通の土台。ベーススタイル / スクロールリビール /
   グローバルなフォーカスリング・リデュースドモーション・印刷スタイル。
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: clip;
}

body {
  background: var(--color-page);
  color: var(--color-white);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}

body.is-nav-open {
  overflow: hidden;
}

img {
  -webkit-user-drag: none;
}

/* Scroll-linked decorative layers use inherited custom properties so each
   page can preserve the rotation / crop required by its original artwork. */
[data-ember-scroll] {
  --ember-scroll-x: 0px;
  --ember-scroll-y: 0px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--color-white);
  color: var(--color-red);
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 12px;
}

.ext {
  margin-left: .4em;
  font-size: .85em;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="fade"] {
  transform: none;
}

/* 完了後は layer promotion を残さない。 */
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* --------------------------------------------------------------------------
   Focus ring ( global )
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Reduced motion ( global )
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-ember-scroll] {
    --ember-scroll-x: 0px !important;
    --ember-scroll-y: 0px !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .scroll-down,
  .carousel-btn {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
