@charset "UTF-8";
/* ==========================================================
   ヘッダー「サービス一覧」メガメニュー（PC 3カラム／SP 3階層アコーディオン）
   マークアップ：inc/service-menu.php　データ：inc/service-menu-data.php
   トンマナ：ブルー #0184CE／カード型リンク（旧 .mega-service-card 準拠）
   既存 css/style.css の .nav-pc li a ルール（下線ホバー・nowrap・13px）を
   打ち消すため、セレクタは header .header-row .header-link .nav-pc から始める。
   ========================================================== */

/* ---------- PC：トリガー ---------- */
header .header-row .header-link .nav-pc .has_megamenu {
  position: static;
}
header .header-row .header-link .nav-pc .has_megamenu > .megamenu_trigger {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
header .header-row .header-link .nav-pc .has_megamenu > .megamenu_trigger .megamenu_caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid #0184CE;
  border-bottom: 1.5px solid #0184CE;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
header .header-row .header-link .nav-pc .has_megamenu.is-open > .megamenu_trigger {
  color: #0184CE;
  border-bottom-color: #0184CE;
}
header .header-row .header-link .nav-pc .has_megamenu.is-open > .megamenu_trigger .megamenu_caret {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* ---------- PC：パネル ---------- */
header .megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1001;
  background-color: #fff;
  border-top: 3px solid #0184CE;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - 140px);
  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;
  width: auto;
}
/* style.css の .nav-pc li / li a ルールを打ち消す */
header .header-row .header-link .nav-pc .megamenu li {
  margin: 0;
  white-space: normal;
}
header .header-row .header-link .nav-pc .megamenu a {
  padding-bottom: 0;
  border-bottom: 0;
}
header .header-row .header-link .nav-pc .megamenu a:hover {
  border-bottom: 0;
}
header .megamenu_inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  padding: 28px 24px 32px;
  box-sizing: border-box;
}
header .megamenu_l1list {
  flex: 0 0 28%;
  padding-right: 20px;
  border-right: 1px solid transparent;
}
header .megamenu_col_l2 {
  flex: 0 0 27%;
  padding: 0 20px;
  border-right: 1px solid transparent;
}
/* 段階展開：次のカラムに中身があるときだけ区切り線を出す */
header .megamenu.has-l2 .megamenu_l1list,
header .megamenu.has-l3 .megamenu_col_l2 {
  border-right-color: #e8ecf0;
}
header .megamenu_col_l3 {
  flex: 0 0 45%;
  padding-left: 28px;
}
header .megamenu_l2list,
header .megamenu_l3list {
  display: none;
}
header .megamenu_l2list.is-active,
header .megamenu_l3list.is-active {
  display: block;
}

/* 大・中カテゴリ行 */
header .header-row .header-link .nav-pc .megamenu .megamenu_link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 36px 12px 16px;
  position: relative;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  color: #444;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
header .megamenu_link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #0184CE;
  border-right: 1.5px solid #0184CE;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.6;
}
header .header-row .header-link .nav-pc .megamenu .megamenu_link:hover,
header .header-row .header-link .nav-pc .megamenu .megamenu_link:focus-visible {
  background-color: rgba(1, 132, 206, 0.05);
  border-left-color: rgba(1, 132, 206, 0.4);
  color: #0184CE;
  opacity: 1;
  outline: none;
}
header .header-row .header-link .nav-pc .megamenu .megamenu_item.is-active > .megamenu_link {
  background-color: rgba(1, 132, 206, 0.08);
  border-left-color: #0184CE;
  color: #0184CE;
  font-weight: 700;
}
header .megamenu_link:hover::after,
header .megamenu_item.is-active > .megamenu_link::after {
  opacity: 1;
}

