.header {
position: fixed;
top: 12px;
width: 100%;
padding-right: 5%;
z-index: 999;
}
.header-wrap {
width: 100%;
padding: clamp(0.75rem, 0.375rem + 0.78vw, 1rem) clamp(1rem, -0.875rem + 3.91vw, 2.25rem);
display: flex;
justify-content: space-between;
background: var(--white-color);
opacity: 0.95;
border-radius: 0 20px 20px 0;
align-items: center;
position: relative;
}
.header-wrap.open-accordion {
border-radius: 0;
}
.header-logo {
width: 30%;
}
.header-logo a {
display: block;
}
.header-logo img {
max-width: 100%;
}
.header-nav.pc {
display: flex;
flex-direction: column;
gap: clamp(0.5rem, 0.125rem + 0.78vw, 0.75rem);
}
.header-nav-up {
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
.header-nav-up li {
display: flex;
align-items: center;
gap: 12px;
}
.header-nav-up li a {
text-decoration: none;
}
.btn-reserve,
.btn-contact,
.btn-recruit {
display: flex;
align-items: center;
padding: clamp(0.375rem, 0.188rem + 0.39vw, 0.5rem) clamp(0.875rem, 0.594rem + 0.59vw, 1.063rem);
font-size: clamp(1rem, 0.813rem + 0.39vw, 1.125rem);
font-weight: 400;
border-radius: 4px;
color: var(--text-on-accent);
white-space: nowrap;
line-height: 1;
}
.btn-reserve {
background-color: var(--accent-color);
}
.btn-contact,
.btn-recruit {
background-color: var(--main-color);
}
/* SNSリンク */
.sns-link {
display: flex;
}
.sns-link img {
width: auto;
height: clamp(1.875rem, 1.313rem + 1.17vw, 2.25rem);
}
/* ヘッダーナビ（下段） */
.header-nav-bottom {
display: flex;
justify-content: center;
gap: clamp(0.625rem, -0.688rem + 2.73vw, 1.5rem);
list-style: none;
}
.header-nav-bottom > li > a {
color: var(--main-color);
font-weight: 600;
font-size: clamp(0.875rem, 0.5rem + 0.78vw, 1.125rem);
text-decoration: none;
padding: 6px 0;
transition: opacity 0.3s;
}
.header-nav-bottom li a:hover {
opacity: 0.7;
}
/* アコーディオンメニュー全体 */
#pc-nav .ac-menu {
display: flex;
width: 100%;
position: absolute;
top: 100%;
left: 0;
margin-top: -16px;
white-space: nowrap;
overflow: hidden;
visibility: hidden;
transform: scaleY(0);
transform-origin: top;
transition:
transform .45s cubic-bezier(.25,1.25,.5,1),visibility 0s linear .15s;
will-change: transform;
}
#pc-nav .ac-menu.show {
visibility: visible;
transform: scaleY(1);
transition:
transform .45s cubic-bezier(.25,1.25,.5,1),visibility 0s linear 0s;

}
#pc-nav .header-nav-bottom li:hover .ac-menu,
#pc-nav .ac-menu:hover {
display: flex;
}
#pc-nav .ac-menu dt {
background-color: var(--main-color);
padding: 20px 32px;
text-align: right;
width: 24%;
position: relative;
}
#pc-nav .ac-menu dt::after {
content: "▶";
font-size: 32px;
position: absolute;
right: -24px;
top: -4px;
line-height: 1;
color: var(--main-color);
z-index: 1;
opacity: 1;
padding: 20px 0;
}
#pc-nav .ac-menu dt a {
font-weight: 600;
color: #fff;
border-bottom: 1px solid var(--white-color);
padding: 0 4px 8px;
}
#pc-nav .ac-menu dd {
background: var(--white-color);
border-radius: 0 0 20px 0;
width: 76%;
padding: 20px 32px 20px 40px;
min-height: 120px;
}
#pc-nav .ac-menu dd.ac-deep,.shallow ul  {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
#pc-nav .ac-deep .ac-second {
margin-bottom: 12px;
}
#pc-nav .ac-deep > ul > li:first-child a, .shallow > ul > li a {
font-weight: 600;
color: var(--main-color);
border-bottom: 1px solid var(--sub-color);
padding: 0 16px 4px 4px;
position: relative;
display: inline-block;
}
#pc-nav .ac-deep > ul > li.ac-second.grey {
font-weight: 600;
    color: #7b7b7b;
