@charset "UTF-8";

/* =========================================================
   Office Single: CTA / DB Table / Related
   ※ single-office.php（クラス名: office-*）を想定
   ========================================================= */

/* ---------- 広告注記（affiliate時のみ表示） ---------- */
.office-ad-notice {
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- CTA（本文上・本文中・本文下で共通） ---------- */
.office-cta {
  margin: 18px 0 28px;
}
.office-cta__inner {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.office-cta__lead {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 16px;
  color: #111;
}
.office-cta__hero {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.82);
}

.office-cta__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.office-cta__price {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  background: rgba(11, 95, 255, 0.06);
  border: 1px solid rgba(11, 95, 255, 0.18);
  color: #111;
}

.office-cta__btn {
  margin: 0 0 10px;
}
.office-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: #0b5fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #fff;
  transition: transform 0.08s ease;
}
.office-cta__link:hover {
  transform: translateY(-1px);
}
.office-cta__link:active {
  transform: translateY(0);
}
.office-cta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.88em;
  color: rgba(0, 0, 0, 0.65);
}

/* ---------- DB Table（オフィス情報の表） ---------- */

/* セクション全体の空気（CTAと合わせる） */
.office-db {
  margin-top: 26px;
}
.office-db--region-links {
  margin-top: 0;
}
.office-section__heading {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 18px;
  color: #111;
}

/* テーブルを「カード風」に */
.office-db__table {
  width: 100%;
  border-collapse: separate; /* 角丸を効かせるため */
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* 罫線はセルじゃなく「行/列」で薄く管理 */
.office-db__table th,
.office-db__table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.office-db__table tr:last-child th,
.office-db__table tr:last-child td {
  border-bottom: 0;
}

/* 左列（見出し） */
.office-db__table th {
  width: 28%;
  font-weight: 800;
  background: #fbf5ee;
  color: #6f4520;
  white-space: nowrap;
  border-right: 1px solid rgba(224, 160, 101, 0.2);
  box-shadow: none;
}

/* 右列（本文） */
.office-db__table td {
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.86);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.office-db__accessPreview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.office-db__accessDetails {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(225, 122, 22, 0.2);
  text-align: center;
}

.office-db__accessSummary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  cursor: pointer;
  font-size: 0.84em;
  font-weight: 700;
  color: #9a5a1d;
  list-style: none;
  padding: 0.42em 0.9em;
  border-radius: 999px;
  background: rgba(255, 241, 226, 0.9);
  border: 1px solid rgba(225, 122, 22, 0.18);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.office-db__accessSummary::-webkit-details-marker {
  display: none;
}

.office-db__accessSummary::before {
  content: "＋";
  font-size: 0.95em;
  line-height: 1;
}

.office-db__accessDetails[open] .office-db__accessSummary::before {
  content: "－";
}

.office-db__accessSummary:hover {
  color: #7f4208;
  background: rgba(255, 232, 205, 0.98);
  border-color: rgba(225, 122, 22, 0.3);
}

.office-db__accessBody {
  margin: 10px auto 0;
  max-width: 32rem;
  color: rgba(0, 0, 0, 0.72);
  text-align: left;
}

/* 補足テキスト */
.office-db__note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(225, 122, 22, 0.2);
  display: flex;
  justify-content: center;
}

.office-db__details {
  margin: 0;
  width: 100%;
  text-align: center;
}

.office-db__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  cursor: pointer;
  font-size: 0.74em;
  font-weight: 500;
  color: #7a5a3a;
  list-style: none;
  padding: 0.22em 0.55em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.4;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.office-db__summary::-webkit-details-marker {
  display: none;
}

.office-db__summary::before {
  content: "＋";
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.7;
}

.office-db__details[open] .office-db__summary::before {
  content: "－";
}

.office-db__summary:hover {
  color: #5f4327;
  background: rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.12);
}

.office-db__detailsBody {
  margin: 10px auto 0;
  max-width: 32rem;
  font-size: 0.92em;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.66);
  text-align: left;
}

/* リンクの雰囲気を整える（公式ページなど） */
.office-db__table a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.office-db__table a:hover {
  text-decoration-thickness: 2px;
}

/* 行hover（うっすら） */
.office-db__table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* スマホ微調整（表） */
@media (max-width: 600px) {
  .office-section__heading {
    font-size: 17px;
  }

  .office-db__table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .office-db__table,
  .office-db__table tbody,
  .office-db__table tr,
  .office-db__table th,
  .office-db__table td {
    display: block;
    width: 100%;
  }

  .office-db__table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  }

  .office-db__table tr:last-child {
    margin-bottom: 0;
  }

  .office-db__table tr:last-child th,
  .office-db__table tr:last-child td,
  .office-db__table th,
  .office-db__table td {
    border-bottom: 0;
  }

  .office-db__table th {
    width: auto;
    white-space: normal;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px 8px;
  }

  .office-db__table td {
    padding: 10px 12px 12px;
  }

  .office-db__summary {
    font-size: 0.9em;
  }

  .office-db__detailsBody {
    font-size: 0.9em;
  }
}

/* =========================================================
   Related（同地域/同条件）: コンテナだけ（カードは共通 .office-card）
   ========================================================= */
.office-related__grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .office-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}
