/* =======================================
【BASE】ヘッダー
========================================== */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

/* スクロール時のヘッダー背景 */
header.bg_white {
  background: #FFFDEF;
  backdrop-filter: blur(10px);
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  border-radius: 0 0 60px 60px;
}

/* 上部のテキストエリア */
header .headerArea > div:first-child {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 50px;
  opacity: 1;
}

/* スクロール時に上部テキストを非表示 */
/* header.bg_white .headerArea > div:first-child {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
} */

header .logo {
  /* width: 66%; */
  letter-spacing: 0.05em;
  transition: all 0.5s ease;
}

header .logo img {
  width: 30%;
  margin-inline: auto;
  margin-bottom: 5px;
  transition: all 0.5s ease;
}

/* スクロール時のロゴ縮小 */
header.bg_white .logo {
  /* width: 50%; */
  transform: scale(0.7);
  /* transform-origin: left center; */
  margin-top: 0 !important;
  place-self: center;
}

header.bg_white .logo img {
  width: 35%;
  margin-bottom: 0px;
}

header a {
  color: #333;
}

.hTel {
  margin-right: 13px;
}

.hTel span {
  background: url(../img/telB.png) no-repeat center / contain;
  width: 0.6em;
  height: 1em;
  display: inline-block;
  margin-right: 5px;
}

.header02 {
  display: flex;
  justify-content: space-between;
  margin-inline: auto;
  /* align-items: center; */
  transition: all 0.3s ease;
  /* padding: 10px 0; */
}

/* スクロール時のheader02の高さ調整 */
/* header.bg_white .header02 {
  padding: 5px 0;
} */

.header02.cl3_7 > *:nth-child(odd) {
  width: 18.5%;
}

.header02.cl3_7 > *:nth-child(even) {
  width: 76%;
}

.header_nav {
  width: 80%;
  margin: 2% 9.5% 1% auto;
  transition: all 0.3s ease;
}

/* スクロール時のナビゲーション調整 */
header.bg_white .header_nav {
  margin: 1% 9.5% 1% auto;
}

.header_nav .nav {
  display: flex;
  justify-content: right;
  position: relative;
  z-index: 9;
  align-items: end;
  gap: 2%;
  font-weight: bold;
  align-items: center;
}

.header_nav .nav > li {
  list-style: none;
  position: relative;
  padding-bottom: 3px;
  text-align: center;
  white-space: nowrap;
  flex: 1;
}

.header_nav .nav > li ul li a:hover {
  color: #146ECE;
}

.header_nav .nav > li a::after,
.header_nav .nav > li p::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background-color: #0DCA48;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
  border-radius: 90px;
}

.header_nav .nav > li a:hover::after,
.header_nav .nav > li p:hover::after {
  transform-origin: center top;
  transform: scale(1, 1);
}

.header_nav .nav > li ul li a:hover::after,
.header_nav .nav .requestBtn a:hover::after,
.header_nav .nav .contactBtn a:hover::after {
  display: none;
}

.dArrow {
  background: url(../img/dArrow.png) no-repeat center / contain;
  width: 0.8em;
  height: 0.6em;
  margin-left: 5px;
  display: inline-block;
}

/* メガメニューのスタイル */
.header_nav .nav > li ul {
  position: absolute;
  top: 110%;
  left: -30%;
  color: #146ECE;
  background: #FFFFFD;
  list-style: none;
  margin: 0;
  padding: 20px 20px;
  min-width: 200px;
  display: none;
  z-index: 10000;
  line-height: 3.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.header_nav .nav > li ul li {
  margin: 0;
  padding: 0;
}

.header_nav .nav > li ul li a {
  text-align: left !important;
  padding: 0.5%;
  display: block;
  color: #1A1A1A;
}

.requestBtn a {
  background-color: #FFDA03;
  border-radius: 50em;
  height: 2.6em;
  display: flex;
  /* width: 6.5em; */
  justify-content: center;
  place-content: center;
  place-items: center;
  transition: all 0.3s ease;
  margin: 0 -5%;
}

.contactBtn a {
  background-color: #146ECE;
  color: #fff;
  border-radius: 50em;
  height: 2.6em;
  display: flex;
  width: 8.5em;
  justify-content: center;
  place-content: center;
  place-items: center;
  transition: all 0.3s ease;
}
