/* =========================
  共通：モーダルの見た目（白基調＋背景うっすら暗く）
========================= */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 800px);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0,0,0,.15),
    0 0 0 1px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  outline: none;
}
.modal-header {
  padding: 18px 20px 10px;
}
.modal-title {
  margin: 0 32px 6px 0;
  font-size: 1.1rem;
  line-height: 1.35;
}
.modal-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-body {
  padding: 0 20px 20px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================
  動画の見せ方（白の中で自然に“額装”）
========================= */
.modal-video {
  background: #f6f7f7;
  padding: 12px;
  border-radius: 10px;
}
.modal-video-inner {
  position: relative;
  aspect-ratio: var(--aspect, 16 / 9);
  max-height: 80vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-video-inner video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 再生オーバーレイ：動画全体をクリック可能に */
.modal-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* 中央の丸い再生ボタン */
.modal-play__btn{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(0,0,0,.08);
  font-size: 30px;
  line-height: 1;
}

/* 再生開始したらオーバーレイは消す */
.modal-video.is-playing .modal-play{
  display: none;
}

/* =========================
  サムネ（ポスター）ボタン例：縦横混在でも統一感
  - サムネ側は16:9固定にして、縦動画でも見た目を揃える
========================= */
.video-thumb {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
  width: 100%;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.video-thumb__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f2f2;
}
.video-thumb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb__play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.7);
  border: 2px solid rgba(0,0,0,.08);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  z-index: 2;
}

.modal.is-portrait{
  width: min(90vw, 520px);
}

/* =========================
  個人情報保護方針
========================= */
.pp-modal-btn-wrapper {
  color: var(--aqua-green);
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 0.4em 0.7em;
  border: 1px solid var(--aqua-green);
  border-radius: 4px;
  margin-bottom: 50px;
}
#pp-inmodal p, #pp-inmodal ul {
  font-size: 14px;
  line-height: 1.7;
}
#pp-inmodal h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 1.0em 0 0.5em 0;
}
#pp-inmodal h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 1.0em 0 0.5em 0;
}
#pp-inmodal h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin: 1.0em 0 0.5em 0;
}
.linklike {
  color: var(--aqua-green);
}

/* =========================
  スマホ：全画面寄りに
========================= */
@media (max-width: 540px) {
  .modal {
    width: 90vw;
    height: 90vh;
    max-height: 90vh;
    border-radius: 0;
    transform: translate(-50%, -50%);
  }
  .modal-header { padding: 16px 16px 8px; }
  .modal-body { padding: 0 16px 16px; }
  .modal-title { margin-top: 50px; }
}
