@charset "utf-8";

:root {
  --root-font-size: 16;
}

* {
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-color: #000;
  line-height: 1.3;
  font-family: 'Zen Kaku Gothic New', sans-serif, 'Hiragino Kaku Gothic Pro', Meiryo;
  font-size: calc(16 / var(--root-font-size) * 1rem);
  font-weight: 400;
  font-style: normal;
  color: #fff;
}

@media screen and (min-width: 751px) {
  body {
    font-size: calc(2rem * var(--container-magnification));
  }
}

a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #333;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== common ========== */
.sec {
  padding: 48px 20px 80px;
}

.sec-ttl {
  line-height: 1;
  font-weight: 500;
}

.secTtl-ja {
  display: block;
  text-align: center;
  font-size: 2.8rem;
}

.secTtl-en {
  margin-top: 12px;
  display: block;
  text-align: center;
  font-size: 1.4rem;
}

@media screen and (min-width: 751px) {
  .sec {
    padding: min(8.3vw, 120px) 30px;
  }

  .sec-inner {
    margin: 0 auto;
    max-width: 1120px;
  }

  .secTtl-ja {
    font-size: 4rem;
  }

  .secTtl-en {
    margin-top: 20px;
    font-size: 2rem;
  }
}

/* ========== part ========== */
@media screen and (min-width: 751px) {
  .only-s {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  .only-l {
    display: none;
  }
}

.ff-shuttleblock-condensed {
  font-family: 'shuttleblock-condensed', sans-serif;
}

.fc-bluegradation {
  background: linear-gradient(180deg, #005cb8 0%, #3b86d1 50.48%, #005cb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media screen and (min-width: 751px) {
}

/* ========== motion ========== */
[data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 1.9s cubic-bezier(0.33, 0, 0.12, 1) var(--reveal-delay, 0s),
    translate 1.9s cubic-bezier(0.33, 0, 0.12, 1) var(--reveal-delay, 0s);
}
[data-reveal]._isShow {
  opacity: 1;
  translate: 0 0;
}

.reveal-img {
  overflow: hidden;
}
.reveal-img img {
  scale: 1.05;
  transition: scale 2.8s cubic-bezier(0.33, 0, 0.12, 1) var(--reveal-delay, 0s);
}
[data-reveal]._isShow .reveal-img img {
  scale: 1;
}

.mv {
  overflow: hidden;
}
.mv img {
  animation: mvZoom 4.6s cubic-bezier(0.33, 0, 0.12, 1) both;
}
@keyframes mvZoom {
  from {
    scale: 1.06;
  }
  to {
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal]._isShow {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .reveal-img img {
    scale: 1;
    transition: none;
  }
  .mv img {
    animation: none;
  }
  .historyLine-bar {
    clip-path: none;
  }
  .history-line2 rect {
    transition: none;
    transform: scaleX(1);
  }
  #lead::before {
    scale: 1 1;
    transition: none;
  }
  .history-era,
  .history-txt,
  .history-note,
  .history-img,
  .history-img._last {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* ========== header ========== */
#header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
}

/* ハンバーガーボタン */
.header-btn {
  position: relative;
  z-index: 102;
  display: block;
  box-sizing: content-box;
  width: 34px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.headerBtn-lines {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 34px;
  height: 16px;
}
.headerBtn-lines span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition:
    translate 0.45s cubic-bezier(0.33, 0, 0.12, 1),
    rotate 0.45s cubic-bezier(0.33, 0, 0.12, 1),
    opacity 0.25s linear;
}
.headerBtn-lines span:nth-child(1) {
  top: 0;
}
.headerBtn-lines span:nth-child(2) {
  top: 7px;
}
.headerBtn-lines span:nth-child(3) {
  top: 14px;
}

._navOpen .headerBtn-lines span:nth-child(1) {
  translate: 0 7px;
  rotate: 45deg;
}
._navOpen .headerBtn-lines span:nth-child(2) {
  opacity: 0;
}
._navOpen .headerBtn-lines span:nth-child(3) {
  translate: 0 -7px;
  rotate: -45deg;
}

.headerBtn-txt {
  margin-top: 7px;
  white-space: nowrap;
  display: block;
  line-height: 1;
  letter-spacing: 0.06em;
  font-size: 1.3rem;
  color: #fff;
}

/* 開いたときのメニュー */
.gnav {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: rgb(0 0 0 / 94%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.33, 0, 0.12, 1);
}
._navOpen .gnav {
  opacity: 1;
  pointer-events: auto;
}

.gnav-item + .gnav-item {
  margin-top: 32px;
}

.gnav-item a {
  display: block;
  text-align: center;
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.7s cubic-bezier(0.33, 0, 0.12, 1) var(--d, 0s),
    translate 0.7s cubic-bezier(0.33, 0, 0.12, 1) var(--d, 0s);
}
._navOpen .gnav-item a {
  opacity: 1;
  translate: 0 0;
}
.gnav-item:nth-child(1) a {
  --d: 0.18s;
}
.gnav-item:nth-child(2) a {
  --d: 0.26s;
}
.gnav-item:nth-child(3) a {
  --d: 0.34s;
}
.gnav-item:nth-child(4) a {
  --d: 0.42s;
}

.gnavItem-ja {
  display: block;
  line-height: 1.3;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}

.gnavItem-en {
  margin-top: 8px;
  display: block;
  line-height: 1;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  background: linear-gradient(180deg, #005cb8 0%, #3b86d1 50.48%, #005cb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html._navLock,
body._navLock {
  overflow: hidden;
}

@media screen and (min-width: 751px) {
  .header-btn {
    width: 32px;
    padding: 24px 30px;
  }

  .headerBtn-lines {
    width: 32px;
  }

  .headerBtn-txt {
    font-size: 1.2rem;
  }

  .gnav-item + .gnav-item {
    margin-top: 40px;
  }

  .gnavItem-ja {
    font-size: 2.8rem;
  }

  .gnavItem-en {
    margin-top: 10px;
    font-size: 1.6rem;
  }

  .gnav-item a {
    transition-duration: 0.7s;
  }
  .gnav-item a:hover .gnavItem-ja {
    opacity: 0.7;
    transition: opacity 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .headerBtn-lines span,
  .gnav,
  .gnav-item a {
    transition: none;
  }
}

/* ========== lead ========== */
#lead {
  position: relative;
  padding-top: calc(48px + 56px + 16px);
  padding-bottom: 125vw;
  background: bottom center/93% no-repeat url(../img/lead-backimg.webp);
}
#lead::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 50%;
  translate: -50% 0;
  display: block;
  width: 1px;
  height: 56px;
  background-color: #fff;
  transform-origin: 50% 0;
  scale: 1 0;
  transition: scale 2.1s cubic-bezier(0.33, 0, 0.12, 1) 0.4s;
}
#lead._lineDrawn::before {
  scale: 1 1;
}

.lead-introduction {
  margin-top: 32px;
  /* 狭い端末で1行が割れないよう、左右の余白は抑えめに */
  padding: 0 12px;
}

.lead-txt {
  line-height: 1.9;
  text-align: center;
  font-size: 1.4rem;
}
.lead-txt + .lead-txt {
  margin-top: 1.5em;
}

.lead-hash {
  margin-top: 2em;
  text-align: center;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 1.4rem;
  background: linear-gradient(180deg, #005cb8 0%, #3b86d1 50.48%, #005cb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media screen and (min-width: 751px) {
  #lead {
    padding-top: calc(min(8.3vw, 120px) + 72px + 32px);
    padding-bottom: min(12.5vw, 180px);
    background: bottom right/499px no-repeat url(../img/lead-backimg__l.webp);
  }
  #lead::before {
    top: min(8.3vw, 120px);
    width: 1px;
    height: 72px;
  }

  .lead-introduction {
    margin-top: 64px;
    padding: 0;
  }

  .lead-txt {
    font-size: 1.6rem;
  }

  .lead-hash {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 1441px) {
  #lead {
    background-position: bottom left calc(50% + 480px);
  }
}

/* ========== goods ========== */
#goods {
  padding-top: 64px;
  background-color: #fff;
}

.goods-lead {
  margin-top: 32px;
  line-height: 1.9;
  text-align: center;
  font-size: 1.3rem;
  color: #0a0800;
}

.goods-banner {
  margin-top: 32px;
  display: block;
}

.goods-btn {
  position: relative;
  margin: 56px auto 0;
  display: block;
  max-width: 340px;
  padding: 16px 72px 16px 59px;
  background-color: #15589a;
  border-radius: calc(1px / 0);
  text-align: center;
  font-size: 1.6rem;
  color: #fff;
}
.goods-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  translate: 0 -50%;
  display: block;
  width: 12px;
  height: auto;
  aspect-ratio: 12 / 12;
  background: center/contain no-repeat url(../img/goods-arrow.webp);
}

