@charset "UTF-8";

/* =========================================================
   Office Card (共通)
   taxonomy の一覧カード & single の関連カードで同じパーツを使う前提
   parts/office/card.php（office-card / office-badge / office-card__features）
   ========================================================= */
.office-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  background: #fff;
  height: 100%;
}
.office-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s ease;
}
.office-card__link:hover {
  transform: translateY(-2px);
}
.office-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* header（タイトル + 登記バッジ） */
.office-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
/* h3化時にSWELL側の見出しスタイルを受けないよう、要素指定で固定 */
.office-card h3.office-card__title {
  margin: 0;
  padding: 0;
  font-size: 1.03em;
  line-height: 1.45;
  font-weight: 800;
  color: #111;
  border: 0;
  background: transparent;
  letter-spacing: normal;
  text-decoration: none;
}

/* 価格 */
.office-card__prices {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 95, 255, 0.05), rgba(11, 95, 255, 0.015));
  border: 1px solid rgba(11, 95, 255, 0.1);
}
.office-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.office-price__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 95, 255, 0.08);
  color: rgba(12, 39, 94, 0.9);
}
.office-price.is-main .office-price__value {
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  color: #0b3bb5;
}
.office-price.is-sub .office-price__value {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

/* 未掲載（要確認/近日公開など）の値は目立たせない */
.office-price__value.is-unknown {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.75;
}

/* メイン行でも未掲載は大きくしない（確実に上書き） */
.office-price.is-main .office-price__value.is-unknown {
  font-size: 14px;
  font-weight: 700;
}

.office-price__unit {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}
.office-card__fees {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.64);
}

/* 登記バッジ（既存流用） */
.office-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.82);
  white-space: nowrap;
}
.office-badge.is-ok {
  background: rgba(11, 95, 255, 0.06);
  border-color: rgba(11, 95, 255, 0.18);
}
.office-badge.is-ng {
  background: rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.18);
}
.office-badge.is-unknown {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.72);
}

/* 特徴チップ */
.office-card__features {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.office-card__feature {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.66);
}

.office-card__feature.is-more {
  opacity: 0.7;
}

.office-card__ctaWrap {
  margin: auto 0 0;
  padding-top: 14px;
  display: flex;
  justify-content: center;
}

.office-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 50px;
  max-width: 100%;
  border-radius: 8px;
  background: #0B5FFF;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.office-card__link:hover .office-card__cta,
.office-card__link:focus-visible .office-card__cta {
  background: #0849c4;
}

/* 所在地 / アクセス（カード内メタ） */
.office-card__meta {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
}

.office-card__metaRow {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.office-card__metaRow + .office-card__metaRow {
  margin-top: 6px;
}

.office-card__metaIcon {
  flex: 0 0 auto;
  margin-top: 0px;
  position: relative;
  top: 1px;
}

.office-card__metaText {
  display: block;
  min-width: 0;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.72);
}
