@charset "utf-8";

/* =========================================================
   l-header
   ========================================================= */
.l-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px 0 15px;
  font-family: var(--f-base);
  pointer-events: none;
}
.l-header > * {
  pointer-events: auto;
}
.l-header p {
  margin: 0;
}
.l-header a,
.l-header a:hover {
  text-decoration: none;
}
.l-header__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.l-header .l-header__logoImg {
  flex: none;
  width: 33px;
  height: auto;
}
.l-header__logoTxt {
  min-width: 0;
  padding-top: 2px;
}
.l-header .l-header__catch {
  overflow: hidden;
  color: #fff;
  font-size: clamp(10px, calc(8.565px + 0.383vw), 11.5px);
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}
/* catch: SP and PC texts are separate paragraphs */
.l-header .l-header__catchPc {
  display: none;
}
@media (min-width: 768px) {
  .l-header .l-header__catchPc {
    display: block;
  }
  .l-header .l-header__catchSp {
    display: none;
  }
}
.l-header .l-header__name {
  color: #fff;
  font-size: clamp(18px, calc(15.417px + 0.689vw), 20.7px);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.l-header__right {
  display: none;
}

/* hamburger */
.l-header .navbar {
  position: static;
  flex: none;
  width: clamp(37px, calc(31.69px + 1.416vw), 42.55px);
  height: clamp(37px, calc(31.69px + 1.416vw), 42.55px);
  margin: 4px 0 0 8px;
  padding: 0;
}
.l-header .navbar-dark .navbar-toggler {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(37px, calc(31.69px + 1.416vw), 42.55px);
  height: clamp(37px, calc(31.69px + 1.416vw), 42.55px);
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--c-blue);
}
.l-header .navbar-dark .navbar-toggler:focus {
  outline: none;
}
.l-header .navbar-dark .navbar-toggler-icon {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: none;
}
.l-header .navbar-toggler-icon::before,
.l-header .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 23%;
  width: 54%;
  height: 1px;
  background-color: #fff;
  transition: transform .3s, top .3s;
}
.l-header .navbar-toggler-icon::before {
  top: 40.5%;
}
.l-header .navbar-toggler-icon::after {
  top: 59.5%;
}
.l-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 48.6%;
  transform: rotate(18deg);
}
.l-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 48.6%;
  transform: rotate(-18deg);
}
.l-header .navbar-collapse,
.l-header .navbar-collapse.collapse,
.l-header .navbar-collapse.collapsing {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto !important;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  padding: 68px 19px 37px;
  overflow-y: auto;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background-color: var(--c-gray);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.l-header .navbar-toggler[aria-expanded="true"] ~ .navbar-collapse {
  opacity: 1;
  visibility: visible;
}
/* while the sp drawer is open, the page behind does not scroll */
@media (max-width: 1023px) {
  html:has(.l-header .navbar-toggler[aria-expanded="true"]) {
    overflow: hidden;
  }
  .l-header .navbar-collapse {
    overscroll-behavior: contain;
  }
}
.l-header .navbar-nav {
  display: flex;
  flex: none;
  flex-direction: column;
  margin-bottom: 62px;
  padding: 0 20px;
}
/* center the menu block on wide sp screens */
.l-header .navbar-collapse > .navbar-nav,
.l-header .navbar-collapse > .l-header__menuBtns {
  width: 100%;
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 500px) {
  .l-header .navbar-collapse > .navbar-nav {
    width: max-content;
    max-width: 100%;
    padding: 0;
  }
}
.l-header .navbar-nav .nav-item {
  display: block;
  padding: 8px 0;
}
.l-header .navbar-nav .nav-item p {
  color: var(--c-black);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .05em;
}
.l-header .navbar-nav .nav-item.is-current p {
  color: var(--c-blue);
}
@media (hover: hover) and (max-width: 1023px) {
  .l-header .navbar-nav .nav-item p {
    transition: color .3s;
  }
  .l-header .navbar-nav .nav-item:hover p,
  .l-header .navbar-nav .nav-link:hover p {
    color: var(--c-blue);
  }
}
.l-header__menuBtns {
  display: flex;
  flex: none;
  gap: 4px;
  margin-top: 0;
}
.l-header__menuContact,
.l-header__menuTel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 85px;
  border-radius: 5px;
}
.l-header__menuContact {
  position: relative;
  flex: 165 1 0;
  padding: 0 10px;
  background-color: var(--c-blue);
}
.l-header__menuContact::before,
.l-header__menuContact::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 21px;
  height: 21px;
}
.l-header__menuContact::before {
  border-radius: 50%;
  background: var(--g-main);
}
.l-header__menuContact::after {
  background-color: #fff;
  -webkit-mask: var(--arrow) center / 9px auto no-repeat;
  mask: var(--arrow) center / 9px auto no-repeat;
}
.l-header .l-header__menuEn {
  color: #fff;
  font-family: var(--f-en);
  font-size: clamp(20px, calc(17.13px + 0.765vw), 23px);
  font-weight: 500;
  line-height: 1.2;
}
.l-header .l-header__menuJa {
  color: #fff;
  font-size: clamp(14px, calc(11.991px + 0.536vw), 16.1px);
  font-weight: 500;
  line-height: 1.5;
}
.l-header__menuTel {
  flex: 147 1 0;
  align-items: center;
  padding-top: 20px;
  background: var(--c-light) url("/system_panel/uploads/images/header-icon-tel.png") center 10px / 14px auto no-repeat;
}
.l-header .l-header__menuTelNum {
  color: var(--c-black);
  font-family: var(--f-en);
  font-size: clamp(16px, calc(13.704px + 0.612vw), 18.4px);
  font-weight: 500;
  line-height: 1.3;
}
.l-header .l-header__menuTelTime {
  color: var(--c-black);
  font-size: clamp(12px, calc(10.278px + 0.459vw), 13.8px);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .l-header {
    align-items: center;
    padding: min(44px, 2.292vw) min(37px, 1.927vw) 0 min(47px, 2.448vw);
  }
  .l-header__logo {
    gap: min(21px, 1.094vw);
    padding-top: min(5px, .26vw);
  }
  .l-header .l-header__logoImg {
    width: min(63px, 3.281vw);
  }
  .l-header__logoTxt {
    padding-top: 0;
  }
  .l-header .l-header__catch {
    font-size: clamp(10px, .833vw, 16px);
  }
  .l-header .l-header__name {
    font-size: clamp(20px, 1.875vw, 36px);
    line-height: 1.25;
  }
  .l-header .navbar {
    display: none;
  }
  .l-header__right {
    display: flex;
    align-items: center;
    gap: min(8px, .417vw);
    margin-left: min(20px, 1.042vw);
  }
  .l-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: min(8px, .417vw);
    width: auto;
    min-width: min(820px, 42.708vw);
    height: max(44px, min(63px, 3.281vw));
    padding: 0 min(8px, .417vw);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
  }
  .l-header__navLink {
    display: flex;
    align-items: center;
    height: max(36px, min(49px, 2.552vw));
    padding: 0 max(10px, min(28px, 1.458vw));
    white-space: nowrap;
    border-radius: 5px;
    transition: background-color .3s;
  }
  .l-header__navLink p {
    color: #fff;
    font-size: clamp(12px, .833vw, 16px);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: color .3s;
  }
  .l-header__navLink--drop p::after {
    content: "\FF0B";
  }
  .l-header__navLink:hover,
  .l-header__drop:hover .l-header__navLink--drop {
    background-color: #fff;
  }
  .l-header__navLink:hover p,
  .l-header__drop:hover .l-header__navLink--drop p {
    color: var(--c-black);
  }
  .l-header__drop {
    position: relative;
  }
  .l-header::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s, visibility .3s;
  }
  .l-header__mega {
    position: absolute;
    top: 100%;
    left: min(4px, .208vw);
    display: flex;
    width: min(797px, 41.51vw);
    padding-top: min(18px, .938vw);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .l-header:has(.l-header__drop:hover)::before,
  .l-header__drop:hover .l-header__mega {
    opacity: 1;
    visibility: visible;
  }
  .l-header__megaHead {
    flex: none;
    width: min(148px, 7.708vw);
    padding: min(16px, .833vw) min(24px, 1.25vw);
    border-radius: 10px 0 0 10px;
    background-color: var(--c-blue);
  }
  .l-header .l-header__megaTtl {
    color: #fff;
    font-size: clamp(12px, .833vw, 16px);
    font-weight: 500;
    line-height: 1.4;
  }
  .l-header .l-header__megaEn {
    color: var(--c-light);
    font-family: var(--f-en);
    font-size: clamp(8px, .521vw, 10px);
    font-weight: 500;
    line-height: 1.2;
  }
  .l-header__megaList {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: min(24px, 1.25vw) min(34px, 1.771vw);
    padding: min(33px, 1.719vw) min(54px, 2.812vw) min(36px, 1.875vw) min(64px, 3.333vw);
    border-radius: 0 10px 10px 0;
    background-color: #fff;
  }
  .l-header__megaCard {
    position: relative;
    display: block;
  }
  .l-header__megaCard::before,
  .l-header__megaCard::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: max(18px, min(23px, 1.198vw));
    height: max(18px, min(23px, 1.198vw));
  }
  .l-header__megaCard::before {
    border-radius: 50%;
    background: var(--g-main);
  }
  .l-header__megaCard::after {
    background-color: #fff;
    -webkit-mask: var(--arrow) center / 40% auto no-repeat;
    mask: var(--arrow) center / 40% auto no-repeat;
  }
  .l-header .l-header__megaImg {
    display: block;
    width: 100%;
    aspect-ratio: 242 / 112;
    object-fit: cover;
  }
  .l-header .l-header__megaName {
    margin-top: min(8px, .417vw);
    padding-right: min(30px, 1.562vw);
    color: var(--c-black);
    font-size: clamp(12px, .833vw, 16px);
    font-weight: 500;
    line-height: 1.45;
  }
  .l-header__tel {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: max(44px, min(64px, 3.333vw));
    height: max(44px, min(64px, 3.333vw));
    border-radius: 5px;
    background-color: var(--c-light);
  }
  .l-header .l-header__telIcon {
    width: max(17px, min(23px, 1.198vw));
    height: auto;
  }
  .c-btn.l-header__cta {
    justify-content: center;
    width: min(163px, 8.49vw);
    min-width: 110px;
    height: max(44px, min(63px, 3.281vw));
    padding: 0;
  }
  .c-btn.l-header__cta::after {
    display: none;
  }
}