/* 触れたら矢印が斜めに跳ねる */
@keyframes arrowPop {
  0% {
    translate: 0 -50%;
  }
  35% {
    translate: 5px calc(-50% - 5px);
  }
  70% {
    translate: -1px calc(-50% + 1px);
  }
  100% {
    translate: 0 -50%;
  }
}
.goods-btn:hover::after,
.goods-btn:focus-visible::after,
.goods-btn:active::after {
  animation: arrowPop 0.5s cubic-bezier(0.34, 1.2, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  .goods-btn:hover::after,
  .goods-btn:focus-visible::after,
  .goods-btn:active::after {
    animation: none;
  }
}

.goodsBtn-txt {
  font-weight: 500;
}

.goodsBtn-note {
  margin-top: 8px;
  white-space: nowrap;
  font-size: 0.75em;
}

/* 販売開始前。時刻になったらJSで _isDisabled を外して有効化する */
.goods-release {
  margin-top: 40px;
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1.4rem;
  color: #0a0800;
}
.goods-release[hidden] {
  display: none;
}

.goods-btn._isDisabled {
  margin-top: 16px;
  background-color: #4a4a4a;
  color: #9a9a9a;
  cursor: default;
  pointer-events: none;
}
.goods-btn._isDisabled::after {
  opacity: 0.4;
}

/* バナー類は見た目はそのままで、遷移だけ止める */
.goods-banner._isDisabled,
.historyImg-link._isDisabled {
  cursor: default;
  pointer-events: none;
}

@media screen and (min-width: 751px) {
  #goods {
    padding-top: min(8.3vw, 120px);
  }

  .goods-lead {
    font-size: 1.6rem;
  }

  .goods-banner {
    margin-top: 40px;
    transition: opacity 0.3s;
  }
  .goods-banner:hover {
    opacity: 0.85;
  }

  .goods-btn {
    margin-top: 80px;
    max-width: 360px;
    padding: 16px 84px 16px 64px;
  }

  .goods-release {
    margin-top: 64px;
    font-size: 1.6rem;
  }
  .goods-btn._isDisabled {
    margin-top: 20px;
  }
  .goods-btn::after {
    right: 35px;
    width: 13px;
  }
}

