/* =====================================================================
 * 三村小松法律事務所 2026年 サイト改修 追加スタイル
 * - 既存 style.css を上書き／補完するためのファイル
 * - functions.php で wp_enqueue_scripts 経由で読み込まれる
 * ===================================================================== */

/* ---------- ヘッダー：langbar 内に並ぶ SNS アイコン ---------- */
.header .langbar {
  align-items: center;
  flex-wrap: wrap;
}
.header .langbar__sns {
  display: flex;
  align-items: center;
  gap: 0 16px;
  margin-left: 24px;
  list-style: none;
  padding: 0;
}
.header .langbar__sns li {
  display: flex;
  align-items: center;
}
.header .langbar__sns a {
  display: flex;
  align-items: center;
  gap: 0 6px;
  font-size: 1.3rem;
  line-height: 1;
}
.header .langbar__sns img {
  width: 21px;
  height: auto;
  display: block;
}
.header .langbar__sns .icon-img {
  width: 18px;
}
.header .langbar .headerNav--sub {
  width: 100%;
  margin-top: 1.0em;
}
@media screen and (max-width: 767px) {
  .header .langbar__sns {
    margin-left: 16px;
    gap: 0 12px;
  }
  .header .langbar__sns a span {
    display: none;
  }
}

/* ---------- ヘッダー：グローバルナビ サブ行 ---------- */
.header .headerNav--sub {
  height: auto;
  margin-top: 24px;
  padding-bottom: 8px;
}
.header .headerNav__list--sub {
  justify-content: flex-end;
}
.header .headerNav__list--sub li a {
  font-size: 1.4rem;
  color: #555;
}
.header .headerNav__list--sub li a::after {
  height: 12px;
  margin: 0 14px;
  background: #888;
}
.header .headerNav__list--sub li:last-child a::after {
  display: none;
}
@media screen and (max-width: 767px) {
  .header .headerNav--sub {
    margin-top: 40px;
    border-top: 1px solid #e0ddd9;
    padding-top: 24px;
  }
  .header .headerNav__list--sub {
    display: block;
  }
  .header .headerNav__list--sub li {
    margin-top: 20px;
  }
  .header .headerNav__list--sub li a {
    font-size: 16px;
  }
}

/* グローバルナビの mail クラスはサブ行へ移したため非表示にする */
.header .headerNav__list .mail { display: none !important; }

/* headerNav__list の仕切り制御は下部の「全項目間の仕切り」セクションで一括管理 */

/* ---------- フッター：SNS アイコン ---------- */
.footer .footerNav__sns {
  display: flex;
  align-items: center;
  gap: 0 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.footer .footerNav__sns li {
  display: flex;
  align-items: center;
}
.footer .footerNav__sns a {
  display: flex;
  align-items: center;
  gap: 0 8px;
  font-size: 1.4rem;
  line-height: 1;
  color: inherit;
}
.footer .footerNav__sns img {
  width: 22px;
  height: auto;
  display: block;
}
.footer .footerNav__sns .icon-img {
  width: 20px;
}
@media screen and (max-width: 767px) {
  .footer .footerNav__sns {
    gap: 0 16px;
    margin-bottom: 20px;
  }
}

/* ---------- 共通：クイックリンク（4ボタン） ---------- */
/* 「当事務所について」ページ下部（シート10）と同じデザイン */
.sec-quick-links {
  margin-top: 80px;
}
.sec-quick-links .sec-in {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links--secondary {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #c8c8c8;
}
.quick-links__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 1px solid #c8c8c8;
  border-radius: 30px;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  background: #fff;
  text-align: center;
  color: #1a1a1a;
  transition: 0.25s;
}
.quick-links__btn:hover {
  border-color: #1a1a1a;
}
.quick-links__sub {
  margin-top: 10px;
  font-size: 1.3rem;
  text-align: center;
  color: #555;
}
.quick-links__sub a {
  color: inherit;
  text-decoration: none;
}
.quick-links__sub a .underline {
  text-decoration: underline;
}
.quick-links__sub a:hover {
  color: #1a1a1a;
}
@media screen and (max-width: 767px) {
  .quick-links {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
  }
  .quick-links--secondary {
    margin-top: 12px;
  }
  .quick-links__btn {
    height: 52px;
    font-size: 1.4rem;
  }
}

/* ---------- リーガルサービス一覧：テーブル型グリッド（シート9） ---------- */
.svc-table {
  display: flex;
  flex-wrap: wrap;
}
/* 4列1行をひとまとめに、行ごとに上下ボーダー */
.svc-table__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid #c8c8c8;
  padding: 28px 0;
}
.svc-table__row:last-child {
  border-bottom: 1px solid #c8c8c8;
}
.svc-table__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  color: #1a1a1a;
  text-decoration: none;
  transition: 0.2s;
}
.svc-table__item:hover {
  opacity: 0.7;
}
.svc-table__item--noicon .svc-table__name {
  margin-left: 0;
}
.svc-table__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.svc-table__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.svc-table__name {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}
.svc-table__arrow {
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-left: auto;
}
@media screen and (max-width: 767px) {
  .svc-table__row {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 0;
  }
  .svc-table__item {
    padding: 8px 12px;
    gap: 8px;
  }
  .svc-table__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }
  .svc-table__name {
    font-size: 1.3rem;
  }
}

