/* ==================================
   Global Reset
================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* ==================================
   Slick Hero Slider（PC）
================================== */

/* スライダー全体の背景 */
.slickall {
  position: relative;
  background-color: #000;
}

/* 予約バナー */
.yoyaku {
  position: absolute;
  width: 23%;
  top: 80%;
  right: 80px;
}

/* スライドの裏写り防止 */
.caption,
.slick-slide::before,
.slick-slide {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 黒のオーバーレイ（少し暗くする） */
.slick-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.2;
  z-index: 1;
}

/* フルワイドスライダー本体 */
.full-wide-slider {
  position: relative;
  width: 100%;
  height: 45vw;
  min-height: 8vw;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 1.2s ease;
}

/* slick 初期化後にふわっと表示 */
.full-wide-slider.slick-initialized {
  opacity: 1;
  visibility: visible;
}

/* 各スライド枠 */
.slick-slide {
  position: relative;
  height: 45vw;
}

/* 動画（mp4）：画面いっぱいにフィット */
.slick-slide video {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}

/* iframe（YouTube / Vimeo） */
.slick-slide iframe {
  position: relative;
  pointer-events: none; /* JS の制御都合で */
}

/* figure 全体 */
.slick-slide figure {
  position: relative;
  height: 100%;
}

/* 共通 slide-image（動画以外のメディア枠） */
.slick-slide .slide-image {
  background-color: #000;
  opacity: 0; /* デフォルトは非表示（アニメーション用） */
  height: 100%;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.8s ease;
}

/* JS から .show が付いたらフェードイン */
.slick-slide .slide-image.show {
  opacity: 1;
}

/* 中に仕込んだ img の初期値 */
.slick-slide .image-entity {
  width: 100%;
  height: auto;
  opacity: 1;
}

/* Loading テキスト */
.slick-slide .loading {
  position: absolute;
  top: 44%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 2;
}

/* メディアのぼかしアニメ（デフォルト） */
.slick-slide .slide-media {
  animation: slideOut 0.4s cubic-bezier(0.4, 0.29, 0.01, 1);
}

/* アクティブスライド */
.slick-slide.slick-active {
  z-index: 1;
}

/* アクティブ時のメディアアニメーション */
.slick-slide.slick-active .slide-media {
  animation: slideIn 2.4s cubic-bezier(0.4, 0.29, 0.01, 1);
}

/* アクティブ時、キャプションを出す */
.slick-slide.slick-active .caption {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(0.32, 0.34, 0, 1.62) 0.6s;
}

/* 16:9 比率でスライドを切り抜くベース */
.full-wide-slider .slide-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

/* その中の img を全面フィット */
.full-wide-slider .slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャプション（白文字大きめ） */
.item .caption {
  position: absolute;
  top: 35%;
  left: 5%;
  text-align: left;
  padding: 20px;
  color: #fff;
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  opacity: 0;
  z-index: 2;
}

/* スライド説明（左側テキスト） */
.setumei {
  width: 80%;
  display: block;
  font-size: 1.5em;
  color: #fff;
  line-height: 1.4;
  position: absolute;
  top: 60%;
  left: 5%;
  text-align: left;
  z-index: 2;
}

/* スライダー下中央の小さい説明 */
.setumei1 {
  position: absolute;
  left: 47%;
  bottom: 16px;
  transform: translateX(-50%);
  width: auto;
  display: block;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
  text-align: center;
  z-index: 50;
  pointer-events: none;
}

/* ドットナビゲーション */
.slick-dots {
  text-align: center;
  background-color: transparent;
  bottom: 20px !important;
}

.slick-dots li {
  display: inline-block;
  vertical-align: top;
  margin: 0 8px;
}

.slick-dots li button {
  width: 16px;
  height: 16px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 transparent;
  vertical-align: middle;
  color: #fff;
  background-color: #fff;
  transition: all 0.3s ease;
  opacity: 0.2;
}

.slick-dots li button:focus {
  outline: none;
}

.slick-dots li button:hover {
  opacity: 1;
}

.slick-dots li.slick-active button {
  border-color: #2d3042;
  box-shadow: 0 0 0 2px #fff;
  opacity: 0.6;
}

/* お知らせセクション微調整 */
.sec_top_news {
  margin-top: -30px;
}

/* フェード系共通クラス */
.fade-out {
  opacity: 0;
  transition: all 1s;
}

.fade-in {
  opacity: 1;
}

/* 下からふわっと上がる */
.fadeIn2s {
  animation-name: fadeIn2s;
  animation-delay: 2s;
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  transform: translateY(-50px);
  opacity: 0;
}

