@charset "utf-8";

/* =========================
   header
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 8000;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #cfd4d8;
    border-bottom: 1px solid #cfd4d8;
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease,
        transform 0.5s ease;
}

.header_inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: min(100%, 1920px);
    height: 100%;
    margin: 0 auto;
    padding-left: clamp(24px, 4vw, 96px);
}

/* =========================
   logo
========================= */

.header_logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    width: clamp(210px, 16vw, 290px);
    padding-right: clamp(24px, 3vw, 56px);
    background: #fff;
    text-decoration: none;
}

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

/* =========================
   navigation
========================= */

.header_nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.header_menu {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header_menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.header_menu-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: max-content;
    height: 100%;
    padding: 0 clamp(14px, 1.35vw, 30px);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        opacity 0.3s ease;
}

.header_menu-link::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background: #078bd3;
    transition: width 0.3s ease;
}

.header_menu-link:hover {
    color: #078bd3;
    opacity: 1;
}

.header_menu-link:hover::before {
    width: calc(100% - 28px);
}

/* 丸型矢印 */

.header_menu-arrow {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #9fa7ad;
    border-radius: 50%;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.header_menu-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid #757e84;
    border-right: 1px solid #757e84;
    transform: translate(-65%, -50%) rotate(45deg);
    transition: border-color 0.3s ease;
}

.header_menu-link:hover .header_menu-arrow {
    border-color: #078bd3;
    background: #078bd3;
}

.header_menu-link:hover .header_menu-arrow::before {
    border-color: #fff;
}

/* =========================
   PCお問い合わせ
========================= */

.header_menu-item--contact {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 18px 0 10px;
}

.header_menu-link-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 142px;
  height: 44px;
  padding: 0 18px;
  border-radius: 5px;

  color: #ffffff!important;
  background: #0474c7;
  border: 2px solid #0474c7;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.header_menu-link-contact:hover {
  color: #0474c7!important;
  background: #ffffff;
  transform: translateY(-2px);
}

.header_contact-icon{
    display:block;
    width:16px;
    height:16px;
    color:inherit;   /* 親のcolorを継承 */
    transition:.3s;
}

.header_menu-link-contact:hover .header_contact-icon{
    filter:
        brightness(0)
        saturate(100%)
        invert(31%)
        sepia(98%)
        saturate(2580%)
        hue-rotate(193deg)
        brightness(95%)
        contrast(98%);
}

/* =========================
   ハンバーガーボタン
========================= */

.hamBtn {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10000;

  display: none;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  padding: 0;

  background: #ffffff;

  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hamBar {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
}

.hamBar > span,
.hamBar > div {
  position: absolute;
  left: 0;

  display: block;
  width: 100%;
  height: 2px;

  background: #0474c7;
  border-radius: 2px;

  opacity: 1;

  transition:
    top 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hamBar > span:nth-child(1),
.hamBar > div:nth-child(1) {
  top: 0;
}

.hamBar > span:nth-child(2),
.hamBar > div:nth-child(2) {
  top: 8px;
}

.hamBar > span:nth-child(3),
.hamBar > div:nth-child(3) {
  top: 16px;
}

.hamBar.active > span:nth-child(1),
.hamBar.active > div:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamBar.active > span:nth-child(2),
.hamBar.active > div:nth-child(2) {
  opacity: 0;
}

.hamBar.active > span:nth-child(3),
.hamBar.active > div:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}


/* =========================
   SPメニュー
========================= */

.sp__menu {
  position: fixed;
  top: 0;
  right: -100%;
  opacity: 0;
  visibility: hidden;
  z-index: 9900;

  display: block;

  width: min(100%,420px);
  height: 100dvh;
  min-height: 100vh;
  padding: 70px 0 0;

  color: #000000;
  background: #ffffff;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;

  transform: translateX(0);

  transition:
    right 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.sp__menu.active {
  right: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sp__menu-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;

  width: 100%;
  min-height: calc(100dvh - 70px);
  margin: 0 auto;
}


/* =========================
   上部ロゴ
========================= */

.sp__menu-logo {
  position: absolute;
  top: 18px;
  left: 20px;

  display: block;
  width: 138px;
  margin: 0;

  text-decoration: none;
}

.sp__menu-logo img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   メニュー一覧
========================= */

.sp_menu-list {
  display: flex;
  flex-direction: column;
	gap: .25rem;
  width: min(calc(100% - 80px), 310px);
  margin: 20px auto 40px;
  padding: 0;
  border: 0;
}

.sp_menu-item {
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.sp_menu-item > .sp-menu__link {
  position: relative;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 54px;
  padding: 12px 2px;

  color: #000000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.sp_menu-item > .sp-menu__link p {
  margin: 0;
  color: #000000;
}

.sp_menu-item > .sp-menu__link::before,
.sp_menu-item > .sp-menu__link::after {
  content: none;
}


/* =========================
   メニュー内丸矢印
========================= */

.sp_menu-arrow {
  position: relative;

  display: block;
  flex-shrink: 0;

  width: 20px;
  height: 20px;

  border: 1px solid #8f979c;
  border-radius: 50%;
}

.sp_menu-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 46%;

  width: 5px;
  height: 5px;

  border-top: 1px solid #6f777c;
  border-right: 1px solid #6f777c;

  transform: translate(-50%, -50%) rotate(45deg);
}


/* =========================
   SPお問い合わせ
========================= */

.sp_contact {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 58px;
  margin: 1rem 0 0;
  padding: 12px 20px;

  color: #ffffff;
  background: #0474c7;
  border: 2px solid #0474c7;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 5px;
}

.sp_contact p {
  margin: 0;
  color: #ffffff;
}

.sp_contact:hover {
  opacity: .6;
}

.sp_contact-icon {
  display: block;
  width: 28px;
  height: 28px;
  padding: 5px;

  background: #ffffff;
  border-radius: 50%;
}

.sp_contact:hover .sp_contact-icon {
  filter:
    brightness(0)
    saturate(100%)
    invert(31%)
    sepia(98%)
    saturate(2580%)
    hue-rotate(193deg)
    brightness(95%)
    contrast(98%);
}

.sp_contact-arrow {
  position: relative;

  display: block;
  width: 14px;
  height: 1px;

  background: #FFF;
}

.sp_contact-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;

  width: 5px;
  height: 5px;

  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;

  transform: translateY(-50%) rotate(45deg);
}


/* =========================
   SP会社情報
========================= */

.sp_company {
  width: 100%;
  padding: 26px 20px 30px;
  background: #ffffff;
}

.sp_company-logo {
  display: block;
  width: 170px;
  margin-bottom: 16px;
}

.sp_company-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.sp_company p {
  margin: 0;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.sp_company p + p {
  margin-top: 2px;
}

/* =========================
   1200px以下
========================= */
@media screen and (max-width: 1200px) {
  .header_menu-link {
      gap: 8px;
      padding: 0 10px;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.4;
  }
}


/* =========================
   1024px以下
========================= */

@media screen and (max-width: 1024px) {
  .header_nav {
    display: none;
  }

  .hamBtn {
    display: flex;
  }
}


/* =========================
   480px以下
========================= */

@media screen and (max-width: 480px) {
  .header {
    height: 64px;
}
  .hamBtn {
    right: 12px;
  }

  .sp__menu {
    width: 100%;
  }

  .sp_menu-list {
    width: calc(100% - 80px);
  }
}

#header.UpMove{
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from{
    opacity: 1;
    transform: translateY(0);
  }

  to{
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
  }
}

#header.DownMove{
  animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime{
  from{
    opacity: 0;
    transform: translateY(-100%);
  }

  to{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}