@charset "utf-8";

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  color: var(--primary);
  font-weight: normal;
  line-height: 1.2;
}
.section-title__jp {
  font-size: 1.25rem;
  letter-spacing: 2px;
}
body {
  background-image: -webkit-image-set(
    url("../img/top/bg_line1.png") 1x,
    url("../img/top/bg_line1@2x.png") 2x
  );
  background-image: image-set(
    url("../img/top/bg_line1.png") 1x,
    url("../img/top/bg_line1@2x.png") 2x
  );
  background-size: 3553px 1360px;
  background-position: top -280px left -2000px;
  background-repeat: no-repeat;
}

@media (width < 769px) {
  .section-title__jp {
    font-size: 3.438vw;
    letter-spacing: 0px;
  }
  body {
    background-image: -webkit-image-set(
      url("../img/top/bg_line1_sp.png") 1x,
      url("../img/top/bg_line1_sp@2x.png") 2x
    );
    background-image: image-set(
      url("../img/top/bg_line1_sp.png") 1x,
      url("../img/top/bg_line1_sp@2x.png") 2x
    );
    background-size: 555.313vw 212.5vw;
    background-position: -287.5vw -64.062vw;
  }
}

/*
上部コンテンツ
================================================ */
.trouble-report {
  padding: 60px 40px 40px;
}
.trouble-report__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 310px);
  gap: 40px;
}
h1.header-logo{
  font-weight: 400;
}
@media (width < 769px) {
  .trouble-report {
    padding: 0 0 5.25vw;
  }
  .trouble-report__inner {
    grid-template-columns: 1fr;
    gap: 6.25vw;
  }
}
/* =========================
  左カラム
========================= */
.report-feature {
  position: relative;
  min-width: 0;
  width: 100%;
}
.report-swiper {
  width: 100%;
}
.report-card__link {
  display: block;
}
.report-card__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.report-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.report-card__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 16px;
  background: var(--primary-midium);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.report-card__body {
  padding-top: 20px;
}
.report-card__title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
}
.report-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  list-style: none;
}
.report-card__tags span {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #676767;
}
@media (width < 769px) {
  .report-card__label {
    padding: 4px 8px;
    font-size: 3.2vw;
  }
  .report-card__body {
    padding: 3.125vw;
  }
  .report-card__title {
    font-size: 4vw;
    line-height: 1.5;
  }
  .report-card__tags {
    gap: .5em;
    margin: 1.875vw 0 0;
    line-height: 1;
  }
  .report-card__tags span {
    font-size: 3vw;
  }
}

/* 矢印 */
.report-button {
  pointer-events: auto;
  position: absolute;
  top: 38%;
  width: 50px;
  height: 50px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
  transition: background 0.25s, color 0.25s, transform 0.25s;
  z-index: 1;
}
.report-button:hover {
  background: var(--primary);
  color: #fff;
}
.report-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.report-prev {
  left: -20px;
}
.report-button span {
  position: relative;
  display: inline-block;
  width: 11.6px;
  height: 22.2px;
}
.report-button span::before,
.report-button span::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: -2px;
  width: 16px;
  height: 1px;
  border-radius: 9999px;
  background-color: var(--primary);
  transform-origin: 0.5px 50%;
}
.report-button:hover span::before,
.report-button:hover span::after {
  background-color: #fff;
}
.report-button span::before {
  transform: rotate(45deg);
}
.report-button span::after {
  transform: rotate(-45deg);
}
.report-next {
  right: -20px;
}
.report-button.report-next span::before,
.report-button.report-next span::after {
  right: -2px;
  left: auto;
  transform-origin: calc(100% - 0.5px) 50%;
}
@media (width < 769px) {
  .report-button {
    top: 34%;
    width: 7.031vw;
    height: 6.875vw;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, .16);
  }
  .report-button:focus-visible {
    outline: 1px solid var(--primary);
    outline-offset: 1.5px;
  }
  .report-prev {
    left: 0;
  }
  .report-button span {
    width: 1.406vw;
    height: 2.813vw;
  }
  .report-button span::before,
  .report-button span::after {
    top: calc(50% - 0.5px);
    left: 0;
    width: 1.406vw;
  }
  .report-next {
    right: 0;
  }
  .report-button.report-next span::before,
  .report-button.report-next span::after {
    right: 0;
  }
}

