@charset "UTF-8";

/* --------------------
ヘッダー
-------------------- */

header {
  position: relative; /* または固定の場合は fixed */
  z-index: 10;        /* MVより前面に出す */
  width: 100%;

}


/* 左ロゴ */
.header-logo {
  display: inline-block;
  line-height:1.2;
  position: relative;
  z-index:2000;
  margin-right:0;   /* 右側余白不要なら */
  padding: 0 clamp(1rem,2vw,3rem);
  margin-top:clamp(10px,2vw,20px);
}

.header-logo-top a{
  display: inline-block; /* 必要なら */
  font-weight: bold;
  cursor: pointer; /* 念のため明示 */
color:var(--color-primary);
}



/* ナビ固定 */
.header-wrap {
  position: fixed;
  top: clamp(10px,3vw,40px);
  left:auto;
  right:0;
  width:100%;
  display:flex;
  justify-content:center;
  z-index:1000;
}

/* nav-container を端まで広げる */
.nav-container {
  display:flex;
  justify-content:flex-end;
  width: 100%; /* clamp → 100% に */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0 clamp(1rem,3vw,3rem);
}

/* 背景ラッパーをフル幅に */
.nav-bg-wrapper {
  width: 100%;   /* 73% → 100% */
  max-width: clamp(1000px,64vw,1180px);
  /*max-width: clamp(800px,50vw,980px);*/
  justify-content:center;
  display:flex;
  align-items:center;
  gap:20px;
  background-color: rgba(255,255,255,0.9);
  border-radius:100px;
  padding:10px 20px;
  box-shadow:0 0px 16px var(--color-black-15);
  transition: all 0.5s ease;
}

/* 展開時（スマホハンバーガー押下時） */
.nav-bg-wrapper.active {
  width: 100vw;
  border-radius: 0;
  flex-direction: column;
  justify-content: flex-start;
}

/* 背景アニメーション */
.nav-bg-wrapper.animate {
  animation: bgScale 1.5s infinite alternate ease-in-out;
}
@keyframes bgScale {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* ハンバーガー */
.hamburger {
  display:none;
  font-size:2rem;
  cursor:pointer;
  align-self: end;
  padding:0 1rem;
}

/* ナビ本体 */
.header-nav {
  display:flex;
  gap: clamp(0px, 0.5vw, 20px);
  border-radius:100px;
  align-items:center;
  font-size:var(--font-18);
  position:relative;
  transition: opacity 0.3s ease 0.3s;
}

/* お申込みボタン */
.header-nav .cv {
  background-color:var(--color-primary);
  color:var(--color-white);
  border-radius:50px;
  padding:10px clamp(40px,4vw,72px);
  margin-left:clamp(0px,1.5vw,50px);
}

/* お申込みボタン hover */
.header-nav .cv:hover {
  background-color:var(--color-primary);
  color:var(--color-white);
}

/* ナビリンク */
.header-nav a, .dropdown a {
  text-decoration:none;
  color:var(--color-black);
  font-weight:bold;
  padding:clamp(4px,1vw,10px) clamp(8px,1vw,20px);
  transition: background-color 0.5s, opacity 0.3s;
  box-sizing:border-box;
  display: block;
}

.header-nav a:hover {
  background-color:var(--color-blue3);
  color:var(--color-primary);

}

.header-nav .cv:hover{
  opacity:0.8;
}


/* ドロップダウン */
.dropdown {
  position:relative;
  box-sizing:border-box;
  font-size:var(--font-18);
}


.dropdown-content a {
  display:block;
  padding:12px 12px;
  font-size:var(--font-18);
  font-weight:normal;
  color:var(--color-black);
  box-sizing:border-box;
  background-color:rgba(255, 255, 255, 0.8);
}

.dropdown-content a:hover {
  background-color:var(--color-blue3);
  color:var(--color-primary);
}







/* PC hover用ドロップダウン */
@media(min-width:1401px){
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-white);
    min-width: 150px;
    width: 150px;
    box-shadow: 0 0px 16px var(--color-black-15);
    border-radius: 8px;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}





