@charset "UTF-8";
/* ==========================================================
   ヘッダー：様式ダウンロード ボタン
   ・既存のヘッダーCSSより後に読み込む
   ・ブレイクポイントは既存に合わせる（PC：1160.2px〜／ハンバーガー：〜1160px）
   ========================================================== */

/* ---------- 共通：既存メニューの装飾を打ち消してボタン化 ---------- */
.navigation .navigation-item.is-download .item-link.is-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #1c227e;
  border-radius: 3px;
  background-color: #1c227e;
  color: #fff;
  transition: background-color .26s, color .26s;
}

/* 上の罫線（グレー線・黒線）を消す */
.navigation .navigation-item.is-download .item-link.is-button::after,
.navigation .navigation-item.is-download .item-link.is-button:hover::after {
  display: none;
}

/* ::before はダウンロードアイコンとして使う */
.navigation .navigation-item.is-download .item-link.is-button::before {
  content: "";
  position: static;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 右側の黒い矢印ボックスを消す */
.navigation .navigation-item.is-download .item-text {
  padding-right: 0;
  text-align: center;
  white-space: nowrap;
}

.navigation .navigation-item.is-download .item-text::before {
  display: none;
}

@media (hover: hover) {
  .navigation .navigation-item.is-download .item-link.is-button:hover {
    background-color: #fff;
    color: #1c227e;
    opacity: 1;
  }
}

/* ---------- PC（1160.2px〜）：横並びメニュー ---------- */
@media (min-width: 1160.2px) {
  /* ロゴ：1350px以上は元の422px、それ以下は段階的に縮める */
  .header-site .header-logo {
    flex-shrink: 0;
    width: clamp(300px, calc(100vw - 952px), 422px);
  }

  .header-site .header-logo img {
    width: 100%;
    height: auto;
  }

  .navigation {
    flex: 1;
    min-width: 0;
    margin-left: 24px; /* ロゴとメニューの間隔 */
  }

  .navigation .navigation-list {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* 7項目になるため、既存の間隔（25px）を詰め、幅も伸縮させる */
  .navigation .navigation-item {
    flex: 0 1 105px;
    width: auto;
    min-width: 0;
    margin-right: 16px;
  }

  .navigation .navigation-item.is-download {
    flex: none;
    margin-right: 0;
  }

  /* 採用情報ページ：ヒーロー上（白抜きヘッダー）のとき */
  body:not(.is-body) .header-site.header-modify .navigation .navigation-item.is-download .item-link.is-button {
    border-color: #fff;
    background-color: transparent;
    color: #fff;
  }
}

@media (min-width: 1160.2px) and (hover: hover) {
  body:not(.is-body) .header-site.header-modify .navigation .navigation-item.is-download .item-link.is-button:hover {
    background-color: #fff;
    color: #1c227e;
  }
}

/* ---------- ハンバーガーメニュー内（〜1160px） ---------- */
@media (max-width: 1160px) {
  .navigation .navigation-item.is-download {
    width: 100%;
    margin-top: 30px;
  }

  .navigation .navigation-item.is-download .item-link.is-button {
    padding: 16px 20px;
  }

  .navigation .navigation-item.is-download .item-link.is-button::before {
    width: 20px;
    height: 20px;
  }
}