/* ========== movie ========== */
#movie {
  padding-bottom: 64px;
}

.movie-list {
  margin-top: 32px;
}

.movie-item + .movie-item {
  margin-top: 48px;
}

.movieItem-yt iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.movieItem-ttl {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 400;
}

@media screen and (min-width: 751px) {
  #movie {
    padding-bottom: min(8.3vw, 120px);
  }

  .movie-list {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    gap: 48px;
  }

  .movie-item {
    width: calc((100% - 48px) / 2);
  }
  /* 1本だけのときは中央に置いて、少し大きく見せる */
  .movie-item:only-child {
    width: min(100%, 760px);
  }
  .movie-item + .movie-item {
    margin-top: 0;
  }

  .movieItem-ttl {
    margin-top: 24px;
    font-size: 2rem;
  }
}

/* ========== history ========== */
#history {
  padding-bottom: 64px;
}

.history-item {
  position: relative;
  padding-top: 48px;
  padding-left: 40px;
}
.history-item:first-of-type {
  padding-top: 40px;
}

.history-era {
  line-height: 1;
  font-size: 3.6rem;
  font-weight: 500;
}

.history-txt {
  margin-top: 16px;
  font-size: 1.6rem;
}

.history-note {
  margin-top: 8px;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #b3b3b3;
}

