@charset "utf-8";

/* -----------------------------------------------
* Project: Header
-------------------------------------------------- */

.p-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;

  @media (min-width: 769px) {
    position: static;
  }
}

:where(.p-header *) {
  max-height: 100%;
}

@media (max-width: 768px) {
  :where([data-scrolled="true"]) .p-header {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
}

:where(.is-drawer-open) .p-header {
  box-shadow: 0 0 1px 1px #666;
}

.p-header__container {
  padding: 20px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;

  @media (769px <= width < 1360px) {
    gap: 10px;
    align-items: center;
  }
  
  @media (min-width: 1360px) {
    max-width: 1300px;
    margin-inline: auto;
    padding: 23px 0;
    gap: 20px;
  }
}

/* 左側：ロゴとJPXアイコン */
.p-header__left {
  display: flex;
  gap: 15px;
  flex-shrink: 0;

  @media (min-width: 769px) {
    align-items: center;
  }
  
  @media (min-width: 1360px) {
    padding-top: 15px;
    gap: 47px;
  }
}

.p-header__logo {
  display: flex;

  @media (min-width: 769px) {
    padding-left: 0;
  }

  @media (min-width: 1360px) {
    padding-left: 22px;
  }
}

.p-header__logo-link {
  display: block;
  text-decoration: none;
}

.p-header__logo-img {
  height: min(44px, 12vw);
  width: auto;
  display: block;
  aspect-ratio: 91/43;

  @media (min-width: 769px) {
    height: clamp(50px, 5vw, 86px);
  }

  @media (min-width: 1360px) {
    height: 86px;
  }
}

.p-header__icon-img {
  display: block;
  height: min(43px, 12vw);
  width: auto;
  aspect-ratio: 53/65;

  @media (min-width: 769px) {
    height: clamp(50px, 5vw, 65px);
  }

  @media (min-width: 1360px) {
    height: 65px;
  }
}

/* 中央：電話番号 */
.p-header__center {
  justify-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;

  @media (min-width: 769px) {    
    justify-self: center;
    flex-direction: row;
    width: auto;
    gap: 10px;
  }
  
  @media (min-width: 1360px) {
    padding-top: 23px;
    gap: 20px;
  }
}

.p-header__tel-link {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gaia-color-secondary);
  font-weight: bold;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;

  @media (min-width: 769px) {
    font-size: 18px;
  }

  @media (min-width: 1360px) {
    font-size: 20px;
    gap: 8px;
  }
}

.p-header__tel-area {
  font-size: 12px;
  color: var(--gaia-color-secondary);

  @media (min-width: 769px) {
    color: #000;
    font-size: 18px;
    position: relative;
    padding: 0 .25em;

    &::before,
    &::after {
      content: '';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 1px;
      height: 1.5em;
      background-color: currentColor;
    }

    &::before {
      left: 0;
    }

    &::after {
      right: 0;
    }
  }

  @media (min-width: 1280px) {
    font-size: 20px;
  }
}

.p-header__tel-num {
  color: var(--gaia-color-secondary);

  @media (min-width: 769px) {
    font-size: 20px;
  }

  @media (min-width: 1280px) {
    font-size: 30px;
    letter-spacing: .03em;
  }
}

.p-header__tel-desc {
  display: block;
  font-weight: bold;
  font-size: 8px;
  font-feature-settings: 'palt';

  @media (min-width: 769px) {
    font-size: 10px;
  }

  @media (min-width: 1360px) {
    font-size: 12px;
    letter-spacing: -0.05em;
    margin-top: 6px;
    line-height: 1.2;
  }
}

/* 右側：メニューとボタン */
.p-header__right {
  padding-top: 8px;
  justify-self: flex-end;

  @media (min-width: 769px) {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
  }
}

/* PCのみ右上のリンク表示 */
@media (min-width: 769px) {
  .p-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .p-header__menu-item {
    margin: 0;
  }

  .p-header__menu-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    font-feature-settings: 'palt';
  }

  .p-header__button-group {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* ヘッダー用ボタン */
  .p-header__button {
    margin: 0;
    width: auto;
    max-width: none;
  }

  .p-header__button a {
    font-size: 16px;
    font-weight: 700;
    min-width: 120px;
    --gaia-button-height: 30px;
    padding: .2em 1em;
    letter-spacing: 0;
    white-space: nowrap;

    @media (width < 1360px) {
      font-size: 14px;
    }
  }

  .p-header__button a:after {
    display: none;
  }

}