@charset "UTF-8";
/* ==========================================================================
   トップページ「サービス・事業内容」セクション（front-page.php）
   データ：inc/service-menu-data.php（メガメニュー／フッター／サービス一覧ページと共通）
   PC（769px〜）：左＝大カテゴリのタブ ／ 右＝選択中カテゴリのサービス一覧
   SP（〜768px）：大カテゴリごとのアコーディオン（最初の1件だけ開いた状態）
   JS：top-service.js
   ========================================================================== */

.top_service .top_svc {
  display: flex;
  align-items: stretch;
  background-color: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* ---------- 共通：カテゴリ行（PCタブ／SPアコーディオン見出し） ---------- */
.top_service .top_svc_tab,
.top_service .top_svc_acc {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 18px 20px 18px 22px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: #6B6B6B;
  font-family: "Noto Sans JP", serif;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: 0.2s;
}
.top_service .top_svc_no {
  flex: 0 0 auto;
  width: 34px;
  font-family: "Geologica", serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #A3A3A3;
  transition: 0.2s;
}
.top_service .top_svc_tab_text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.top_service .top_svc_tab_label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  transition: 0.2s;
}
.top_service .top_svc_tab_en {
  font-family: "Geologica", serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #A3A3A3;
  transition: 0.2s;
}

/* ---------- PC：タブ ---------- */
.top_service .top_svc_tabs {
  flex: 0 0 31%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E0E0E0;
  background-color: #ECECEC;
}
.top_service .top_svc_tab + .top_svc_tab {
  border-top: 1px solid #DCDCDC;
}
.top_service .top_svc_tab::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-top: 1.5px solid #C9C9C9;
  border-right: 1.5px solid #C9C9C9;
  transform: rotate(45deg);
  transition: 0.2s;
}
.top_service .top_svc_tab:hover,
.top_service .top_svc_tab:focus-visible {
  background-color: #F5F5F5;
  color: #101010;
  outline: none;
}
.top_service .top_svc_tab.is-active {
  background-color: #fff;
  border-left-width: 5px;
  border-left-color: #00A6AC;
  color: #101010;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.top_service .top_svc_tab.is-active .top_svc_tab_label,
.top_service .top_svc_tab.is-active .top_svc_no {
  color: #00A6AC;
}
.top_service .top_svc_tab.is-active .top_svc_tab_en {
  color: #555;
}
.top_service .top_svc_tab.is-active::after {
  border-color: #00A6AC;
}

/* ---------- PC：パネル ---------- */
.top_service .top_svc_panels {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.top_service .top_svc_panel {
  display: none;
}
.top_service .top_svc_panel.is-active {
  display: block;
  animation: top_svc_fade 0.3s ease;
}
@keyframes top_svc_fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.top_service .top_svc_acc {
  display: none;
}
.top_service .top_svc_body_inner {
  padding: 30px 40px 34px;
}
.top_service .top_svc_group + .top_svc_group {
  margin-top: 26px;
}
.top_service .top_svc_group_ttl {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid #00A6AC;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #555;
}
.top_service .top_svc_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top_service .top_svc_item {
  min-width: 0;
  border-bottom: 0.5px solid #DADADA;
}
.top_service .top_svc_link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  padding: 13px 28px 13px 0;
  color: #101010;
}
.top_service .top_svc_link::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #101010;
  border-right: 1.5px solid #101010;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.2s;
}
.top_service .top_svc_link:hover,
.top_service .top_svc_link:focus-visible {
  opacity: 1;
  color: #00A6AC;
}
.top_service .top_svc_link:hover::after,
.top_service .top_svc_link:focus-visible::after {
  right: 4px;
  border-color: #00A6AC;
}
.top_service .top_svc_name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.top_service .top_svc_item.is-external .top_svc_name::after {
  content: "↗";
  margin-left: 6px;
  font-size: 12px;
  color: #00A6AC;
}
.top_service .top_svc_desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
}

/* ---------- 一覧ページへのボタン ---------- */
.top_service .top_svc_more {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}
.top_service .top_service_btn {
  display: inline-block;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- 〜1240px ---------- */
@media (max-width: 1240px) {
  .top_service .top_svc_tabs {
    flex-basis: 34%;
  }
  .top_service .top_svc_tab,
  .top_service .top_svc_acc {
    padding: 16px 14px 16px 16px;
  }
  .top_service .top_svc_tab_label {
    font-size: 15px;
  }
  .top_service .top_svc_body_inner {
    padding: 24px 28px 28px;
  }
  .top_service .top_svc_list {
    column-gap: 24px;
  }
}

/* ---------- 〜768px：アコーディオン ---------- */
@media (max-width: 768px) {
  .top_service .top_svc {
    display: block;
  }
  .top_service .top_svc_tabs {
    display: none;
  }
  .top_service .top_svc_panel {
    display: block;
    animation: none;
  }
  .top_service .top_svc_panel + .top_svc_panel {
    border-top: 1px solid #DCDCDC;
  }
  .top_service .top_svc_acc {
    display: flex;
    padding: 16px 16px 16px 18px;
    background-color: #ECECEC;
  }
  .top_service .top_svc_acc[aria-expanded="true"] {
    background-color: #fff;
    border-left-width: 5px;
    border-left-color: #00A6AC;
    color: #101010;
  }
  .top_service .top_svc_acc[aria-expanded="true"] .top_svc_tab_label,
  .top_service .top_svc_acc[aria-expanded="true"] .top_svc_no {
    color: #00A6AC;
  }
  .top_service .top_svc_acc[aria-expanded="true"] .top_svc_tab_en {
    color: #555;
  }
  .top_service .top_svc_acc_icon {
    flex: 0 0 auto;
    position: relative;
    width: 22px;
    height: 22px;
    margin-left: 12px;
    border: 1px solid #00A6AC;
    border-radius: 50%;
  }
  .top_service .top_svc_acc_icon::before,
  .top_service .top_svc_acc_icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background-color: #00A6AC;
    transform: translate(-50%, -50%);
    transition: 0.25s;
  }
  .top_service .top_svc_acc_icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .top_service .top_svc_acc[aria-expanded="true"] .top_svc_acc_icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .top_service .top_svc_body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
  }
  .top_service .top_svc_acc[aria-expanded="true"] + .top_svc_body {
    grid-template-rows: 1fr;
  }
  .top_service .top_svc_body_inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 18px;
  }
  .top_service .top_svc_acc[aria-expanded="true"] + .top_svc_body .top_svc_body_inner {
    padding: 4px 18px 22px;
  }
  .top_service .top_svc_list {
    grid-template-columns: 1fr;
  }
  .top_service .top_svc_group + .top_svc_group {
    margin-top: 20px;
  }
  .top_service .top_svc_item:last-child {
    border-bottom: 0;
  }
  .top_service .top_svc_more {
    justify-content: flex-start;
    margin-top: 30px;
  }
  .top_service .top_service_btn {
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 16px;
  }
}
