@charset "UTF-8";
.header {
  width: 100%;
  height: 142px;
  padding: 40px 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1001;
  transition: .4s;
  -webkit-transition: .4s;
  background: rgba(255, 255, 255, .7);
}
.header_logo {
  width: 300px;
  margin-top: 15px;
  padding-left: 40px;
}

.emblem{
  width: 26px;
  display: inline-block;
  float: left;
  margin-top: -3px;
}

.logo{
  float: left;
  display: inline-block;
  width: 223px;
  margin-left: 10px;
}

.header_nav {
  right: 0;
  top: 40px;
}

.nav_list_item {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px 20px 0;
  text-align: center;
  list-style: none;
}
.nav_list_item .rubi{
  font-size: 75%;
}
.nav_list_item > a,
.nav_list_item > .level2_parent {
  display: inline-block;
  padding: 10px;
}
.nav_list_item > a:hover,
.nav_list_item > .level2_parent:hover {
  color: #e03651;
}
.nav_sub_contents {
  opacity: 0;
  visibility: hidden;

  padding: 50px 0;
}
.nav_list_item.level2:hover .nav_sub_contents {
  opacity: 1;
  visibility: visible;
}
.nav_sub_contents {
  width: 100%;
  background: rgba(40, 40, 40, .9);
  position: fixed;
  left: 0;
  top: 102px;
  transition: opacity .2s;
  -webkit-transition: opacity .2s;
}
.nav_sub_list li {
  font-size: 1.7rem;
  text-align: center;
  width: 340px;
  height: 60px;
  margin-left: 33px;
}
.nav_sub_list li:first-child {
  margin-left: 1px;
}
.nav_sub_list li a {
  height: 100%;
  border: 1px solid #fff;
  color: #fff;
  transition: .2s;
  -webkit-transition: .2s;

  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
}
.nav_sub_list li a:hover {
  background: #fff;
  color: inherit;
}

.header_sns_list {
  margin-left: 20px;
}
.header_sns_list li {
  width: 30px;
  margin: 0 15px;
  list-style: none;
}
.header_sns_list li a {
  display: inline-block;
  padding: 2px;
}
.header_sns_list li img {
  width: 100%;
  vertical-align: middle;
}

.header_contact_btn {
  color: #fff;
  width: 274px;
  margin-left: 30px;
}
.header_contact_btn a {
  display: block;
}
.header_contact_btn_title {
  font-size: 2rem;
  font-weight: bold;
  padding:15px;
}
.header_contact_btn_title .btn_db_arw {
  width: 20px;
  height: 17px;
  margin: -4px 0 0 10px;
}
.header_contact_btn_text {
  font-size: 1rem;
  padding: 4px 15px;
}

.header.is-scroll {
  height: 62px;
  padding: 0;
  background: rgba(255, 255, 255, .95);
}
.header.is-scroll .header_nav {
  top: 0;
}
.header.is-scroll .nav_sub_contents {
  top: 62px;
}

