@charset "utf-8";

body {
  opacity: 0;
  transition: opacity 1s ease;
}
body.body-fadein {
  opacity: 1;
}

/*---------------headerの設定-------------------------------*/

#header_design {
  position: absolute;
  top: 0;
  width: 100%;
  height: 160px;
  z-index: 999;
}
.header_inner_design {
  width: 100%;
  height: 100%;
  margin-inline: auto;
  padding-block: min(0.69vw, 10px);
  padding-inline: min(1.39vw, 20px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.header_logo_design img {
  width: min(11.11vw, 160px);
}
.header_nav_design {
  display: flex;
  align-items: center;
}
.header_nav_design ul {
  list-style: none;
  display: flex;
  gap: min(1.39vw, 20px);
  margin-top: 20px;
  margin-right: min(1.39vw, 20px);
  padding: 0;
}
.header_nav_design ul li {
  position: relative;
  display: inline-flex;
  gap: 10px;
}
.header_nav_design ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: min(1.11vw, 16px);
  font-weight: 500;
}
.header_nav_design ul li ::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--gold--);
  border-radius: 50%;
}
.header_nav_design ul li a:hover {
  color: var(--primary-color);
}
.header_btn_design .btn_basic {
  background-color: var(--gold--);
  color: var(--white--);
  font-size: min(1.11vw, 16px);
  padding-block: min(0.69vw, 10px);
  padding-inline: min(1.39vw, 20px);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}
.header_btn_design .btn_basic:hover {
  background-color: var(--black--);
}
@media (max-width: 450px) {
  .header_logo_design img {
    width: min(41.86vw, 180px);
  }
}
/*---------------headerの設定終了-------------------------------*/

/*---------------mv_designの設定-------------------------------*/

.mv_top_wrapper_design {
  position: relative;
  aspect-ratio: 1440 / 875; /* 画像の比率に合わせて調整 */
  padding-block: 80px 90px;
}

.mv_top_wrapper_design::before {
  content: "";
  position: absolute;
  top: 5.55%;
  left: 0;
  width: 100%;
  aspect-ratio: 1440 / 800; /* 画像の比率に合わせて調整 */
  background-image: url("../images/image_2.png"); /* デフォルトの画像 */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  margin: auto;
  transition: background-image 0.5s ease-in-out;
}

.mv_top_wrapper_design::after {
  content: "";
  position: absolute;
  bottom: 1.57%;
  left: 0;
  width: 100%;
  aspect-ratio: 1440 / 800; /* 画像の比率に合わせて調整 */
  background-image: url("../images/image_1.png"); /* デフォルトの画像 */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  margin: auto;
  transition: background-image 0.5s ease-in-out;
}

/*-----------------mv_designの画像アニメ-------------------------------*/

/*---------------mv-topの基本設定---------------*/
.mv_top_wrapper_design_mv {
  position: relative;
  /*padding-top: min(2.08vw, 30px);
  padding-inline: min(2.08vw, 30px);
  padding-bottom: min(2.08vw, 30px);*/ /*paddingさせたい場合はコメントアウト解除*/
  overflow-x: hidden; /* 横スクロールを防止 */
  max-width: 100vw; /* 画面幅を超えないように */
}

/*---------------mv-topコンテンツの基本設定---------------*/
.mv_top_content_design {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-x: hidden; /* 横スクロールを明示的に防止 */
  -webkit-mask-image: url("../images/mask.png");
  -webkit-mask-size: 100% 100%;
  mask-image: url("../images/mask.png");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  mask-position: center center;
}

.mv_top_content_design ul {
  /*position: relative;*/ /*/*余白させたい場合はコメントアウト解除*/
  width: 100%;
  aspect-ratio: 2 / 1; /* 2:1の比率を維持 */
  margin-inline: auto;
}

.mv_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0; /* グラデーションより下に配置 */
}

.mv_image.active {
  opacity: 1;
}

/*---------------mv_designの設定終了-------------------------------*/
.mv-title {
  position: absolute;
  top: 10%;
  left: 40%;
  transform: translate(-50%);
  text-align: left;
  color: var(--text-color);
  font-size: clamp(24px, 2.5vw, 72px);
  font-weight: bold;
  z-index: 4;
}
.mv-title-line-mask {
  overflow: hidden;
  display: block;
  width: fit-content;
  padding-right: 5px;
  padding-bottom: 5px;
}
.mv-title-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(150%);
  transition: opacity 0.6s, transform 1s ease-in-out;
  line-height: 1.4;
  background-color: #fff;
  padding: 0.1875rem 0.875rem 0.3125rem;
  border: 1px solid var(--mv-border-color);
  box-shadow: 5px 5px 0 var(--mv-border-color);
}
.mv-title-char {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}
.mv-title-char.show {
  opacity: 1;
  transform: translateY(0);
}

.mv-title-line:nth-child(2) {
  margin-top: 20px;
}

.mv-title-line.show {
  opacity: 1;
  transform: translateY(0);
}

/*---------------mv_designの中のテキスト設定-------------------------------*/

@media screen and (max-width: 768px) {
  .header_logo_design img {
    width: min(20.83vw, 160px);
  }
  .mv_top_wrapper_design_mv {
    margin-top: 0px; /* ヘッダー分の余白 */
  }
  .mv_top_wrapper_design::before {
    top: 5.55%;
    left: 0;
    width: 100%;
    aspect-ratio: 0.72; /* 画像の比率に合わせて調整 */
    background-image: url("../images/image_1_sp.png"); /* デフォルトの画像 */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    margin: auto;
    transition: background-image 0.5s ease-in-out;
  }
  .mv_top_wrapper_design::after {
    content: "";
    position: absolute;
    bottom: 1.57%;
    left: 0;
    width: 100%;
    aspect-ratio: 0.72; /* 画像の比率に合わせて調整 */
    background-image: url("../images/image_2_sp.png"); /* デフォルトの画像 */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    margin: auto;
    transition: background-image 0.5s ease-in-out;
  }
  .mv_top_content_design {
    -webkit-mask-image: url("../images/mask_sp.png");
    -webkit-mask-size: 100% 100%;
    mask-image: url("../images/mask_sp.png");
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-position: center center;
  }
  .mv_top_content_design ul {
    aspect-ratio: 0.72; /* 画像の比率に合わせて調整 */
  }
  .mv-title {
    position: absolute;
    top: 60%;
    left: 40%;
    transform: translate(-50%);
    text-align: left;
    color: var(--text-color);
    font-size: min(4.44vw, 25px);
    font-weight: bold;
    z-index: 4;
  }
}