/* スマホ対応 */
@media(max-width:1400px){

  .header-logo{
    z-index: 0;
  }

  .hamburger { 
  display:block; 
  font-size:16px;
  padding:0;
  padding-right:3px;
}

  .nav-bg-wrapper {
    max-width:clamp(40px,8vw,40px);
    overflow: hidden;
    flex-direction: column;
    border-radius:40px;
    padding:5px 10px 5px 20px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.95);
    gap:0;
  }


  /* 閉じたときだけ max-width */
  .nav-bg-wrapper.closed {
    max-width:40px;
  }

  /* 開いたときは full width */
  .nav-bg-wrapper.active {
    width: 100vw;
    border-radius:20px;
    flex-direction: column;
    justify-content:flex-start;
    max-width: 100vw; /* 50px → 100vw へ滑らかに */
  }


  .header-nav {
    display: none;
    flex-direction: column;
    gap:10px;
    width: 100%;
    opacity:1;
    border-radius:0px;
    padding-right:1.4rem;

          /* 追加部分 */
    max-height: calc(100vh - 80px); /* 画面高さからヘッダー分を引く */
    overflow-y: auto;               /* 縦スクロール */
    -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール */
  }





  .nav-bg-wrapper.active .header-nav {
    display: flex;
  }


  .dropdown.open .dropdown-content {
    max-height: 1000px; /* JSでscrollHeightに上書き */
  }
  

  /* .dropdown.open .dropdown-content {
    display:flex;
  } */

   .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative; /* 一旦relative */
    z-index: 1001; /* 他のナビより前面 */
  }

  .dropdown-content a {
    padding: 12px 20px;
    display: block;
    background-color:rgba(255, 255, 255, 0);
  }


.dropdown-content.open {
  /* JSで max-height を書き換えるのでCSSでは指定しない */
}


  .header-nav a, .header-nav .dropdown { width:100%; }
  .header-nav > a:last-child { margin-left:0; margin-top:20px; text-align:center; }
  .cv { padding:20px !important; margin-bottom:3rem; width:50%; }

}

/* スマホ微調整 */
@media(max-width:768px){
  .header-nav {
    flex-direction: column; /* 横並びではなく縦並び */
    flex-wrap:nowrap;
    justify-content:center;
    left:10px; right:10px;
    justify-content: flex-start;
    width: 100%;
    max-height: calc(100vh - 60px); /* ヘッダー高さ分を引く */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS向け */
    }
}




/* --------------------
フッター
-------------------- */

#footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  width:100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo a {
  color: #fff;
  text-decoration: none;
}

.header-logo-top a{
  line-height:1.3;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 40px 80px;
  max-width: 700px;
}

.footer-nav li {
  /* flex: 1 1 calc(33% - 20px); */
  min-width: 150px;
  font-size:var(--font-22);
}

.footer-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.3s ease; /* ← ふわっと変化する */
}

.footer-nav a:hover {
  opacity: 0.6; /* 半透明 */
}

.footer-nav .en {
  font-size: var(--font-16);
  display: block;
  opacity: 0.7;
}

/* バナー */
#footer .banner-buttons {
  width:100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom:var(--margin-xs) !important;
  justify-content: center;
}

/* 下段 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color:rgba(255, 255, 255, 0.5);
}

.footer-copy {
  font-size: 0.9em;
}

.footer-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-subnav a {
  color:rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
  text-decoration: none;
}

/* 1000px以下：2列 */
@media (max-width: 1000px) {
  .footer-nav ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  #footer .footer-container{
  width:90%;  
  margin:0 auto;
  padding:0;
  gap:60px;
  }

  #footer .margin-m{
    margin-top:30px !important;
  }

  #footer .margin-s{
    margin-top:0 !important;
  }

  #footer .btn{
    max-width:none;
    width:100%;
  }


  .footer-top {
    flex-direction: column;
    gap: 40px;
    justify-content:center;
    align-items:center;
    width:100%;
  }

  .footer-logo{
    width:100%;
  }

  .footer-logo .font-logo1{
    font-size:3vw;
  }
    .footer-logo .font-logo2{
    font-size:7vw;
  }


  .footer-nav{
    width:100%;
  }

  .footer-nav ul{
    gap:40px;
  }

  .footer-nav li {
    flex: unset;
    min-width: unset;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  #footer .banner-buttons{
    margin-bottom:0!important;
  }
}