/* =========================
  右カラム
========================= */
.trouble-nav__title {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  font-weight: 500;
}
.trouble-nav__groups {
  margin-top: 20px;
}
.trouble-group + .trouble-group {
  margin-top: 20px;
}
.trouble-group__title {
  position: relative;
  margin: 0 0 8px;
  padding-left: 34px;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}
.trouble-group__title::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  content: "";
  display: block;
}
.trouble-group.hairtype .trouble-group__title::before {
  width: 31px;
  height: 35px;
  background-size: 31px 35px;
  background-image: url("../img/icon_hairtype.svg");
}
.trouble-group.scalp .trouble-group__title::before {
  width: 33px;
  height: 36px;
  background-size: 33px 36px;
  background-image: url("../img/icon_scalp.svg");
}
.trouble-group.damage .trouble-group__title::before {
  width: 32px;
  height: 39px;
  background-size: 32px 39px;
  background-image: url("../img/icon_damage.svg");
}
.trouble-group.aging .trouble-group__title::before {
  width: 30px;
  height: 36px;
  background-size: 30px 36px;
  background-image: url("../img/icon_aging.svg");
}

.trouble-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trouble-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 5px;
  border-radius: 999px;
  background: var(--bg-light);
  font-size:  0.750rem;
  line-height: 1.4;
  font-weight: 400;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.trouble-chip:hover {
  background: var(--primary);
  color: #fff;
}
.trouble-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (width < 769px) {
  .trouble-nav {
    display: none;
  }
}

/*
NEW ARTICLES
================================================ */
.new-articles {
  position: relative;
  padding: 0 40px 40px;
  overflow: hidden;
}
.new-articles::before {
  position: absolute;
  top: -300px;
  left: -740px;
  content: "";
  display: block;
  width: 5139px;
  height: 1622px;
  background-image: image-set(
    url("../img/top/bg_line2.png") 1x,
    url("../img/top/bg_line2@2x.png") 2x
  );
  background-size: 5139px 1622px;
  background-repeat: no-repeat;
  z-index: -1;
}
.new-articles .section-title {
  margin: 0 auto 20px auto;
}
.new-articles .section-title__en {
  margin-left: auto;
  font-size: 4.6rem;
}
.new-articles__inner {
  max-width: 1024px;
  margin: 0 auto;
}
.new-articles__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 17px;
  list-style: none;
}
.new-articles__item {
  min-width: 0;
}

.article-card {
  height: 100%;
}
.article-card__link {
  display: block;
  height: 100%;
}
.article-card__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-light);
}
.article-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.archive-card__thumb {
  background-color: #f0f0f0;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}
.archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.archive-card__thumb img:hover {
  transform: scale(1.04);
}
.archive-card__thumb img.is-dummy {
  object-fit: contain;
  padding: 20px;
  opacity: 0.3;
}
.article-card__body {
  padding-top: 16px;
}
.article-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.7;
}

.new-articles__footer {
  margin-top: 30px;
  text-align: center;
}
.new-articles__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 60px;
  padding: 0 25px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #FFF;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.new-articles__more::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.new-articles__more:hover::after,