@keyframes fadeIn2s {
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* スライドイン・アウトのぼかし */
@keyframes slideIn {
  from {
    filter: blur(15px);
  }
  to {
    filter: blur(0);
  }
}

@keyframes slideOut {
  from {
    filter: blur(0);
  }
  to {
    filter: blur(15px);
  }
}

/* スマホ時のキャプション調整 */
@media only screen and (max-width: 800px) {
  .slick-slide.slick-active .caption {
    top: 5% !important;
    left: 5% !important;
    font-size: 1.8em !important;
  }

  .slick-slide.slick-active .setumei {
    bottom: 0% !important;
    left: 5% !important;
    font-size: 1em !important;
  }
}

/* コピーライト用 */
.copyright1 {
  width: 100%;
  display: block;
  font-size: 1em;
  color: #fff;
  line-height: 1.4;
  position: absolute;
  bottom: 0;
  left: 5%;
  text-align: left;
  z-index: 2;
}

/* ▼ 静止画像スライドの上書き ▼ */

/* .item.image だけは opacity 0 を無視して常に表示 */
.full-wide-slider .item.image .slide-image {
  background: none;
  opacity: 1;
}

/* 中の img も常に表示 */
.full-wide-slider .item.image .image-entity {
  opacity: 1;
}

/* 余計な <p class="slick-slide"> などをスライドから除外 */
.full-wide-slider .slick-slide:not(.item) {
  display: none !important;
}

/* ==================================
   SP ヒーロー Swiper（動画/静止画）
================================== */

@media (max-width: 768px) {
  .sp-hero-swiper {
    position: relative;
    overflow: hidden;
    height: 100vh;
  }

  .sp-hero-swiper .swiper-wrapper {
    height: 100%;
  }

  .sp-hero-swiper .swiper-slide,
  .sp-hero-swiper .sp-hero-slide {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  /* バックグラウンド画像（動画・静止画共通） */
  .sp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sp-hero-slide.is-active {
    transform: scale(1);
  }

  /* 黒オーバーレイ不要なら非表示 */
  .sp-hero-overlay {
    display: none !important;
  }

  .sp-hero-content {
    position: absolute;
    inset: auto 16px 24px 16px;
    padding: 16px 18px;
    border-radius: 18px;
    backdrop-filter: blur(18px);
    background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.88),
      rgba(20, 20, 20, 0.92)
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.03);
    color: #fff;
  }

  .sp-hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5ae3ff;
    margin-bottom: 4px;
  }

  .sp-hero-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 0 0 8px;
  }

  .sp-hero-text {
    font-size: 0.83rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 12px;
  }

  .sp-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #020617;
    background: linear-gradient(135deg, #0cf5b6, #5ae3ff);
    box-shadow: 0 4px 18px rgba(12, 245, 182, 0.45);
  }

  .sp-hero-cta::after {
    content: "↗";
    font-size: 0.9em;
    margin-left: 6px;
  }

  /* Swiper ドット */
  .sp-hero-pagination.swiper-pagination {
    position: static;
    margin-top: 8px;
    display: flex;
    justify-content: center;
  }

  .sp-hero-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    opacity: 0.5;
    background: rgba(148, 163, 184, 0.7);
    transition: all 0.25s ease;
  }

  .sp-hero-pagination .swiper-pagination-bullet-active {
    width: 24px;
    opacity: 1;
    background: linear-gradient(135deg, #0cf5b6, #5ae3ff);
  }
}

/* PCでは SP ヒーローは非表示 */
@media (min-width: 769px) {
  .sp-hero-swiper {
    display: none;
  }
}

/* ==================================
   SP 静止画像ヒーロー（単純版）
================================== */

.sp-hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

.sp-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==================================
   今月のお知らせカード
================================== */