/* ---------- 一覧ページ：産業／法分野 カードグリッド ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.svc-grid__item {
  background: #f8f7f6;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s;
}
.svc-grid__item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}
.svc-grid__name {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}
.svc-grid__name--lg {
  font-size: 2rem;
}
.svc-grid--noicon .svc-grid__item a {
  justify-content: center;
  text-align: center;
}
.svc-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
@media screen and (max-width: 767px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .svc-grid__item a {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .svc-grid__name {
    font-size: 1.6rem;
  }
}

/* ---------- 詳細ページ：見出しブロック ---------- */
.sec-field-head {
  padding-top: 32px;
}
.field-head__label {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 8px;
}
.sec-field-head .editor {
  font-size: 1.6rem;
  line-height: 1.9;
}

/* ---------- アーカイブ：分野タググループ ---------- */
.sec-tag-group {
  padding-top: 64px;
}
.sec-tag-group + .sec-tag-group {
  padding-top: 32px;
}

/* ---------- 弁護士カード（添付デザイン準拠） ---------- */
.lawyer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lawyer-card {
  overflow: hidden;
}
.lawyer-card__link {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}
.lawyer-card__photo {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  background: #e8e8e8;
}
.lawyer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lawyer-card__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.lawyer-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  margin: 0 0 8px;
}
.lawyer-card__title-en {
  font-size: 1.1rem;
  color: #666;
}
.lawyer-card__nameline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.lawyer-card__name {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
  white-space: nowrap;
}
.lawyer-card__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555;
  border: 1px solid #bbb;
  border-radius: 20px;
  padding: 3px 14px;
  white-space: nowrap;
  line-height: 1.4;
}
.lawyer-card__link:hover .lawyer-card__contact {
  color: #1a1a1a;
  border-color: #1a1a1a;
}
@media screen and (max-width: 767px) {
  .lawyer-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lawyer-card__photo {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
  }
  .lawyer-card__name {
    font-size: 1.8rem;
  }
  .lawyer-card__title {
    font-size: 1.1rem;
  }
}

/* ---------- 一般ユーティリティ補完 ---------- */
.sec-ttl2 {
  font-size: 2.2rem;
  font-weight: 600;
  border-left: 4px solid #1a1a1a;
  padding-left: 12px;
  line-height: 1.3;
}
@media screen and (max-width: 767px) {
  .sec-ttl2 {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }
}

/* ---------- ナビ：全項目間の仕切りを有効化（最後の項目のみ非表示） ---------- */
.header .headerNav__list:not(.headerNav__list--sub) > li a::after {
  content: "" !important;
  display: block !important;
  width: 1px;
  height: 16px;
  background: #000;
  margin: 0 18px;
}
.header .headerNav__list:not(.headerNav__list--sub) > li:last-child a::after {
  display: none !important;
}
@media screen and (max-width: 767px) {
  .header .headerNav__list:not(.headerNav__list--sub) > li a::after {
    display: none !important;
  }
}

/* ---------- style.css 上書き ---------- */
#COLUMN .author__list li {
  flex-wrap: wrap;
}