@charset "UTF-8";

:root {
  /* 色管理用の変数 */
  --white-color: #fff;
  --black-color: #2b2b2b;
  --gray-color: #eef1f6;
  --gray-color02: #c0c0c0;
  --gray-color03: rgb(192, 192, 192, 0.5);
  --gray-color04: #d9d9d9;
  --gray-color05: #eef1f6;
  --gray-color06: #aaaaaa;
  --primary-color: #03417a;
  --accent-color: #037a33;
  --point-color: #ff8001;
  --contact-color: #ad0000;
}

:root {
  /* コンテンツ幅管理用の変数 */
  --content-width-sm: 800px;
  --content-width: 960px;
  --content-width-lg: 1100px;
}

:root {
  /* z-index管理用の変数 */
  --z-index-back: -1;
  --z-index-default: 1;
  --z-index-page-top: 50;
  --z-index-header: 100;
  --z-index-menu: 150;
  --z-index-modal: 200;
}

body {
  color: var(--black-color);
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.1em;
  background: var(--black-color);
  font-family: "Zen Kaku Gothic New", sans-serif;
}
html {
  background: var(--black-color);
}

/* ---------- layout ---------- */

.l_header {
  height: 126px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-index-header);
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (min-width: 1025px) {
  .l_header {
    padding: 0 30px 0 40px;
    height: 132px;
  }
}

.l_header-logo {
  width: 206px;
  z-index: var(--z-index-modal);
}
@media screen and (min-width: 1025px) {
  .l_header-logo {
    width: 300px;
  }
}

.l_header-logo_link {
  display: block;
}

.l_header-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-index-menu);
  background: var(--white-color);
}

.l_header-nav_list {
  display: flex;
  gap: 30px;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 240px;
  align-items: flex-start;
  margin: auto;
}

.l_header-nav_item {
  z-index: var(--z-index-page-top);
  font-size: 14px;
}

.l_header-nav_links-sp {
  display: flex;
  flex-direction: column;
}

.l_header-nav_link {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.l_header-nav_links-sp.u_lg-dn {
  display: flex;
  flex-direction: column;
}

.l_header_social-icons {
  display: flex;
  width: 240px;
  margin-bottom: 35px;
  gap: 10px;
}

.l_header_social-icon {
  width: 24px;
}
/*---------- module ----------*/

.m_hamburger {
  display: block;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: var(--z-index-modal);
  margin-right: 20px;
}

.m_hamburger::before {
  content: "";
  background: var(--primary-color);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.m_hamburger:hover.m_hamburger::before {
  background: var(--white-color);
}

.m_hamburger-bar {
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  background: var(--white-color);
}
.m_hamburger:hover .m_hamburger-bar {
  background: var(--primary-color);
}
.m_hamburger-bar:nth-child(1) {
  top: 0;
}

.m_hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.m_hamburger-bar:nth-child(3) {
  top: 100%;
  transform: translateY(-100%);
}

/* ---------- js ---------- */
.js_body.is-active {
  overflow: hidden;
}

.js_hamburger-bar {
  transition: top 0.24s, transform 0.24s, opacity 0.24s;
}

.js_hamburger.is-active .m_hamburger-bar:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
}

.js_hamburger.is-active .m_hamburger-bar:nth-child(2) {
  transform: translate(50%, -50%);
  opacity: 0;
}

.js_hamburger.is-active .m_hamburger-bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-135deg);
}

.js_copy,
.js_sub-copy {
  overflow: hidden;
}

.js_nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}

.js_nav.is-active {
  opacity: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---------- utility ---------- */

.u_sm-dn {
  display: none;
}

@media screen and (min-width: 1025px) {
  .u_sm-dn {
    display: block;
  }
}

@media screen and (min-width: 1025px) {
  .u_lg-dn {
    display: none;
  }
}

/* 待機画面のスタイル（モバイルファースト） */
.waiting-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--black-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease-out;
}

.waiting-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.waiting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.waiting-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.waiting-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}
@media screen and (min-width: 1025px) {
  .waiting-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
  }
}

