@charset "UTF-8";

header.hd {
  position: fixed;
  padding: 56px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  transition: padding 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

@media screen and (max-width: 1500px) {
  header.hd {
    padding: 28px;
  }
  header .admin-bar header .hd {
    top: 12px;
  }
}

header .hd__inr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: none;
  transition: box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

header .hd__rt {
  display: flex;
}
header .hd__logo {
  padding: 12px 0 12px 24px;
}
header .hd__logo-img {
  width: 238px;
  height: auto;
  display: block;
}
/* PC Nav */
header .hd__nav {
  display: flex;
  align-items: center;
}
header .hd__nav-list {
  display: flex;
  list-style: none;
}
header .hd__nav-list > li {
  position: relative;
  height: fit-content;
}
header .hd__nav-list > li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 1em;
  transform: translateY(-50%);
  background: var(--c-navy-01);
}
header .hd__nav-list > li:last-child::after {
  display: none;
}

header .hd__nav-list > li > a {
  text-decoration: none;
  color: var(--c-black-04);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  position: relative;
  padding: 12px 24px;
  letter-spacing: 0.12em;
}

header .hd__nav-list > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--c-blue-03);
  opacity: 0;
  transition: opacity 0.3s ease;
}

header .hd__nav-list > li > a:hover::after,
header .hd__nav-list > li > a[aria-current="page"]::after {
  opacity: 1;
}

/* PC Nav Sub Menu (Dropdown) */
header .hd__nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.9);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  border-radius: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 100;
  margin-top: 5px;
}

header.hd .hd__nav-list > li.has-sub:hover .hd__nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

header .hd__nav-sub li {
  padding: 0;
  margin: 0;
}

header .hd__nav-sub li::after {
  display: none;
}

header .hd__nav-sub > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  font-size: var(--fs-13);
  text-align: left;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  width: 100%;
  color: var(--c-black-05);
  text-decoration: none;
}

header .hd__nav-sub > li > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--c-blue-03);
  opacity: 0;
  transition: opacity 0.3s ease;
}

header .hd__nav-sub > li > a:hover {
  color: var(--c-blue-03);
}

header .hd__nav-sub > li > a:hover::after {
  opacity: 1;
}

/* PC Btns */
header .hd__btns {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 8px;
  height: 100%;
}

header .hd__btns-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

header .hd__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: opacity 0.3s ease;
  padding: 4px 14px;
  border: 1px solid var(--c-navy-01);
  background-color: var(--c-white);
  gap: 4px;
}
header .hd__btn p {
  color: var(--c-navy-01);
  font-size: 12px;
  line-height: 1.4;
  font-weight: var(--fw-bold);
  text-align: center;
}
header .hd__btn span {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

header .hd__btn img {
  width: 12px;
  height: auto;
  aspect-ratio: 1;
}

header .hd__btn--ct {
  background: linear-gradient(90deg, #0c2163 0%, #006dd9 100%);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-radius: 0 12px 12px 0;
  height: 100%;
  border: 1px solid var(--c-white);
}

header .hd__btn-ct-inr {
  display: flex;
  align-items: center;
  gap: 8px;
}

header .hd__btn-ct-inr .hd__btn-ct-icn {
  width: 27px;
  height: auto;
  aspect-ratio: 27 / 25;
}

header .hd__btn-ct-inr .hd__btn-ct-txt {
  text-align-last: justify;
}

header .hd__btn:hover {
  opacity: 0.8;
}

/* Toggle Btn (Sobajima-style) */
header .toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1100;
}

header .toggle-btn__box {
  width: 30px;
  height: 20px;
  position: relative;
}

header .toggle-btn__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-blue-03);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

header .line1 {
  top: 0;
}
header .line2 {
  top: 50%;
  transform: translateY(-50%);
}
header .line3 {
  bottom: 0;
}

header .toggle-btn__text {
  font-size: 10px;
  font-weight: 700;
  margin-top: 5px;
  color: var(--c-blue-03);
  line-height: 1;
}

/* Active State */
header.hd.is-open .line1 {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
header.hd.is-open .line2 {
  opacity: 0;
}
header.hd.is-open .line3 {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Drawer */
header .hd__drw {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1050;
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 56px 48px;
  overflow-y: auto;
}
header .hd__drw::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #0c2163, #006dd9);
}

header.hd.is-open .hd__drw {
  right: 0;
}

header .hd__drw-inr {
  max-width: 500px;
  margin: 0 auto;
}

header .hd__drw-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--c-black-05);
  margin-bottom: 30px;
}
header .hd__drw-logo-img {
  height: 43px;
  aspect-ratio: 238 / 43;
  display: block;
}

header .hd__drw-list {
  list-style: none;
  padding: 0;
}

header .hd__drw-list > li {
  margin-bottom: 25px;
}

header .hd__drw-list > li > a {
  font-weight: var(--fw-bold);
  text-decoration: none;
  color: var(--c-black-05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
header .hd__drw-list > li > a:hover {
  color: var(--c-blue-02);
}

header .hd__drw-list > li > a span {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .hd__drw-list > li > a span::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid var(--c-red-01);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

header .hd__drw-list > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-black-05);
  border-bottom: 2px solid var(--c-black-05);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 5px;
}

header .hd__drw-list > li.has-sub.is-active > a::after {
  transform: rotate(-135deg);
}

header .hd__drw-sub {
  list-style: none;
  padding: 10px 0 0 20px;
  display: block;
}

header .hd__drw-sub li {
  margin-bottom: 12px;
}

header .hd__drw-sub a {
  font-size: var(--fs-13);
  text-decoration: none;
  color: var(--c-black-05);
  display: flex;
  align-items: center;
  gap: 8px;
}
header .hd__drw-sub a:hover {
  color: var(--c-blue-02);
}

header .hd__drw-sub a::before {
  content: "-";
  color: var(--c-black-05);
}

header .hd__drw-btm {
  position: relative;
  padding-top: 32px;
}

header .hd__drw-banners {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

header .hd__drw-banner {
  max-width: 315px;
  aspect-ratio: 315 / 95;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive */
header .pc-only {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 1;
  justify-content: flex-end;
}
header .sp-only {
  display: none;
}
@media screen and (max-width: 1500px) {
  header .hd {
    padding: 12px 24px;
  }
  header .hd__nav-list a {
    padding: 8px 12px;
  }
  header .hd__btn--ct {
    padding: 8px 12px;
  }
  header .hd__btn-ct-inr {
    gap: 8px;
  }
}
@media screen and (max-width: 1200px) {
  header .hd__nav-list > li > a {
    padding: 8px 12px;
  }
}
@media screen and (max-width: 1024px) {
  header .pc-only {
    display: none;
  }
  header .sp-only {
    display: flex;
  }
  header .hd__inr {
    padding: 8px 24px;
    border-radius: 15px;
  }
  header .hd__logo {
    padding: 0;
  }
  header .hd__logo a {
    margin: 0;
  }
}
@media screen and (max-width: 600px) {
  header.hd {
    padding: 20px;
  }
  header .hd__inr {
    padding: 8px 12px;
    border-radius: 10px;
  }
  header .hd__logo-img {
    width: 160px;
  }
  header .toggle-btn__box {
    width: 24px;
    height: 16px;
  }
  header .hd__drw {
    width: 80%;
    padding: 48px 5% 24px;
  }
  header .hd__drw-logo-img {
    height: 32px;
  }
  header .hd__drw-btm {
    padding-top: 16px;
  }
}
.hd.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}
.hd.is-scrolled .hd__inr {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
}