.history-img {
  margin-top: 12px;
  max-width: 320px;
}
/* 縦位置の写真は原寸比率のまま。横位置と高さが開きすぎないよう幅を抑える */
.history-img._portrait {
  max-width: 260px;
}
.history-img._last {
  margin-right: -20px;
  margin-left: -60px;
  max-width: none;
}

/* 画像にリンクを張る場合のラッパー。
   ブロック要素にしないと中の img の margin-left:auto が効かない */
.historyImg-link {
  display: block;
  transition: opacity 0.3s ease;
}
.historyImg-link:hover,
.historyImg-link:focus-visible {
  opacity: 0.85;
}

/* 販売開始前の注記。画像の下に、画像の幅に合わせて置く */
.historyImg-release {
  margin-top: 8px;
  max-width: 320px;
  font-size: 1.2rem;
  color: #c9c9c9;
}
.historyImg-release[hidden] {
  display: none;
}

@media screen and (min-width: 751px) {
  .historyImg-release {
    margin-top: 12px;
    margin-left: auto;
    max-width: 560px;
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 751px) {
  #history {
    padding-bottom: min(8.3vw, 120px);
  }

  .history-item {
    padding-top: 100px;
    padding-left: 90px;
    display: flex;
    justify-content: space-between;
  }
  .history-item:first-of-type {
    padding-top: 64px;
  }

  .history-era {
    font-size: 4.8rem;
  }

  .history-content {
    margin-top: 0.7em;
    width: 560px;
  }

  .history-txt {
    margin-top: 0;
    font-size: 2.4rem;
  }

  .history-note {
    margin-top: 12px;
    font-size: 1.6rem;
  }

  .history-img {
    margin-top: 24px;
    margin-left: auto;
    max-width: 560px;
  }
  .history-img._portrait {
    /* 横位置の写真は本文幅いっぱいなので margin-left:auto が効かないが、
       縦位置は幅が狭いぶん右に寄ってしまうため、本文の左端に揃える */
    margin-left: 0;
    max-width: 420px;
  }
  .history-img._last {
    margin-right: 0;
    margin-left: calc(-90px - 1030px + 560px);
    max-width: none;
  }
}

.history-defs {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.history-body {
  position: relative;
}

/* 縦ライン：スクロールに連動して上から下へ伸びる（高さはJSで設定） */
.history-line {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 1px;
  pointer-events: none;
}

.historyLine-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #005cb8 0%, #3b86d1 50.48%, #005cb8 100%);
  clip-path: inset(0 0 calc(100% * (1 - var(--p, 0))) 0);
}

@media screen and (min-width: 751px) {
  .history-line {
    width: 2px;
  }
}

/* 縦線の到達に合わせて、横線→日付→見出し→補足→画像の順に左から現れる */
.history-era,
.history-txt,
.history-note,
.history-img {
  opacity: 0;
  translate: -20px 0;
  transition:
    opacity 1.6s cubic-bezier(0.33, 0, 0.12, 1) var(--d, 0s),
    translate 1.6s cubic-bezier(0.33, 0, 0.12, 1) var(--d, 0s);
}
/* 全幅ビジュアルは横にずらすと画面外へはみ出すため縦方向に */
.history-img._last {
  translate: 0 20px;
}

