/* 
─────────────────────────────────────────────────────────────────
Ｓ：ヘッダー
───────────────────────────────────────────────────────────────── */
.header {
  width: 100%;
  background-color: #fff;
  border-top: 4px solid #00009f;
  border-bottom: 1px solid #e5e5fc;
}

.header_frame {
  max-width: 648px;
  margin: 0 auto;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_contents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  height: 72px;
  margin: 0 24px;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_logo {
  width: 144px;
  margin: 4px 0 0;
}

.header_logo_frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.header_logo_img {
  width: 100%;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_burger {
  width: 56px;
  height: 40px;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header_burger_frame {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header_burger_icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 100%;
  overflow: hidden;
}

.header_burger_icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 500px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header_burger.active {
  background-color: #7b8ca4;
}

.header_burger.active .header_burger_line_1 {
  transform: translateY(8px) rotate(45deg);
}

.header_burger.active .header_burger_line_2 {
  opacity: 0;
}

.header_burger.active .header_burger_line_3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.fixed_panel {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 24px 32px;
}

/* 
───────────────────────────────────────────────────────────────── */
.fixed_panel_burger {
  width: 180px;
  height: 44px;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.fixed_panel_burger_frame {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.fixed_panel_burger_icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 100%;
  overflow: hidden;
}

.fixed_panel_burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 500px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fixed_panel_burger_title {
  color: #fff;
}

.fixed_panel_burger.active {
  background-color: #7b8ca4;
}

.fixed_panel_burger.active .fixed_panel_burger_line_1 {
  transform: translateY(8px) rotate(45deg);
}

.fixed_panel_burger.active .fixed_panel_burger_line_2 {
  opacity: 0;
}

.fixed_panel_burger.active .fixed_panel_burger_line_3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.fixed_panel_home {
  width: 56px;
  height: 44px;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.fixed_panel_home_frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.fixed_panel_home_icon {
  width: 32%;
}

/* 
───────────────────────────────────────────────────────────────── */
.fixed_panel_scroll {
  width: 56px;
  height: 44px;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.fixed_panel_scroll_frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.fixed_panel_scroll_icon {
  width: 32%;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_navigation {
  position: fixed;
  right: 50%;
  bottom: 96px;
  z-index: 100;
  display: none;
  width: auto;
  background-color: hsl(240deg 100% 31% / 30%);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateX(50%);
}

.header_navigation.active {
  display: block;
  opacity: 1;
}

.header_navigation_frame {
  width: auto;
  margin: 8px 16px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 4px;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_navigation_contents {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin: 8px 16px;
}

.header_navigation_item {
  height: auto;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_navigation_toggle {
  width: 276px;
  cursor: pointer;
  border-bottom: 1px solid #7f7ff1;
  transition: all 0.3s ease;
}

.header_navigation_toggle.active {
  border-bottom: 1px solid #e5e5fc;
}

.header_navigation_toggle_frame {
  position: relative; /* header_navigation_toggle_signの起点 */
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.header_navigation_toggle_title {
  color: #00009f;
  transition: all 0.3s ease;
}

.header_navigation_toggle.active .header_navigation_toggle_title {
  color: #7f7ff1;
}

.header_navigation_toggle_sign {
  position: absolute;
  top: 50%;
  right: 16px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.header_navigation_toggle_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.header_navigation_toggle_sign_line::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 86%;
  height: 2px;
  margin: -1px 0 0 -42%;
  content: "";
  background: #00009f;
  transition: all 0.3s ease;
}

.header_navigation_toggle_sign_line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 86%;
  height: 2px;
  margin: -1px 0 0 -42%;
  content: "";
  background: #00009f;
  transition: all 0.3s ease;
  transform: rotate(90deg);
}

.header_navigation_toggle.active .header_navigation_toggle_sign_line::after {
  transform: rotate(180deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.header_navigation_button {
  width: 276px;
  margin: 16px 0 0;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header_navigation_button_frame {
  position: relative; /* header_navigation_button_signの起点 */
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.header_navigation_button_title {
  width: auto;
  font-size: 1rem;
  color: #fff;
}

.header_navigation_button_sign {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 1px 0 0;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.header_navigation_button_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.header_navigation_button_sign_line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 56%;
  height: 56%;
  margin: -28% 0 0 -38%;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* 
───────────────────────────────────────────────────────────────── */
.header_nest {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease, visibility 0s 0.3s;
}

.header_nest.active {
  max-height: 300px;
  visibility: visible;
  opacity: 1;
  transition: all 0.5s ease;
}

.header_nest_frame {
  width: auto;
  padding: 0 0 16px;
  border-bottom: 1px solid #7f7ff1;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_nest_contents {
  display: flex;
  flex-flow: column;
  gap: 4px;
  width: 100%;
}

.header_nest_item {
  width: 100%;
}

/* 
───────────────────────────────────────────────────────────────── */
.header_nest_button {
  width: 100%;
  height: auto;
  cursor: pointer;
  background-color: #00009f;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header_nest_button_frame {
  position: relative; /* header_nest_button_titleとheader_nest_button_button_signの起点 */
  display: block;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 6px 0 8px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.header_nest_button_icon {
  position: absolute;
  top: 50%;
  left: 16px;
  height: 24px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.header_nest_button_title {
  width: auto;
  padding: 2px 0 0;
  color: #fff;
  text-align: center;
}

.header_nest_button_title_sub {
  font-size: clamp(12px, calc(12px + (16 - 12) * ((100vw - 888px) / (1248 - 888))), 16px);
  color: #ccccf9;
}

.header_nest_button_title_main {
  font-size: clamp(16px, calc(16px + (20 - 16) * ((100vw - 888px) / (1248 - 888))), 20px);
  font-weight: 500;
}

.header_nest_button_sign {
  position: absolute;
  top: 50%;
  right: 16px;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.header_nest_button_sign_frame {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.header_nest_button_sign_line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 56%;
  height: 56%;
  margin: -28% 0 0 -38%;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* 
─────────────────────────────────────────────────────────────────
横幅888px～
───────────────────────────────────────────────────────────────── */
@media screen and (width >= 888px) {
  /* 「888px」はjsにも記述がある */
  /* 
  ─────────────────────────────────────────────────────────────────
  Ｌ：ヘッダー
  ───────────────────────────────────────────────────────────────── */
  .header {
    position: fixed;
    top: 0;
    z-index: 9999;
  }

  .main {
    margin: 80px 0 0; /* header_contentsの高さ分を下げる */
  }

  .header_frame {
    position: relative; /* header_nestの起点 */
    max-width: 1248px;
  }
  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_contents {
    max-width: 1200px;
    height: 80px;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_burger {
    display: none;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .fixed_panel {
    align-items: flex-end;
    justify-content: flex-end;
    width: auto;
  }
  /* 
  ───────────────────────────────────────────────────────────────── */
  .fixed_panel_burger {
    display: none;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .fixed_panel_home {
    display: none;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .fixed_panel_scroll {
    width: 72px;
    height: 48px;
  }

  .fixed_panel_scroll:hover {
    background-color: #4c4cec;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_navigation {
    position: static;
    top: 20px;
    right: 0;
    bottom: initial;
    width: auto;
    opacity: 1;
    transition: none;
    transform: none !important;
  }

  .header_navigation_frame {
    max-width: auto;
    margin: 0;
    border-radius: 0;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_navigation_contents {
    flex-flow: row;
    gap: 16px;
    width: auto;
    max-width: auto;
    margin: 0;
  }

  .header_navigation_item {
    width: auto;
  }

  .header_navigation_item:last-child {
    margin: 0 0 0 8px;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_navigation_toggle {
    width: auto;
    margin: 2px 0 0;
    border-bottom: 2px solid #e5e5fc;
  }

  .header_navigation_toggle:hover {
    border-bottom: 2px solid #7f7ff1;
  }

  .header_navigation_toggle.active {
    border-bottom: 2px solid #7f7ff1;
  }

  .header_navigation_toggle_frame {
    padding: 8px 28px 8px 8px;
  }

  .header_navigation_toggle:hover .header_navigation_toggle_title {
    color: #7f7ff1;
  }

  .header_navigation_toggle_sign {
    right: 8px;
  }

  .header_navigation_toggle:hover .header_navigation_toggle_sign {
    transition: transform 0.3s ease;
    transform: translateY(-30%);
  }

  .header_navigation_toggle:hover .header_navigation_toggle_sign_line::before,
  .header_navigation_toggle:hover .header_navigation_toggle_sign_line::after {
    background: #4c4cec;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_navigation_button {
    width: auto;
    margin: 0;
  }

  .header_navigation_button:hover {
    background-color: #4c4cec;
  }

  .header_navigation_button_frame {
    padding: 12px 48px 12px 32px;
  }

  .header_navigation_button_sign {
    position: absolute;
    right: 16px;
  }

  .header_navigation_button:hover .header_navigation_button_sign {
    transform: translateY(-50%) translateX(4px);
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_nest {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #fff;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .header_nest_frame {
    max-width: 1248px;
    padding: 0 24px;
    margin: 0 auto;
    background-color: #fff;
    border: none;
    border-right: 1px solid #e5e5fc;
    border-bottom: 1px solid #e5e5fc;
    border-left: 1px solid #e5e5fc;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_nest_contents {
    flex-flow: row wrap;
    gap: 16px;
    max-width: 1200px;
    padding: 16px 0 24px;
  }

  .header_nest_item {
    flex: 1;
    width: auto;
  }

  /* 
  ───────────────────────────────────────────────────────────────── */
  .header_nest_button {
    height: auto;
    aspect-ratio: 2 / 1.4;
  }

  .header_nest_button_2type {
    aspect-ratio: 5 / 1;
  }

  .header_nest_button:hover {
    background-color: #4c4cec;
  }

  .header_nest_button_frame {
    padding: 0;
  }

  .header_nest_button_icon {
    position: static;
    top: auto;
    left: auto;
    display: block;
    height: 48px;
    transform: none;
  }

  .header_nest_button_2type .header_nest_button_icon {
    position: absolute;
    top: 50%;
    left: 16px;
    height: 48px;
    transition: all 0.3s ease;
    transform: translateY(-50%);
  }

  .header_nest_button_title {
    margin: 8px 0 0;
  }

  .header_nest_button_2type .header_nest_button_title {
    margin: 0;
  }

  .header_nest_button:hover .header_nest_button_sign {
    transform: translateY(-50%) translateX(4px);
  }

  /*
  ─────────────────────────────────────────────────────────────────
  ここまで
  ───────────────────────────────────────────────────────────────── */
}
