.l-header {
  width: 100%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Noto Serif JP", serif;
}
.l-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.l-header__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}
.l-header__logo:hover {
  opacity: 0.85;
}
.l-header__logo img {
  width: auto;
  height: 24px;
  display: block;
}
.l-header__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  height: 100vh;
  background-color: #ffffff;
  padding: 90px 24px 40px;
  z-index: 950;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.l-header__nav.is-active {
  display: block;
  right: 0;
}
.l-header__nav .l-header__nav-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}
.l-header__nav .nav-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  order: 1;
  margin-bottom: 40px;
}
.l-header__nav .nav-main > li {
  width: 100%;
  border-bottom: 1px solid rgba(121, 19, 54, 0.1);
}
.l-header__nav .nav-main > li > a {
  color: #791336;
  font-size: 15px;
  font-weight: bold;
  display: block;
  padding: 14px 0 14px 8px;
  text-decoration: none;
}
.l-header__nav .nav-main > li > a:active {
  background-color: rgba(121, 19, 54, 0.03);
}
.l-header__nav .nav-main .nav-child {
  width: 100%;
  padding: 4px 0 8px 0;
  background-color: rgba(121, 19, 54, 0.02);
}
.l-header__nav .nav-main .nav-child li {
  width: 100%;
  border: none;
}
.l-header__nav .nav-main .nav-child li a {
  color: #791336;
  font-size: 14px;
  font-weight: normal;
  display: block;
  padding: 10px 0 10px 24px;
  text-decoration: none;
  background-color: rgba(121, 19, 54, 0.05);
}
.l-header__nav .nav-main .nav-child li a:active {
  background-color: #fff !important;
}
.l-header__nav .nav-main .line {
  display: none;
}
.l-header__nav .nav-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  order: 2;
  margin-top: 24px;
}
.l-header__nav .nav-sub li {
  width: 100%;
}
.l-header__nav .nav-sub li a {
  color: #333333;
  font-size: 13px;
  display: block;
  padding: 6px 8px;
  text-decoration: none;
}
.l-header__nav .nav-sub .line {
  display: none;
}
.l-header__nav .nav-sub .btn-change {
  background-color: #791336;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: bold;
  padding: 12px;
  border-radius: 50px;
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(121, 19, 54, 0.15);
}
.l-header__nav .nav-sub .btn-change:active {
  opacity: 0.85;
}
.l-header__trigger {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 960;
}
.l-header__trigger span {
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background-color: #791336;
  transition: 0.3s ease;
}
.l-header__trigger span:nth-child(1) {
  top: 14px;
}
.l-header__trigger span:nth-child(2) {
  top: 21px;
}
.l-header__trigger span:nth-child(3) {
  top: 28px;
}
.l-header__trigger.is-active span {
  background-color: #791336;
}
.l-header__trigger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.l-header__trigger.is-active span:nth-child(2) {
  opacity: 0;
}
.l-header__trigger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.l-header__overlay {
  display: none;
}
.l-header__overlay.is-active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 940;
  backdrop-filter: blur(2px);
}

@media screen and (min-width: 768px) {
  .l-header__inner {
    height: auto;
    padding: 10px 20px;
    gap: 0 20px;
    flex-wrap: nowrap;
  }
  .l-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
  }
  .l-header__logo img {
    height: clamp(22px, 2.5vw, 32px) !important;
    width: auto !important;
    display: block;
  }
  .l-header__trigger {
    display: none !important;
  }
  .l-header__nav {
    display: flex;
    align-items: center;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
    right: auto;
    overflow-y: visible;
  }
  .l-header__nav .l-header__nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    justify-content: flex-start;
    height: auto;
  }
  .l-header__nav .nav-sub, .l-header__nav .nav-main {
    flex-direction: row;
    align-items: center;
    gap: 0;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
  }
  .l-header__nav .nav-sub li, .l-header__nav .nav-main li {
    width: auto;
    border: none;
  }
  .l-header__nav .nav-sub li a, .l-header__nav .nav-main li a {
    padding: 0;
    font-weight: normal;
  }
  .l-header__nav .nav-sub li a:active, .l-header__nav .nav-main li a:active {
    background: none;
  }
  .l-header__nav .nav-sub .line, .l-header__nav .nav-main .line {
    display: block;
  }
  .l-header__nav .nav-sub {
    order: 0 !important;
    font-size: 12px;
  }
  .l-header__nav .nav-sub li {
    color: #791336;
  }
  .l-header__nav .nav-sub li a {
    color: #791336;
    font-size: 12px !important;
    transition: color 0.3s ease, opacity 0.3s ease;
  }
  .l-header__nav .nav-sub li a:hover {
    color: #862b4a;
    opacity: 0.85;
  }
  .l-header__nav .nav-sub .btn-change {
    background-color: #791336;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 5px 16px;
    border-radius: 50px;
    margin-left: 14px;
    margin-top: 0;
    display: inline-block;
    width: auto;
    box-shadow: none;
    transition: background-color 0.2s, opacity 0.2s;
  }
  .l-header__nav .nav-sub .btn-change:hover {
    background-color: #862b4a;
    color: #ffffff;
    opacity: 1;
  }
  .l-header__nav .nav-main {
    order: 0 !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    display: flex;
  }
  .l-header__nav .nav-main .has-child {
    position: relative;
  }
  .l-header__nav .nav-main .has-child:hover .nav-child {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .l-header__nav .nav-main > li {
    white-space: nowrap;
  }
  .l-header__nav .nav-main a {
    color: #791336;
    font-size: 15px;
    transition: color 0.3s ease, opacity 0.3s ease;
  }
}
@media screen and (min-width: 768px) and (max-width: 1240px) {
  .l-header__nav .nav-main a {
    font-size: 14px !important;
  }
}
@media screen and (min-width: 768px) {
  .l-header__nav .nav-main a:hover {
    color: #862b4a;
    opacity: 0.85;
  }
  .l-header__nav .nav-main .nav-child {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: #ffffff;
    padding: 10px 0 0;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 10;
    width: max-content;
    min-width: 100%;
  }
  .l-header__nav .nav-main .nav-child li {
    width: 100%;
    display: block;
    white-space: nowrap;
  }
  .l-header__nav .nav-main .nav-child li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px !important;
    color: #791336;
    text-align: center;
  }
  .l-header__nav .nav-main .nav-child li a:hover {
    background-color: rgba(121, 19, 54, 0.05);
    color: #791336;
    opacity: 1;
  }
  .l-header__nav .line {
    color: rgba(121, 19, 54, 0.5);
    margin: 0 12px;
    font-size: 11px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1240px) {
  .l-header__nav .line {
    margin: 0 6px;
  }
}
