@charset "UTF-8";
/* ==========================================================
   ヘッダー「サービス」メガメニュー（PC 3カラム／SP 3階層アコーディオン）
   マークアップ：inc/service-menu.php　データ：inc/service-menu-data.php
   ========================================================== */

/* ---------- PC：トリガー ---------- */
header .header_nav_pc .has_megamenu {
  position: static;
}
header .header_nav_pc .has_megamenu.is-open > .megamenu_trigger {
  color: #00A6AC;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

/* ---------- PC：パネル ---------- */
header .megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  background-color: #fff;
  border-top: 1px solid #E6E6E6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
header .has_megamenu.is-open > .megamenu {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
header .megamenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
header .header_nav_pc .megamenu li {
  margin-right: 0;
}
header .megamenu_inner {
  width: 91%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  padding: 24px 0 32px;
}
header .megamenu_l1list {
  flex: 0 0 30%;
  padding-right: 24px;
  border-right: 1px solid transparent;
}
header .megamenu_col_l2 {
  flex: 0 0 25%;
  padding: 0 24px;
  border-right: 1px solid transparent;
}
/* 段階展開：次のカラムに中身があるときだけ区切り線を出す */
header .megamenu.has-l2 .megamenu_l1list,
header .megamenu.has-l3 .megamenu_col_l2 {
  border-right-color: #E6E6E6;
}
header .megamenu_col_l3 {
  flex: 0 0 45%;
  padding-left: 32px;
}
header .megamenu_l2list,
header .megamenu_l3list {
  display: none;
}
header .megamenu_l2list.is-active,
header .megamenu_l3list.is-active {
  display: block;
}

/* 大・中カテゴリ行 */
header .megamenu_link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  position: relative;
  border-left: 2px solid transparent;
  color: #101010;
  font-family: "Noto Sans JP", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
header .megamenu_link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #00A6AC;
  border-right: 1.5px solid #00A6AC;
  transform: translateY(-50%) rotate(45deg);
}
header .megamenu_link:hover,
header .megamenu_link:focus-visible,
header .megamenu_item.is-active > .megamenu_link {
  background-color: #F3FAFA;
  border-left-color: #00A6AC;
  color: #00A6AC;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  opacity: 1;
  outline: none;
}

/* 小カテゴリ（サービス） */
header .megamenu_service + .megamenu_service .megamenu_service_link {
  border-top: 1px solid #F0F0F0;
}
header .megamenu_service_link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 8px;
  color: #101010;
  text-decoration: none;
  transition: 0.2s;
}
header .megamenu_service_link:hover,
header .megamenu_service_link:focus-visible {
  opacity: 1;
  outline: none;
}
header .megamenu_service_thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
header .megamenu_service_body {
  display: block;
  min-width: 0;
}
header .megamenu_service_name {
  display: inline-block;
  position: relative;
  padding-right: 18px;
  font-family: "Noto Sans JP", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
header .megamenu_service_name::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #00A6AC;
  border-right: 1.5px solid #00A6AC;
  transform: translateY(-50%) rotate(45deg);
}
header .megamenu_service.is-external .megamenu_service_name {
  padding-right: 22px;
}
header .megamenu_service.is-external .megamenu_service_name::after {
  width: 13px;
  height: 13px;
  right: 0;
  border: 0;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A6AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
header .megamenu_service_link:hover .megamenu_service_name,
header .megamenu_service_link:focus-visible .megamenu_service_name {
  color: #00A6AC;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
header .megamenu_service_desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 1240px) {
  header .megamenu_link,
  header .megamenu_service_name {
    font-size: 13px;
  }
  header .megamenu_l1list {
    padding-right: 16px;
  }
  header .megamenu_col_l2 {
    padding: 0 16px;
  }
  header .megamenu_col_l3 {
    padding-left: 20px;
  }
}
@media (max-width: 768px) {
  header .megamenu {
    display: none;
  }
}

/* ---------- SP：3階層アコーディオン ---------- */
header .header_nav_sp .sp_acc_row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  /* .header_nav_sp は content-box + padding-left 30px で画面幅を30px超えるため、その分を右余白で吸収 */
  padding-right: 46px;
}
header .header_nav_sp .sp_service_wrap > .sp_acc_row > a {
  font-size: 14px;
  position: relative;
  padding-left: 13.5px;
  color: #101010;
  font-family: "Noto Sans JP", serif;
  font-weight: 500;
}
header .header_nav_sp .sp_service_wrap > .sp_acc_row > a::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #00A6AC;
  position: absolute;
  left: 0;
  top: 6px;
}
header .header_nav_sp .sp_acc_btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #101010;
  font-family: "Noto Sans JP", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
header .header_nav_sp .sp_acc_panel {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
header .header_nav_sp .is-open > .sp_acc_panel {
  display: block;
}
header .header_nav_sp .sp_service_l1 {
  padding-top: 14px;
}
header .header_nav_sp .sp_service_l1 > li {
  padding: 8px 0;
}
header .header_nav_sp .sp_acc_label {
  display: block;
  position: relative;
  padding-left: 13.5px;
  color: #101010;
  font-family: "Noto Sans JP", serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
header .header_nav_sp .sp_acc_label::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #00A6AC;
  position: absolute;
  left: 0;
  top: 7px;
}
header .header_nav_sp .sp_service_l2 {
  padding: 6px 0 0 14px;
}
header .header_nav_sp .sp_service_l2 > li {
  padding: 6px 0;
}
header .header_nav_sp .sp_service_l2 .sp_acc_label {
  font-weight: 400;
}
header .header_nav_sp .sp_service_l2 .sp_acc_label::before {
  width: 6px;
  height: 1px;
  top: 9px;
}
header .header_nav_sp .sp_service_l3 {
  padding: 4px 0 0 14px;
}
header .header_nav_sp .sp_service_l3 > li {
  padding: 5px 0;
}
header .header_nav_sp .sp_service_link {
  display: block;
  position: relative;
  padding-left: 13.5px;
  color: #444;
  font-family: "Noto Sans JP", serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
header .header_nav_sp .sp_service_link::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #00A6AC;
  border-right: 1px solid #00A6AC;
  transform: rotate(45deg);
}