.kongetu-osirase {
  background: linear-gradient(120deg, #101419 0%, #262c38 100%);
  width: 100%;
  min-height: 40vh;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  margin: 0;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.notice-card {
  max-width: 80%;
  margin: 20px auto;
  background: rgba(24, 27, 34, 0.98);
  border-radius: 22px;
  box-shadow: 0 8px 40px #000a, 0 2px 8px #2b314044;
  overflow: hidden;
  border: 1.5px solid #292d38;
  position: relative;
  transition: box-shadow 0.3s;
}

.notice-card:hover {
  box-shadow: 0 12px 64px #0cf5b666, 0 2px 8px #2b314088;
  border-color: #0cf5b6d1;
}

/* 背景の上に乗る黒グラデ（hover 時にON） */
.notice-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.957) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

/* ホバー中だけ黒グラデをON */
.notice-card:hover .notice-content::before {
  opacity: 1;
}

/* テキストをオーバーレイより前面に */
.notice-content > * {
  position: relative;
  z-index: 1;
}

.notice-header {
  display: flex;
  align-items: center;
  padding: 32px 32px 18px 32px;
  background: linear-gradient(90deg, #232935 70%, #232b34 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  position: relative;
  overflow: hidden;
}

.notice-header h3 {
  font-size: 1.5rem;
  color: #e6e7ef;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 16px #56ffe7aa;
}

.notice-header .icon {
  width: 36px;
  height: 36px;
  display: inline-block;
  margin-right: 8px;
  filter: drop-shadow(0 4px 8px #00fff6aa);
}

.notice-date {
  position: absolute;
  top: 18px;
  right: 32px;
  background: linear-gradient(to right, #32f6c1cc 19.33%, #0068f6);
  color: #151d18;
  font-weight: bold;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 12px #0cf5b6aa;
  border: none;
  letter-spacing: 0.09em;
  text-shadow: 0 2px 8px #fff8;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
}

.notice-content {
  padding: 28px 32px 36px 32px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  line-height: 2;
  background-size: cover;
  background-position: center center;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  position: relative;
  z-index: 1;
}

.notice-content p {
  display: inline-block;
  text-align: left;
}

/* アクセントライン */
.accent-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0cf5b6 0%, #3fcbef 50%, #232935 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  z-index: 2;
}

/* サイドの控えめな光 */
.glow {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #0cf5b633 0%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .notice-header h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .notice-header,
  .notice-content {
    padding: 16px 10px;
  }

  .notice-date {
    top: 12px;
    right: 12px;
    font-size: 0.96rem;
    padding: 4px 8px;
  }
}

/* ==================================
   YouTube モーダル用カード一覧
================================== */

.videoflexcontainer {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 32px;
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}

.video-list {
  position: relative;
  background-color: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  padding: 0;
  width: 400px;
  text-align: center;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.video-list .video-list__text h3 {
  color: #fff !important;
}

.video-list .video-list__text a {
  text-decoration: none;
}

.video-list:hover {
  box-shadow: 0 4px 24px rgba(62, 102, 132, 1);
}

.p-video-list__thumbnail img {
  max-width: 100%;
  display: block;
}

@media (max-width: 1270px) {
  .videoflexcontainer {
    flex-wrap: wrap;
    justify-content: центр;
    margin: 0 auto;
    gap: 32px;
    width: 90%;
    max-width: 1270px;
  }
}

@media (max-width: 830px) {
  .videoflexcontainer {
    max-width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .video-list {
    width: 90vw;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

.video-list.dummy {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

@media (max-width: 600px) {
  .video-list.dummy {
    display: none;
  }
}

/* YouTube 再生ボタンアイコン */
.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 42px;
  background: url("https://www.freepnglogos.com/uploads/youtube-play-red-logo-png-transparent-background-6.png")
    no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* YouTube 下のコピー */
.p-news-list-ti {
  font-weight: bolder;
  padding-top: 2rem;
  width: 60%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==================================
   縦書きテキスト
================================== */

.vertical-center-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  width: 40vw;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0);
  border-radius: 12px;
  font-size: 1.3em;
  line-height: 3;
  font-weight: bolder;
  letter-spacing: 0.1em;
  white-space: pre-line;
  font-family: "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN",
    "MS PMincho", serif;
  padding: 2rem 0;
}

@media (max-width: 800px) {
  .vertical-center-text {
    height: 60vw;
    font-size: 1em;
    line-height: 2;
  }
}

/* ==================================
   top お知らせ4件
================================== */

.news-section {
  width: 90vw;
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding-top: 48px;
}

.news-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  letter-spacing: 0.1em;
}

.news-title .news-sub {
  color: #29b6f6;
  font-size: 1.2rem;
  margin-left: 12px;
  position: relative;
  font-weight: 400;
  display: inline-block;
  border-bottom: 2px solid #29b6f6;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.news-card {
  display: flex;
  background: #fffbe3;
  border-radius: 12px;
  overflow: hidden;
  width: 44%;
  min-width: 320px;
  max-width: 520px;
  box-shadow: 0 3px 16px #0001;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 10px 24px #29b6f660;
  transform: translateY(-4px) scale(1.03);
}

.news-thumb {
  min-width: 160px;
  max-width: 180px;
  height: 120px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  color: #888;
  font-size: 0.99rem;
  margin-bottom: 8px;
}

.news-title-txt {
  font-weight: 500;
  font-size: 1.09rem;
  line-height: 1.3;
}

.news-more {
  margin: 32px auto 0 auto;
  text-align: center;
}

.news-more-link {
  display: inline-block;
  border: 2px solid #29b6f6;
  color: #29b6f6;
  padding: 12px 46px;
  border-radius: 7px;
  font-size: 1.08rem;
  background: #fff;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 8px #29b6f615;
}

.news-more-link:hover {
  background: #29b6f6;
  color: #fff;
}

@media (max-width: 800px) {
  .news-cards {
    flex-direction: column;
    gap: 18px;
  }

  .news-card {
    width: 96%;
    min-width: unset;
    max-width: unset;
  }
}

/* ==================================
   お問い合わせ / 会社案内カード
================================== */

.top-company.t-bg {
  padding: 60px 0 54px 0;
}

.company-card-row a {
  text-decoration: none;
}

.section-title {
  text-align: center;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 34px;
  color: #133352;
}

.section-title span {
  display: inline-block;
  color: #25a5e1;
  font-size: 1.1rem;
  margin-left: 12px;
  font-weight: 400;
  border-bottom: 2px solid #25a5e1;
}

.company-card-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.company-card {
  background: #caf7f7;
  border-radius: 16px;
  box-shadow: 0 2px 18px #14b6ff0c;
  width: 320px;
  min-width: 260px;
  max-width: 340px;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.15s;
  text-align: center;
}

.company-card-toi {
  width: 70%;
  background: #caf7f7;
  border-radius: 16px;
  box-shadow: 0 2px 18px #14b6ff0c;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.15s;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.company-card:hover,
.company-card-toi:hover {
  box-shadow: 0 6px 32px #25a5e188;
  transform: translateY(-3px) scale(1.03);
}

.company-card h3 {
  font-size: 1.22em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1c5e8d;
  letter-spacing: 0.03em;
}

.company-card-en {
  font-size: 1.03em;
  color: #33b5e5;
  margin-bottom: 14px;
  font-family: "Montserrat", "Arial", sans-serif;
  letter-spacing: 0.03em;
}

.company-card p {
  font-size: 1em;
  color: #444;
  margin: 0;
}

.company-btn-row {
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 1016px) {
  .company-card-row {
    flex-direction: column;
    gap: 22px;
  }

  .company-card {
    width: 98%;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* SP ヒーロー下キャプション（必要なら） */
.sp-hero-caption {
  position: relative;
  margin-top: -3rem;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==================================
   セクション背景の半円ライン
================================== */

/* 半円を出したいセクションは relative に */
#osirase-bk,
#kaisya-bk,
#otoi-bk {
  position: relative;
  overflow: visible;
}

/* お知らせセクション用の半円 */
#osirase-bk::before {
  content: "";
  position: absolute;
  left: 120%;
  top: -120%;
  transform: translate(-50%, -50%) rotate(180deg);
  width: 140vw;
  max-width: 1400px;
  aspect-ratio: 1 / 1;
  border: 1.5px solid #e36e6e;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* 会社案内セクション用の半円 */
#kaisya-bk::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -50%;
  transform: translate(-50%, -50%);
  width: 140vw;
  max-width: 1400px;
  aspect-ratio: 1 / 1;
  border: 1.5px solid #6ee73e;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* お問い合わせセクション用の半円 */
#otoi-bk::before {
  content: "";
  position: absolute;
  left: 120%;
  top: -50%;
  transform: translate(-50%, -50%);
  width: 140vw;
  max-width: 1400px;
  aspect-ratio: 1 / 1;
  border: 1.5px solid #3e90e7;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* ==================================
   YouTube モーダル
================================== */

/* モーダル全体（オーバーレイ） */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* is-open で flex にする */
  align-items: center;
  justify-content: center;
}

/* 開いているとき */
.yt-modal.is-open {
  display: flex;
}

/* 中央のモーダル本体 */
.yt-modal__content {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  width: min(960px, 94vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
}

/* 16:9 のプレイヤーエリア */
.yt-modal__body {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.yt-modal__player-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 黒のオーバーレイ */
.yt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* 閉じるボタン（viewport 固定） */
.yt-modal__close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10001;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* PC hover */
.yt-modal__close:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .yt-modal__content {
    width: 96vw;
    max-height: calc(100vh - 60px);
  }

  .yt-modal__body {
    padding-top: 56.25%;
  }

  .yt-modal__close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}


/* ==================================
   SP ヒーローを強制フルスクリーンに
   （CSS の一番最後に追加）
================================== */
@media (max-width: 768px) {
  /* セクション自体を画面いっぱいに */
  body .sp-hero-swiper {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Swiper 側の高さも揃える */
  body .sp-hero-swiper .swiper-wrapper,
  body .sp-hero-swiper .swiper-slide {
    width: 100vw;
    height: 100vh !important;
  }

  /* 背景画像を全面フィット */
  body .sp-hero-swiper .sp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    display: block;
  }

  /* オーバーレイ＆テキストはそのまま下側に */
  body .sp-hero-swiper .sp-hero-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
  }
}