/* ---------------------------------- リセット ---------------------------------- */
/* cookie表示削除 */
#pi_tracking_opt_in_div {
  display: none !important;
  visibility: hidden !important;
}

#header2025,
.fixed-header {
  line-height: 1.5;
  letter-spacing: 0em;
  font-family: "Noto Sans JP", sans-serif;

  /* 表示切替 */
  .sp {
    display: none !important;
  }

  .pc {
    display: block;
  }

  zoom: 120%;

  @media screen and (max-width: 1600px) {
    zoom: 100%;
  }
  @media screen and (max-width: 1440px) {
    zoom: 90%;
  }

  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    margin: 0;
    line-height: 150%;
    letter-spacing: 0;
    color: #000;
  }

  ol,
  ul {
    padding: 0;
    margin: 0;
  }

  small,
  em,
  span,
  strong {
    font-style: normal;
    font-weight: inherit;
    color: inherit;
  }
}

/* -------------------------------- Header(PC) -------------------------------- */
#header2025 {
  position: relative;
  z-index: 1002;
}

.fixed-header {
}
#header2025,
.fixed-header {
  .sec_cta {
    margin-bottom: 80px;
  }

  .header__topbar,
  .header__nav {
    * {
      color: #fff;
    }

    .header__wrapper-l {
      padding-inline: 16px;
    }
  }

  .header__wrapper-l {
    width: min(100%, 1920px);
    margin-inline: auto;
  }

  .header__topbar {
    background: linear-gradient(to right, #38a1d7, #153c7b);
    /* padding-block: calc((6 / 390) * 100vw); */
    padding-block: 4px;

    .header__wrapper-l {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-flow: row wrap;
    }

    .header__topbar-button {
      padding-bottom: 4px;
      span {
        font-size: 12px;
        font-weight: 400;
        position: relative;
        padding-right: 16px;

        &::before {
          content: "";
          position: absolute;
          inset: 0 0 0 auto;
          margin-block: auto;
          width: 16px;
          height: 16px;
          background: no-repeat center / contain
            url("/assets/images/header_2025/header_deco1.webp");
        }
      }
    }
  }

  .header__nav {
    background-color: #1b2951;
    /* padding-block: 16px; */

    .header__wrapper-l {
      display: flex;
      /* justify-content: space-between; */
      justify-content: start;
      align-items: center;
      flex-flow: row nowrap;
      gap: 16px;
    }

    .header__logo {
      line-height: 0;
      margin-inline: 0 auto;
      img {
        min-width: 207px;
      }
    }

    .header__button {
      flex-shrink: 0;
      width: 188px;
      height: 45px;
      background-color: #ff544b;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 4px;

      span {
        color: inherit;
        font-size: 20px;
        font-weight: 700;
        padding-left: 32px;
        letter-spacing: 0;
        position: relative;

        &::before {
          content: "";
          position: absolute;
          inset: 0 auto 0 0;
          margin-block: auto;
          width: 21px;
          height: 16px;
          background: no-repeat center / contain
            url("/assets/images/header_2025/header_deco3.webp");
        }
      }
    }
  }

  .header__tel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row nowrap;
    gap: 8px;

    .header__tel-text,
    .header__tel-call {
      font-weight: 700;
      letter-spacing: 0;
      color: #fff;
      white-space: nowrap;
    }

    .header__tel-text {
      font-size: 15px;
      line-height: 1.3;

      span {
        letter-spacing: 0.39em;
      }
    }

    .header__tel-call {
      font-size: 36px;
      position: relative;
      padding-left: 40px;

      &::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        margin-block: auto;
        width: 34px;
        height: 34px;
        background: no-repeat center / contain
          url("/assets/images/header_2025/header_tel2.webp");
      }
    }
  }

  .header__list {
    height: 70px;
    /* margin-inline: 0 40px; */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row nowrap;
    gap: 32px;
  }

  .header__item {
    height: 100%;

    /* &:last-of-type {
      .header__item-link::after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        top: calc(50% - (36 / 2));
        width: 1px;
        height: 36px;
        background-color: #647bac;
      }
    } */

    .header__item-link {
      position: relative;
      display: block;
      height: inherit;
      display: flex;
      justify-content: center;
      align-items: center;
      &::before {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: calc(50% - (36 / 2));
        width: 1px;
        height: 36px;
        background-color: #647bac;
      }
      span {
        white-space: nowrap;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0;
        padding-bottom: 8px;
        position: relative;

        &::before {
          content: "";
          position: absolute;
          inset: auto 0 0 0;
          margin-inline: auto;
          width: 16px;
          height: 8px;
          background: no-repeat center / contain
            url("/assets/images/header_2025/header_deco2.webp");
          transform: translateY(50%);
        }
      }

      &::after {
        position: absolute;
        bottom: 0px;
        display: block;
        width: 100%;
        height: 3px;
        background-color: #647bac;
        content: "";
        opacity: 0;
        transition: all 0.3s;
        transform: scaleX(0);
      }
      &:hover::after {
        opacity: 1;
        transform: scaleX(1);
      }
      &:hover {
        opacity: 1;
      }
    }

    &:first-of-type {
      .header__item-link::before {
        content: none !important;
      }
    }
  }

  .header__item--solo {
    .header__item-link {
      span {
        &::before {
          content: none;
        }
      }
    }
  }
}
.navigation__close{
  display: none !important;
}

