@charset "utf-8";

/* ----------------------------------------------------
  ヘッダー（基本構造）
---------------------------------------------------- */
header {
  overflow-x: hidden !important;
}

.header-wrapper {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 65px; /* ヘッダーの高さ */
  overflow: visible;
  background: #fff;  
  padding: 0;
}

@media print, screen and (min-width: 768px) {
  .header-wrapper {
    height: 90px; /* ヘッダーの高さ */
  }
}

@media print, screen and (min-width: 992px) {
  .header-wrapper {
    height: 80px; /* ヘッダーの高さ */    
  }
}

/* ----------------------------------------------------
  ロゴ（はみ出すレイアウト）
---------------------------------------------------- */
.logo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 64px;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;  
}

.logo-layer img {
  width: 100%;
  height: 100%;
}

@media print, screen and (min-width: 768px) {
  .logo-layer {
    top: 0;
    left: 0;
    width: 170px;
    height:90px;
  }
}

@media print, screen and (min-width: 992px) {
  .logo-layer {
    top: 0;
    left: 0;
    width: 170px;
    height:90px;
  }
}

@media print, screen and (min-width: 1200px) {
  .logo-layer {
    top: 0;
    left: 0;
    width: 278px;
    height: 148px;
  }
}
/* ----------------------------------------------------
  ヘッダーコンテナ（配置調整・右寄せ・ロゴとの被り防止）
---------------------------------------------------- */
.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ナビやボタンを右寄せ */
  padding-left: 120px;       /* スマホ時のロゴ被り防止（ロゴ幅100px + 余白20px） */
  padding-right: 20px;
}

@media print, screen and (min-width: 768px) {
  .header-container {
    padding-left: 170px;     /* タブレット時のロゴ被り防止（ロゴ幅150px + 余白20px） */
  }
}

@media print, screen and (min-width: 1200px) {
  .header-container {
    padding-left: 220px;     /* PC時のロゴ被り防止（ロゴ幅200px + 余白20px） */
    padding-right: 40px;
  }
}

/* ----------------------------------------------------
  change（スクロール連動用などの予備設定）
---------------------------------------------------- */
@media print, screen and (min-width: 768px) {
  .header.change-header .logo-layer {
    width: 170px;
    height:90px;
    transition: 0.2s;
    padding: 0; 
  }
}
@media print, screen and (min-width: 1200px) {
  .header.change-header .logo-layer {
    width: 210px;
    height: 112px;
  }
}

/* ----------------------------------------------------
  スマホ・タブレット専用 下部エリア（ドロワー内）
---------------------------------------------------- */
@media print, screen and (min-width: 768px) {
  .sp_contact {
    display: none;
  }
}

@media print, screen and (max-width: 991px) {
  /* 992px未満のときに適用するCSS */
  .sp_contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
    margin-top: 2em;
  }
  
  /* ドロワー内 ボタン */
  .nav_btn {
    display: inline-block;
    background-color: #d2b07f; /* ボタン背景色 */
    color: #402012 !important; /* ボタン文字色 */
    padding: 0.7em 1.5em;
    border-radius: 9999px;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .nav_btn:hover {
    opacity: 0.8;
  }
  
  /* ドロワー内 電話 */
  .nav_tel {
    color: #185db3; /* 文字色 */
    font-size: 22px;
    text-decoration: none;
  }
  
  .nav_tel i {
    color: #185db3; /* 電話マークの色 */
    font-size: clamp(14px, 1.5vw, 20px);
    position: relative;
    top: -2px;
    margin-right: 5px;
  }  
  
  /* ナビメニュー本体（ドロワー裏地） */
  .nav-menu {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding-right: clamp(30px, 8vw, 50px);
    padding-bottom: clamp(30px, 8vw, 50px);
    padding-left: clamp(30px, 8vw, 50px);
    transition-duration: 300ms;
    transform: translateX(100%);
    overflow: auto;
    background-color: #e7edfb; /* ナビメニューの背景色 */
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
}

@media only screen and (max-width: 767px) {
  .nav_tel {
    font-size: 20px;
    text-decoration: none;
    display: inline-block;
    color: #fff;
    background-color: #185db3; /* ボタン背景色 */
    padding: 0.7em 1.5em;
    border-radius: 10px;
  }
  
  .nav_tel i {
    color: #fff;
    position: relative;
    top: -2px;
    margin-right: 5px;
  }  
}

/* ----------------------------------------------------
  ナビメニュー（PC・グローバルナビ）
---------------------------------------------------- */
@media print, screen and (min-width: 992px) {
  .nav-menu {
    margin-top: 0px; /* ナビの上余白 */
    padding-top: 0 !important;
    width: 100%;
  }
}

.menu-list {
  list-style: none; /* 中黒消す */
}

@media print, screen and (min-width: 992px) {
  .menu-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end; /* メニュー内の項目を右寄せ */
    gap:20px;
    padding:22px 0 10px 0;
  }
}
@media print, screen and (min-width: 1200px) {
  .menu-list {
    gap:30px;
  }
}

