@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  font-feature-settings: "palt";
}

a,
button {
  cursor: pointer;
  transition: all 0.2s;
}
a:hover,
button:hover {
  /* Safariでのチラつき・挙動不審を防ぐため transform: scale に変更 */
  transform: scale(1.05);
}

button {
  display: block;
  /* 【修正】Safariでボタン内部の要素のサイズ計算が潰れるバグを防止 */
  width: 100%;
  background-color: transparent;
  border: none;
}

img {
  width: 100%;
}

body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* 【修正】iOS Safariのアドレスバー被り（100vh問題）を解消 */
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 背景画像の設定 */
  background-image: url(../img/yatai-bg.png);
  background-size: cover;
  background-position: center;
  /* ぼかしエフェクト */
  filter: blur(8px);
  /* テキストより後ろに配置 */
  z-index: -1;
  /* ✨Tips: 端の白いモヤモヤを消すために少し拡大する */
  transform: scale(1.1);
}
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 背景画像の設定 */
  background-color: rgba(255, 255, 255, 0.5);
  background-size: cover;
  background-position: center;
  /* テキストより後ろに配置 */
  z-index: -1;
  /* ✨Tips: 端の白いモヤモヤを消すために少し拡大する */
  transform: scale(1.1);
}
body main {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* 【修正】iOS Safariでの100vh対策 */
  padding: 40px 0;
  position: relative;
}
body main h1 {
  width: 20%;
  margin: 0 auto 20px;
}
@media (max-width: 768px) {
  body main h1 {
    width: 70%;
    margin: 0 auto 12px;
  }
}
body main .scroll-area {
  margin: 0 0 40px;
  height: calc(80% - 100px);
  width: 100%;
  z-index: 2;
  position: relative;
  border-radius: 0 0 10px 10px;
}
@media (max-width: 768px) {
  body main .scroll-area {
    height: 75%;
  }
}
body main .scroll-area .simplebar-content {
  padding: 28px 0 80px !important;
}
body main .scroll-area .simplebar-track.simplebar-vertical {
  display: none !important;
}
body main .scroll-area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
  box-sizing: border-box;
  list-style: none;
}
@media (max-width: 768px) {
  body main .scroll-area ul {
    gap: 8px 8px;
    width: 95%;
    margin: 0 auto 12px;
  }
}
body main .scroll-area ul li {
  list-style: none;
  width: 20%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  body main .scroll-area ul li {
    width: 45%;
    margin: 0 auto 12px;
  }
}
body main .scroll-area ul li button {
  display: flex;
  /* 【修正】Safariでボタン内部のサイズ計算・配置が崩れるのを防止 */
  flex-direction: column;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
body main .scroll-area ul li button .img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  margin-bottom: 12px;
  isolation: isolate;
}
@media (max-width: 768px) {
  body main .scroll-area ul li button .img-wrapper {
    margin-bottom: 8px;
  }
}
body main .scroll-area ul li button .img-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body main .scroll-area ul li button span {
  font-family: "Zen Maru Gothic", sans-serif;
  display: block;
  text-align: center;
  font-size: min(20px, 1.2vw);
}
@media (max-width: 768px) {
  body main .scroll-area ul li button span {
    font-size: min(16px, 3.75vw);
  }
}
body main .scroll-area ul li button span {
  line-height: 1.2;
  font-weight: 700;
  color: black;
}
body main .scroll-area ul li button:hover {
  transform: scale(1);
  /* 【修正】scaleから変更 */
}
body main .scroll-area ul li button:hover img {
  transform: scale(1.1);
  opacity: 0.5;
}
body main .modal {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.7);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* 【修正】iOS Safariでの100vh対策 */
  transition: all 0.5s;
  z-index: 100;
}
body main .modal .modal-inner {
  position: absolute;
  top: 50%;
  /* 53%だとスマホで下寄りになるため、中央揃えの50%に微調整 */
  left: 50%;
  transform: translate(-50%, -50%);
  /* 【重要】画面の幅と高さの「小さい方」に合わせて、常に縦横比(1024:1371)を一定に保つ魔法の計算式 */
  --modal-w: min(90vw, 90dvh * 1024 / 1371);
  --modal-h: min(90dvh, 90vw * 1371 / 1024);
  /* aspect-ratioを使わず実数値を渡すことでSafariの計算バグを完全回避 */
  width: var(--modal-w);
  height: var(--modal-h);
  /* 余白（padding）もモーダルの高さに連動させる（元の 10vh 相当） */
  padding: calc(var(--modal-h) * 0.11);
  background-image: url(../img/modal.png);
  border-radius: calc(var(--modal-w) * 0.03);
  /* 角丸もスケールに合わせる */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: "Zen Maru Gothic";
  /* 端末サイズによって文字が長くなった場合でもはみ出さないようスクロールを許可 */
  overflow-y: auto;
  /* スクロールバーの非表示（デザインを損なわないため） */
}
body main .modal .modal-inner::-webkit-scrollbar {
  display: none;
}
body main .modal .modal-inner {
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* スマホ用のメディアクエリは不要になったため削除 */
}
body main .modal .modal-inner .close {
  position: absolute;
  top: 5%;
  right: 5%;
  /* 閉じるボタンのサイズもモーダル幅に連動させる */
  width: calc(var(--modal-w) * 0.12);
  z-index: 10;
}
body main .modal .modal-inner .close img {
  filter: drop-shadow(0px 0px 8px rgb(255, 255, 255));
}
body main .modal .modal-inner .thumbnail {
  width: 80%;
  aspect-ratio: 16/9;
  margin: 0 auto calc(var(--modal-h) * 0.03);
  overflow: hidden;
  border-radius: calc(var(--modal-w) * 0.02);
}
body main .modal .modal-inner .thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
}
body main .modal .modal-inner .title {
  /* フォントサイズをモーダル高さに連動（元の 3vh 相当） */
  font-size: calc(var(--modal-h) * 0.033);
  font-weight: 900;
  text-align: center;
}
body main .modal .modal-inner .explain {
  margin-top: calc(var(--modal-h) * 0.02);
  /* 元の 2vh 相当 */
  font-size: calc(var(--modal-h) * 0.022);
  font-weight: 500;
  line-height: 1.5;
}
body main .modal .modal-inner .client {
  margin-top: calc(var(--modal-h) * 0.015);
  /* 元の 1.5vh 相当 */
  font-size: calc(var(--modal-h) * 0.016);
}
body main .modal .modal-inner .to-play {
  display: block;
  width: 30%;
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  margin: 0 auto;
}
body main .modal .modal-inner .to-play img {
  width: 100%;
}
body main .modal.is-open {
  opacity: 1;
  pointer-events: auto;
}/*# sourceMappingURL=style.css.map */