.waiting-subtitle {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 1s forwards;
  text-align: left;
  font-size: 14px;
}
@media screen and (min-width: 500px) {
  .waiting-subtitle {
    margin-bottom: 58px;
    text-align: center;
    font-size: 16px;
  }
}

.opening_start-button {
  padding: 20px 100px;
  font-size: 18px;
  font-weight: bold;
  color: var(--white-color);
  background: var(--primary-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgb(3, 65, 122, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  line-height: 1;
  transition: 0.3s cubic-bezier(0.45, 0, 0.55, 1);
  animation: fadeInUp 1s ease-out 1.5s forwards;
  opacity: 0;
}

.opening_start-button:hover {
  background: var(--white-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.opening_start-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.opening_start-button:hover::before {
  left: 100%;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* メイン動画画面のスタイル（モバイルファースト） */
.video-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: var(--z-index-modal);
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opening_skip-button {
  display: none;
}

/* トップページのスタイル（モバイルファースト） */
.top-page {
  position: relative;
  min-height: 100svh;
  display: none;
  opacity: 0;
  /* transition: opacity 1s ease-in; */
  z-index: 1;
}

.top-page.show {
  display: block;
  opacity: 1;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
  display: none; /* モバイルでは隠す */
}

/* ハンバーガーメニュー（モバイル用） */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* メインコンテンツ（モバイルファースト） */
.hero-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 147px 20px 20px;
  position: relative;
}

@media screen and (min-width: 1025px) {
  .hero-content {
    flex-direction: row;
    padding: 60px 20px 20px;
  }
}

.hero-left-section {
  max-width: 470px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease-out 1s forwards;
  line-height: 2;
}
@media screen and (min-width: 1025px) {
  .hero-subtitle {
    font-size: 16px;
  }
}

/* モバイル用のスワイプナビゲーション */
.opening_sp_container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 20px 20px 0 0;
  padding: 20px 0 30px;
  z-index: var(--z-index-page-top);
}

.opening_sp_header {
  text-align: center;
  position: relative;
}

.opening_sp_header::after {
  content: "";
  background: url(../img/swipe.png) center / cover;
  position: absolute;
  width: 40px;
  height: 40px;
  left: 70%;
  bottom: -185px;
  z-index: 1000;

  animation: sway-cycle 7s infinite;
}

@keyframes sway-cycle {
  /* 0%〜28.6%: 5秒間待機 */
  0% {
    transform: translate(0px, 0);
  }
  28.6% {
    /* 7秒の28.6% ≈ 2秒後まで待機 */
    transform: translate(0px, 0);
  }
  /* 28.6%〜57.2%: 2秒間で右左に動く */
  42.9% {
    /* 7秒の42.9% ≈ 3秒後に右へ */
    transform: translate(40px, 0);
  }
  57.2% {
    /* 7秒の57.2% ≈ 4秒後に元の位置 */
    transform: translate(0px, 0);
  }
  /* 57.2%〜100%: 残り3秒間待機 */
  100% {
    transform: translate(0px, 0);
  }
}

/* 念の為置いておく
  animation: sway-smooth 3.5s linear infinite;

  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-duration: 1.5s;
}

@keyframes sway-smooth {
  0% {
    transform: translate(0px, 0);
  }
  100% {
    transform: translate(40px, 0);
  }
} */

.opening_sp_title {
  font-weight: bold;
  font-size: 21px;
  color: var(--white-color);
}

.opening_sp_slider {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.opening_sp_wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.3s ease;
}

.opening_sp_slide {
  width: 20%;
  height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.opening_sp_card {
  width: 100%;
  height: 100%;
  background: var(--white-color);
  border-radius: 15px;
  padding: 0 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--black-color);
  transition: transform 0.2s ease;
  cursor: pointer;
  justify-content: center;
}

.opening_sp_card:active {
  transform: scale(0.98);
}

.opening_sp_card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.opening_sp_card p {
  line-height: 1.6;
}

/* 特別なカード */
.opening_sp_card.opening_sp_thanks-card {
  background: linear-gradient(135deg, var(--point-color), var(--point-color));
  color: var(--white-color);
}

.opening_sp_card.opening_sp_thanks-card h3,
.opening_sp_card.opening_sp_thanks-card p {
  color: var(--white-color);
}

/* 矢印ボタン */
.opening_sp_nav-buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  pointer-events: none;
  z-index: 10;
}

.opening_sp_nav-button {
  width: 30px;
  height: 30px;
  background: var(--point-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 128, 1, 0.4);
  transition: all 0.3s ease;
  pointer-events: all;
  color: var(--white-color);
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

.opening_sp_nav-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 128, 1, 0.6);
}

.opening_sp_nav-button:active {
  transform: scale(0.95);
}

.opening_sp_nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.opening_sp_nav-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(255, 128, 1, 0.4);
}