/* 固定ヘッダー用のスタイル */
.fixed-header {
  border-top: 5px solid #fff;
  border-image: linear-gradient(to right, #38a1d7, #153c7b);
  border-image-slice: 1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  transform: translateY(-100%);
  transition: transform 0.3s ease;

  &.show {
    transform: translateY(0);
  }

  .header__nav {
    background-color: rgba(27, 41, 81, 0.9) !important;

    .header__wrapper-l {
      width: min(100%, 1920px);
      margin-inline: auto;
      padding-inline: 16px;
      display: flex;
      justify-content: start;
      align-items: center;
      flex-flow: row nowrap;
      gap: 16px;
    }
  }
}
/* -------------------------------- ナビゲーション -------------------------------- */
.header__list {
  gap: 0 !important;
  /* position: relative; */
}

/* ヘッダーリスト全体のホバー領域を拡張 */
.header__list::before {
  content: "";
  position: absolute;
  top: clamp(-5px, -0.694vw, -10px);
  left: clamp(-10px, -1.389vw, -20px);
  right: clamp(-10px, -1.389vw, -20px);
  bottom: clamp(-25px, -3.472vw, -50px);
  z-index: -1;
  pointer-events: none;
}

.header__item-link {
  display: block;
  justify-content: flex-start;
  padding: 0 clamp(12px, 1.667vw, 24px) !important; /* 24px / 1440px * 100 */
  position: relative;
}

/* ホバー領域を少し拡張してちらつきを防ぐ */
.header__item--has-sub::before {
  content: "";
  position: absolute;
  top: clamp(-5px, -0.694vw, -10px); /* -10px / 1440px * 100 */
  left: clamp(-5px, -0.694vw, -10px); /* -10px / 1440px * 100 */
  right: clamp(-5px, -0.694vw, -10px); /* -10px / 1440px * 100 */
  bottom: clamp(-25px, -3.472vw, -50px); /* メガメニューまでカバー */
  z-index: -1;
}

.header__item-link.active {
  background-color: #130b30;
  /* または他のアクティブ状態のスタイル */
}

/* .megamenu */

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  flex-direction: row;
  /* 横方向にフレックス表示 */
  width: 95%;
  min-height: 650px;
  background-color: #28427b;
  z-index: 1000;
  overflow: visible;
  /* 3階層目が外に出るのを許可 */

  /* アニメーション設定 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(
    clamp(-5px, -0.694vw, -10px)
  ); /* -10px / 1440px * 100 */
  transition: opacity 0.25s ease-out, transform 0.25s ease-out,
    visibility 0s 0.25s;
  pointer-events: none;
  /* アニメーション中のマウスイベントを無効化 */

  @media screen and (max-width: 1600px) {
    min-height: 650px;
  }
  @media screen and (max-width: 1600px) {
    /* zoom: 90%; */
    min-height: 550px;
  }
}

/* メガメニュー表示時のスタイル */
.megamenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0s 0s;
  pointer-events: auto;
  /* 表示時はマウスイベントを有効化 */
}

/* メガメニュー内のレイアウト */
.megamenu__left {
  width: 25%;
}
.megamenu__right {
  width: 20%;
}
.megamenu__right {
  background-color: #130b30;
}

