@charset "utf-8";
.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(52, 64, 72, 0.7),
    rgba(136, 136, 136, 0)
  );
  width: 100%;
  height: 81px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__inner {
  width: 100%;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-white);
}

@media screen and (min-width: 768px) {
  .header__inner {
    padding-inline: 40px;
  }
}

.header__logo-text h1 {
  width: 1px;
  height: 1px;
  font-size: 1px;
  line-height: 0;
  opacity: 0;
}

.header__logo {
  width: clamp(220px, 16.62vw, 227px);
  height: auto;
  aspect-ratio: 227/36;
}

.header__logo img {
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.header__wrap {
  display: none;
  align-items: center;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .header__wrap {
    display: flex;
  }
}

@media screen and (min-width: 900px) {
  .header__wrap {
    gap: 20px;
  }
}

@media screen and (min-width: 1000px) {
  .header__wrap {
    gap: 27px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (min-width: 900px) {
  .header__nav {
    gap: 20px;
  }
}

@media screen and (min-width: 1000px) {
  .header__nav {
    gap: 32px;
  }
}

.header__item p {
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: 1.2;
}

.header__open-button {
  position: fixed;
  z-index: 101;
  top: 25px;
  right: 20px;
  z-index: 200;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .header__open-button {
    display: none;
  }
}

.header__open-button.is-open .header__open-bar:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 10px);
}

.header__open-button.is-open .header__open-bar:nth-of-type(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__open-button.is-open .header__open-bar:nth-of-type(3) {
  transform: rotate(-45deg) translate(6px, -12px);
}

.header__open-bar {
  width: 30px;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 3px;
  position: relative;
}

.header__drawer {
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  padding: 132px 20px;
  width: 100%;
  height: 100%;
  background: rgba(52, 64, 72, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.8s ease;
  overflow-y: scroll;
}

.header__drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.8s ease;
}

.header__drawer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.header__drawer-item p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: calc(60 / 1000 * 1em);
  line-height: 1.2;
  color: var(--color-white);
}

.button__contact-link p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: calc(80 / 1000 * 1em);
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 17px;
  background: #579bdb;
  color: var(--color-white);
  transition: background 0.3s ease, color 0.3s ease;
}

.button__contact-link p::before {
  content: "";
  aspect-ratio: 17/9;
  width: 17px;
  height: auto;
  background: url(../images/mail-icon.svg) no-repeat center center/contain;
  transition: background 0.3s ease;
}

/* チラつき防止でホバー時の画像を読み込んでいます */
.button__contact-link p::after {
  background: url(../images/mail-icon-b.svg) no-repeat center center/contain;
  display: none;
}

/* ここを修正：親要素のホバーで子要素のスタイルを変更 */
.button__contact-link:hover p {
  background: var(--color-white);
  color: #579bdb;
}

.button__contact-link:hover p::before {
  background: url(../images/mail-icon-b.svg) no-repeat center center/contain;
}
