@charset "utf-8";
/* =====================
   RIKISHI OPENING
===================== */
.rikishi-page {
  opacity: 0;
  transition: opacity 1s ease;
}
body.rikishi-opened .rikishi-page {
  opacity: 1;
}
/* =====================
   RIKISHI PAGE BASE
===================== */
.rikishi-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rikishi-inner {
  display: flex;
  align-items: center;
  gap: 5vw;
  width: 100%;
  max-width: 1100px;
  padding: 4vh 5vw;
}
/* =====================
   GALLERY（＜画像＞：外に出す）
===================== */
.gallery {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: center;
}
/* 画像枠（サイズ固定・cover） */
.image-frame {
  width: min(38vw, 420px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
  border-radius: 20px;
  order: 2; /* ★追加 */
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
/* ＜＞ボタン */
.gallery .prev, .gallery .next {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  padding: 0.4em 0.6em;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.gallery .prev {
  order: 1; /* ★追加 */
}
.gallery .next {
  order: 3; /* ★追加 */
}
/* =====================
   INFO
===================== */
.info {
  max-width: 480px;
  min-width: 420px;
  line-height: 1.8;
    margin-bottom: 50px;
}
/* アニメ初期 */
.info > * {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity .45s ease, transform .45s ease;
}
.info > *.is-show {
  opacity: 1;
  transform: translateY(0);
}
/* 四股名・名前 */
.shikona, .realname {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
}
.shikona {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 0.2rem;
}
/* 本名（主役） */
.realname {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
/* プロフィール */
.profile {
  list-style: none;
  font-family: "Noto Sans JP", sans-serif;
}
.profile li {
  display: grid;
  grid-template-columns: 6.5em 1fr; /* ラベル / 内容 */
  column-gap: 0.6em;
  align-items: start;
}
.profile span {
  display: inline-block;
  color: #777;
}
.profile .label {
  color: #333;
}
.profile .value {
  color: #000;
}
/* =====================
   IMAGE COUNTER
===================== */
.image-counter {
  order: 4;
  flex-basis: 100%;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  /* ★追加 */
  min-width: 6em; /* ← これが効く */
  font-variant-numeric: tabular-nums;
}
.image-counter .current {
  font-weight: 600;
  color: #000;
}

/* =====================
   RIKISHI RESPONSIVE
===================== */
@media (max-width: 768px) {
  .rikishi-inner {
    flex-direction: column;
    gap: 3rem;
    padding-top: 6vh;
  }
  .image-frame {
    width: 80vw;
  }
  /* ギャラリーをSP時だけ grid に切り替え */
  .gallery {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.6rem;
  }
  /* ＜ ボタン（左） */
  .gallery .prev {
    grid-column: 1;
    grid-row: 1;
  }
  /* 画像（中央） */
  .gallery .image-frame {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  /* ＞ ボタン（右） */
  .gallery .next {
    grid-column: 3;
    grid-row: 1;
  }
  /* カウンター（下段中央） */
  .gallery .image-counter {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }
  .info {
    text-align: center;
  }
  .profile {
    margin: 0 auto;
    max-width: 26rem;
  }
  .profile li {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 中央軸 */
    column-gap: 0.8rem;
    align-items: start;
  }
  .profile .label {
    justify-self: end; /* 中央へ寄せる右側 */
    color: #777;
    white-space: nowrap;
  }
  .profile .value {
    justify-self: start; /* 中央から左へ */
    text-align: left; /* ★ここが効く */
  }
}
/* =====================
   RIKISHI INTRO
===================== */
.rikishi-intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}
.rikishi-intro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.1);
  transition:
    opacity .28s ease, transform 1.4s ease, filter .8s ease;
}
/* 最後のズーム */
.rikishi-intro img.is-last {
  transform: scale(1.45);
  filter: blur(4px);
}
/* 白フェード */
.rikishi-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity .8s ease;
}
.rikishi-intro.flash-out::after {
  opacity: 1;
}
/* イントロ終了 */
.rikishi-intro.hide {
  opacity: 0;
  transition: opacity .8s ease;
}
/* =====================
   DOHYO DUST
===================== */
.dohyo-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}
.dohyo-dust span {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(233, 190, 133, 0.80);
  border-radius: 50%;
  opacity: 0;
  filter: blur(1px);
  animation: dustFloat linear infinite;
}
@keyframes dustFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: .35;
  }
  100% {
    transform: translateY(-120vh) translateX(60px);
    opacity: 0;
  }
}
/* =====================
   GALLERY PROGRESS
===================== */

.gallery-progress {
  order: 5;
  flex-basis: 100%;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  margin-top: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.gallery-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(240, 210, 170, .9), rgba(255, 255, 255, .9));
  transition: width .35s ease;
}


.gallery-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(240, 210, 170, .9), rgba(255, 255, 255, .9));
  transition: width .35s ease;
}


@media (max-width: 768px) {
  .gallery .gallery-progress {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}