/* ==============================
トップページ
==============================*/
/* FVエリア */
section.top_fv {
  position: relative;
  height: 420vh;
}

.top_fv_container {
  position: relative;
  width: 100%;
  height: 100vh;
}

.top_fv_slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 1;
  visibility: visible;
  /* transitionは削除：JavaScriptで直接制御して滑らかに動かす */
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  /* スライドイン効果を滑らかにするための最適化 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.top_fv_slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.top_fv_image {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(#fefefe, #dfdede 80%, #ffffff);
}

.top_fv_image_fixed_bg {
  position: absolute;
  top: 0;
  right: 0;
  content: "";
  width: 100%;
  height: 100%;
  clip-path: inset(0);
  overflow: hidden;
}

.top_fv_image_fixed_img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  display: block;
  width: 100%;
  max-width: 720px;
  height: 100vh;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  will-change: transform, opacity;
  /* opacityはJavaScriptで制御 */
  /* transitionは削除：JavaScriptで直接制御して滑らかに動かす */
  /* パララックス効果を滑らかにするための最適化 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

section.top_fv h1 {
  position: absolute;
  top: 43px;
  left: 27px;
  z-index: 100;
  max-width: 110px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

@media screen and (min-width: 721px) {
  section.top_fv h1 {
    left: calc(50% - 360px + 27px);
    /* bodyのmax-width: 720pxの中央から27px左 */
  }
}

/* FVテキスト */
.top_fv_text {
  position: fixed;
  top: 187px;
  left: 27px;
  z-index: 10;
  max-width: calc(720px - 54px);
  /* bodyのmax-width: 720px内に収める */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}

.top_fv_text.active {
  opacity: 1;
  visibility: visible;
}

@media screen and (min-width: 721px) {
  .top_fv_text {
    left: calc(50% - 360px + 27px);
    /* bodyのmax-width: 720pxの中央から27px左 */
  }
}

.top_fv_text p {
  color: #78736e;
  letter-spacing: .12em;
  line-height: 1.64;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 0 3px rgb(0 0 0 /.2);
}

::-webkit-full-page-media, :future, :root .top_fv_text p {
  text-shadow: none;
}

.top_fv_text p span {
  display: block;
  margin-top: 10px;
  line-height: 1.67;
  font-size: calc(8px * var(--font-scale));
}

.youtube_icon {
  margin-top: 10px;
  pointer-events: auto;
  position: relative;
  z-index: 11;
}

.youtube_icon a {
  pointer-events: auto;
  cursor: pointer;
}

.youtube_icon img {
  max-width: 30px;
}

.top_fv_text ul {
  margin-top: 10px;
}

.top_fv_text ul li {
  position: relative;
  padding-left: 14px;
  color: #78736e;
  letter-spacing: .12em;
  line-height: 1.64;
  font-size: calc(11px * var(--font-scale));
  font-weight: 600;
}

.top_fv_text ul li::before {
  position: absolute;
  top: 3px;
  left: 0;
  content: "";
  width: 12px;
  height: auto;
  aspect-ratio: 26/21;
  background: url(../images/fv_list_icon.png) no-repeat center/cover;
}

@media screen and (min-width: 640px) {
  .top_fv_text ul li::before {
    top: 7px;
  }
}

/* FVリンク */
.fv_links_list {
  position: absolute;
  z-index: 100;
  top: min(53.37vh, 691px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 54px);
  max-width: calc(720px - 54px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.fv_links_list a {
  pointer-events: auto;
}

.fv_links_item {
  display: flex;
}

.fv_links_item_content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 59.375%;
  padding: 9px 14px 7px;
  background: rgb(255 255 255 / .85);
}

.fv_links_item_content p {
  color: var(--main-color);
  letter-spacing: .12em;
  line-height: 1.33;
  text-align: center;
  font-size: calc(9px * var(--font-scale));
  font-weight: bold;
}

.fv_links_item:nth-of-type(2) .fv_links_item_content p {
  color: #d2b9d7;
}

.fv_links_item:nth-of-type(3) .fv_links_item_content p {
  color: #ebb491;
}

.fv_links_item_title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: linear-gradient(to right, rgb(230 175 185 / .8), rgb(235 180 145 / .8));
}

