@charset "UTF-8";
/* header.css */
.p-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.125rem;
  background-color: #faf8f7;
}
@media (min-width: 768px) {
  .p-header {
    height: 7.8125rem;
  }
}
@media (min-width: 1024px) {
  .p-header {
    height: 8.375rem;
  }
}

.p-header__contents {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 1.1875rem 0;
}
@media (min-width: 768px) {
  .p-header__contents {
    padding-inline: 2.96875rem 0;
  }
}
@media (min-width: 1024px) {
  .p-header__contents {
    padding-inline: 6rem 2.5rem;
  }
}

.p-header__logo {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1.1875rem;
  display: grid;
  align-items: center;
  width: 4.1875rem;
  height: 3.125rem;
}
@media (min-width: 768px) {
  .p-header__logo {
    left: 2.96875rem;
    width: 10.46875rem;
    height: 7.8125rem;
  }
}
@media (min-width: 1024px) {
  .p-header__logo {
    left: 6rem;
    width: 12rem;
    height: 8.375rem;
  }
}
.p-header__logo a {
  display: block;
}
.p-header__logo img {
  display: block;
  aspect-ratio: 2/1;
}

/*----------------------------------
  PC ナビ（1024px〜）
-----------------------------------*/
.p-header__nav {
  display: none;
}
@media (min-width: 1024px) {
  .p-header__nav {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
  }
}

.p-header__list {
  display: flex;
  align-items: center;
  column-gap: 4rem;
}

@media (any-hover: hover) {
  .p-header__item:hover {
    opacity: 1;
  }
  .p-header__item:hover p::after {
    scale: 1 1;
    transform-origin: left center;
  }
}
.p-header__item p {
  position: relative;
  color: #000000;
  white-space: nowrap;
  font-size: max(1.25rem, 8px);
  font-weight: 900;
  line-height: 1.45;
}
.p-header__item p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.375rem;
  width: 100%;
  height: 1px;
  background-color: #000000;
  scale: 0 1;
  transform-origin: right center;
  transition: scale 0.4s ease;
  pointer-events: none;
}

.p-header__tel {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.8125rem;
  margin-inline-start: 3.0625rem;
  padding-block: 0.25rem;
  padding-inline-start: 3rem;
  border-left: 1px solid #000000;
}
.p-header__tel img {
  width: 0.75rem;
  aspect-ratio: 12/21;
}
.p-header__tel p {
  color: #000000;
  white-space: nowrap;
}
.p-header__tel p:nth-of-type(1) {
  font-size: max(1.25rem, 8px);
  font-weight: 900;
  line-height: 1.45;
}
.p-header__tel p:nth-of-type(2) {
  grid-column: 1/-1;
  justify-self: end;
  font-size: max(0.875rem, 8px);
  font-weight: 900;
  line-height: 1.4285714286;
}

.p-header__contact {
  flex-shrink: 0;
  margin-inline-start: 1.5625rem;
}
.p-header__contact a {
  display: grid;
  place-items: center;
  width: 12rem;
  min-height: 3.6875rem;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 100vmax;
  --btn-grad-1: #ffffff;
  --btn-grad-2: #ffffff;
  --btn-grad-3: #ffffff;
  background-image: linear-gradient(96deg, var(--btn-grad-1) 0%, var(--btn-grad-2) 50.7%, var(--btn-grad-3) 100%);
  transition: --btn-grad-1 0.3s ease, --btn-grad-2 0.3s ease, --btn-grad-3 0.3s ease;
}
@media (any-hover: hover) {
  .p-header__contact a:hover {
    opacity: 1;
    --btn-grad-1: #ffbd28;
    --btn-grad-2: #fbe93e;
    --btn-grad-3: #fac639;
  }
}
.p-header__contact p {
  color: #000000;
  font-size: max(1.25rem, 8px);
  font-weight: 900;
  line-height: 1.45;
}

/*----------------------------------
  SP・タブレット：電話・メールのアイコン（XD：各 59px 幅 ＋ 区切り線）
-----------------------------------*/
.p-header__icons {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
  margin-inline-end: 3.375rem;
}
@media (min-width: 768px) {
  .p-header__icons {
    margin-inline-end: 8.4375rem;
  }
}
@media (min-width: 1024px) {
  .p-header__icons {
    display: none;
  }
}

.p-header__icons .p-header__icons {
  margin-inline: 0;
}

