@charset "utf-8";

/* ======================
header
====================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  border-bottom: 1px solid #fff;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.header2 {
  background-color: #1d1d1d;
}
.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.19);
  -webkit-backdrop-filter: blur(4px) brightness(1.1);
  backdrop-filter: blur(4px) brightness(1.1);
}
.header.is-scrolled .header__item {
  color: #1d1d1d;
}
body:has(.sp__menu.active) .header {
  background-color: #1d1d1d;
}
.header__inner {
  max-width: 1920px;
  margin: 0 auto;
}
.header__container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding-right: clamp(1.25rem, -1.792rem + 6.337vw, 5.8125rem);
  padding-left: clamp(1.25rem, -2.208rem + 7.205vw, 6.4375rem);
}
.header__container > a {
  display: block;
  flex-shrink: 0;
  width: fit-content;
}
.header__logo {
  width: 79px;
  height: auto;
  object-fit: contain;
}
.header__items {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, -0.417rem + 3.472vw, 3.75rem);
}
.header__item {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.75rem, 0.583rem + 0.347vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}
.header__contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 162px;
  height: 44px;
  padding: 0 10px;
  background-color: #1d1d1d;
}
.header__contact--2 {
  border: 1px solid #fff;
}
.header-contact__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.75rem, 0.583rem + 0.347vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}
.header-contact__icon {
  flex-shrink: 0;
  width: 18px;
  height: auto;
  opacity: 0;
}
.header__contact::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 18px;
  height: 7px;
  translate: 0 -50%;
  background-image: url("https://rkw.co.jp/system_panel/uploads/images/20260721101624673739.png"), url("https://rkw.co.jp/system_panel/uploads/images/20260721101624673739.png");
  background-repeat: no-repeat;
  background-size: 18px 7px;
  background-position: 0 50%, -34px 50%;
  transition: background-position 0.4s ease-in-out;
  pointer-events: none;
}
.header__contact:hover::after {
  background-position: 34px 50%, 0 50%;
}
.hamBtn,
.hamBtn-open {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 80px;
  height: 100%;
  margin: 0;
  border-left: 1px solid #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.hamBtn:hover,
.hamBtn-open:hover {
  opacity: 0.5;
}

/* ======================
sp-menu
====================== */
.sp__menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 150;
  background-color: #1d1d1d;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  overflow-y: hidden;
  transition: transform 0.5s ease, visibility 0.5s;
}
.sp__menu.active {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sp__menu.active::-webkit-scrollbar {
  display: none;
}
.sp-menu__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  min-height: 100%;
}
.sp-menu__container {
      max-width: 375px;
    margin-left: auto;
    margin-right: auto;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 80px;
  padding-right: 20px;
  padding-bottom: 40px;
  padding-left: 20px;
}
.sp-menu__items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 20px;
}
.sp-menu__item {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
.sp-menu__contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 318px;
  height: 80px;
  margin-top: auto;
  margin-right: auto;
  margin-left: auto;
  padding: 0 25px;
  background-color: #2b2a2a;
  margin-top: 40px;
}
.sp-menu-contact__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}
.sp-menu-contact__icon {
  flex-shrink: 0;
  width: 20px;
  height: auto;
  opacity: 0;
}
.sp-menu__contact::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 20px;
  height: 8px;
  translate: 0 -50%;
  background-image: url("https://rkw.co.jp/system_panel/uploads/images/20260721101624673739.png"), url("https://rkw.co.jp/system_panel/uploads/images/20260721101624673739.png");
  background-repeat: no-repeat;
  background-size: 20px 8px;
  background-position: 0 50%, -36px 50%;
  transition: background-position 0.4s ease-in-out;
  pointer-events: none;
}
.sp-menu__contact:hover::after {
  background-position: 36px 50%, 0 50%;
}
body:has(.sp__menu.active) {
  overflow: hidden;
}

@media (max-width: 767px) {
  .header__container {
    height: 43px;
    padding-right: 0;
    padding-left: 20px;
  }
  .header__logo {
    width: clamp(1.688rem, 0.91rem + 3.32vw, 2.5rem);
  }
  .header__items {
    display: none;
  }
  .hamBtn {
    display: flex;
  }
  .hamBtn-open {
    display: none;
  }
  body:has(.sp__menu.active) .hamBtn {
    display: none;
  }
  body:has(.sp__menu.active) .hamBtn-open {
    display: flex;
  }
}
