@charset "utf-8";
/**
 * 注目掲載 / 通常掲載 の見せ分けスタイル(軽量版)
 *
 * - .officeList__item--premium  : 注目掲載(client_numberに値あり)
 * - .officeList__item--basic    : 通常掲載
 *
 * @package _template-new
 * @since 2.1.0 (2026-04 軽量版)
 */

/* =========================================================
 * 【注目掲載】バッジ + アクセントカラー
 * ========================================================= */
.officeList__item--premium {
  position: relative;
  border: 2px solid #ff7a00;
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 60%);
  box-shadow: 0 2px 12px rgba(255, 122, 0, .08);
  transition: box-shadow .2s ease, transform .2s ease;
}

.officeList__item--premium:hover {
  box-shadow: 0 8px 28px rgba(255, 122, 0, .15);
  transform: translateY(-2px);
}

/* 「注目の事務所」バッジ - ::before で軽量実装 */
.officeList__item--premium::before {
  content: '注目の事務所';
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(180deg, #ff8a1a, #ff5a00);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 6px 0 6px 0;
  box-shadow: 0 2px 4px rgba(255, 90, 0, .35);
  z-index: 2;
  pointer-events: none;
  line-height: 1.2;
}

/* 注目バッジを表示するため上部にパディングを確保 */
.officeList__item--premium {
  padding-top: 44px !important;
}

/* 注目掲載の事務所名強調 */
.officeList__item--premium .name {
  font-weight: 700;
}

.officeList__item--premium .name a {
  /* リンク色は既存テーマのデフォルト(青系)を継承 */
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.officeList__item--premium .name a:hover {
  border-bottom-color: #2a6ec9;
  text-decoration: none;
}

/* 有料掲載の「無料相談制度あり」タグ強調 */
.officeList__item--premium .tag__item {
  font-weight: 600;
}

/* 有料掲載のCTAボタン強化 */
.officeList__item--premium .telBtn {
  background: linear-gradient(180deg, #ff8a1a, #ff5a00) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 8px;
  box-shadow: 0 3px 0 #cc4900, 0 6px 14px rgba(255, 90, 0, .25);
  transition: transform .15s, filter .15s;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0;
}

.officeList__item--premium .telBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.officeList__item--premium .telBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cc4900, 0 2px 6px rgba(255, 90, 0, .2);
}

.officeList__item--premium .mailBtn {
  background: #fff !important;
  color: #c25400 !important;
  border: 2px solid #ff7a00;
  font-weight: 700;
  padding: 12px 8px;
  box-shadow: 0 3px 0 #ffb070, 0 6px 14px rgba(255, 122, 0, .12);
  transition: transform .15s, background .15s;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0;
}

.officeList__item--premium .mailBtn:hover {
  background: #fff5eb !important;
  transform: translateY(-1px);
}

.officeList__item--premium .mailBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #ffb070, 0 2px 6px rgba(255, 122, 0, .12);
}

/* =========================================================
 * 【無料掲載】控えめスタイル
 * ========================================================= */
.officeList__item--basic {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  /* CTAボタンなし(意図的に有料との差をつける) */
}

.officeList__item--basic .name {
  font-weight: 600;
  color: #333;
}

/* =========================================================
 * モバイル最適化
 * ========================================================= */
@media screen and (max-width: 767px) {
  .officeList__item--premium::before {
    font-size: .85rem;
    padding: 6px 12px;
  }

  .officeList__item--premium {
    padding-top: 38px !important;
  }

  .officeList__item--premium .telBtn {
    font-size: 1.05rem;
    padding: 12px;
  }

  .officeList__item--premium .mailBtn {
    padding: 10px;
  }
}


/* =========================================================
 * 【標準掲載】lawyer_flagチェックあり=リンク+画像表示
 *   注目より控えめ、basicより目立つ中間スタイル
 * ========================================================= */
.officeList__item--standard {
  position: relative;
  border: 1px solid #ddd;
  background: #ffffff;
  transition: box-shadow .2s ease;
}

.officeList__item--standard:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.officeList__item--standard .name a {
  color: #0066cc;
  text-decoration: none;
}

.officeList__item--standard .name a:hover {
  text-decoration: underline;
}



/* =========================================================
 * 【追加 v2.3.0】UI改善
 * - tag--strong : 事務所の特徴タグを目立たせる(オレンジ系)
 * - lawyerCatch : キャッチコピーを最上部・大きく
 * - fieldList--labeled : 注力分野アイコン+ラベル併記
 * - introExpand : 紹介文「続きを見る」展開式
 * ========================================================= */

/* ---------- 事務所の特徴タグ(目立たせ) ---------- */
.tag--strong {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.tag--strong .tag__item {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(180deg, #ff8a1a, #ff5a00);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(255, 90, 0, .25);
  white-space: nowrap;
  line-height: 1.3;
}

/* basic は控えめに */
.officeList__item--basic .tag--strong .tag__item {
  background: #fff;
  color: #c25400 !important;
  border: 1.5px solid #ff7a00;
  box-shadow: none;
}

@media screen and (max-width: 767px) {
  .tag--strong .tag__item {
    font-size: .75rem;
    padding: 4px 9px;
  }
}

/* ---------- キャッチコピー(officeList__item直下=画像の上、フルワイド) ---------- */
.lawyerCatch {
  display: block;
  margin: 0 0 14px;
  padding: 8px 4px;
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a3a5e;
  line-height: 1.45;
  letter-spacing: .02em;
  text-align: center;
  /* 背景・border-leftは無し */
}

@media screen and (max-width: 767px) {
  .lawyerCatch {
    font-size: 2.1rem;
    padding: 6px 2px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
}

/* ---------- 注力分野ラベル(ラベルのみ・アイコン無し) ---------- */
.fieldList--labeled {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fieldList--labeled .fieldList__item {
  display: inline-block;
  padding: 5px 12px;
  background: #f4f7fb;
  border: 1px solid #d4dae3;
  border-radius: 16px;
  line-height: 1.2;
}

.fieldList--labeled .fieldList__label {
  font-size: .85rem;
  font-weight: 600;
  color: #1a3a5e;
  white-space: nowrap;
}

/* 注目掲載では注力分野のラベルもオレンジ系で統一感を */
.officeList__item--premium .fieldList--labeled .fieldList__item {
  background: #fff8f0;
  border-color: #ffc89a;
}
.officeList__item--premium .fieldList--labeled .fieldList__label {
  color: #c25400;
}

@media screen and (max-width: 767px) {
  .fieldList--labeled .fieldList__label { font-size: .76rem; }
  .fieldList--labeled .fieldList__item { padding: 4px 10px; }
}

/* ---------- 紹介文「続きを見る」展開式 ---------- */
.introExpand {
  line-height: 1.85;
  margin: 8px 0 0;
}

.introExpand__btn {
  display: inline-block;
  margin-left: 4px;
  color: #2a6ec9;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.introExpand__btn:hover { text-decoration: underline; }
.introExpand__btn::before { content: ''; }

[data-action="open"]::after  { content: ''; }
[data-action="close"]::after { content: ''; }

/* hidden 属性は標準で display:none だが、念のため */
.introExpand [hidden] { display: none; }


/* =========================================================
 * 【追加 v2.4.0】電話受付時間キャプション + メール副文
 * ========================================================= */

/* 電話番号下の受付時間表記 */
.telBtn__caption {
  display: block;
  margin: 4px 0 8px;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.4;
  font-weight: 500;
}

.officeList__item--premium .telBtn__caption {
  color: #8a4500;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .telBtn__caption {
    font-size: .92rem;
    margin: 3px 0 6px;
  }
}

/* メールボタン下の受付時間表記 */
.mailBtn__caption {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.4;
  font-weight: 500;
}

.officeList__item--premium .mailBtn__caption {
  color: #c25400;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .mailBtn__caption {
    font-size: .92rem;
  }
}


/* =========================================================
 * 【追加 v2.5.0】btnWrap内の電話/メールキャプション位置調整
 *
 *  既存テーマ(style.css)では .btnWrap が flex 横並び。
 *  キャプションが横に押し出されないよう、Grid 2列に再構成し
 *  各ボタンとキャプションを「縦の組」として扱う。
 *  影響範囲は officeList__item 配下のみ。
 * ========================================================= */
@media screen and (min-width: 768px) {
  .officeList__item .btnWrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    align-items: start;
  }
  .officeList__item .btnWrap > .telBtn       { grid-column: 1; grid-row: 1; margin: 0; }
  .officeList__item .btnWrap > .telBtn__caption { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .officeList__item .btnWrap > .mailBtn      { grid-column: 2; grid-row: 1; margin: 0; }
  .officeList__item .btnWrap > .mailBtn__caption { grid-column: 2; grid-row: 2; margin-top: 4px; }
}

/* モバイル: 縦並びで、ボタンの直後にキャプション */
@media screen and (max-width: 767px) {
  .officeList__item .btnWrap > * + * { margin-top: 6px; }
  .officeList__item .btnWrap .telBtn__caption,
  .officeList__item .btnWrap .mailBtn__caption {
    margin-top: 4px;
    margin-bottom: 6px;
  }
}

/* 電話番号のみのケース(メール無し) → 1列 */
.officeList__item .btnWrap:not(:has(.mailBtn)) {
  grid-template-columns: 1fr;
}
.officeList__item .btnWrap:not(:has(.telBtn)) {
  grid-template-columns: 1fr;
}