/* PC text does not fit in one line here: use the SP text */
@media (min-width: 1024px) and (max-width: 1119px) {
  .l-header .l-header__catchPc {
    display: none;
  }
  .l-header .l-header__catchSp {
    display: block;
  }
}

/* =========================================================
   menu follows scroll (logo scrolls away; main.js fixes the menu
   at the place it is drawn and adds .is-fixed / .is-scroll)
   ========================================================= */
.l-header .navbar.is-fixed,
.l-header__right.is-fixed {
  position: fixed;
  z-index: 1001;
  margin: 0;
}
/* pc menu: sliding white marker (added by main.js) */
@media (min-width: 1024px) {
  .l-header__nav.js-ind {
    position: relative;
  }
  .l-header__navInd {
    position: absolute;
    z-index: 0;
    border-radius: 5px;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: left .4s cubic-bezier(.4, 0, .2, 1), width .4s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  }
  .l-header__navInd.is-on {
    opacity: 1;
  }
  .l-header__navInd.is-instant {
    transition: none;
  }
  .l-header__nav.js-ind .l-header__navLink,
  .l-header__nav.js-ind .l-header__drop {
    position: relative;
    z-index: 1;
  }
  .l-header__nav.js-ind .l-header__navLink:hover,
  .l-header__nav.js-ind .l-header__drop:hover .l-header__navLink--drop {
    background-color: transparent;
  }
  .l-header__nav.js-ind .l-header__navLink:hover p,
  .l-header__nav.js-ind .l-header__drop:hover .l-header__navLink--drop p {
    color: #fff;
  }
  .l-header__nav.js-ind .l-header__navLink.is-ind p,
  .l-header__nav.js-ind .l-header__drop:hover .l-header__navLink--drop.is-ind p {
    color: var(--c-black);
  }
}

/* contact button: hover color fills from bottom to top */
.l-header .l-header__cta {
  background-image: linear-gradient(var(--c-light), var(--c-light));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0;
  transition: background-size .4s cubic-bezier(.4, 0, .2, 1), color .4s;
}
.l-header .l-header__cta:hover {
  background-color: var(--c-blue);
  background-size: 100% 100%;
  color: var(--c-black);
}

/* =========================================================
   header follow: frosted glass bar after scrolling 150px
   (.is-scroll is added by main.js)
   ========================================================= */
/* slide in with top (not transform): a transform on the header would trap
   the fixed sp drawer inside the header box while it plays */
@keyframes headerIn {
  from { top: -120px; }
  to { top: 0; }
}
.l-header.is-scroll {
  position: fixed;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  animation: headerIn .4s ease-out;
}
/* the blur is drawn on a layer behind the header: backdrop-filter on the
   header itself would trap the fixed sp drawer inside the header box */
.l-header.is-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(30, 40, 36, .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .l-header.is-scroll {
    padding-top: min(14px, .729vw);
    padding-bottom: min(14px, .729vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .l-header.is-scroll {
    animation: none;
  }
}