.history-item._isShow .history-era {
  --d: 0.30s;
}
.history-item._isShow .history-txt {
  --d: 0.60s;
}
.history-item._isShow .history-note {
  --d: 0.82s;
}
.history-item._isShow .history-img {
  --d: 1.02s;
}
.history-item._isShow .history-era,
.history-item._isShow .history-txt,
.history-item._isShow .history-note,
.history-item._isShow .history-img {
  opacity: 1;
  translate: 0 0;
}

/* 番外編：年号ではないため和文フォントで組む。
   年号より文字が小さいぶん上に寄るので、左の横線と中心が合うよう下げる
   （年号 3.6rem に対し 2rem → 差の半分 8px。PCは 4.8rem と 2.4rem で 12px） */
.history-item._bangai .history-era {
  margin-top: 8px;
  font-family: 'Zen Kaku Gothic New', sans-serif, 'Hiragino Kaku Gothic Pro', Meiryo;
  letter-spacing: 0.08em;
  font-size: 2rem;
  font-weight: 500;
}

@media screen and (min-width: 751px) {
  .history-item._bangai .history-era {
    margin-top: 12px;
    font-size: 2.4rem;
  }
}

.history-line2 {
  position: absolute;
  top: 66px;
  left: 0;
  translate: 0 -50%;
  overflow: visible;
  pointer-events: none;
}
.history-line2._first {
  top: 58px;
}

.history-line2 rect {
  transform-origin: 0 50%;
  transform-box: fill-box;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.33, 0, 0.12, 1);
}

.history-line2._draw rect {
  transform: scaleX(1);
}

@media screen and (min-width: 751px) {
  .history-line2 {
    top: 124px;
  }
  .history-line2._first {
    top: 88px;
  }

  .history-line2 rect {
    transform-origin: 0 50%;
    transform-box: fill-box;
    transform: scaleX(0);
    transition: transform 1.1s cubic-bezier(0.33, 0, 0.12, 1);
  }

  .history-line2._draw rect {
    transform: scaleX(1);
  }
}

/* ========== gallery ========== */
.galleryFilter {
  margin-top: 32px;
}
.galleryFilter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.galleryFilter-btn {
  display: block;
  padding: 6px 12px 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background-color: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.galleryFilter-btn._isActive {
  border-color: #005cb8;
  background-color: #005cb8;
  color: #fff;
}
.galleryFilter-btn:hover,
.galleryFilter-btn:focus-visible {
  border-color: #3b86d1;
  background-color: rgba(59, 134, 209, 0.35);
}
.galleryFilter-btn._isActive:hover,
.galleryFilter-btn._isActive:focus-visible {
  background-color: #005cb8;
}

.gallery-sec[hidden] {
  display: none;
}

.gallery-sec {
  margin-top: 32px;
}
.gallery-sec + .gallery-sec {
  margin-top: 48px;
}

.gallerySec-era {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  padding: 0 48px;
  font-weight: 500;
  font-size: 3.6rem;
}
.gallerySec-era::before,
.gallerySec-era::after {
  content: '';
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: block;
  width: 40px;
  height: 1px;
  background-color: #fff;
}
.gallerySec-era::before {
  left: 0;
}
.gallerySec-era::after {
  right: 0;
}

.gallerySec-list {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 16px;
}

.gallerySec-item {
  width: calc((100% - 16px) / 2);
}

.gallerySec-itemLink {
  position: relative;
  display: block;
}
.gallerySec-itemLink::before {
  content: '';
  position: absolute;
  z-index: 1;
  bottom: 4px;
  right: 4px;
  display: block;
  width: 16%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: center/contain no-repeat url(../img/gallery-open.webp);
}

@media screen and (min-width: 751px) {
  .galleryFilter {
    margin-top: 48px;
  }
  .galleryFilter-list {
    gap: 12px;
  }
  .galleryFilter-btn {
    padding: 8px 18px 7px;
    font-size: 1.8rem;
  }

  .gallery-sec {
    margin-top: 64px;
  }
  .gallery-sec + .gallery-sec {
    margin-top: 80px;
  }

  .gallerySec-era {
    padding: 0 calc(8px + 56px);
    font-size: 4.8rem;
  }
  .gallerySec-era::before,
  .gallerySec-era::after {
    width: 56px;
  }

  .gallerySec-list {
    margin-top: 48px;
    gap: 32px;
  }

  .gallerySec-item {
    width: calc((100% - 32px * 3) / 4);
  }

  .gallerySec-itemLink::before {
    bottom: 8px;
    right: 8px;
    width: 12.5%;
  }
}

/* ========== modal ========== */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100vh;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  background-color: rgb(0 0 0 / 90%);
}
#modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