@media print, screen and (min-width: 992px) {
  .menu-list a:link,
  .menu-list a:visited,
  .menu-list a:hover,
  .menu-list a:active {color: #222;} 
}

@media print, screen and (max-width: 991px) {
  /* 992px未満のときに適用するCSS */
  .menu-item {
    border-style: solid;
    border-color: #a4b8e5;
    border-bottom-width: 1px;
  }
}

/* ----------------------------------------------------
  スマホ～タブレット時 メニューリンク基礎
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
  /* 992px未満のときに適用するCSS */
  .menu-link {
    display: block;
  }  
  
  .nav-menu.active .menu-link {
    color: #222;
  }
}

/* ----------------------------------------------------
  メニューリンク 文字サイズ／余白／配置／色
---------------------------------------------------- */
.menu-link {
  font-size: 15px;
  padding: 13px 0;
  text-align: center;
  color: #222; /* メニュー文字色 */
}

@media print, screen and (min-width: 992px) {
  .menu-link {
    font-size:13px;
    padding: 10px 0;
  }
}
@media print, screen and (min-width: 1200px) {
  .menu-link {
    font-size:14px;
  }
}
@media print, screen and (min-width: 1400px) {
  .menu-link {
    font-size:15px;
  }
}


/* ----------------------------------------------------
  現在地を示す下線（.active）
---------------------------------------------------- */
@media print, screen and (max-width: 991px) {
  /* 992px未満のときに適用するCSS */
  .menu-link.active {
    color: #185db3 !important; /* スマホタブレット時のアクティブ文字色 */
  }
}

@media print, screen and (min-width: 992px) {
  .menu-link {
    position: relative;
  }
  
  /* 下線のスタイル */
  .menu-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* 下線の太さ */
    background-color: #222; /* 下線の色 */
  }
  
  .menu-link.active::after {
    bottom: 0; /* 下端に下線 */
  }
  
  .menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #222; /* 下線の色 */
    transition: width 0.3s ease;
  }
  
  .menu-link.active::after,
  .menu-link:hover::after {
    width: 100%;
  }
}

/* ----------------------------------------------------
  ハンバーガーメニュー・ボタン本体
---------------------------------------------------- */
/* タブレットサイズのみ幅を半分に変更 */
@media print, screen and (min-width: 768px) {
  #hb-menu {
    width: 45%; /* 画面半分だけ表示 */
  }
}

@media print, screen and (min-width: 992px) {
  #hb-menu {
    width: 100%;
  }
}

/* ハンバーガーメニューが開いたときに body のスクロールを止める */
body.menu-open {
  overflow: hidden;
  height: 100%;
}

/* フォーカス・アクティブ時の枠・影を消す */
.hamburger-button:focus,
.hamburger-button:active {
  outline: none;
  box-shadow: none;
}

/* ボタン自体の設定とクリック範囲 */
.hamburger-button {
  border: none;              
  background: transparent;    
  outline: none;              
  padding: 22px 15px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  width: fit-content;
  height: fit-content;
  margin-right: 0;
  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .hamburger-button {
    padding: 25px; /* タブレット時左右のクリック領域を拡張 */
  }
}

/* タブレット以上（PCサイズ）で非表示 */
@media screen and (min-width: 992px) {
  .hamburger-button {
    display: none;
  }
}

/* 線をまとめるコンテナ */
.hamburger-lines {
  display: flex;   
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;  /* スマホ時の線の幅 */
  height: 40px; 
  transition-duration: 300ms;
  pointer-events: none; /* 線自体はクリック対象外 */
}

@media screen and (min-width: 768px) {
  .hamburger-lines {
    width: 65px;  /* タブレット時 線の横幅 */
    height: 60px; /* 縦幅 */
  }
}

/* 線（＝または×） */
.hamburger-lines .line {
  position: absolute;
  left: 0;
  width: 100%;
  background-color: var(--hb-line-color, #333);
  height: var(--hb-line-height, 2px);
  transform-origin: center center;
  transition: 0.3s ease;
  pointer-events: none;
}

/* 線の色切替 */
.hamburger-lines.active .line {
  background-color: var(--hb-line-active-color, #fff);
}

/* ＝状態（上下2本線） */
.hamburger-lines .line:nth-child(1) {
  transform: translateY(-5px) rotate(0deg);
}

.hamburger-lines .line:nth-child(2) {
  transform: translateY(5px) rotate(0deg);
}

@media screen and (min-width: 768px) {
  .hamburger-lines .line:nth-child(1) {
    transform: translateY(-9px) rotate(0deg);
  }
  .hamburger-lines .line:nth-child(2) {
    transform: translateY(9px) rotate(0deg);
  }
}