@charset "UTF-8";
/* front-page.css
   トップページ（検索フォーム / 都道府県導線）専用
   前提: front-page.php は vo-topSearchBlock / vo-topPrefNavBlock に分離済み
*/

.vo-topSearch {
  --vo-green: #154636;
  --vo-green-dark: #123c2e;
  --vo-text: #1f2a37;
  --vo-muted: #667085;
  --vo-line: #e6ebe8;
  --vo-surface: #ffffff;
  --vo-surface-soft: #f5f7f6;
  --vo-surface-soft-hover: #eef2f0;
  --vo-blue: #2f69df;
  --vo-blue-hover: #255bcc;
  --vo-focus-green: rgba(21, 70, 54, 0.14);
  --vo-focus-blue: rgba(47, 105, 223, 0.18);
}

/* =========================
   ブロック分離
========================= */
.vo-topSearchBlock {
  margin-top: 28px;
}

.vo-topPrefNavBlock {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e6ebe8;
}

/* =========================
   検索フォーム
========================= */
.vo-searchForm {
  margin-top: 14px;
  position: relative;
}

.vo-searchBar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 980px;
  background: var(--vo-surface);
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.vo-searchBar__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 13px 16px 14px;
}

.vo-searchBar__field--pref {
  flex: 0 0 200px;
  width: 200px;
}

.vo-searchBar__field--feat {
  flex: 1 1 auto;
  min-width: 260px;
}

.vo-searchBar__label {
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--vo-muted);
}

.vo-searchBar__control {
  width: 100%;
  max-width: 100%;
  height: 42px;
  border: 1px solid #d0d7d3;
  border-radius: 10px;
  background: #fff;
  color: #23313d;
  padding: 0 38px 0 14px;
  font-size: 14px;
}

.vo-searchBar__control:focus-visible {
  outline: none;
  border-color: var(--vo-green);
  box-shadow: 0 0 0 4px var(--vo-focus-green);
}

.vo-searchBar__divider {
  width: 1px;
  background: var(--vo-line);
  flex: 0 0 1px;
}

.vo-featureToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d0d7d3;
  border-radius: 10px;
  background: #fff;
  color: #23313d;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vo-featureToggle:hover {
  border-color: #c4ccc8;
  background: #fcfcfc;
}

.vo-featureToggle:focus-visible {
  outline: none;
  border-color: var(--vo-green);
  box-shadow: 0 0 0 4px var(--vo-focus-green);
}

.vo-featureToggle__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

.vo-featureToggle__chev {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  color: #6b7680;
}

.vo-searchBar__actions {
  display: flex;
  align-items: center;
  padding: 13px 14px 13px 12px;
  flex: 0 0 auto;
}

.vo-searchSubmit {
  min-width: 96px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--vo-blue);
  border-radius: 10px;
  background: var(--vo-blue);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(47, 105, 223, 0.15);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.vo-searchSubmit:hover {
  background: var(--vo-blue-hover);
  border-color: var(--vo-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 105, 223, 0.18);
}

.vo-searchSubmit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px var(--vo-focus-blue),
    0 8px 18px rgba(47, 105, 223, 0.18);
}

/* =========================
   都道府県から探す
========================= */
.vo-topRegionNav {
  max-width: 980px;
}

.vo-topRegionNav__title {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--vo-text);
  letter-spacing: 0;
}

.vo-topRegionNav__region {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.vo-topRegionNav__region + .vo-topRegionNav__region {
  margin-top: 12px;
}

.vo-topRegionNav__regionTitle {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--vo-green);
  white-space: nowrap;
}

.vo-topRegionNav__prefList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vo-topRegionNav__prefItem {
  margin: 0;
}

.vo-topRegionNav__prefItem a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #edf1ef;
  border-radius: 2px;
  background: var(--vo-surface-soft);
  color: #1c5644;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.vo-topRegionNav__prefItem a:hover {
  background: var(--vo-surface-soft-hover);
  border-color: #e4e9e6;
  color: var(--vo-green-dark);
}

.vo-topRegionNav__prefItem a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--vo-focus-green);
}

/* =========================
   主要市区町村・エリアから探す
========================= */
.vo-topMajorRegionNav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--vo-line);
}

.vo-topMajorRegionNav__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
  position: relative;
  align-items: flex-end;
}

/* タブ列全体の下にベース線を引く */
.vo-topMajorRegionNav__tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #d9dfdb;
  z-index: 0;
}

.vo-topMajorRegionNav__tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid #d9dfdb;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: var(--vo-surface-soft);
  color: #1c5644;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vo-topMajorRegionNav__tabs::-webkit-scrollbar {
  height: 6px;
}

.vo-topMajorRegionNav__tabs::-webkit-scrollbar-thumb {
  background: #cfd8d3;
  border-radius: 999px;
}

.vo-topMajorRegionNav__tabs::-webkit-scrollbar-track {
  background: transparent;
}

.vo-topMajorRegionNav__tab:hover {
  background: var(--vo-surface-soft-hover);
  border-color: #cfd8d3;
  color: var(--vo-green-dark);
}

.vo-topMajorRegionNav__tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--vo-focus-green);
  z-index: 3;
}

.vo-topMajorRegionNav__tab.is-active {
  z-index: 2;
  background: #fff;
  color: var(--vo-text);
  border-color: #d9dfdb;
}