html._modalLock,
body._modalLock {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.modal-content {
  position: relative;
  width: 100%;
}

#modal-slider {
  /* 表示枠の高さ。閉じるボタンぶんを引いた残りに収める */
  --modalH: min(calc(100vh - 150px), 74vh);
  --modalH: min(calc(100dvh - 150px), 74dvh);
  margin: 0 auto;
  width: 92vw;
  padding: 0;
}

/* スマホは矢印を出さず、スワイプで送る（矢印のぶん画像を大きく見せる） */
@media screen and (max-width: 750px) {
  #modal-slider .splide__arrow {
    display: none;
  }
}

#modal-slider .splide__arrow {
  background: none;
  opacity: 1;
  width: 36px;
  height: 36px;
}

#modal-slider .splide__arrow--prev {
  left: 2px;
}

#modal-slider .splide__arrow--next {
  right: 2px;
}

#modal-slider .splide__arrow--prev::before,
#modal-slider .splide__arrow--next::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: center/contain no-repeat;
}
#modal-slider .splide__arrow--prev::before {
  background-image: url(../img/modal-prev.webp);
}
#modal-slider .splide__arrow--next::before {
  background-image: url(../img/modal-next.webp);
}

/* 表示枠の高さを固定し、その中に画像を収める。
   枠を固定しないと、横位置と縦位置で画像の大きさ・上端・矢印の位置が
   スライドごとに動いてしまう。
   高さを%で指定するとSafariのflex内で解決されないため、
   枠もimgも同じ「長さ」で指定する。 */
#modal-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--modalH);
}

#modal-slider .splide__slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--modalH);
  object-fit: contain;
}

.modal-closeBtn {
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 248px;
  height: 62px;
  border: 1px solid #fff;
  border-radius: calc(1px / 0);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}

@media screen and (min-width: 751px) {
  #modal {
    padding: 30px;
  }

  #modal-slider {
    --modalH: min(calc(100vh - 170px), 74vh);
    --modalH: min(calc(100dvh - 170px), 74dvh);
    max-width: 960px;
    padding: 0 calc(8px + 40px);
  }

  #modal-slider .splide__arrow {
    width: 40px;
    height: 40px;
  }
}

/* ========== thankyou ========== */
#thankyou {
  padding: 48px 20px 120px;
}

@media screen and (min-width: 751px) {
  #thankyou {
    padding: 24px 30px 80px;
  }
}


/* ========== footer ========== */
#footer {
  padding: 36px 30px 16px;
}

.footer-logo {
  margin: 0 auto;
  display: block;
  width: 264px;
}

.footer-share {
  margin-top: 20px;
}

.footerShare-ttl {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 500;
}

.footerShare-list {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footerShare-item {
  width: 36px;
}

.footer-copyright {
  margin: 30px;
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 300;
}

@media screen and (min-width: 751px) {
  /* PCはロゴ左・SHARE右の横並び、コピーライトはその下に中央 */
  #footer {
    margin: 0 auto;
    max-width: 1180px;
    padding: 40px 30px 16px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    column-gap: 24px;
  }

  .footer-logo {
    margin: 0;
  }

  .footer-share {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .footerShare-ttl {
    line-height: 1;
  }

  .footerShare-list {
    margin-top: 0;
  }

  .footerShare-item {
    width: 40px;
  }

  .footer-copyright {
    grid-column: 1 / -1;
    margin: 48px 0 0;
  }
}