.megamenu > .submenu {
  display: block;
  /* メガメニュー内の2階層目は常に表示 */
  position: relative;
  /* relativeに戻して3階層目の基準点にする */
  padding: clamp(10px, 1.389vw, 20px); /* 20px / 1440px * 100 */
  box-shadow: none;
  width: 27.5%;
  margin-right: auto !important;
}

/* メガメニューを最初は表示状態にする */
.header__item--has-sub .megamenu {
  display: flex;
}

/* ホバー時にメガメニュー内のサブメニューを表示の設定は不要（常時表示のため） */

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  z-index: 10;
}

/* メガメニュー内の2階層サブメニューは静的配置 */
.megamenu .submenu.level-2 {
  position: relative;
  display: block;
  box-shadow: none;
  z-index: auto;
  background: transparent;
}

/* 3階層目のサブメニュー - バックアップと同じシンプル実装 */
.megamenu .submenu.level-3 {
  position: absolute;
  display: none;
  z-index: 25;
  top: 0;
  left: 100%;
}

/* 3階層目のサブメニュー位置設定（削除または修正） */
/* .submenu .submenu {
    top: 0;
    left: 100%;
    display: none;
  } */

.submenu li a {
  display: block;
  position: relative;
}

/* デフォルトでは矢印を非表示 */
.submenu__item > a::after {
  content: "";
}

/* 3階層目を持つ項目にのみ矢印を表示（クラスベース） */
.submenu__item.has-submenu > a::after {
  content: "";
  position: absolute;
  right: clamp(8px, 1.042vw, 15px); /* 15px / 1440px * 100 */
  top: 50%;
  transform: translateY(-50%);
  background: url("/assets/images/header_2025/submenu_level-2_arrow.webp")
    no-repeat center / contain;
  width: clamp(10px, 1.389vw, 20px); /* 20px / 1440px * 100 */
  height: clamp(10px, 1.389vw, 20px); /* 20px / 1440px * 100 */
}

/* 左側の矢印は非表示に */
.submenu__item > a::before {
  content: "";
}

.submenu li a:hover {
  opacity: 0.8;
}

/* JavaScriptで制御するためのクラス - バックアップと同じ */
.submenu__item.active > .submenu.level-3 {
  display: block;
}

.submenu__item.inactive > .submenu.level-3 {
  display: none !important;
}

/* 2階層目のホバー時のスタイル強化 */
.megamenu .submenu.level-2 .submenu__item.has-submenu:hover > a {
  background-color: #130b30;
  transition: background-color 0.2s ease;
}

/* デバッグ用のクラス */
.debug-show {
  display: block !important;
}

.debug-show-flex {
  display: flex !important;
}

/* ============= 見た目 ============ */
/* 左のコンテンツ */
.megamenu__left {
  padding: clamp(20px, 2.778vw, 40px); /* 40px / 1440px * 100 */
}

.megamenu__left-content {
  position: relative;
  width: clamp(200px, 27.778vw, 400px); /* 400px / 1440px * 100 */
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.megamenu__left-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0px;
  width: 1px; /* 1pxは固定値のまま */
  height: 100%;
  background-color: #647bac;
  z-index: 26;
}

.megamenu__left-title dt {
  font-size: clamp(16px, 2.1vw, 32px); /* 32px / 1440px * 100 */
  font-weight: 700;
  margin-bottom: 16px;
}

.megamenu__left-links li:not(:last-of-type) {
  margin-bottom: clamp(8px, 1.111vw, 16px) !important; /* 16px / 1440px * 100 */
}

.megamenu__left-links a {
  position: relative;
  display: flex;
  gap: clamp(2px, 0.278vw, 4px); /* 4px / 1440px * 100 */
  font-size: clamp(8px, 1.111vw, 16px); /* 16px / 1440px * 100 */
  font-weight: bold;
  width: fit-content;
  padding-bottom: clamp(4px, 0.556vw, 8px) !important; /* 8px / 1440px * 100 */
  border-bottom: 1px dashed #fff;
  padding-right: clamp(
    12px,
    1.667vw,
    24px
  ) !important; /* 24px / 1440px * 100 */
}

