@charset "UTF-8";

/* ===== ヘッダー共通部 ===== */
.site-header {
  position: relative;
  border-top: 2px solid var(--color-primary); /* 上部ライン */
  background: #fff;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--margin-l);
}

header .logo p{
  padding:1.4rem 0;
  font-size: var(--font-16);
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-black);
}

header .logo p span:nth-of-type(1){
  font-size: var(--font-24);
  color: var(--color-primary);
}

.icon-square {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;        /* 正方形の幅 */
  height: 50px;       /* 正方形の高さ */
  background-color: var(--color-primary);
  color: #fff;        /* 文字色 */
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  font-size: 14px;
}



/* 共通：デフォルトではSP用ボタン非表示 */
.cvr-sp-btn {
  display: none;
}


/*CVRボタン*/

.cvr-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 1em 0.8em;
  font-size: var(--font-18);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 4px;
  writing-mode: vertical-rl; /* 文字縦書きではなく、要素を縦に見せる */
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.cvr-button:hover {
  opacity: 0.85;
  text-decoration: none;
}


/* ▼ ハンバーガー本体 */
.menu-toggle {
  width: 58px;
  height: 58px;
  background: var(--color-primary)!important;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  overflow: visible;  /* ← はみ出しを許容 */
  padding: 8px;        /* ← 中の線に余裕を持たせる */
  z-index: 1100; /* 念のため上に出す */
}

.menu-toggle .bar {
  width: 22px;
  height: 4px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ▼ open時：×マークに変形 */
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(6px) translateX(6px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-4px) translateX(4px);
}




  /* ナビゲーション全体 */
.nav-wrapper {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  background: rgba(20, 176, 233, 0.95);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 100;
}

/* 開いたときにふわっと表示 */
.nav-wrapper.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}





/*フッター*/
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--margin-l) 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin:0 auto;
}

.footer-logo {
  text-align: left;
}

.footer-logo p {
  font-size: var(--font-24);
  font-weight: 700;
  line-height: 1.4;
}

.footer-logo p span {
  font-size: var(--font-18);
  font-weight: 400;
}


.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--color-white);
  font-size: var(--font-14);
  font-weight: 500;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer-copy {
  font-size: var(--font-12);
  color:var(--color-white-50);
}

/* ===== PCナビ用レイアウト（補足） ===== */
@media screen and (min-width: 1001px) {
  .header-buttons {
    display: none;
  }

    .nav-wrapper {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
    width: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: auto !important;
  }

  .nav-wrapper ul {
    display: flex !important; /* 横並びに */
    flex-direction: row !important;
    gap: 2em !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-wrapper ul li a {
    font-size: var(--font-16);
    color: var(--color-black);
    text-decoration: none;
    padding: 0;
    border-bottom: none !important;
  }

  .nav-wrapper ul li a:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 1000px) {

.nav-wrapper{
  top:110px;
}

  .nav-wrapper.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-wrapper ul {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

    .nav-wrapper ul li a{
    color:var(--color-white);
    padding:1rem 1rem;
    border-bottom: var(--color-blue2) solid 1px;
  }

    .header-buttons {
    display: flex !important;  /* 表示 */
  }


  /* .nav-wrapper ul li a {
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
  } */


  .header-btn {
    width: 58px;
    height: 58px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--font-12);
    font-weight: 600;
    text-decoration: none;
  }

  .header-btn i {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .menu-toggle.open {
    background: var(--color-secondary); /* メニューオープン時 色変更なども可 */
  }


  /*ナビ部分アニメーション*/
  header nav {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  background: rgba(20, 176, 233, 0.95);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 100;
  /* display: none; ← これを外す */
  min-height: 150px;
  box-sizing: border-box;
  }

  header nav ul {
  margin: 0;
  padding: 0 1.5em;
  list-style: none;
  display: flex;
  flex-direction: column;
  }

  header nav ul li a {
    font-size: var(--font-16);
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5em 0;
    display: block;
  }

  header nav ul li:last-child a {
    border-bottom: none;
  }



  header nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* display: block; は不要 */
  }

}


@media screen and (max-width:768px){

  .nav-wrapper{
    top:58px;
  }

  .site-header {
    border:none;
  padding: 0 0 0 10px;
  }

  .header-logo {
    flex: 1;
    max-height: 58px;
    display: flex;
    align-items: center;
  }

  .header-buttons {
    display: flex;
  }

  .header-btn {
    width: 58px;
    height: 58px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--font-12);
    font-weight: 600;
    text-decoration: none;
  }

  .header-btn i {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .menu-toggle.open {
    background: var(--color-secondary); /* メニューオープン時 色変更なども可 */
  }


  /*ナビ部分アニメーション*/
  header nav {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  background: rgba(20, 176, 233, 0.95);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 100;
  /* display: none; ← これを外す */
  min-height: 150px;
  box-sizing: border-box;
  }

  header nav ul {
  margin: 0;
  padding: 1em 1.5em;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1em;
  }

  header nav ul li a {
    font-size: var(--font-16);
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5em 0;
    display: block;
  }

  header nav ul li:last-child a {
    border-bottom: none;
  }



  header nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* display: block; は不要 */
  }






    .cvr-button {
    display: none !important;
  }

  .cvr-sp-btn {
    display: flex;
  }

    .cvr-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    writing-mode: horizontal-tb;
    border-radius: 30px;
    padding: 0.8em 1.2em;
    font-size: var(--font-16);
  }

  .cvr-button::before {
    content: "申し込み";
  }

  .cvr-button {
    /* 本文を書き換えるため、元のテキストを非表示に */
    font-size: 0;
  }

  .cvr-button::before {
    font-size: var(--font-16);
    color: var(--color-white);
    display: block;
  }

  /*footer*/

  .footer-nav ul{
gap: 1em;  
}
}