/*
 * style2026.css
 * トップページ Hタグ再構成（テストページ）専用の装飾スタイル
 * 対象クラスは katomasato- プレフィックスで既存テーマのスタイルと衝突しないようにしている
 */

.katomasato-section {
  padding: 48px 20px;
}

.katomasato-section--alt {
  background: #f4f8f5;
}

.katomasato-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.katomasato-top p {
  line-height: 1.6;
}

.katomasato-top h2.wp-block-heading {
  font-size: 26px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  padding-bottom: 14px !important;
  margin-bottom: 28px !important;
  position: relative !important;
}

.katomasato-top h2.wp-block-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: #264d30;
  margin: 14px auto 0;
}

.katomasato-top h3.wp-block-heading {
  font-size: 18px !important;
  line-height: 1.4 !important;
  color: #264d30 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* 取り扱い分野：カードグリッド */
.katomasato-cards > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.katomasato-card {
  background: #fff;
  border: 1px solid #e2e6e2;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.katomasato-card h3.wp-block-heading {
  border-left: 4px solid #264d30;
  padding-left: 10px;
}

.katomasato-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.katomasato-card .katomasato-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
}

@media (max-width: 680px) {
  .katomasato-cards > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

/* 当事務所が選ばれる理由：写真付き3列カード */
.katomasato-top .katomasato-lead {
  text-align: center;
  color: #4f4747;
  margin-bottom: 28px;
}

.katomasato-reasons > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.katomasato-reason {
  background: #f4f8f5;
  border-radius: 8px;
}

.katomasato-reason .katomasato-reason__photo {
  aspect-ratio: 253 / 132;
  margin: 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #e2e6e2;
}

.katomasato-reason .katomasato-reason__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.katomasato-reason__body {
  padding: 20px 20px 24px;
}

.katomasato-reason h3.wp-block-heading {
  font-weight: bold;
  border-left: 4px solid #264d30;
  padding-left: 10px;
}

.katomasato-reason__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #4f4747;
}

@media (max-width: 680px) {
  .katomasato-reasons > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ボタン装飾（リンク・CTA共通） */
.katomasato-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  background: #264d30;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: bold;
  text-align: center;
}

.katomasato-btn:hover {
  background: #1a3821;
}

.katomasato-btn--outline {
  background: #fff;
  color: #264d30 !important;
  border: 2px solid #264d30;
}

.katomasato-btn--outline:hover {
  background: #f4f8f5;
}

.katomasato-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}

/* ボタンブロック：テーマの .entry-content a の文字色を上書き */
.katomasato-top .wp-block-button__link,
.katomasato-top .wp-block-button__link:hover {
  color: #fff;
}

/* 費用・流れ・アクセスなど番号付きブロック */
.katomasato-steps {
  counter-reset: katomasato-step;
}

.katomasato-step {
  background: #fff;
  border: 1px solid #e2e6e2;
  border-radius: 8px;
  padding: 18px 20px 18px 60px;
  margin-bottom: 14px;
  position: relative;
}

.katomasato-step h3.wp-block-heading {
  margin-bottom: 6px;
}

.katomasato-step p {
  margin-bottom: 0;
}

.katomasato-step::before {
  counter-increment: katomasato-step;
  content: counter(katomasato-step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #264d30;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 料金・アクセスの強調ボックス */
.katomasato-highlight-box {
  background: #fff;
  border: 1px solid #e2e6e2;
  border-left: 4px solid #264d30;
  border-radius: 6px;
  padding: 20px 24px;
}

/* 弁護士からのメッセージ：プロフィール（写真＋紹介文） */
.katomasato-profile {
  margin-bottom: 32px;
}

.katomasato-profile > .wp-block-group__inner-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.katomasato-profile .katomasato-profile__photo {
  flex: 0 0 182px;
  margin: 0;
}

.katomasato-profile .katomasato-profile__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.katomasato-profile__body {
  flex: 1;
}

.katomasato-profile h3.wp-block-heading {
  font-weight: bold;
  border-left: 4px solid #264d30;
  padding-left: 10px;
}

.katomasato-profile__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4f4747;
}

@media (max-width: 680px) {
  .katomasato-profile > .wp-block-group__inner-container {
    flex-direction: column;
    align-items: center;
  }
}

/* 弁護士からのメッセージ：既存の詩的文章をやや落ち着いた背景で囲む */
.katomasato-message-box {
  background: #fff;
  border-radius: 8px;
  padding: 36px 24px;
}

.katomasato-message-box p {
  text-align: left !important;
}