.megamenu__left-links a::after {
  content: "";
  position: absolute;
  right: calc((-9px / 2) + 2px); /* 最小値での計算 */
  top: calc(50% - (9px / 2) - 2px); /* 最小値での計算 */
  width: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
  height: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
  background: url("/assets/images/header_2025/megamenu__left-links_icon.webp")
    no-repeat center / contain;
  transition: right 0.3s ease;
}

.megamenu__left-links a:hover::after {
  right: calc((-9px / 2) + 0px); /* 最小値での計算 */
}

/* 右のコンテンツ */
.megamenu__right {
  position: relative;
  padding: clamp(20px, 2.778vw, 40px); /* 40px / 1440px * 100 */
  padding-top: clamp(20px, 8.333vw, 120px); /* 50px / 1440px * 100 */
}

.megamenu__right-close {
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.556vw, 8px); /* 8px / 1440px * 100 */
  padding: clamp(4px, 0.556vw, 8px) !important; /* 8px / 1440px * 100 */
  top: 1vw;
  position: absolute;
  right: clamp(20px, 2.778vw, 40px);
  background: none;
  .megamenu__right-close-text {
    font-size: clamp(10px, 0.972vw, 14px); /* 20px / 1440px * 100 */
  }
}

.megamenu__right-content {
  /* width: 200px;  */
  width: 100%;
  margin: 0 auto;
  height: fit-content;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 40px;
}

.megamenu__right-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(-50px, -6.944vw, -100px); /* -100px / 1440px * 100 */
  width: 1px;
  height: 100%;
  background-color: #647bac;
  z-index: 26;
}

.megamenu__right-img {
  width: 100%;
  height: auto;
  margin-bottom: clamp(8px, 1.111vw, 16px); /* 16px / 1440px * 100 */
}

.megamenu__right-txt {
  font-size: clamp(10px, 1.389vw, 20px); /* 20px / 1440px * 100 */
}

.megamenu__right-txt .marker {
  background: linear-gradient(
    transparent 10%,
    #ffff00 10%,
    #ffff00 100%
  );
  display: inline;
  padding: 0 2px; /* テキストの左右に少し余白を追加 */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #000 !important;
  font-weight: bold !important;
}

.megamenu__right-call {
  text-align: center;
  margin-bottom: clamp(4px, 0.556vw, 8px) !important; /* 8px / 1440px * 100 */
}

.megamenu__right-call a {
  display: inline-block;
  margin: 0 auto;
  line-height: 1;
  /* font-size: clamp(15px, 2.083vw, 35px); */
  /* 30px / 1440px * 100 */
  font-size: clamp(15px, 2.3vw, 40px);
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: clamp(4px, 0.556vw, 8px); /* 8px / 1440px * 100 */
  text-align: justify;
  text-align-last: justify;

  /* 念のため */
  white-space: nowrap;
}

.megamenu__right-call span {
  display: block;
  line-height: 1;
  font-size: clamp(7px, 0.972vw, 14px); /* 14px / 1440px * 100 */
  color: #fff;
  text-align: justify;
  text-align-last: justify;
}

.megamenu__right-button {
  flex-shrink: 0;
  width: 100%;
  height: clamp(30px, 4.167vw, 60px); /* 60px / 1440px * 100 */
  background-color: #ff544b;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.megamenu__right-button span {
  color: inherit;
  font-size: clamp(8px, 1.111vw, 16px); /* 16px / 1440px * 100 */
  line-height: 1;
  font-weight: bold;
  padding-left: 32px;
  letter-spacing: 0;
  position: relative;
}

.megamenu__right-button span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  margin-block: auto;
  width: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
  height: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
  background: no-repeat center / contain
    url("/assets/images/header_2025/header_deco3.webp");
}

.megamenu .submenu.level-2 {
  padding: clamp(20px, 2.778vw, 40px) 0 !important; /* 40px / 1440px * 100 */
}

/* has-submenuを持たない2階層目は3階層目スタイルと同じ背景色 */
.megamenu .submenu.level-2:not(:has(.has-submenu)) {
  background-color: #130b30;
  padding: clamp(20px, 2.778vw, 40px) !important; /* 40px / 1440px * 100 */
}

.megamenu .submenu.level-2 .submenu__item.active > a {
  background-color: #130b30;
}

.megamenu .submenu.level-2 a:hover {
  background-color: #130b30;
}

