/**
 * CSS File: loading.css
 * 2026-07-08 | Final checked
 */

/* ==========================================================================
   1. Base Components (Smartphone Vertical)
   ========================================================================== */
html {
  scrollbar-gutter: stable;
}

body.is-loading {
  overflow: hidden;
}

.p-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  width: 100%;
  height: 100%;
  transition: background 0.3s ease;
  --season-color: #d2ebf5;
  --season-bg-color: rgba(210, 235, 245, 0.05);
}

.p-loading.is-subsequent {
  background: rgba(0, 0, 0, 0.85);
}

.p-loading[data-season="spring"],
.p-loading[data-season="summer"],
.p-loading[data-season="autumn"],
.p-loading[data-season="winter"] {
  --season-color: #d2ebf5;
  --season-bg-color: rgba(210, 235, 245, 0.05);
}

.p-loading__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(95vw, 640px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.p-loading__circle-zone {
  width: 100%;
  height: 100%;
}

.p-loading__circle-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.p-loading__circle-bg {
  fill: none;
  stroke: var(--season-bg-color);
  stroke-width: 0.3;
}

.p-loading__circle-bar {
  fill: none;
  stroke: var(--season-color);
  stroke-width: 0.3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.08s linear;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
}

/* ==========================================================================
   2. Media Queries
   ========================================================================== */

/* スマホ横向き */
@media screen and (max-height: 500px) and (orientation: landscape) {
  /* 必要に応じて記述 */
}

/* タブレット・PC */
@media screen and (min-width: 768px) and (min-height: 501px) {
  /* 必要に応じて記述 */
}

/* 大型モニター */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  /* 必要に応じて記述 */
}
