.tab-area {
  width: 100%;
  margin: 0 auto;
}

.tab-content h2 {
  margin-bottom: 5px;
}

/* ラジオボタンを非表示 */
.tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* タブメニュー */
.tab-menu {
  display: flex;
  width: 100%;
  overflow-x: auto;
  border-bottom: 2px solid var(--blue1);
  scrollbar-width: thin;
  gap: 0 10px;
}

/* 各タブ */
.tab-label {
  flex: 1 0 auto;
  min-width: 140px;
  padding: 14px 24px;
  border: 1px solid #d5d5d5;
  border-bottom: none;
  background-color: #f3f3f3;
  color: #333;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tab-label:not(:first-child) {
  border-left: none;
}

.tab-label:hover {
  background-color: #e5edf3;
}

/* 選択中のタブ */
#tab-01:checked ~ .tab-menu label[for="tab-01"],
#tab-02:checked ~ .tab-menu label[for="tab-02"] {
  background-color: var(--blue1);
  color: #fff;
}

/* キーボード操作時のフォーカス表示 */
#tab-01:focus-visible ~ .tab-menu label[for="tab-01"],
#tab-02:focus-visible ~ .tab-menu label[for="tab-02"] {
  outline: 3px solid #f2b705;
  outline-offset: -3px;
}

/* コンテンツ外枠 */
.tab-contents {
  padding: 32px;
  border: 1px solid var(--border);
  border-top: none;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
}

/* 初期状態では非表示 */
.tab-content {
  display: none;
}

/* 選択中のコンテンツを表示 */
#tab-01:checked ~ .tab-contents .tab-content-01,
#tab-02:checked ~ .tab-contents .tab-content-02 {
  display: block;
}

/* コンテンツ内 */
.tab-content > :first-child {
  margin-top: 0;
}

.tab-content > :last-child {
  margin-bottom: 0;
}

.logo_facility {
  width: 100%;
  max-width: 250px;
  margin-bottom: 20px;
}

.wrap_facility_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

p.t_facility_list {
  margin-bottom: 30px;
}

.facility_card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(50% - 10px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.facility_card h3 {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--blue1);
  color: var(--gray5);
  font-size: 1.2rem;
  line-height: 1.6;
}

.facility_card ul {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.facility_card ul:last-child {
  border-bottom: 1px solid var(--border);
}

.facility_card ul .left {
  flex: 1;
}

.facility_card ul .right {
  flex: 2;
}

/* 公式サイトボタン */
.btn_facility_link {
  display: block;
  font-weight: bold;
  width: 150px;
  padding: 10px 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  background-color: var(--blue1);
  margin: 26px auto 0;
  transition: 0.5s;
}

/* 公式サイトが登録されていない場合 */
.btn_facility_link.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.is-certified .manager_setting::before {
  content: "あり";
  background-color: var(--blue1);
  color: #fff;
  padding: 2.5px 10px;
  border-radius: 999px;
}

.is-not-certified .manager_setting::before {
  content: "なし";
  border: 1px solid var(--gray4);
  color: var(--gray4);
  padding: 2.5px 10px;
  border-radius: 999px;
}

@media screen and (max-width: 767px) {
  .tab-label {
    min-width: 120px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .tab-contents {
    padding: 24px 16px;
  }

  .facility_card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - 10px);
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}
