/* header */

.header-list {
    position: absolute;
    top: 20px;
    right: 160px;
    display: flex;
    gap: 40px;
}

.header-list li a {
	font-size: .8125rem;
	font-weight: 700;
}

.header {
	width: calc(100% - 140px);
    height: 70px;
    max-width: 1760px;
    margin-inline: auto;
    padding-inline: 3.5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    z-index: 200;
    border-radius: 48px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .16);
}

.header.sticky {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
	transition: .3s ease;
}

.header.scrolling {
	opacity: 0.2;
}

.header-logo {
	width: 130px;
    display: flex;
}

.header-nav {
	display: flex;
}

.header-nav-list {
	display: flex;
    align-items: center;
}

.header-nav-item {
	height: 100%;
    font-size: clamp(.875rem, .5893rem + .4464vw, 1.125rem);
    font-weight: 700;
}

.header-nav-item:not(:last-child) {
    margin-right: 1.3vw;
}

.header-nav-item:last-child {
	margin-right: 2vw;
}

.header-nav-link {
	height: 100%;
	display: flex;
	align-items: center;
	font-family: 'AvenirNext';
	transition: .3s;
}

.header-nav-link:hover {
	color: #295daa;
	cursor: pointer;
}

.header-nav-link.active {
	color: #295daa;
}

.header-contact {
	width: 10.83vw;
    height: 45px;
    max-width: 208px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #f5b638;
    border-radius: 30px;
    font-family: 'AvenirNext';
    font-size: clamp(.875rem, .5893rem + .4464vw, 1.125rem);
    font-weight: 700;
    color: #fff;
    background-color: #f5b638;
    transition: .3s;
}

.header-contact:hover {
    color: #f5b638;
    background-color: #fff;
}

/* メガメニューのスタイル */
.megamenu {
	padding: 40px 40px 80px 40px;
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 20px);
    width: 100%;
    background-color: #fff;
	border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.has-megamenu .megamenu.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.megamenu-inner {
	max-width: 1120px;
	margin-inline: auto
}

.megamenu-title {
	margin-bottom: 24px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #295daa;
}

.megamenu-list {
    display: flex;
	gap: 20px;
	text-align: center;
}

.megamenu-list li a span {
	font-size: clamp(0.75rem, 0.5357rem + 0.3348vw, 0.9375rem);
	font-weight: 500;
	transition: .3s;
}

.megamenu-list li a:hover .megamenu-item-image img {
/* 	animation: float 3s ease-in-out infinite; */
}

.megamenu-list li a:hover span {
	color: #295daa;
}

.megamenu-item-image {
	margin-bottom: 8px;
	padding: 8px 24px;
	border-radius: 20px;
}

.megamenu-item-image.kkt {
	background: linear-gradient(to right, #295DAA, #57A0CA);
}

.megamenu-item-image.ko2 {
	background: linear-gradient(to right, #329CAE, #8FBDC9);
}

.megamenu-item-image.chu {
	background: linear-gradient(to right, #33A638, #89BE8C);
}

.megamenu-item-image.ktr {
	background: linear-gradient(to right, #A653C4, #D179F2);
}

.megamenu-item-image.zat {
	background: linear-gradient(to right, #F5A538, #F5CD7E);
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SPサイズ時にメガメニューを非表示にする */
@media (max-width: 768px) {
    .has-mega-menu .mega-menu {
        display: none !important;
    }
}


@media screen and (max-width: 1023px) {
	.header-list {
		right: 0;
		left: 0;
		justify-content: center;
	}
  .header-nav {
    display: none;
  }
}

@media screen and (max-width: 768px) {
	.header-list {
		display: none;
	}
	
	.header {
		width: calc(100% - 70px);
		height: 60px;
		top: 30px;
	}
	
	.header.sticky {
		top: 30px;
	}
	
	.header-logo {
		width: 100px;
	}
}


/* ハンバーガーアイコンのスタイル */
.hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	position: relative;
	border: 1px solid #295daa;
	border-radius: 50%;
    cursor: pointer;
}

.hamburger:before,
.hamburger:after {
	content: '';
	width: 6px;
	height: 6px;
	margin-block: auto;
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 50%;
	background-color: #295DAA;
}

.hamburger:before {
	left: 11px;
}

.hamburger:after {
	right: 11px;
}

/* オーバーレイメニューのスタイル */
.overlay {
    position: fixed;
    top: -200%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009ED2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: top 0.5s ease;
    z-index: 999;
	overflow-y: auto;
}

.overlay.active {
    top: 0;
}

/* バツボタンのスタイル */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
	font-weight: 700;
    background: none;
    border: none;
    color: #fff;
	z-index: 10;
    cursor: pointer;
}

.hamburger-inner {
	width: 90%;
	max-width: 330px;
	margin-block: 32px;
}

.hamburger-main-menu li a,
.hamburger-main-menu li button {
	margin-bottom: 20px;
	display: block;
	font-family: 'AvenirNext';
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
}

.hamburger-main-menu li .accordion-item {
	margin-bottom: 12px;
	font-size: 0.9375rem;
	font-weight: 500;
}

.hamburger-inner .header-contact {
	width: 100%;
	height: 70px;
	max-width: none;
	margin-bottom: 24px;
	border-radius: 54px;
	font-size: 1.25rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, .16);
}

.hamburger-sub-menu li a {
	margin-bottom: 16px;
	display: block;
	font-size: 0.8125rem;
}

.accordion-btn {
	position: relative;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.accordion-btn:before,
.accordion-btn:after {
  content: '';
	margin-block: auto;
  position: absolute;
  top: 0;
	bottom: 0;
  left: 65px;
  width: 16px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
	transition: .3s;
}

.accordion-btn:after {
	transform: rotate(90deg);
}

.open.accordion-btn:after {
	transform: rotate(0);
}

.accordion-btn small {
	font-size: 1.125rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-left: 16px; /* インデントをつけるなどはお好みで */
}

.accordion-content.open {
  max-height: 500px; /* メニューの高さより十分大きい値を指定 */
}


@media (min-width: 1023px) {
    .hamburger {
        display: none;
    }
    .overlay {
        display: none;
    }
}