.opening_sp_prev::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--white-color);
  border-left: 2px solid var(--white-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.opening_sp_next::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 2px solid var(--white-color);
  border-right: 2px solid var(--white-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.opening_page-link-wrapper {
  padding: 10px 20px 0;
}

.opening_page-icon{
  width: 50px;
    height: 50px;
    margin: 24px auto 0;
    display: block;
}

.opening_page-dt {
  margin-top: 24px;
  font-weight: bold;
  line-height: 1;
}

.opening_page-input {
  border: 1px solid #cccccc;
  background: #f5f5f5;
  width: 100%;
  border-radius: 8px;
  margin-top: 12px;
  padding: 11px;
  line-height: 0;
}

.opening_page-text {
  height: 120px;
  line-height: 1.5;
}

@media screen and (min-width: 1025px) {
  .opening_page-input {
    padding: 16px;
  }
}

.opening_page-btn {
  background: var(--primary-color);
  color: var(--white-color);
  width: 100%;
  padding: 24px 0;
  border-radius: 8px;
  margin-top: 24px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.opening_page-thanks {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  color: var(--primary-color);
  line-height: 1.5;
  margin-top: 16px;
}

@media screen and (min-width: 1025px) {
  .opening_page-thanks {
    font-size: 32px;
  }
}

.opening_page-thanks-sub {
  margin: 16px auto 0;
  text-align: center;
  letter-spacing: 0;
  width: 252px;

}
@media screen and (min-width: 1025px) {
  .opening_page-thanks-sub {
    margin: 24px auto 0;
    text-align: left;
    width: 353px;
  }
}

.opening_page-btn__close {
  background: var(--white-color);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.opening_page-privacy {
  text-align: center;
  color: var(--gray-color06);
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 12px;
}
@media screen and (min-width: 1025px) {
  .opening_page-privacy {
    font-size: 14px;
  }
}

.opening_page-privacy-link {
  text-decoration: underline;
}

/* 下層ページリンク（モバイルファースト・position使用） */
.opening_page-links {
  position: relative;
  width: 100%;
  height: 400px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease-out 1.5s forwards;
}

.opening_page-links ul {
  list-style: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.opening_page-links li {
  position: absolute;
}

.opening_page-link {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  color: var(--black-color);
  transition: 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}

@media screen and (min-width: 1025px) {
 .opening_page-link {
    padding: 6px 30px;
  }
}

.opening_page-link:hover{
  color: var(--white-color);
}

.opneing_page-link__thanks-button .opening_page-link:hover {
  background: var(--white-color);
  color: var(--point-color);
  border-color: var(--point-color);
}

.opening_page-link-title_img {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../img/ouen01.svg') no-repeat center / contain;
  transition: background-image 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}

@media screen and (min-width: 1025px) {
  
.opening_page-link:hover .opening_page-link-title_img {
  background-image: url('../img/ouen02.svg');
}
}


.opening_page-link::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid var(--white-color);
}
.opening_page-link:hover::after {
  border-top: 15px solid var(--primary-color);
}

.opening_page-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white-color);
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 50px;
}

.opening_page-link:hover::before {
  opacity: 1;
  background: var(--primary-color);
}

/* .opening_page-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
} */

.opening_page-link__thanks {
  background: var(--point-color);
padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  display: inline-block;
  color: var(--white-color);
  line-height: 1;
  height: 44px;
  letter-spacing: 0;
}

.opening_page-link__thanks.opening_page-link::before,
.opening_page-link__thanks.opening_page-link::after {
  content: none;
}

.opening_page-link-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opening_page-sns {
  display: none;
}

@media screen and (min-width: 1025px) {
  .opening_page-sns {
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    width: 49px;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    border-radius: 50px;
    position: absolute;
    bottom: 21px;
    left: 38px;
  }

  .opening_page-sns::before {
    content: "share";
    position: absolute;
    color: var(--white-color);
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
  }
  .opening_page-sns::after {
    content: "‥";
    position: absolute;
    color: var(--white-color);
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    writing-mode: vertical-lr;
  }
}

.opening_page-sns_img-x,
.opening_page-sns_img-f {
  width: 24px;
}

/* フェード効果 */
.fade-out {
  opacity: 0;
}

/* PC用のメディアクエリ */
@media screen and (min-width: 1025px) {
  /* 待機画面（PC） */

  .opening_start-button {
    padding: 20px 100px;
    font-size: 24px;
  }

  /* メイン動画画面（PC） */
  .opening_skip-button {
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .logo {
    font-size: 2rem;
  }

  .nav-menu {
    display: flex;
    gap: 30px;
  }

  .mobile-menu-button {
    display: none;
  }

  .nav-item {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
  }

  .nav-item::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
  }

  .nav-item:hover::after {
    width: 100%;
  }

  .nav-item:hover {
    color: #ff6b6b;
  }

  /* メインコンテンツ（PC） */
  .hero-content {
    padding: 80px 50px 50px;
  }
}

.hero-title {
  font-weight: 700;
  letter-spacing: 0;
  font-size: 30px;
  margin-bottom: 26px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.2s ease-out 0.5s forwards;
  line-height: 1.7;
}

@media screen and (min-width: 1025px) {
  .hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 43px;
  }

  .hero-subtitle {
    margin-bottom: 60px;
  }

  /* 下層ページリンク（PC・より自由な配置） */
  .opening_page-links {
    width: 100%;
    max-width: 1200px;
    height: 600px;
  }

  /* PC版の各リンクの配置（より自由に） */
  .opening_page-links li:nth-child(1) {
    top: 48%;
    left: 10%;
  }

  .opening_page-links li:nth-child(2) {
    top: 33%;
    right: 40%;
  }

  .opening_page-links li:nth-child(3) {
    bottom: 9%;
    right: 36%;
  }

  .opening_page-links li:nth-child(4) {
    bottom: 35%;
    left: 66%;
  }
  .opening_page-links li:nth-child(5) {
    right: 0;
    top: 29%;
  }
  .opening_page-links li:nth-child(6) {
    bottom: 0;
    right: 0;
  }

  .opneing_page-link__thanks-button {
    right: 40px;
    bottom: 27px;
    position: absolute;
  }

 
}

/* モーダルのスタイル */
.modal {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  left: 0;
}
@media screen and (min-width: 1025px) {
  .modal {
    width: 100vw;
    left: 47px;
    top: -60px;
    justify-content: start;
  }
}

/* モーダルが表示される時 */
.modal.show {
  opacity: 1;
  visibility: visible;
}

@media screen and (min-width: 1025px) {
  .modal.show {
    justify-content: start;
    top: -60px;
  }
}

.modal-content {
  background: var(--white-color);
  border-radius: 10px;
  max-width: 500px;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 0 16px;

  /* 初期状態：下に透明に配置しておく */
  transform: translateY(50px);
  opacity: 0;

  /* アニメーション設定 */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.6s ease;
}

@media screen and (min-width: 1025px) {
  .modal-content {
    max-width: 90%;
    width: 500px;
    margin: 0;
    height: 495px;
    height: auto;
    transform: translateY(50px);
  }
}
/* モーダルが表示される時のコンテンツ */
.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-default);
}

