@charset "UTF-8";
/*============================================================
  header.css — ヘッダー・グローバルナビゲーション
  PC: min-width: 1151px  /  SP: max-width: 1150px
============================================================*/

/* ------------------------------------------------------------
  共通ユーティリティ
------------------------------------------------------------ */
.w_base {
  max-width: 1400px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
  ヘッダー（PC）
------------------------------------------------------------ */
.hd_bg {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

#header-index {
  height: 60px;
}

.hd_bg .hd {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  height: 60px;
}

/* ---- ロゴ ---- */
.hd_logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.ap_logo {
  display: block;
  width: 100%;
  max-width: 420px;
}
.ap_logo img {
  display: block;
  width: 100%;
  height: auto;
}

.jpx_logo {
  width: 40px;
  height: auto;
}

.icon_x {
    flex-shrink: 0;
    width: 50px;
    height: auto;

    img {
        width: 100%;
    }
}

/* ---- コンタクトボックス ---- */
.header-contactbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
}

.header-tel_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 5px;
}
.header-tel_list dl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #0a0a0a;
}
.header-tel_list dl dt {
  font-weight: 700;
}
.header-tel_list dl dd {
  margin: 0;
}

#header-mail_lg {
  width: 40px;
  margin-left: 20px;
  padding: 5px 0;
}
#header-mail_lg img,
#icon-mail_sp {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.gaiyou {
  margin-left: 20px;
}
.gaiyou a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}
.gaiyou a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
  グローバルナビゲーション（PC）
------------------------------------------------------------ */
.navigation {
  position: relative;
  width: 100%;
  height: 70px;
  background: #1b4f98;
  font-size: 1rem;
  overflow: hidden;
}

.navigation .hamburger {
  display: none; /* PCでは非表示 */
}

.navigation nav {
  display: block;
  height: 100%;
}

.navigation nav ul.navi_list {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 1px 0;
  padding: 0;
}

.navigation nav ul.navi_list > li {
  width: 10%;
  text-align: center;
  border-right: 1px solid #8f8f8f;
}
.navigation nav ul.navi_list > li:first-child {
  border-left: 1px solid #8f8f8f;
}

/* ナビリンク */
.navigation nav ul.navi_list > li > a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  /* ホバー時アンダーライン用 */
  background: linear-gradient(currentColor 0 0) bottom / var(--underline-w, 20%) 3px no-repeat;
  transition: background-size 0.3s;
}
.navigation nav ul.navi_list > li > a span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 0.8em;
  line-height: 1.4;
}
.navigation nav ul.navi_list > li:hover > a {
  --underline-w: 80%;
}

/* ドロップダウン */
.navigation nav ul.navi_list > li .hover_list {
  display: none;
  position: absolute;
  top: 70px;
  width: auto;
  background-color: #4c4c4c;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation nav ul.navi_list > li:hover .hover_list {
  display: block;
  animation: slideInFromLeft 0.3s ease both;
}
.navigation nav ul.navi_list > li .hover_list li {
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
}
.navigation nav ul.navi_list > li .hover_list li:hover {
  transform: scale(1.05);
}
.navigation nav ul.navi_list > li .hover_list li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  color: #fff;
  text-decoration: none;
}
.navigation nav ul.navi_list > li .hover_list .list_pickup {
  background: #990000;
  font-weight: bold;
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* SP専用メニューはPCで非表示 */
.sp_only {
  display: none !important;
}

/* ------------------------------------------------------------
  SP対応（max-width: 1150px）
------------------------------------------------------------ */
@media screen and (max-width: 1150px) {

  /* ---- ヘッダー ---- */
  .hd_bg {
    padding: 10px;
    z-index: 1000;
  }
  #header-index {
    height: auto;
  }
  .hd_bg .hd {
    gap: 0;
    padding-right: 56px; /* ハンバーガーボタン分の余白 */
  }

  .jpx_logo {
      flex-shrink: 0;
      width: 30px;
      height: auto;
  }

  .icon_x {
      flex-shrink: 0;
      width: 30px;
      height: auto;

      img {
          width: 100%;
      }
  }

  /* テキスト・電話リストはSPで非表示 */
  .header-tel_list,
  .gaiyou {
    display: none;
  }

  /* メールアイコンのみ表示 */
  #header-mail_lg {
    margin-left: 10px;
  }

  /* ---- ナビゲーション ---- */
  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
    pointer-events: none; /* ハンバーガー以外はJS制御 */
  }

  /* ハンバーガーボタン */
  .navigation .hamburger {
    display: block;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 40px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    pointer-events: auto;
  }
  .navigation .hamburger_bar {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #333;
    transition: top 0.24s, transform 0.24s, opacity 0.24s;
  }
  .navigation .hamburger_bar:nth-child(1) { top: 0; }
  .navigation .hamburger_bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .navigation .hamburger_bar:nth-child(3) { top: 100%; transform: translateY(-100%); }

  /* ハンバーガー：開いた状態 */
  .navigation .hamburger[aria-expanded="true"] .hamburger_bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
  }
  .navigation .hamburger[aria-expanded="true"] .hamburger_bar:nth-child(2) {
    opacity: 0;
    transform: translate(50%, -50%);
  }
  .navigation .hamburger[aria-expanded="true"] .hamburger_bar:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-135deg);
  }

  /* SPナビ本体（初期状態は非表示） */
  .navigation .nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s;
    z-index: 100;
  }
  .navigation .nav.is_active {
    opacity: 1;
    pointer-events: auto;
  }

  .navigation .nav .navi_list {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    text-align: center;
    border: none;
  }
  .navigation .nav .navi_list > li {
    width: 100%;
    border: none;
    margin: 40px 0;
    padding: 0;
  }
  .navigation .nav .navi_list > li:first-child {
    border-left: none;
  }
  .navigation .nav .navi_list > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #333;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #eee;
  }
  .navigation .nav .navi_list > li > a span {
    height: auto;
    font-size: 1rem;
  }

  /* SP専用メニュー表示 */
  .sp_only {
    display: list-item !important;
  }
  .sp_only--contact {
    margin-bottom: 40px;
  }
  .sp_only--contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto !important;
    padding: 16px 0;
    color: #333 !important;
    line-height: 1.8;
  }

  /* SPでドロップダウンは縦展開しない */
  .navigation .nav .navi_list > li .hover_list {
    display: none !important;
  }

  @keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .navigation .nav.is_active {
    animation: slideDownNav 0.24s ease both;
  }
}