.new-articles__more:focus-visible::after {
  transform: translateX(2px) rotate(45deg);
}
.archive-card__badge-position{
	position: absolute;
	bottom: 0;
}
@media (max-width: 991px) {
  .new-articles {
    padding: 0 4.688vw 13.125vw;
  }
  .new-articles::before {
    top: -29.687vw;
    left: -210.937vw;
    width: 802.969vw;
    height: 253.437vw;
    background-image: image-set(
      url("../img/top/bg_line2_sp.png") 1x,
      url("../img/top/bg_line2_sp@2x.png") 2x
    );
    background-size: 802.969vw 253.437vw;
  }
  .new-articles .section-title {
    flex-direction: row;
    justify-content: space-between;
    margin: 0 0 3.125vw;
    width: auto;
  }
  .new-articles .section-title__en {
    margin: 0;
    font-size: 9vw;
  }
  .new-articles__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4.688vw 3.125vw;
  }
  .article-card__body {
    padding-top: 2.5vw;
  }
  .article-card__title {
    font-size: 3.3vw;
    line-height: 1.375em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .new-articles__footer {
    margin-top: 8vw;
  }
  .new-articles__more {
    min-width: 60%;
    min-height: auto;
    padding: 3.125vw;
    font-size: 3.125vw;
  }
  .new-articles__more::after {
    right: 3.438vw;
    width: 2.813vw;
    height: 2.813vw;
  }
  .new-articles__more:hover::after,
  .new-articles__more:focus-visible::after {
    transform: translateX(1px) rotate(45deg);
  }
}

/*
PICK UP
================================================ */
.pickup {
  position: relative;
  padding: 30px 40px 30px 60px;
  background-image: image-set(
    url("../img/top/bg_pickup.jpg") 1x,
    url("../img/top/bg_pickup@2x.jpg") 2x
  );
  background-size: cover;
  z-index: 1;
}
.pickup .section-title {
  flex-shrink: 0;
}
.pickup .section-title__en {
  font-size: 4.6rem;
}
.pickups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  width: 100%;
  justify-content: center;
}
.pickup-tag {
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 20px 9px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
  display: block;
}
.pickup-tag:hover {
  color: var(--primary-midium);
  background: var(--primary-light);
}
.pickup-tag::before {
  content: "#";
  color: var(--primary-midium);
  margin-right: 4px;
  font-weight: bold;
}

@media (width < 769px) {
  .pickup {
    flex-direction: column;
    padding: 6vw 3.688vw 6vw;
    background-image: image-set(
      url("../img/top/bg_pickup_sp.jpg") 1x,
      url("../img/top/bg_pickup_sp@2x.jpg") 2x
    );
  }
  .pickup .section-title {
    flex-direction: row;
    justify-content: space-between;
    top: -4.687vw;
    left: 4.688vw;
    width: auto;
    gap: 4.063vw;
  }
  .pickup .section-title__en {
    font-size: 9vw;
  }
  .pickups-list {
    margin: 4vw 0 0 0;
    gap: 1.5vw;
    width: 100%;
  }
  .pickup-tag {
    font-size: 2.813vw;
    padding: 1.563vw 3.25vw;
    border-radius: 1.875vw;
  }
}

