@charset "UTF-8";
/*=======================================
	breakpoint
=======================================*/
/*=======================================
	hover
=======================================*/
/*=======================================
	中央配置
=======================================*/
/*=======================================
	可変レスポンシブ
=======================================*/
/* PC */
/* TB */
/* SP */
/*=======================================
	ブラウザ別
=======================================*/
/* Safari */
/* Firefox */
/*-------------------------
- 共通部分
- mv
- history_sec
- 追従　年表・コメントを見てくれると嬉しいな
- 追従　年表・コメントを見てくれると嬉しいな(sp)
- モーダル
-------------------------*/
/*=======================================
　共通部分
=======================================*/

body {
  margin: 0;
  background-color: #ffffff;
}

.youtube-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 50px;
  text-align: center;
  box-sizing: border-box;
  overflow-x: hidden;
}

.youtube-container img,
.youtube-container video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   YouTubeメンバーシップ特典（3列×2行）
========================================================== */

.yt-membership-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 18px;

  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;

  background: #e9e7f2;
  box-sizing: border-box;

  align-items: stretch;
}

.yt-membership-benefits__item {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  padding: 0;

  box-sizing: border-box;
}

.yt-membership-benefits__item picture {
  display: block;
  width: 100%;
}

.yt-membership-benefits__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* 7枚目以降（yt_09など） */
.yt-membership-after-benefits {
  display: block;
  width: 100%;
}

.yt-membership-after-benefits img {
  display: block;
  width: 100%;
  height: auto;
}

.yt-membership-attention {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;

  background: #e9e7f2;
  box-sizing: border-box;
  align-items: stretch;
}

/* ==========================================================
   免責・注意事項
========================================================== */

.yt-membership-notes {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.yt-membership-notes__title {
  margin: 0 0 20px;

  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #7d33ef;
}

.yt-membership-notes__list {
  margin: 0;
  padding-left: 1.5em;
}

.yt-membership-notes__list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.yt-membership-notes__list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   特典モーダル
========================================================== */

/* 画像をクリック可能にするボタン */
.yt-membership-modal-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.yt-membership-modal-trigger picture,
.yt-membership-modal-trigger img {
  display: block;
  width: 100%;
}

/* モーダル全体 */
.yt-membership-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.yt-membership-modal.is-open {
  display: flex;
}

/* 背景オーバーレイ */
.yt-membership-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

/* 白背景のモーダル本体 */
.yt-membership-modal__content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: calc(100vh - 60px);
  padding: 30px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/*
  .youtube-container img の width:100% の影響を受けるため、
  モーダル画像を個別に指定
*/
.youtube-container .yt-membership-modal__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  margin: 0 auto;
  object-fit: contain;
}

/* 閉じるボタン */
.yt-membership-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: min(315px, 100%);
  min-height: 58px;
  margin: 24px auto 0;
  padding: 10px 24px;

  border: 2px solid #8d29f3;
  border-radius: 14px;
  background: #fff;

  color: #8d29f3;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.yt-membership-modal__close:hover {
  color: #fff;
  background: #8d29f3;
}

.yt-membership-modal__close-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.yt-membership-modal__close-icon::before,
.yt-membership-modal__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
}

.yt-membership-modal__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.yt-membership-modal__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル表示中は背面スクロールを停止 */
body.is-yt-membership-modal-open {
  overflow: hidden;
}

/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {

  .youtube-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 0;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .youtube-container picture,
  .youtube-container img,
  .youtube-container video {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .yt-membership-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 12px;
  }

  .yt-membership-benefits__item {
    padding: 0;
  }

  .yt-membership-attention {
    padding: 24px 16px;
  }

  .yt-membership-notes {
    margin: 40px auto;
    padding: 0;
  }

  .yt-membership-notes__title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .yt-membership-notes__list li {
    font-size: 14px;
    line-height: 1.8;
  }

}