/* ===============================================
# header.css
=============================================== */

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--t-blue);
  color: var(--white);
  z-index: 1000;
}

/* スクロール後 */
.l-header.is-scrolled {
  background: rgba(3, 88, 167, 0.615);
  backdrop-filter: blur(8px);
}

@media screen and (min-width: 768px) {
  .l-header {
    height: 80px;
  }
}

.c-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: var(--container-width);
  padding-inline: 2.5rem;
  margin-inline: auto;
}

@media screen and (min-width: 1024px) {
  .c-header-inner {
    padding-inline: 4rem;
    /* ヘッダーは端まで広げすぎず少し余裕を */
  }
}

.c-header-logo {
  width: clamp(12rem, 15vw, 16rem);
  margin: 0;
  transition: width 0.3s ease;
}

/* ===============================================
# nav
=============================================== */

/* hamburger　toggle */
.c-drawer-toggle {
  display: block;
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.c-drawer-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: 0.3s;
}

@media screen and (min-width: 1024px) {
  .c-drawer-toggle {
    display: none;
  }
}

.c-drawer-toggle span:nth-child(1) {
  top: 0;
}

.c-drawer-toggle span:nth-child(2) {
  top: 11px;
}

.c-drawer-toggle span:nth-child(3) {
  bottom: 0;
}

#js-drawer {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100dvh - 60px);
  background: rgba(3, 88, 167, 0.85);
  transition: left 0.4s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

#js-drawer.is-active {
  left: 0;
}

/* SP　nav表示 */
.c-drawer-nav__list {
  list-style: none;
  text-align: center;
}

.c-drawer-nav__list li {
  margin-bottom: 3rem;
}

.c-drawer-nav__list li a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
}
/* ===============================================
# hamburger active
=============================================== */

.c-drawer-toggle.is-active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.c-drawer-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.c-drawer-toggle.is-active span:nth-child(3) {
  bottom: 11px;
  transform: rotate(-45deg);
}
/* PC nav表示 */
.c-header-nav {
  display: none;
}

@media screen and (min-width: 1024px) {
  .c-header-nav {
    display: block;
  }
}

.c-header-nav__list {
  display: flex;
  align-items: center;
  gap: 4rem;
  list-style: none;
}

.c-header-nav__list a {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}

.c-header-nav__list a:hover {
  opacity: 0.5;
}

.c-button--header {
  display: block;
  background: var(--t-yellow);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--t-text-main) !important;
}