/*
RANKING
================================================ */
.ranking-section {
  padding: 30px 40px 150px;
  background: var(--primary-light);
}
.ranking-section__inner {
  max-width: 1024px;
  margin: 0 auto;
}
.ranking-section__header {
  margin-bottom: 80px;
}
.ranking-section .section-title {
  margin: 0 auto;
  align-items: center;
}
.ranking-section .section-title__en {
  font-size: 4.6rem;
}
.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ranking-list__item {
  min-width: 0;
}
.ranking-card {
  height: 100%;
}
.ranking-card__link {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
.ranking-card__rank {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 1;
}
.ranking-card__rank-number {
  color: var(--primary);
  font-size: 2.8125rem;
  line-height: 1;
  position: absolute;
  top: -10px;
  left: 10px;
}
.ranking-card__rank::after {
  content: "";
  position: absolute;
  top: 0;
  left: 68px;
  width: 2px;
  height: 90px;
  background: var(--primary);
  transform: rotate(44deg);
  transform-origin: top left;
}
.ranking-card__rank::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ranking-card__figure {
  background-color: #f0f0f0;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}
.ranking-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ranking-card__body {
  min-width: 0;
}
.ranking-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.ranking-card__meta {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ranking-card__date {
  display: block;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ranking-card__link:hover .ranking-card__image,
.ranking-card__link:focus-visible .ranking-card__image {
  transform: scale(1.04);
}

@media (width < 1540px) {
  .ranking-section {
    padding: 30px 40px;
  }
}
@media (width < 1000px) {
  .ranking-card__link {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 10px;
  }
  .ranking-card__title {
    font-size: 1rem;
  }
}
@media (width < 900px) {
  .ranking-card__link {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .ranking-card__title {
    font-size: 0.872rem;
  }
}
@media (width < 769px) {
  .ranking-section {
    padding: 3.25vw 3.688vw 5.25vw;
  }
  .ranking-section__header {
    margin-bottom: 7.813vw;
  }
  .ranking-section .section-title {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    width: auto;
  }
  .ranking-section .section-title__en {
    font-size: 9vw;
  }
  .ranking-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap:3vw;
  }
  .ranking-card__link {
    grid-template-columns: 20vw minmax(0, 1fr);
    column-gap: 3vw;
  }
  .ranking-card__rank {
    top: 0;
    left: 0;
  }
  .ranking-card__rank-number {
    font-size: 5.625vw;
    top: -1.25vw;
    left: 0;
  }
  .ranking-card__rank::after {
    left: 7.813vw;
    width: 0.313vw;
    height: 12.5vw;
  }
  .ranking-card__rank::before {
    width: 8.438vw;
    height: 8.438vw;
  }
  .ranking-card__title {
    font-size: 3.2vw;
  }
  .ranking-card__meta {
    margin-top: 0px;
    font-size: 3.125vw;
  }
  .ranking-card__date {
    margin-top: 0px;
    font-size: 3.125vw;
  }
}

/*
MOVIES
================================================ */
.movies {
  position: relative;
  margin-top: -100px;
}
.movies__content {
  margin-left: auto;
  padding: 180px 50px 180px 0;
  width: 72.917vw;
  height: 30vw;
  background: #B4A9D0;
}
.movies__header {
  margin-left: auto;
  width: fit-content;
}
.movies__title {
  margin: 0;
  color: #fff;
  font-family: serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}
.movies .section-title__en {
  font-size: 4.6rem;
}
.movie-button.swiper-button-disabled {
  opacity: 0.2 !important;
  cursor: default !important;
}
@media (width < 1540px) {
  .movies {
    margin-top: 0;
    padding: 30px 0;
    background: #B4A9D0;
  }
  .movies__content {
    margin-left: 0;
    padding: 0 40px 30px;
    width: 100%;
	height: auto;
  }
  .movies__header {
    width:100%;
  }
  .movies__title {
    margin: 0 auto;
  }
}
@media (width < 769px) {
  .movies {
    padding: 6.25vw 0 8.438vw;
  }
  .movies .section-title__en {
    font-size: 9vw;
  }
  .movies__content {
    padding: 0 4.688vw 6.25vw;
  }
  .movies__header {
    margin-left: 0;
    width: auto;
  }
  .movies__title {
    flex-direction: row;
    justify-content: space-between;
    width: auto;
  }
}
/* ============================================================
   動画モーダル内：白いボックス自体を画面内で縦スクロールさせる記述
   ============================================================ */
.movie-modal__inner {
  max-height: calc(100vh - 80px) !important; /* ボックスの高さを画面の高さより少し低くロック */
  overflow-y: auto !important; /* 中身が溢れたら、この白い箱の中で縦スクロールさせる */
  -webkit-overflow-scrolling: touch !important; /* スマホでのスクロールを滑らかにする記述 */
}

/* タブレット・スマホ用の高さ微調整（画面外への突き抜け防止） */
@media (width < 1050px) {
  .movie-modal__inner {
    max-height: calc(100vh - 8vw) !important;
  }
}
@media (width < 769px) {
  .movie-modal__inner {
    max-height: calc(100vh - 120px) !important; /* スマホは上に閉じるボタンがあるため、少し低めに制限 */
  }
}
/* =========================
  動画スライダー
========================= */
.l-movie {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  overflow: hidden;
}
.inner-movie {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  width: 80%;
}
.movie-swiper {
  margin-left:  0;
  width: 100%;
}
.movie-card {
  cursor: pointer;
}
.l-movie-button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.movie-button {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  z-index: 1;
}
.movie-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.movie-button span {
  position: relative;
  display: inline-block;
  width: 11.6px;
  height: 22.2px;
}
.movie-button span::before,
.movie-button span::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: -2px;
  width: 16px;
  height: 1px;
  border-radius: 9999px;
  background-color: #fff;
  transform-origin: 0.5px 50%;
}
.movie-button span::before {
  transform: rotate(45deg);
}
.movie-button span::after {
  transform: rotate(-45deg);
}
.movie-button.movie-next span::before,
.movie-button.movie-next span::after {
  right: -2px;
  left: auto;
  transform-origin: calc(100% - 0.5px) 50%;
}

@media (width < 1540px) {
  .l-movie {
    position: static;
    transform: translateY(0);
  }
  .inner-movie {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin-inline: 0;
  }
  .movie-swiper {
    margin-left: 0;
    overflow: visible;
  }
  .l-movie-button {
	width: 100vw;
	justify-content: center;
	margin-right: 0;
  }
  .movie-card img {
    width: 100%;
  }
}
@media (width < 769px) {
  .inner-movie {
    gap: 3.125vw;
    width: 100%;
    margin-inline: 0;
  }
  .l-movie-button {
    gap: 1.563vw;
  }
  .movie-button {
    width: 9.063vw;
    height: 9.063vw;
  }
  .movie-button:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 1.5px;
  }
  .movie-button span {
    width: 1.875vw;
    height: 3.75vw;
  }
  .movie-button span::before,
  .movie-button span::after {
    left: 0;
    width: 2.344vw;
  }
  .movie-button.movie-next span::before,
  .movie-button.movie-next span::after {
    right: 0;
  }
}

/* =========================
  モーダル
========================= */
.movie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.l-movie-modal {
  width: min(960px, 100%);
  max-height: calc(100vh - 80px);
  position: relative;
}
.movie-modal.is-open {
  display: flex;
}
.movie-modal__media {
  width: 100%;
}
.movie-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
}
.movie-modal__inner {
  position: relative;
  z-index: 1;
  padding: 30px 0 30px 30px;
  background: #fff;
  overflow: auto;
}
.movie-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.movie-modal__close::before,
.movie-modal__close::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #707070;
}
.movie-modal__close::before {
  transform: rotate(45deg);
}
.movie-modal__close::after {
  transform: rotate(-45deg);
}