/* 選択中タブの幅だけ下線を消して、パネルとつながって見せる */
.vo-topMajorRegionNav__tab.is-active::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: #fff;
}

.vo-topMajorRegionNav__panels {
  padding-top: 24px;
}

.vo-topMajorRegionNav__panel[hidden] {
  display: none !important;
}

.vo-topMajorRegionNav__panel.is-active {
  display: block;
}

.vo-topMajorRegionNav__group + .vo-topMajorRegionNav__group {
  margin-top: 14px;
}

.vo-topMajorRegionNav__groupTitle {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vo-muted);
}

/* =========================
   モーダル
========================= */
body.vo-modalOpen {
  overflow: hidden;
}

.vo-featurePanel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  max-width: 980px;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
}

.vo-featurePanel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s;
}

.vo-featurePanel__inner {
  background: #fff;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  padding: 16px 18px;
}

.vo-featurePanel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vo-featurePanel__title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: #23313d;
}

.vo-featurePanel__close {
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
}

.vo-featurePanel__body {
  margin-top: 14px;
}

.vo-featurePanel__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.vo-prefRegionGroup {
  width: 100%;
}

.vo-prefRegionGroup__title {
  margin: 6px 0 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--vo-green);
}

.vo-prefRegionGroup__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.vo-featureCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9dfdb;
  border-radius: 999px;
  background: #fff;
  color: #23313d;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.vo-featureCheck:hover {
  border-color: #c6d0cb;
  background: #fafbfa;
}

.vo-featureCheck:focus-visible,
.vo-featureCheck:focus-within {
  outline: none;
  border-color: var(--vo-green);
  box-shadow: 0 0 0 4px var(--vo-focus-green);
}

.vo-featureCheck.is-selected {
  border-color: #9fbcaf;
  background: #edf5f1;
  color: var(--vo-green);
}

.vo-featureCheck.is-selected:hover {
  background: #e7f1ec;
}

.vo-featureCheck input {
  margin: 0;
}

.vo-featurePanel__footer {
  display: none;
}

/* hidden属性の保険 */
#voRegionBack[hidden],
#voRegionStepAdmin[hidden],
#voRegionStepArea[hidden],
#voRegionAdminEmpty[hidden],
#voRegionAreaEmpty[hidden] {
  display: none !important;
}

/* =========================
   タブレット
========================= */
@media (max-width: 960px) {
  .vo-searchBar,
  .vo-topRegionNav,
  .vo-featurePanel {
    max-width: none;
  }

  .vo-topRegionNav__region {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 20px;
  }
}

/* =========================
   モバイル
========================= */
@media (max-width: 768px) {
  .vo-topSearchBlock {
    margin-top: 20px;
  }

  .vo-topPrefNavBlock {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e6ebe8;
  }

  .vo-searchBar {
    flex-direction: column;
    border-radius: 14px;
  }

  .vo-searchBar__field--pref,
  .vo-searchBar__field--feat {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .vo-searchBar__divider {
    width: 100%;
    height: 1px;
  }

  .vo-searchBar__actions {
    padding: 12px 14px 14px;
  }

  .vo-searchSubmit {
    width: 100%;
    min-width: 0;
  }

  .vo-topRegionNav__title {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--vo-text);
    letter-spacing: 0;
  }

  .vo-topRegionNav__region {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .vo-topRegionNav__region + .vo-topRegionNav__region {
    margin-top: 16px;
  }

  .vo-topRegionNav__regionTitle {
    margin-top: 0;
    font-size: 14px;
  }

  .vo-topRegionNav__prefList {
    gap: 8px 8px;
  }

  .vo-topRegionNav__prefItem a {
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
  }

  .vo-topMajorRegionNav {
    margin-top: 36px;
    padding-top: 24px;
  }

  .vo-topMajorRegionNav__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  .vo-topMajorRegionNav__tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 2px 2px 0 0;
    white-space: nowrap;
  }

  .vo-topMajorRegionNav__tab:last-child {
    margin-right: 0;
  }

  /* モバイルでは、親のベース線ではなく各タブ側で線を持つ */
  .vo-topMajorRegionNav__tabs::after {
    display: none;
  }

  .vo-topMajorRegionNav__tab::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 1px;
    background: #d9dfdb;
  }

  .vo-topMajorRegionNav__tab.is-active::after {
    height: 2px;
    background: #fff;
  }

  .vo-topMajorRegionNav__panels {
    padding-top: 18px;
  }

  .vo-topMajorRegionNav__group + .vo-topMajorRegionNav__group {
    margin-top: 12px;
  }

  .vo-topMajorRegionNav__groupTitle {
    margin-bottom: 8px;
  }

  .vo-featurePanel {
    position: fixed;
    inset: 0;
    max-width: none;
    z-index: 100000;
    background: rgba(17, 24, 39, 0.42);
    transform: none;
  }

  .vo-featurePanel__inner {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .vo-featurePanel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
    border-bottom: 1px solid var(--vo-line);
    background: #fff;
  }

  .vo-featurePanel__body {
    margin-top: 0;
    padding: 14px 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    flex: 1 1 auto;
  }

  .vo-featurePanel__footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vo-line);
    background: #fff;
  }

  .vo-featurePanel__footer .c-btn {
    flex: 1 1 0;
  }

  .vo-featureApply {
    width: auto;
    border-radius: 10px;
    padding: 12px 16px;
  }
}
