@charset "utf-8";

/* ----------------------------------------
	header.css(TOPページ)
---------------------------------------- */
main {
  padding-top: 124px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.9);
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  position: relative;
}

.header-left {
  flex: 1;
}

.header-right {
  flex: 4;
}

/* global-nav logo */
.header-left .logo-box a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-left .logo-box a figure {
  flex: 1;
}

.header-left .logo-box p {
  flex: 2;
  color: #72a1de;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-top: -0.5rem;
  text-align: center;
}

.header-left .logo-box p span {
  font-size: 0.8rem;
  font-weight: 400;
}

.header-right {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 1.5rem;
}

/* header tel */
.header-right-tel {
  padding: 1rem;
  border-radius: 20px 0 20px 0;
  background-image: linear-gradient(90deg, #72a1de, #47c1aa);
}

.header-right-tel a {
  width: fit-content;
  background-color: #fff;
  padding: 0.25rem 1rem;
  margin: 0 auto;
  border-radius: 30px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.header-right-tel a:hover {
  transform: scale(1.1);
}

.header-right-tel i {
  color: #fd9544;
}

.header-right-tel span {
  color: #72a1de;
  font-family: "MPLUS1", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
}

.header-right-tel p {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.header-right-tel {
  position: relative;
}

.header-right-tel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 30px 0 0 0;
  z-index: -1;
}

/* global-nav menu */
.global-nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.global-nav-list li {
  font-size: 0.9rem;
}

.global-nav-list li:last-child {
  font-size: 2rem;
  line-height: 0;
}

.global-nav-list li i {
  color: #72a1de;
  font-size: 2rem;
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e8f4f4;
  text-align: center;
  line-height: 50px;
  transition: transform 0.3s ease;
}

.global-nav-list a:hover {
  color: #fd9544;
}

.global-nav-list li i:hover {
  background: #ffeada;
  color: #fd9544;
  transform: scale(1.1);
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: none;
  position: relative;
  gap: 5px;
  z-index: 9999;
}

.hamburger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffeada;
  border-radius: 50%;
  z-index: -1;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: #fd9544;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header-right-tel-sp {
  display: none;
}

/* 画面幅1140px以下 */
@media screen and (max-width: 1440px) {
  .global-nav-list {
    gap: 1rem;
  }

  .header-right {
    gap: 1rem;
  }
}

/* 画面幅1366px以下 */
@media screen and (max-width: 1366px) {
  .global-nav-list {
    gap: 1.2rem;
  }

  .global-nav-list li {
    font-size: 0.85rem;
  }

  .header-left .logo-box p {
    font-size: 1.6rem;
  }
}

/* 画面幅1280px以下 */
@media screen and (max-width: 1280px) {
  .global-nav-list {
    gap: 1rem;
  }

  .global-nav-list li {
    font-size: 0.8rem;
  }

  .header-right {
    gap: 1rem;
  }
}

/* 画面幅1180px以下 */
@media screen and (max-width: 1180px) {
  .header-right {
    flex: 3;
  }

  /* ハンバーメニューへ切り替え */
  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    position: fixed;
    right: 16rem;
  }

  /* ハンバーガーメニュー開いた時 */
  .global-nav.open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    z-index: 9998;
  }

  .global-nav.open a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #72a1de;
  }

  .global-nav.open a:hover {
    color: #fd9544;
  }

  .global-nav-list {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
}

/* 画面幅1024px以下 */
@media screen and (max-width: 1024px) {
  .header-right {
    flex: 2.3;
  }
}

/* 画面幅767px以下 */
@media screen and (max-width: 767px) {
  .header-right {
    flex: 1.6;
  }

  .header-left .logo-box p {
    flex: 2.7;
    font-size: 1.4rem;
  }
}

/* 画面幅575px以下 */
@media screen and (max-width: 575px) {
  main {
    padding-top: 80px;
  }

  .header-inner {
    padding: 0.5rem 1rem;
  }

  .header-right {
    flex: 0.75;
  }

  .hamburger {
    position: relative;
    right: 0;
  }

  .header-right-tel {
    display: none;
  }

  .header-right-tel-sp {
    display: block;
  }

  .header-right-tel-sp i {
    color: #fd9544;
    font-size: 1.5rem;
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffeada;
    text-align: center;
    line-height: 50px;
  }
}

/* 画面幅375px以下 */
@media screen and (max-width: 375px) {
  main {
    padding-top: 70px;
  }
}