/* 小カテゴリ（サービス）：カード型 */
header .megamenu_l3list {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
header .megamenu_l3list.is-active {
  display: grid;
}
header .header-row .header-link .nav-pc .megamenu .megamenu_service_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 14px 14px 14px 16px;
  background: #f6f8fb;
  border-left: 3px solid #0184CE;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
header .header-row .header-link .nav-pc .megamenu .megamenu_service_link::after {
  content: "\203A";
  flex-shrink: 0;
  color: #0184CE;
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
header .megamenu_service.is-external .megamenu_service_link::after {
  content: "";
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230184CE' 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 .header-row .header-link .nav-pc .megamenu .megamenu_service_link:hover,
header .header-row .header-link .nav-pc .megamenu .megamenu_service_link:focus-visible {
  background: #e6f3fb;
  color: #0184CE;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 132, 206, 0.12);
  opacity: 1;
  outline: none;
}
header .megamenu_service_link:hover::after,
header .megamenu_service_link:focus-visible::after {
  opacity: 1;
}
header .megamenu_service_thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
header .megamenu_service_body {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}
header .header-row .header-link .nav-pc .megamenu .megamenu_service_name {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
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 .header-row .header-link .nav-pc .megamenu .megamenu_link {
    font-size: 13px;
    padding-right: 30px;
  }
  header .megamenu_l1list {
    padding-right: 12px;
  }
  header .megamenu_col_l2 {
    padding: 0 12px;
  }
  header .megamenu_col_l3 {
    padding-left: 16px;
  }
  header .megamenu_l3list {
    grid-template-columns: 1fr;
  }
}
/* .nav-pc は style.css で 900px 以下非表示 */
@media (max-width: 900px) {
  header .megamenu {
    display: none;
  }
}

/* ---------- SP：3階層アコーディオン（.nav-sp 内） ---------- */
.nav-sp .sp_acc_row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.nav-sp .sp_service_wrap > .sp_acc_row > .sp_acc_trigger,
.nav-sp .sp_service_wrap > .sp_acc_row > a {
  flex: 1 1 auto;
  color: #111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: inherit;
  cursor: pointer;
}
.nav-sp .sp_acc_btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  margin: -3px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #0184CE;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
/* style.css の .nav-sp ul { width:90%; margin:0 auto } を打ち消す */
.nav-sp .sp_acc_panel {
  display: none;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.nav-sp .is-open > .sp_acc_panel {
  display: block;
}
.nav-sp .sp_service_l1 {
  padding-top: 12px;
}
.nav-sp li .sp_service_l1 > li {
  border: none;
  padding: 8px 0 8px 10px;
}
.nav-sp .sp_acc_label {
  display: block;
  position: relative;
  padding-left: 14px;
  color: #111;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.nav-sp .sp_acc_label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background-color: #0184CE;
}
.nav-sp .sp_service_l2 {
  padding: 6px 0 0 14px;
}
.nav-sp li .sp_service_l2 > li {
  border: none;
  padding: 6px 0 6px 0;
}
.nav-sp .sp_service_l2 .sp_acc_label {
  font-weight: 400;
}
.nav-sp .sp_service_l2 .sp_acc_label::before {
  width: 6px;
  height: 1px;
  top: 9px;
}
.nav-sp .sp_service_l3 {
  padding: 4px 0 0 14px;
}
.nav-sp li .sp_service_l3 > li {
  border: none;
  padding: 6px 0 6px 0;
}
.nav-sp .sp_service_link {
  display: block;
  position: relative;
  padding-left: 14px;
  color: #444;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.nav-sp .sp_service_link::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-top: 1px solid #0184CE;
  border-right: 1px solid #0184CE;
  transform: rotate(45deg);
}

/* ---------- トップページ（front-page.php）の独自ヘッダー ----------
   header は position:absolute / height:300px で MV に重なるため、
   パネルの基準を <header> ではなくロゴ・ナビ行（.header-row）に変える。 */
header:not(.common_header) .header-row {
  position: relative;
}
header:not(.common_header) .megamenu {
  left: 0;
  right: 0;
}
