@charset "UTF-8";
.p-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  /* 1101〜1366pxでナビを連続圧縮（1366でフルに飽和=ジャンプ無し・1366厳密維持）。
     圧縮に連動して左右余白(gutter)を確保。 */
  --nav-gutter: clamp(0px, calc(40px - (100vw - 1101px) * 40 / 265), 40px);
  width: min(1327px, 100% - var(--nav-gutter));
  margin-inline: auto;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.p-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.p-header__inner {
  display: flex;
  align-items: center;
  height: 85px;
  padding: 0 19px 0 16px;
}

.p-header__logo {
  width: clamp(280px, 280px + (100vw - 1101px) * 91 / 265, 371px);
  height: 54px;
  flex: 0 0 auto;
  margin: 0 0px 0 0;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.p-header__logo:hover,
.p-header__logo:focus-visible {
  transform: scale(1.04);
}

.p-header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  margin-left: clamp(14px, 14px + (100vw - 1101px) * 13 / 265, 27px);
  gap: clamp(14px, 14px + (100vw - 1101px) * 29 / 265, 43px);
}

.p-header__nav a {
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.p-header__navContact {
  display: none;
}

.p-header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--color-green-bright);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.p-header__nav a:hover::after,
.p-header__nav a.is-current::after,
.p-header__nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.p-header__contact {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 152px;
  height: 47px;
  margin-left: clamp(14px, 14px + (100vw - 1101px) * 20 / 265, 34px);
  border-radius: 5px;
  background: var(--color-green);
}

.p-header__contact::before {
  content: "";
  width: 14px;
  height: 11px;
  background: url("../images/icon_com-mail.svg") center/contain no-repeat;
}

.p-header__menu {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.p-header__menu::before,
.p-header__menu::after {
  content: "";
  position: absolute;
  left: 8px;
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-green);
  transition: transform 0.2s ease, top 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.p-header.is-menuNoTransition .p-header__menu::before,
.p-header.is-menuNoTransition .p-header__menu::after {
  transition: none;
}

.p-header__menu::before {
  top: 13px;
  box-shadow: 0 8px 0 var(--color-green), 0 16px 0 var(--color-green);
}

.p-header__menu::after {
  top: 29px;
  opacity: 0;
}

.p-header.is-menuOpen .p-header__menu::before {
  top: 21px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.p-header.is-menuOpen .p-header__menu::after {
  top: 21px;
  opacity: 1;
  transform: rotate(-45deg);
}

@media screen and (max-width: 1100px) {
  .p-header {
    width: min(100% - 40px, 1196px);
  }
  .p-header__inner {
    height: 64px;
    padding: 0 16px;
  }
  .p-header__logo {
    width: 182px;
    margin-right: 0;
  }
  .p-header__logo img {
    width: 182px;
  }
  .p-header__nav,
  .p-header__contact {
    display: none;
  }
  .p-header__menu {
    display: block;
    margin-left: auto;
  }
  .p-header.is-menuOpen .p-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    justify-content: stretch;
    gap: 0;
    width: 100%;
    margin-left: 0;
    padding: 8px 20px 16px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }
  .p-header.is-menuOpen .p-header__nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .p-header.is-menuOpen .p-header__nav .p-header__navContact {
    display: block;
  }
  .p-header.is-menuOpen .p-header__nav a::after {
    display: none;
  }
}
@media screen and (max-width: 600px) {
  .p-header__logo {
    width: 165px;
  }
  .p-header__logo img {
    width: 165px;
  }
}