/* 2階層目と3階層目のスタイル分け */
.level-2 > li > a {
  font-size: clamp(10px, 1.389vw, 20px); /* 20px / 1440px * 100 */
  font-weight: bold;
  padding: clamp(12px, 1.667vw, 24px); /* 24px / 1440px * 100 */
}

.level-2:not(:has(.has-submenu)) > li > a {
  padding: 0 !important;
}

/* has-submenuを持たない2階層目は3階層目と同じスタイル */
.level-2:not(:has(.has-submenu)) > li:not(:last-of-type) {
  margin-bottom: clamp(12px, 1.667vw, 24px); /* 24px / 1440px * 100 */
}

.level-2:not(:has(.has-submenu)) {
  width: 55%;
}

.level-2:not(:has(.has-submenu)) > li > a,
.level-3 > li > a {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.556vw, 8px); /* 8px / 1440px * 100 */
  font-size: clamp(12px, 1.388vw, 20px) !important; /* 16px / 1440px * 100 */
  font-weight: bold;
  transition: gap 0.3s;

  &::after {
    content: "";
    display: block;
    width: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
    height: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
    background: url("/assets/images/header_2025/submenu_level-3_icon.webp")
      no-repeat center / contain;
  }

  &:hover {
    gap: clamp(6px, 0.833vw, 12px); /* 12px / 1440px * 100 */
  }
}

.megamenu .submenu.level-3 {
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2.778vw, 40px) !important; /* 40px / 1440px * 100 */
  background-color: #130b30;
}

.level-3 > li:not(:last-of-type) {
  margin-bottom: clamp(12px, 1.667vw, 24px); /* 24px / 1440px * 100 */
}

.sub-level-2 {
  .megamenu__left-content {
    &::before {
      content: none;
    }
  }
}

/* ナビ - DDFが選ばれる理由 */
.submenu__item--noIconParent {
  margin-bottom: 0;
}

.submenu__item--noIcon {
  &::after {
    display: none !important;
  }
}

.submenu2 {
  padding-left: clamp(1px, 0.139vw, 2px) !important; /* 2px / 1440px * 100 */
  margin-bottom: clamp(
    12px,
    1.667vw,
    24px
  ) !important; /* 24px / 1440px * 100 */
  margin-left: clamp(3px, 0.417vw, 6px) !important; /* 6px / 1440px * 100 */

  .submenu__item {
    &:not(:last-child) {
      margin-bottom: clamp(
        8px,
        1.111vw,
        16px
      ) !important; /* 16px / 1440px * 100 */
    }
    a {
      display: flex;
      align-items: center;
      gap: clamp(4px, 0.556vw, 8px); /* 8px / 1440px * 100 */
      font-size: clamp(
        12px,
        1.388vw,
        20px
      ) !important; /* 16px / 1440px * 100 */
      font-weight: bold !important;
      transition: gap 0.3s;

      &::after {
        content: "";
        display: block;
        width: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
        height: clamp(9px, 1.25vw, 18px); /* 18px / 1440px * 100 */
        background: url("/assets/images/header_2025/submenu_level-3_icon.webp")
          no-repeat center / contain;
      }

      &:hover {
        gap: clamp(6px, 0.833vw, 12px); /* 12px / 1440px * 100 */
      }
    }
  }

  .submenu__item a {
    padding-left: clamp(
      10px,
      1.389vw,
      20px
    ) !important; /* 20px / 1440px * 100 */
    position: relative !important;

    &::before {
      content: "";
      position: absolute;
      inset: 0 auto auto 0;
      width: clamp(8px, 1.111vw, 16px); /* 16px / 1440px * 100 */
      height: clamp(20px, 2.847vw, 41px); /* 41px / 1440px * 100 */
      background: no-repeat center / contain
        url("/assets/images/header_2025/sp-header_deco1.webp");
      transform: translateY(-65%);
    }
  }
}

/* ===== PCメニュー用オーバーレイ ===== */
.menu-overlay {
  position: fixed;
  /* top: 0; */
  left: 0;
  width: 100%;
  height: calc(100vh + 200px);

  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out, visibility 0s 0.25s;
  pointer-events: none;
  display: none; /* デフォルトは非表示 */
}

/* PCでのみ表示 */
@media (min-width: 769px) {
  .menu-overlay {
    display: block;
  }
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease-out, visibility 0s 0s;
  pointer-events: auto;
}
