/* Shared site header / SP drawer (default = pink contact) */
[data-site-header] {
  display: block;
  min-height: 84px;
}

.site-header {
  --site-header-ink: #222;
  --site-header-white: #fff;
  --site-header-main: #00a6c7;
  --site-header-pink: linear-gradient(90deg, #fc6067 0%, #f48491 100%);
  --site-header-green: #00c75a;
  /* TOP の html{font-size:62.5%} や body 書式から隔離 */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--site-header-white);
  box-shadow: inset 0 -1px 0 #e8e8e8;
  color: var(--site-header-ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
}

.site-header a {
  text-decoration: none;
}

/* TOP など全体 a:hover の opacity を打ち消す */
.site-header a:hover {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  min-height: 84px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

.site-header__logo img {
  display: block;
  width: 208px;
  max-width: none;
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__menu a {
  color: var(--site-header-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  transition: color 0.2s;
}

.site-header__menu a:hover {
  color: var(--site-header-main);
  opacity: 1;
}

/* .site-header a より詳細度を上げて白文字を確実に効かせる */
.site-header a.site-header__contact {
  --site-header-contact-ink: #e84a52;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  min-height: 44px;
  padding: 10px 30px;
  border: 1px solid var(--site-header-contact-ink);
  border-radius: 70px;
  color: var(--site-header-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  box-sizing: border-box;
  transition:
    color 0.9s cubic-bezier(0.09, 0.99, 0.15, 0.99),
    transform 0.45s cubic-bezier(0.09, 0.99, 0.15, 0.99);
}

/* 左端から白く覆う */
.site-header a.site-header__contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--site-header-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.09, 0.99, 0.15, 0.99);
  pointer-events: none;
}

.site-header a.site-header__contact:hover {
  color: var(--site-header-contact-ink);
  opacity: 1;
  transform: translateY(-1px);
}

.site-header a.site-header__contact:hover::before {
  transform: scaleX(1);
}

.site-header__contact--pink {
  --site-header-contact-ink: #e84a52;
  background: var(--site-header-pink);
}

.site-header__contact--green {
  --site-header-contact-ink: #009e48;
  background: var(--site-header-green);
}

@media (prefers-reduced-motion: reduce) {
  .site-header a.site-header__contact,
  .site-header a.site-header__contact::before {
    transition: none;
  }

  .site-header a.site-header__contact:hover {
    transform: none;
  }

  .site-header a.site-header__contact:hover::before {
    transform: scaleX(1);
  }
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--site-header-ink);
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.site-header.is-open .site-header__toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__overlay {
  display: none;
}

body.is-nav-open {
  overflow: hidden;
}

@media (min-width: 768px) and (max-width: 900px) {
  .site-header__inner {
    gap: 12px;
    min-height: 72px;
  }

  .site-header__logo img {
    width: 150px;
  }

  .site-header__nav {
    gap: 14px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .site-header__menu {
    gap: 16px;
    flex-wrap: nowrap;
  }

  .site-header__menu a {
    font-size: 15px;
    white-space: nowrap;
  }

  .site-header a.site-header__contact {
    padding: 8px 16px;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .site-header__toggle {
    display: flex;
    align-items: flex-end;
    width: 44px;
  }

  .site-header__toggle span {
    margin-inline: 0;
  }

  .site-header__inner {
    position: relative;
    z-index: 96;
    min-height: 66px;
    padding-inline: 16px;
  }

  .site-header__logo img {
    width: 146px;
  }

  .site-header__overlay {
    display: block;
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .site-header.is-open .site-header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 16px;
    background: var(--site-header-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.3s,
      opacity 0.3s,
      visibility 0.3s;
  }

  .site-header.is-open .site-header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }

  .site-header__menu a {
    font-size: 16px;
  }

  .site-header a.site-header__contact {
    width: 100%;
    max-width: none;
    min-height: 50px;
    justify-content: center;
    text-align: center;
    font-size: 16px;
  }
}