/* モーダルコンテンツ */
.movie-modal__content {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}
.movie-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.movie-modal__body {
  min-width: 0;
}
.movie-modal__title {
  margin-bottom:20px;
  padding: 20px 40px;
  font-size: 1rem;
  line-height: 1.3;
}
.movie-modal__tags {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 60px;
  padding: 0 40px;
  line-height: 1;
}
.movie-modal__tags a {
  color: #676767;
  font-size: 0.875rem;
}
.movie-modal__recommend {
  padding: 30px 40px;
  background: var(--primary-light);
}
.movie-modal__recommend-figure img {
  width: 100%;
  height: 127px;
  object-fit: cover;
}
.movie-modal__recommend-title {
  margin: -54px 0 20px;
  color: var(--primary);
  font-size: 2.125rem;
  font-weight: 500;
  line-height: 1;
}
.movie-modal__recommend-list {
  display: flex;
  gap: 24px;
}
.movie-modal__recommend-list li {
  width: 233px;
}
.movie-modal__recommend-article-title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.movie-modal__products {
  padding: 20px 40px;
}
.movie-modal__products-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13.333px;
}
.movie-modal__products-list li {
  width: 150px;
}
.movie-modal__product-figure {
  margin-bottom: 10px;
  width: 150px;
  height: 150px;
  object-fit: cover;
}
.movie-modal__product-name,
.movie-modal__product-price {
  font-size: 0.875rem;
  line-height: 1.7;
}

