/* SKY DRONE — SHINTORA-inspired layout (reference: https://shintora.co.jp/) */
:root {
  --main-blue: #00053a;
  --main-blue-rgb: 0, 5, 58;
  --surface: #f5f6f4;
  --white: #fff;
  --charcoal: #1a1a1a;
  --muted: #5c5c5c;
  --line: rgba(0, 5, 58, 0.12);
  --font-ja: "Yu Gothic", YuGothic, "游ゴシック", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Hiragino Sans GB", Meiryo, sans-serif;
  --font-en: "Oswald", "Arial Narrow", sans-serif;
  --header-h: 72px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-duration: 0.55s;
  --hover-duration-slow: 0.65s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: var(--font-ja);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--hover-duration) var(--ease-smooth),
    border-color var(--hover-duration) var(--ease-smooth);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 5, 58, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.lang-switch {
  display: flex;
  border: none;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 0.75rem;
}

.lang-btn {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--main-blue);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--main-blue);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.nav-toggle-label span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--main-blue);
  transition: transform var(--hover-duration) var(--ease-smooth), opacity var(--hover-duration) var(--ease-smooth);
}

.nav-toggle-label span:nth-child(1) {
  top: 0;
}
.nav-toggle-label span:nth-child(2) {
  top: 10px;
}
.nav-toggle-label span:nth-child(3) {
  top: 20px;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--main-blue);
  padding: 0.35em 0;
  position: relative;
  transition: opacity var(--hover-duration) var(--ease-smooth);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--main-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hover-duration-slow) var(--ease-smooth);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(-100%);
    transition: transform var(--hover-duration-slow) var(--ease-smooth);
    z-index: 1001;
    padding-top: var(--header-h);
  }

  .nav-toggle:checked ~ .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1rem;
  }
}

/* —— Hero (KV) —— */
.kv {
  position: relative;
 min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5rem;
  color: #fff;
}

.kv-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(0.45);
}

.kv-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 5, 58, 0.5) 0%,
    rgba(0, 5, 58, 0.35) 40%,
    rgba(0, 5, 58, 0.65) 100%
  );
}

.kv-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.kv-tagline {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.kv-title-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.kv-title-ja {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.kv-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

.kv-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: kv-scroll-pulse 2.2s ease-in-out infinite;
}

.kv-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}

@keyframes kv-scroll-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-scroll {
    animation: none;
  }
}

/* —— Top: clients logo strip (below hero) —— */
.clients-strip {
  --clients-strip-bg: #f9f9f9;
  --clients-marquee-line: #e0e0e0;
  --clients-marquee-bg: #d9d9d6;
}

.clients-strip__intro {
  background: var(--clients-strip-bg);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--clients-marquee-line);
}

.clients-strip__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.clients-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.clients-strip__title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 1.15rem;
}

.clients-strip__lead {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--charcoal);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.clients-strip__cta {
  margin: 0;
}

.clients-strip__link {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--main-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--main-blue);
  padding-bottom: 2px;
  transition: opacity var(--hover-duration) var(--ease-smooth);
}

.clients-strip__link:hover {
  opacity: 0.75;
}

.clients-marquee {
  overflow: hidden;
  background: var(--clients-marquee-bg);
  border-bottom: 1px solid var(--clients-marquee-line);
  /* グループ同士の間に左右パディングが重ならないよう、余白はここだけに */
  padding-inline: clamp(0.65rem, 2vw, 1.15rem);
}

.clients-marquee__inner {
  display: flex;
  width: max-content;
  animation: clients-marquee-x 78s linear infinite;
}

.clients-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  /* 横パディングなし（接続部で「ロゴ1個分」空いて見えないように） */
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.clients-marquee__slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.1rem, 0.5vw, 0.3rem);
  background: none;
  border: none;
  border-radius: 0;
}

.clients-marquee__slot img {
  max-height: clamp(2.25rem, 5.5vw, 3.35rem);
  width: auto;
  max-width: min(42vw, 10.5rem);
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes clients-marquee-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee__inner {
    animation: none;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
    column-gap: clamp(1rem, 3vw, 2rem);
  }

  .clients-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 0;
  }

  .clients-marquee__group:last-child {
    display: none;
  }
}

/* —— Sections —— */
main {
  display: block;
  padding-top: var(--header-h);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.section--surface {
  background: var(--surface);
}

.section-head {
  max-width: 1100px;
  margin: 0 auto 2.75rem;
  border-bottom: none;
  padding-bottom: 0;
}

.section-head__en {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--main-blue);
  margin: 0 0 0.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.section-head__ja {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.06em;
  line-height: 1.75;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.05rem;
  line-height: 2;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Intro */
.intro-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.intro-visual {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.intro-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Services */
.service-lead {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: transparent;
  border: none;
  padding: 1.75rem 1.5rem;
  transition: transform var(--hover-duration-slow) var(--ease-smooth),
    opacity var(--hover-duration) var(--ease-smooth);
}

.section--surface .service-card {
  background: transparent;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  opacity: 0.92;
}

.service-card .text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--main-blue);
  line-height: 1.65;
  margin: 0;
}

.service-card h3.text {
  font-size: 1.02rem;
  margin: 0 0 0.65rem;
}

.service-card .service-detail {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 1rem;
}

.service-card__areas-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--main-blue);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}

.service-card__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.75;
}