/** megaメニュー **/
.header_inner{
  display: flex;
  justify-content: space-between;
}
.menu_contents {
  background: #ffffff;
  display: none;
  top: 100%;
  position: absolute;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 20px 5% 40px;
  width: 100vw;
  text-align: left;
}
.menu_contents .menu_title{
  margin-bottom: 2rem;
  font-size: 5.25rem;
  line-height: 1.4;
}
.menu_contents .menu_title .title{
  display: block;
  letter-spacing: 0.3rem;
  font-size: 1.8rem;
}
.menu_contents ul{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.menu_contents ul li{
  max-width: 31%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 31%;
  flex: 1 1 31%;
}
.menu_contents ul li + li:not(:nth-of-type(3n + 1)){
  margin-left: 3.33876%;
}
.menu_contents ul li a{
  display: block;
  position: relative;
  padding: 22px 50px 22px 16px;
  border-bottom: 1px solid #dddfe3;
  height: 100%;
  letter-spacing: 0.1em;
  color: #1b1919;
  font-size: 1.6rem;
  font-weight: bold;
}
.menu_contents ul li a:hover {
  color: #e03651;
  background: #FAFBFC;
}
.menu_contents ul li a::after {
    width: 18px;
    height: 11px;
}
.menu_contents ul li a::after {
  content: "＞";
  display: flex;
  position: absolute;
  top: 0;
  align-items: center;
  right: 15px;
  bottom: 0;
  margin: auto;
}


@media only screen and (max-width: 1329px) {
  .header_sns_list {
    margin-left: 0;
  }
  .nav_list_item{
    margin-right: 0;
  }
}
@media only screen and (max-width: 1210px) {
  .header_sns_list {
    display: none!important;
  }
}
@media only screen and (max-width: 1090px) {
  .header_contact_btn {
    width: 200px;
    margin-left: 14px;
  }
}
@media only screen and (max-width: 1000px) {
  .header_contact_btn {
    margin-left: 4px;
  }
  .nav_list_item {
    margin: 10px 10px 0 0;
  }
}
@media only screen and (max-width: 960px) {
  .header_contact_btn {
    display: none;
  }
}

/* ネイティブのbuttonにしても、既存の開閉用クラスをそのまま利用する。 */
.header_btn_spMenu {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.header a:focus-visible,
.header button:focus-visible {
  outline: 2px solid #e03651;
  outline-offset: 3px;
}

@media only screen and (max-width: 767px) {
  .header,
  .header *,
  .header *::before,
  .header *::after {
    box-sizing: border-box;
  }

  .header,
  .header.is-scroll {
    min-width: 0;
    height: 50px;
    padding: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(27, 25, 25, .06);
  }
  .is-spMenuOpen .header {
    background: #fff;
  }
  .header_inner {
    position: relative;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 100%;
  }

  /* 小さい画面でもロゴと閉じるボタンが重ならない幅を確保する。 */
  .header_logo {
    width: calc(100% - 104px);
    max-width: 250px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
  }
  .header_logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
  }
  .header .emblem {
    display: block;
    float: none;
    flex: 0 0 22px;
    width: 22px;
    height: auto;
    margin: 0;
  }
  .header .logo {
    display: block;
    float: none;
    width: calc(100% - 30px);
    max-width: 200px;
    min-width: 0;
    height: auto;
    margin: 0;
  }

  /*
   * スクロールはメニュー自身が受け持つ。
   * vhは旧ブラウザ用、dvhはアドレスバーを含む表示領域の変化に対応。
   * displayの切り替えは既存の開閉JSに任せ、二重制御を避ける。
   */
  .header_nav,
  .header.is-scroll .header_nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 50px;
    bottom: auto;
    z-index: 105;
    width: 100%;
    min-height: 0;
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    max-height: calc(100vh - 50px);
    max-height: calc(100dvh - 50px);
    padding: 12px 18px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 28px;
    text-align: left;
  }
  .header .header_nav_inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
  }
  .header .nav_list {
    display: block;
    flex: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header .nav_list_item {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .025em;
    text-align: left;
  }
  .header .nav_list_item > a {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 38px 12px 14px;
    border-bottom: 1px solid #e9ebef;
    color: #1b1919;
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .header .nav_list_item--group > a {
    min-height: 46px;
    padding: 10px 2px 8px;
    border-bottom: 0;
    font-size: 17px;
  }
  .header .nav_list_item--group > a::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
    background: #e03651;
  }

  /* サブメニューは1項目1行を基本にし、長い事業名にも横幅を使う。 */
  .header .menu_contents {
    display: block!important;
    height: auto!important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 12px;
    background: transparent;
    text-align: left;
  }
  .header .menu_contents .menu_title {
    display: none;
  }
  .header .menu_contents ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f8f9fb;
    list-style: none;
  }
  .header .menu_contents ul li {
    display: block;
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    letter-spacing: normal;
    text-align: left;
  }
  .header .menu_contents ul li + li {
    margin-left: 0;
    border-top: 1px solid #e9ebef;
  }
  .header .menu_contents ul li a {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 6px 38px 6px 14px;
    border: 0;
    color: #34363c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .015em;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .header .nav_list_item > a::after,
  .header .menu_contents ul li a::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 16px;
    bottom: auto;
    width: 7px;
    height: 7px;
    margin: 0;
    border-top: 1.5px solid #a1a6af;
    border-right: 1.5px solid #a1a6af;
    transform: translateY(-50%) rotate(45deg);
  }
  .header .nav_list_item--group > a::after {
    display: none;
  }
  .header .nav_list_item > a:hover,
  .header .menu_contents ul li a:hover {
    color: #e03651;
  }
  .header .menu_contents ul li a:hover,
  .header .menu_contents ul li a:active {
    background: #f0f2f6;
  }

  .header .header_sns_list {
    display: flex!important;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 20px auto 12px;
    padding: 0;
    list-style: none;
  }
  .header .header_sns_list li {
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .header .header_sns_list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 7px;
  }
  .header .header_sns_list li img {
    display: block;
    width: 30px;
    max-width: 100%;
    height: auto;
  }

  .header .header_contact_btn {
    display: block;
    flex: none;
    width: 100%;
    max-width: 360px;
    margin: 4px auto 0;
    color: #fff;
    text-align: center;
  }
  .header .header_contact_btn > a {
    display: block;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
  }
  .header .header_contact_btn_title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 14px 18px;
    background: #e03651;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .025em;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .header .header_contact_btn_title .btn_db_arw {
    flex: 0 0 20px;
    width: 20px;
    height: 17px;
    margin: 0;
  }
  .header .header_contact_btn_text {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  /* 開閉ボタンはスクロール領域の外に固定する。 */
  .header_btn_spMenu {
    display: block;
    position: absolute;
    right: 5px;
    top: 0;
    z-index: 110;
    width: 50px;
    height: 50px;
    line-height: 1;
  }
  .header_btn_spMenu > span {
    display: block;
    width: 100%;
    height: 100%;
  }
  .header_btn_spMenu i {
    display: block;
    position: relative;
    top: 23px;
    width: 28px;
    height: 3px;
    margin: auto;
    border-radius: 3px;
  }
  .header_btn_spMenu i::before,
  .header_btn_spMenu i::after {
    content: "";
    display: block;
    position: absolute;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: #e03651;
    transition: transform .3s;
  }
  .header_btn_spMenu i::before {
    transform: translateY(5px);
  }
  .header_btn_spMenu i::after {
    transform: translateY(-5px);
  }
  .is-spMenuOpen .header_btn_spMenu i {
    background: transparent;
  }
  .is-spMenuOpen .header_btn_spMenu i::after {
    transform: translateY(0) rotate(45deg);
  }
  .is-spMenuOpen .header_btn_spMenu i::before {
    transform: translateY(0) rotate(-45deg);
  }
}