border-bottom: 1px solid var(--sub-color);
padding: 0 16px 4px 4px;
position: relative;
}
#pc-nav .ac-deep > ul > li:first-child a::after,.shallow > ul > li a::after {
content: "";
position: absolute;
top: 28%;
right: 0;
transform: rotate(45deg);
width: 8px;
height: 8px;
border-right: 1px solid var(--sub-color);
border-top: 1px solid var(--sub-color);
}
#pc-nav .ac-menu ul li a:hover {
opacity: 0.7;
}
#pc-nav .ac-menu .ac-third a {
font-size: 14px;
padding-left: 8px;
color: var(--main-color);
font-weight: 600;
margin-bottom: 4px;
display: flex;
}
@media screen and (max-width: 768px) {
.header-nav.pc {
display: none;
}
.header {
top: 0;
padding-right: 0;
}
.header-logo {
width: 45%;
}
.header-wrap {
opacity: 1;
border-radius: 0;
padding: 12px 16px;
}
.header-menu.sp {
display: flex;
gap: 24px;
}
.header-menu > ul {
display: flex;
gap: 24px;
}
.header-nav-bottom {
flex-direction: column;
align-items: flex-start;
gap: 12px;
padding: 16px 0;
}
.hamburger {
position: relative;
height: 30px;
width: 30px;
}
.hamburger span {
display: block;
position: absolute;
height: 2px;
width: 30px;
background: var(--main-color);
transition: 0.4s;
}
.hamburger span:nth-of-type(1) {
top: 5px;
}
.hamburger span:nth-of-type(2) {
top: 15px;
}
.hamburger span:nth-of-type(3) {
top: 25px;
}
.hamburger.active span:nth-of-type(1) {
top: 15px;
transform: rotate(45deg);
}
.hamburger.active span:nth-of-type(2) {
opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
top: 15px;
transform: rotate(-45deg);
}
#sp-nav {
position: absolute;
z-index: 999;
top: 100%;
right: -120%;
width:100%;
height: 100vh;
background: var(--main-color);;
transition: all 0.6s;
}
#sp-nav.panelactive{
right: 0;
top: 100%;
}
#sp-nav.panelactive > div {
position: absolute;
z-index: 999; 
width: 100%;
padding: 28px 24px 120px;
height: 100vh;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
#sp-nav .menu {
width: 100%;
}
#sp-nav .menu a::before {
content: "→";
padding-right: 8px;
}
#sp-nav .menu > li > *:first-child {
display: flex;
align-items: center;
color: var(--white-color);
padding: 8px 8px 8px 12px;
font-size: 20px;
border-bottom: 1px solid var(--white-color);
font-weight: 400;
}
#sp-nav .menu > li > .ac-head {
justify-content: space-between;
}
#sp-nav .menu .ac-head.level-2 {
display: flex;
justify-content: space-between;
align-items: center;
color: var(--white-color);
padding: 8px 8px 8px 12px;
border-bottom: 1px solid var(--white-color);
font-weight: 400;
background: rgba(255, 255, 255, 0.1);
}
.ac-content.level-2.active {
background: var(--main-color);
}
#sp-nav .menu-contact {
display: grid;
grid-template-columns: 1fr;
gap: 24px;
padding: 40px 0 24px;
}
#sp-nav .menu-contact li a {
display: flex;
align-items: center;
gap: 12px;
background: var(--white-color);
width: 100%;
border-radius: 10px;
padding: 12px 0;
justify-content: center;
color: var(--main-color);
font-size: 18px;
font-weight: 600;
}
#sp-nav .menu-contact li a svg {
width: 28px;
height: 28px;
color: var(--sub-color);
}
#sp-nav .menu-sns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
max-width: 612px;
width: 100%;
margin: auto;
align-items: center;
}
#sp-nav .menu-sns li:first-child a img {
padding: 8px;
}
#sp-nav .ac-head {
position: relative;
}
#sp-nav .ac-head::before {
content: "";
position: absolute;
left: 0;
border-left: 4px solid var(--white-color);
height: 100%;
transition: .3s;
opacity: 0;
}
#sp-nav .ac-head.active::before {
opacity: 1;
}
#sp-nav .ac-head span {
display: block;
text-align: center;
line-height: 0;
position: relative;
width: 14px;
height: 14px;
}
#sp-nav .ac-head span {
display: block;
text-align: center;
line-height: 0;
position: relative;
width: 14px;
height: 14px;
}
#sp-nav .ac-head span::before,#sp-nav .ac-head span::after {
display: block;
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 14px;
height: 2px;
background-color: var(--white-color);
transition: .3s;
}
#sp-nav .ac-head span::before {
transform: rotate(90deg);
-webkit-transform: rotate(90deg);
}
#sp-nav .ac-head.active span::before {
transform: rotate(0deg);
-webkit-transform: rotate(00deg);
}
#sp-nav .ac-head.active span::after {
background-color: transparent;
}
#sp-nav .ac-menu a {
color: var(--white-color);
}
#sp-nav .ac-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
}
#sp-nav .ac-content.active {
max-height: 800px;
}
#sp-nav .ac-content a {
display: block;
        padding: 8px 8px 8px 24px;
border-bottom: solid 1px var(--white-color);
}
}