.service-card__list li {
  margin-bottom: 0.4rem;
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

/* Works — 縦並び1カラム・サムネ横長 */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.work-card {
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--hover-duration-slow) var(--ease-smooth),
    opacity var(--hover-duration) var(--ease-smooth);
}

.section--surface .work-card {
  background: transparent;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  opacity: 0.95;
}

/* カテゴリ（映像 / ドローン映像 等）— 参照デザインのピル */
.work-card__tag {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.work-card__tag.ja {
  font-family: var(--font-ja);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.work-card__tag.en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-card .thumb {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}

.work-card .body {
  padding: 1.15rem 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.work-card .title {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  color: var(--charcoal);
  text-align: left;
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.work-client {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.work-client__label {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-right: 0.35em;
}

.work-card .desc {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Works: サムネにホバー中だけ4枚を2×2で拡大表示（枠からはみ出す／ポインター環境のみ） */
.work-hover-gallery {
  width: 100%;
}

.work-hover-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #101010;
}

.work-hover-gallery__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  transition: opacity var(--hover-duration-slow) var(--ease-smooth);
}

.work-hover-gallery__sheet {
  --sheet-gap: 4px;
  position: absolute;
  inset: 0;
  display: grid;
  /* 1fr の丸め誤差で縦ガターが段差にならないよう、ギャップを差し引いた半分を明示 */
  grid-template-columns: repeat(2, calc((100% - var(--sheet-gap)) / 2));
  grid-template-rows: repeat(2, calc((100% - var(--sheet-gap)) / 2));
  gap: var(--sheet-gap);
  align-items: stretch;
  justify-items: stretch;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center center;
  box-shadow: none;
  transition: opacity var(--hover-duration-slow) var(--ease-smooth),
    visibility 0s linear var(--hover-duration-slow),
    transform var(--hover-duration-slow) var(--ease-smooth),
    box-shadow var(--hover-duration-slow) var(--ease-smooth);
}

.work-hover-gallery__sheet img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .work-hover-gallery__stage:hover,
  .work-hover-gallery__stage:focus-within {
    overflow: visible;
    z-index: 30;
  }

  .work-hover-gallery__stage:hover .work-hover-gallery__cover,
  .work-hover-gallery__stage:focus-within .work-hover-gallery__cover {
    opacity: 0;
  }

  .work-hover-gallery__stage:hover .work-hover-gallery__sheet,
  .work-hover-gallery__stage:focus-within .work-hover-gallery__sheet {
    opacity: 1;
    visibility: visible;
    transform: scale(1.22);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.07);
    transition: opacity var(--hover-duration-slow) var(--ease-smooth),
      visibility 0s linear 0s,
      transform var(--hover-duration-slow) var(--ease-smooth),
      box-shadow var(--hover-duration-slow) var(--ease-smooth);
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 700px) {
  .work-hover-gallery__stage:hover .work-hover-gallery__sheet,
  .work-hover-gallery__stage:focus-within .work-hover-gallery__sheet {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-hover-gallery__sheet {
    display: none;
  }
}

/* Topics strip */
.topics-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: none;
  border-bottom: none;
  margin-top: 1rem;
}

.topics-bar a.main {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--main-blue);
  text-decoration: none;
}

.topics-bar a.main:hover {
  text-decoration: underline;
}

/* Company */
.company-dl {
  max-width: 720px;
  margin: 0 auto;
}

.company-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-bottom: none;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .company-dl > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.company-dl strong {
  color: var(--main-blue);
  font-weight: 600;
}

/* Contact */
.contact-wrap .section-head {
  margin-bottom: 2rem;
}

.styled-form {
  max-width: 720px;
  margin: 0 auto;
}

.styled-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .styled-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.styled-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.styled-form .field.full {
  grid-column: 1 / -1;
}

.styled-form .label-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--main-blue);
}

.styled-form .input,
.styled-form .textarea {
  padding: 0.85em 1em;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color var(--hover-duration) var(--ease-smooth),
    box-shadow var(--hover-duration) var(--ease-smooth);
  background: transparent;
}

.styled-form .input:focus,
.styled-form .textarea:focus {
  border-bottom-color: var(--main-blue);
  box-shadow: none;
}

.styled-form .textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85em 2.5em;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
  text-transform: uppercase;
  background: var(--main-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--hover-duration) var(--ease-smooth),
    transform var(--hover-duration) var(--ease-smooth);
}

.btn-submit:hover {
  background: #001f6c;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: var(--main-blue);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  text-align: center;
  opacity: 0.75;
  margin: 0;
}

.site-footer__addr {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.8;
  font-size: 0.8rem;
}

/* トップ初回ロードのスプラッシュ（index.html）
   初回は常に不透明で全面を覆い、下のページが一瞬見えないようにする */
.site-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.55s ease;
}

html:not(.splash-done) .site-splash {
  display: flex;
  opacity: 1;
}

.site-splash.is-visible {
  opacity: 1;
}

/* スプラッシュ表示中のみスクロールロック（#site-splash がある index のみ該当） */
html:not(.splash-done):has(#site-splash) {
  overflow: hidden;
  height: 100%;
}

.site-splash img {
  max-width: min(128px, 36vw);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.site-splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}

html.splash-done .site-splash {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-splash {
    transition: none;
  }
  .site-splash.is-hiding {
    transition: none;
  }
}