.p-header__icon {
  display: grid;
  place-items: center;
  width: 3.6875rem;
  height: 1.5625rem;
}
@media (min-width: 768px) {
  .p-header__icon {
    width: 9.21875rem;
    height: 3.90625rem;
  }
}
.p-header__icon + .p-header__icon {
  border-left: 1px solid #000000;
}
.p-header__icon img {
  width: 0.75rem;
  aspect-ratio: 12/21;
}
@media (min-width: 768px) {
  .p-header__icon img {
    width: 1.875rem;
  }
}
.p-header__icon:nth-child(2) img {
  width: 1.125rem;
  aspect-ratio: 18/13;
}
@media (min-width: 768px) {
  .p-header__icon:nth-child(2) img {
    width: 2.8125rem;
  }
}

/*----------------------------------
  ドロワーアイコン（XD：3本線 20px・間隔 7px）
-----------------------------------*/
.p-drawer__icon {
  cursor: pointer;
  position: fixed;
  z-index: 102;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 3.375rem;
  height: 3.125rem;
  mix-blend-mode: difference;
}
@media (min-width: 768px) {
  .p-drawer__icon {
    width: 8.4375rem;
    height: 7.8125rem;
  }
}
.p-drawer__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  width: 1px;
  height: 1.5625rem;
  background-color: #ffffff;
  pointer-events: none;
}
@media (min-width: 768px) {
  .p-drawer__icon::before {
    height: 3.90625rem;
  }
}
@media (min-width: 1024px) {
  .p-drawer__icon {
    display: none;
  }
}

.p-drawer__icon--bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0.375rem;
}
@media (min-width: 768px) {
  .p-drawer__icon--bar {
    row-gap: 0.9375rem;
  }
}

.p-drawer__icon--bar1,
.p-drawer__icon--bar2,
.p-drawer__icon--bar3 {
  width: 1.25rem;
  height: 1px;
  background-color: #ffffff;
  transition: rotate 0.4s ease, translate 0.4s ease, opacity 0.4s ease;
}
@media (min-width: 768px) {
  .p-drawer__icon--bar1,
  .p-drawer__icon--bar2,
  .p-drawer__icon--bar3 {
    width: 3.125rem;
  }
}

.p-drawer__icon.js-show .p-drawer__icon--bar1 {
  rotate: 45deg;
  translate: 0 0.4375rem;
}
@media (min-width: 768px) {
  .p-drawer__icon.js-show .p-drawer__icon--bar1 {
    translate: 0 1.09375rem;
  }
}
.p-drawer__icon.js-show .p-drawer__icon--bar2 {
  opacity: 0;
}
.p-drawer__icon.js-show .p-drawer__icon--bar3 {
  rotate: -45deg;
  translate: 0 -0.4375rem;
}
@media (min-width: 768px) {
  .p-drawer__icon.js-show .p-drawer__icon--bar3 {
    translate: 0 -1.09375rem;
  }
}

/*----------------------------------
  ドロワーメニュー（ヘッダーの下に全面表示）
-----------------------------------*/
.p-drawer {
  position: fixed;
  z-index: 101;
  overflow-y: auto;
  top: 3.125rem;
  right: 0;
  width: 100%;
  height: calc(100svh - 3.125rem);
  padding: 3.5rem 1.25rem 5rem;
  background-color: #faf8f7;
  visibility: hidden;
  translate: 101% 0;
  transition: translate 0.5s ease, visibility 0.5s ease;
}
@media (min-width: 768px) {
  .p-drawer {
    top: 7.8125rem;
    height: calc(100svh - 7.8125rem);
    padding: 8.75rem 3.125rem 12.5rem;
  }
}
.p-drawer.js-show {
  visibility: visible;
  translate: 0 0;
}
@media (min-width: 1024px) {
  .p-drawer {
    display: none;
  }
}

/*----------------------------------
  ヘッダー：背景透過 ＋ 反転（確認用。HTML の header から p-header--blend を外すと元の背景ありに戻る）
  ・ヘッダー全体を mix-blend-mode: difference で重ね、中身は invert(1) で色を反転しておく
    → 明るい背景の上ではほぼ元の色（反転の反転）、暗い背景の上では白く反転して見える
-----------------------------------*/
.p-header--blend {
  background-color: transparent;
  mix-blend-mode: difference;
}
.p-header--blend .p-header__contents {
  filter: invert(1);
}
