/* ========================================
   fmtv - ファミマTV CMセクション
   ======================================== */

/* ----------------------------------------
   共通 : 動画モーダル
   ---------------------------------------- */
.fmtv-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fmtv-modal[hidden] {
  display: none;
}
.fmtv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.fmtv-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(90vw, 900px);
}
.fmtv-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
}
.fmtv-modal__video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.fmtv-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------
   スリムCMバナー (Hero直下)
   ---------------------------------------- */
.fmtv-banner {
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.fmtv-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  padding: 0 100px;
  height: 100px;
}
.fmtv-banner__ftv-logo {
  flex-shrink: 0;
  width: 120px;
  height: auto;
  display: block;
}
.fmtv-banner__text {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  color: #01A33E;
  text-align: center;
}
.fmtv-banner__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 17px 6px 6px;
  border: 1px solid #DEDEDE;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.fmtv-banner__card:hover {
  opacity: 0.75;
}
.fmtv-banner__card-thumb {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.fmtv-banner__card-title {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
}
.fmtv-banner__card-play {
  flex-shrink: 0;
  width: 25px;
  height: 18px;
}

@media screen and (max-width: 639px) {
  .fmtv-banner__inner {
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 25px;
    gap: 12px;
    height: auto;
  }
  .fmtv-banner__ftv-logo {
    width: 100px;
  }
  .fmtv-banner__text {
    font-size: 18px;
    white-space: normal;
  }
  .fmtv-banner__text br {
    display: none;
  }
  .fmtv-banner__card {
    width: 100%;
    max-width: 350px;
  }
  .fmtv-banner__card-title {
    font-size: 15px;
    line-height: 1.3;
  }
}

/* ----------------------------------------
   CM大セクション (Product Tour と Case studies の間)
   ---------------------------------------- */
.fmtv-section {
  background: #000;
  overflow: hidden;
  padding-bottom: 80px;
  position: relative;
  scroll-margin-top: 72px;
}
@media screen and (max-width: 639px) {
  .fmtv-section {
    scroll-margin-top: 60px;
  }
}
.fmtv-section__bg-deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* タイトル */
.fmtv-section__title-block {
  text-align: center;
  padding: 80px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.fmtv-section__title-img {
  max-width: 710px;
  width: 100%;
  height: auto;
  display: inline-block;
}
.fmtv-section__title {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: 45px;
  line-height: 1.2;
  color: #fff;
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.fmtv-sp-br {
  display: none;
}
.fmtv-title-line {
  display: contents;
}
.fmtv-section__title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 17px;
  background: #FABE00;
  border-radius: 2px;
  z-index: -1;
}

/* ロゴ帯 (白背景) */
.fmtv-section__logo-band {
  background: #fff;
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 30px 20px;
  min-height: auto;
  position: relative;
  z-index: 1;
}
.fmtv-section__ftv-logo {
  width: 187px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.fmtv-section__logo-x {
  width: 38px;
  height: auto;
  display: block;
  flex-shrink: 0;
  margin: 0 20px;
}
.fmtv-section__sukedachi-logo {
  width: 240px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* 本文テキスト */
.fmtv-section__body {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  text-align: left;
  margin: 0;
  padding: 0 20px;
  max-width: 900px;
  letter-spacing: -0.0144em;
}
.fmtv-section__body strong {
  font-weight: 800;
  color: #000;
}

/* カード */
.fmtv-section__card {
  position: relative;
  z-index: 1;
  margin: 40px auto 0;
  max-width: 1098px;
  width: calc(100% - 40px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.fmtv-section__card-header {
  background: #FABE00;
  padding: 10px 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.fmtv-section__badge {
  background: #000;
  color: #FABE00;
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  border-radius: 70px;
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fmtv-section__card-subtitle {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #000;
}
.fmtv-section__card-body {
  padding: 28px 28px 28px 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fmtv-section__comments {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fmtv-section__comment-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.fmtv-section__comment-img {
  width: 204px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  background: #ddd;
}
.fmtv-section__comment-name {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.fmtv-section__comment-text {
  font-family: "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
}

/* 動画エリア */
.fmtv-section__video-wrap {
  position: relative;
  width: 92%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.fmtv-section__video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media screen and (max-width: 639px) {
  .fmtv-section__title-block {
    padding: 36px 20px 0;
  }
  .fmtv-section__title-img {
    width: 72%;
  }
  .fmtv-sp-br {
    display: inline;
  }
  .fmtv-section__title {
    display: block;
    font-size: 23px;
    line-height: 1.6;
    isolation: auto;
  }
  .fmtv-section__title::after {
    display: none;
  }
  .fmtv-title-line {
    display: inline;
    background: linear-gradient(transparent 72%, #FABE00 72%);
    padding-bottom: 2px;
  }
  .fmtv-section__logo-band {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
    min-height: auto;
    margin-top: 30px;
  }
  .fmtv-section__ftv-logo {
    width: 150px;
  }
  .fmtv-section__logo-x {
    width: 24px;
    margin: 0 10px;
  }
  .fmtv-section__sukedachi-logo {
    width: 140px;
  }
  .fmtv-section__body {
    font-size: 14px;
    margin-top: 0;
    text-align: center;
  }
  .fmtv-section__card {
    width: calc(100% - 40px);
    margin-top: 28px;
  }
  .fmtv-section__card-header {
    gap: 10px;
    padding: 12px 16px;
    min-height: auto;
  }
  .fmtv-section__badge {
    font-size: 14px;
    padding: 4px 10px;
    line-height: 1;
  }
  .fmtv-section__card-subtitle {
    font-size: 20px;
  }
  .fmtv-section__card-body {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }
  .fmtv-section__comment-item {
    flex-direction: column;
  }
  .fmtv-section__comment-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .fmtv-section__video-wrap {
    width: 100%;
    margin: 0;
  }
  .fmtv-section__bg-deco {
    width: 50%;
  }
}