@media screen and (min-width: 1025px) {
  .modal-close {
    top: 15px;
    right: 20px;
  }
}
.thanks-modal .modal-close {
  background: var(--white-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
}

@media screen and (min-width: 1025px) {
  .thanks-modal .modal-close {
    top: -14px;
    right: -14px;
  }
}

.thanks-modal .modal-close__icon {
  position: relative;
}
.thanks-modal .modal-close__icon::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--point-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.thanks-modal .modal-close__icon::after {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--point-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.thanks-modal .modal-icon {
  font-size: 2.5rem;
}

.modal-text {
  max-width: 343px;
  margin: 0 auto 65px;
  line-height: 1.75;
  font-size: 14px;
  padding: 50px 16px 0;
}
@media screen and (min-width: 1025px) {
  .modal-text {
    font-size: 16px;
    padding: 50px 60px;
    margin: 0;
    max-width: 500px;
  }
}

.thanks-modal .modal-text {
  padding: 0 32px 32px;
  margin: 0;
}

@media screen and (min-width: 1025px) {
  /* .thanks-modal .modal-text {
    position: relative;
  }

  .thanks-modal .modal-text::after {
    content: "";
    position: absolute;
    display: block;
    background: url(../img/thanks_modal.svg);
    width: 25px;
    height: 20px;
    bottom: -20px;
    right: 20px;
  } */
}

/* フェード効果 */
.fade-out {
  opacity: 0;
}

/* モーダル */

.modal-title {
  font-size: 25px;
  padding: 28px;
  font-weight: bold;
  text-align: center;
  background: var(--primary-color);
  color: var(--white-color);
}

.thanks-modal {
  justify-content: center;
}
.thanks-modal .modal-content{
width: 343px;
}
@media screen and (min-width: 1025px) {
  .modal.thanks-modal {
    pointer-events: auto;
    background: rgba(43, 43, 43, 0.7);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

.thanks-modal .modal-content {
  max-height: none;
}

@media screen and (min-width: 1025px) {
  .modal.thanks-modal .modal-content {
    position: absolute;
    right: 143px;
    left: auto;
    top: auto;
    bottom: 100px;
    justify-content: end;
  }

  .modal.thanks-modal.show .modal-content {
    position: absolute;
    right: 143px;
    left: auto;
    bottom: 45px;
    justify-content: end;
    width: 500px;
  }
}

.thanks-modal .modal-content {
  overflow: visible;
  position: relative;
}

.thanks-modal .modal-content::before {
  content: "";
  background: url(../img/ouen.png) center / cover;
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  z-index: var(--z-index-default);
}


.thanks-modal .modal-title {
  background: var(--point-color);
  padding: 82px 0 24px;
  position: relative;
  border-radius: 10px 10px 0 0;
  overflow: visible;
  font-size: 24px;
}
@media screen and (min-width: 1025px) {
  .thanks-modal .modal-title {
    font-size: 32px;
    line-height: 1.5;
  }
}

/* .thanks-modal .modal-title::before {
  content: "";
  background-image: url(../img/thanks02.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  left: -10px;
  top: 0;
  width: 60px;
  height: 180px;

  position: absolute;
}
@media screen and (min-width: 1025px) {
  .thanks-modal .modal-title::before {
    width: 101px;
    height: 297px;
    background-size: cover;
    top: 11px;
    left: -16px;
  }
} */

/* .thanks-modal .modal-title::after {
  content: "";
  background-image: url(../img/thanks01.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  right: -10px;
  top: 13px;
  width: 60px;
  height: 180px;
  position: absolute;
}

@media screen and (min-width: 1025px) {
  .thanks-modal .modal-title::after {
    width: 101px;
    height: 297px;
    background-size: cover;
    top: 24px;
    right: -16px;
  }
} */

.opening_next-link {
  position: relative;
  color: var(--accent-color);
}

.opening_next-button {
  position: absolute;
  top: 50%;
  right: -53px;
  width: 30px;
  height: 30px;
  background: var(--white-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 4px 4px 14px rgb(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 10;
  transform: translateY(-50%);
}
.opening_next-button::after {
  content: "›";
  font-weight: bold;
}

.wpcf7 form .wpcf7-response-output {
  font-size: 12px;
  margin: 0;
}

.wpcf7-spinner{
  display: none;
}