@charset "UTF-8";
/* -------------------------------------
header
------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  z-index: 1000;

  box-shadow: none;
  transition: 0.3s;
}

.header.is-scroll {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}
.header__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 50px min(3.13vw, 50px) 30px;
  transition: padding 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header.is-scroll .header__inner {
  padding: 20px min(3.13vw, 50px);
}
.header__logo {
  width: 21.25vw;
  max-width: 340px;
  min-width: 200px;
}

/* ==========================
PC MENU
========================== */

.gnav__list {
  font-size: clamp(11px, 1.43vw, 18px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: min(2.81vw, 45px);
}
.gnav__list > li {
  position: relative;
}
.gnav__list li > a,
.gnav__list li > span {
  display: flex;
  align-items: center;
  gap: 0.78em;
}

.gnav__list img {
  width: auto;
  height: 2.22em;
  display: block;
}
.gnav__list .np > a,
.gnav__list .np > span,
.gnav__list a:hover {
  color: #0a8483;
}

.sub_menu {
  position: absolute;
  top: calc(100% + 25px);
  left: 50%;
  transform: translateX(-50%);

  width: 15em;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

  padding: 22px 0;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.has_child {
  position: relative;
}
.menu_parent {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.has_child:hover .sub_menu,
.has_child.is-open .sub_menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sub_menu li {
  text-align: center;
}

.sub_menu li + li {
  margin-top: 4px;
}

.sub_menu li a {
  font-size: clamp(11px, 1.43vw, 18px);
  color: #000;
  display: block;
  padding: 6px 1em;
}

.sub_menu li a::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: #0a8483;
  margin: 14px auto 0;
}

.sub_menu li:last-child a::after {
  display: none;
}
.has_child::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 30px;
}
/* ==========================
SP
========================== */

.sp_only {
  display: none;
}

/* -------------------------
ハンバーガー
------------------------- */
.menu_btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10001;
}

.menu_btn span {
  position: absolute;
  left: 50%;
  width: 34px;
  height: 1px;
  background: #0a8483;
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    top 0.3s ease,
    background 0.3s ease;
}

/* 閉じた状態 */
.menu_btn span:nth-child(1) {
  top: 14px;
}

.menu_btn span:nth-child(2) {
  top: 20px;
}

.menu_btn small {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #0a8483;
  line-height: 1;
}

/* 開いた状態 */
.menu_btn.active {
  position: fixed;
  top: 18px;
  right: 18px;
}

.menu_btn.active span {
  top: 17px; /* ← 両方同じ位置に */
  background: #fff;
}

.menu_btn.active span:nth-child(1) {
  transform: translateX(-50%) rotate(20deg);
}

.menu_btn.active span:nth-child(2) {
  transform: translateX(-50%) rotate(-20deg);
}

.menu_btn.active small {
  color: #fff;
}

/* -------------------------
ドロワー
------------------------- */

.sp_nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;

  height: 100vh;

  background: #0a8483;

  transition: right 0.35s ease;

  overflow-y: auto;

  z-index: 9999;
}

.sp_nav.open {
  right: 0;
}

.sp_nav_inner {
  padding: 90px 24px 40px;
  max-width: 360px;
  margin: 0 auto;
}

.sp_logo {
  width: 185px;
  margin-bottom: 40px;
}

/* -------------------------
メニュー
------------------------- */

.sp_menu li {
  margin-bottom: 22px;
}

.sp_menu li > a,
.sp_menu li > span {
  display: flex;
  align-items: center;
  gap: 14px;

  color: #fff;
  font-size: 18px;
}
.sp_menu a span,
.sp_sub a,
.sp_news a span {
  transition: opacity 0.3s;
}
.sp_menu a:hover span,
.sp_sub a:hover,
.sp_news a:hover span {
  opacity: 0.5;
}

.sp_menu img {
  height: auto;
  width: 26px;
}

/* 下層 */

.sp_sub {
  margin: 14px 0 0 48px;
}

.sp_sub li {
  margin-bottom: 12px;
}

.sp_sub a {
  font-size: 16px;
  font-weight: 500;
}

/* -------------------------
NEWS
------------------------- */

.sp_news {
  display: flex;
  gap: 28px;
  padding: 0 10px;
  margin: 36px 0;
}

.sp_news a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* -------------------------
ボタン
------------------------- */

.sp_btns {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp_btns a {
  font-size: 18px;
  font-weight: 700;
  color: #0a8483;
  height: 54px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  transition: 0.3s;
}
.sp_btns a::before {
  content: "";
  width: 1.33em;
  height: 1.33em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: 0.3s;
}
.btn_hours::before {
  background-image: url(../imgs/common/ic_hours.svg);
}
.btn_contact::before {
  background-image: url(../imgs/common/ic_mail.svg);
}

.sp_btns a:hover {
  color: #fff;
  background: #0a8483;
}
.btn_hours:hover::before {
  background-image: url(../imgs/common/ic_hours_w.svg);
}
.btn_contact:hover::before {
  background-image: url(../imgs/common/ic_mail_w.svg);
}

.sp_btns img {
  height: 22px;
  width: auto;
}

/* -------------------------
768
------------------------- */

@media (max-width: 768px) {
  .header {
    padding: 0;
  }
  .header__inner,
  .header.is-scroll .header__inner {
    height: 75px;
    padding: 16px 20px;
  }

  .header__logo {
    width: 200px;
    min-width: auto;
  }
  /* ==========================
     トップページのみ
  ========================== */

  .header.is-top {
    background: transparent;
  }

  .header.is-top:not(.is-scroll) {
    box-shadow: none;
  }

  .header.is-top:not(.is-scroll) .header__logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .header.is-top:not(.is-scroll) .menu_btn span {
    background: #fff;
  }

  .header.is-top:not(.is-scroll) .menu_btn small {
    color: #fff;
  }

  .header.is-top.is-scroll {
    background: #fff;
  }

  .header.is-top.is-scroll .header__logo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header.is-top.is-scroll .menu_btn span {
    background: #0a8483;
  }

  .header.is-top.is-scroll .menu_btn small {
    color: #0a8483;
  }

  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .menu_btn {
    display: block;
  }
}