.fv_links_item:nth-of-type(2) .fv_links_item_title {
  background: linear-gradient(to right, rgb(230 175 185 / .8), rgb(210 185 215 / .8));
}

.fv_links_item:nth-of-type(3) .fv_links_item_title {
  background: linear-gradient(to right, rgb(240 210 155 / .8), rgb(235 180 145 / .8));
}

.fv_links_item_title p {
  color: #fff;
  letter-spacing: .12em;
  line-height: 1.1;
  font-size: calc(9px * var(--font-scale));
  font-weight: bold;
}

/* スクロールダウン */
.scroll_down {
  position: absolute;
  z-index: 100;
  top: min(78.11vh, 900px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: fit-content;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.scroll_down p {
  color: #fff;
  letter-spacing: .12em;
  line-height: 1;
  font-size: 11px;
}

.scroll_down img {
  max-width: 12px;
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  50% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ママニエールについて */
.top_about {
  position: relative;
  z-index: 101;
  padding-top: 56px;
  padding-bottom: 56px;
  background: url(../images/about_bg.jpg) no-repeat center bottom/ cover;
}

.about_text {
  margin-bottom: 20px;
  text-align: center;
  color: var(--main-color);
  line-height: 2;
  letter-spacing: 0;
  font-size: calc(12px * var(--font-scale));
  font-weight: bold;
}

/* トップバナー */
.top_banner {
  position: relative;
  z-index: 101;
  padding: 60px 0;
  background: #fff;
}

.banner_image {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* トップ YouTube */
.top_youtube {
  position: relative;
  z-index: 101;
  padding: 30px 0 34px;
  background: url(../images/shadow_top.png) repeat-x left top / 100% auto, url(../images/shadow_bottom.png) repeat-x left bottom / 100% auto;
  background-color: #dcd7d7;
}

.youtube_content {
  display: flex;
  gap: 9px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.youtube_content:hover {
  opacity: 0.8;
}

.youtube_text {
  width: 100%;
}

.youtube_text h2 {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 15px 4px;
  background: #fff;
  border-radius: 3px;
  color: var(--main-color);
  text-align: center;
  letter-spacing: .12em;
  line-height: 1.1;
  font-size: calc(10px * var(--font-scale));
}

.youtube_text p {
  color: #fff;
  letter-spacing: .12em;
  line-height: 1.5;
  font-size: calc(10px * var(--font-scale));
  font-weight: 600;
}

.youtube_text p span {
  font-size: calc(8px * var(--font-scale));
  font-weight: normal;
}

.youtube_img {
  flex-shrink: 0;
  width: 56%;
}

/* ==============================
PC表示
==============================*/
@media screen and (min-width: 605px) {


  .scroll_down {
    top: min(129vw, 900px);
  }
}

@media screen and (min-width: 668px) {
  .fv_links_list {
    top: min(52vw, 600px);
  }

  .scroll_down {
    top: min(75vw, 840px);
  }
}

@media screen and (min-width: 721px) {}

/* ==============================
YouTubeモーダル
==============================*/
.youtube_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.youtube_modal.active {
  display: block;
}

.youtube_modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.youtube_modal_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  background: #000;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.youtube_modal_close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.youtube_modal_close:hover {
  opacity: 0.7;
}

.youtube_modal_iframe_wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.youtube_modal_iframe_wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 640px) {
  .youtube_modal_content {
    width: 95%;
    padding: 10px;
  }

  .youtube_modal_close {
    top: -35px;
    font-size: 35px;
    width: 35px;
    height: 35px;
  }
}

/* ==============================
caution
==============================*/
.caution {
  position: relative;
  z-index: 101;
  padding: 40px 10px 20px;
  background: #fff;
  font-size: 80%;
}