@media (width < 1050px) {
  .movie-modal {
    padding: 3.81vw;
  }
  .movie-modal__content {
    grid-template-columns: 34.286vw minmax(0, 1fr);
  }
  .movie-modal__inner {
    padding: 2.857vw 0 2.857vw 2.857vw;
  }
  .movie-modal__recommend-list {
    gap: 2.286vw;
  }
  .movie-modal__recommend-title {
    margin: -5.143vw 0 1.905vw;
    font-size: 3.238vw;
  }
  .movie-modal__title {
    padding: 1.905vw;
    font-size: 1.714vw;
	
  }
  .movie-modal__tags {
    gap: 0.952vw 1.714vw;
    margin-bottom: 5.714vw;
    padding: 0 1.905vw;
  }
  .movie-modal__tags a {
    font-size: 1.333vw;
  }
  .movie-modal__recommend {
    padding: 2.857vw 3.81vw;
  }
  .movie-modal__recommend-figure img {
    height: 12.095vw;
  }
  .movie-modal__recommend-article-title {
    font-size: 1.524vw;
  }
  .movie-modal__products {
    padding: 1.905vw 1.429vw;
  }
  .movie-modal__products-list {
    gap: 1.27vw;
  }
  .movie-modal__products-list li {
    width: 14.286vw;
  }
  .movie-modal__product-figure {
    margin-bottom: 0.952vw;
    width: 14.286vw;
    height: 14.286vw;
  }
  .movie-modal__close {
    top: 1.429vw;
    right: 1.429vw;
    width: 2.857vw;
    height: 2.857vw;
  }
  .movie-modal__close::before,
  .movie-modal__close::after {
    top: 1.333vw;
  }
  .movie-modal__product-name,
  .movie-modal__product-price {
    font-size: 1.333vw;
  }
}

@media (width < 769px) {
  .movie-modal {
    padding: 4.688vw;
  }
  .movie-modal__inner {
    max-height: calc(100vh - 25vw);
    padding: 4.688vw 4.688vw 4.688vw 4.688vw;
  }
  .movie-modal__close {
    top: -8.125vw;
    right: 0;
    padding: 3.125vw;
    width: 3.125vw;
    height: 3.125vw;
  }
  .movie-modal__close::before,
  .movie-modal__close::after {
    top: 2.188vw;
    height: 1px;
    background: #fff;
  }
  .movie-modal__content {
    grid-template-columns: 1fr;
  }
  .movie-modal__title {
    padding: 3.125vw 0 1.563vw;
    font-size: 5vw;
  }
  .movie-modal__tags {
    gap: 1.563vw 2.813vw;
    margin-bottom: 9.375vw;
    padding: 0;
  }
  .movie-modal__tags a {
    font-size: 2.188vw;
  }
  .movie-modal__recommend {
    padding: 4.688vw 3.125vw;
  }
  .movie-modal__recommend-figure img {
    height: 19.844vw;
  }
  .movie-modal__recommend-title {
    margin: -8.437vw 0 3.125vw;
    font-size: 6.25vw;
  }
  .movie-modal__recommend-list {
    gap: 2.5vw;
  }
  .movie-modal__recommend-list li {
    width: 36.406vw;
  }
  .movie-modal__recommend-article-title {
    margin-top: 1.563vw;
    font-size: 2.813vw;
  }
  .movie-modal__products {
    padding: 3.125vw 0;
  }
  .movie-modal__products-list {
    gap: 2.083vw;
  }
  .movie-modal__products-list li {
    width: 23.438vw;
  }
  .movie-modal__product-figure {
    margin-bottom: 3.125vw;
    width: 23.438vw;
    height: 23.438vw;
  }
  .movie-modal__product-name,
  .movie-modal__product-price {
    font-size: 02.813vw;
    line-height: 1.3;
  }
}
/* ============================================================
   動画モーダル内：Grid暴走バグ・矢印見切れ・閉じるボタン位置崩れ 完全修正
   ============================================================ */

/* 1. Swiperのバグを引き起こすGrid構造を、安全なFlexbox構造に上書き */
.movie-modal__content {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* 左側：動画エリアの横幅を360pxに固定 */
.movie-modal__content > .movie-modal__media {
  flex: 0 0 360px !important;
  width: 360px !important;
  min-width: 0 !important;
}

/* 右側：テキスト・商品エリア。絶対に右にはみ出さないように制御 */
.movie-modal__body {
  flex: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important; /* 横へのはみ出しをここで完全にトリミング */
}

/* 親ボックス（白い背景）自体が右に広がるのを絶対阻止 */
.movie-modal__inner {
  max-width: min(960px, 100%) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important; /* 横スクロールバーの発生を防ぐ */
}

/* 2. 商品セクション全体の余白調整 */
.movie-modal__products.has-slider {
  position: relative !important;
  padding: 20px 40px !important; /* 元々の左右40pxの余白を維持 */
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* スライダー本体の横幅 */
.movie-product-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* 商品リストの縦落ちと中央寄せを完全解除 */
.movie-modal__products.has-slider .movie-modal__products-list.swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 商品カードのサイズ固定 */
.movie-product-swiper .swiper-slide {
  width: 155px !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

/* 3. 左右矢印の位置調整（左右40pxの余白の内側に安全に配置して見切れを解消） */
.movie-product-prev,
.movie-product-next {
  position: absolute !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.movie-product-prev:hover,
.movie-product-next:hover {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* 余白の内側に寄せることで見切れを完全に防ぎます */
.movie-product-prev { left: 8px !important; }
.movie-product-next { right: 8px !important; }

/* 矢印の不等号マーク */
.movie-product-prev::after,
.movie-product-next::after {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  border-top: 2px solid #fff !important;
  border-right: 2px solid #fff !important;
  display: block !important;
}
.movie-product-prev::after { transform: rotate(-135deg) !important; margin-left: 2px !important; }
.movie-product-next::after { transform: rotate(45deg) !important; margin-right: -2px !important; }

.movie-product-prev.swiper-button-disabled,
.movie-product-next.swiper-button-disabled {
  opacity: 0.15 !important;
  pointer-events: none !important;
}

/* タブレットサイズ（1050px未満）のレスポンシブ上書き */
@media (width < 1050px) {
  .movie-modal__content {
    display: flex !important;
  }
  .movie-modal__content > .movie-modal__media {
    flex: 0 0 34.286vw !important;
    width: 34.286vw !important;
  }
  .movie-modal__products.has-slider {
    padding: 1.905vw 4vw !important;
  }
  .movie-product-prev { left: 1vw !important; }
  .movie-product-next { right: 1vw !important; }
}

/* スマホサイズ（769px未満）のレスポンシブ上書き */
@media (width < 769px) {
  .movie-modal__content {
    display: flex !important;
    flex-direction: column !important; /* 縦並びに変更 */
  }
  .movie-modal__content > .movie-modal__media {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  .movie-modal__products.has-slider {
    padding: 3.125vw 6vw !important;
  }
  .movie-product-prev { left: 1.5vw !important; }
  .movie-product-next { right: 1.5vw !important; }
}