/**
 * WILL Asset Planning テーマ - カスタムCSS
 *
 * @package WillTheme
 */

/* カスタムフォント設定 */
.font-serif {
  font-family: 'Noto Serif Japanese', serif;
}

/* グラスモーフィズムのブラウザサポート */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* ベースフォントサイズを18pxに設定 */
}

/* =========================
 * 全体の文字間隔（トラッキング）
 * ========================= */
:root {
  /* 日本語を想定して控えめに。必要なら 0.02em〜0.06em で調整してください */
  --will-letter-spacing: 0.2em;

  /* =========================================================
   * Typography scale（Tailwindのtext-*スケールに合わせた基準）
   * ========================================================= */
  --will-text-xs: 0.75rem;
  /* text-xs */
  --will-text-sm: 0.875rem;
  /* text-sm */
  --will-text-base: 1.125rem;
  /* text-base */
  --will-text-lg: 1.125rem;
  /* text-lg */
  --will-text-xl: 1.25rem;
  /* text-xl */
  --will-text-2xl: 1.5rem;
  /* text-2xl */
  --will-text-3xl: 1.875rem;
  /* text-3xl */
  --will-text-4xl: 2.25rem;
  /* text-4xl */
  --will-text-5xl: 3rem;
  /* text-5xl */
  --will-text-6xl: 3.75rem;
  /* text-6xl */
  --will-text-7xl: 4.5rem;
  /* text-7xl */

  /* 全体の行間（日本語想定） */
  --will-line-height-body: 1.9;
  --will-line-height-heading: 1.25;

  /* カスタムカラー */
  --color-navy-primary: #101828;
  --color-navy-secondary: #1e293b;
  --color-navy-dark: #0f172a;
  --color-amber-primary: #d97706;
  --color-amber-hover: #b45309;
}

body {
  font-size: var(--will-text-base);
  letter-spacing: var(--will-letter-spacing);
  line-height: var(--will-line-height-body);
}

/* 本文周りは少し広めに統一 */
p,
li,
dd,
dt {
  line-height: var(--will-line-height-body);
}

/* 見出しは詰めすぎず、読みやすい行間に */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--will-line-height-heading);
}

/* 見出しサイズのデフォルト（Tailwind基準。各ブロックのtext-*があればそちらが優先） */
h1 {
  font-size: var(--will-text-5xl);
}

h2 {
  font-size: var(--will-text-4xl);
}

h3 {
  font-size: var(--will-text-3xl);
}

h4 {
  font-size: var(--will-text-2xl);
}

h5 {
  font-size: var(--will-text-xl);
}

h6 {
  font-size: var(--will-text-lg);
}

small {
  font-size: var(--will-text-sm);
}

/* 崩れやすい要素は例外（等幅フォント/コード表示など） */
header,
footer,
code,
pre,
kbd,
samp,
tt {
  letter-spacing: normal;
}

/* モバイルメニューのオーバーレイ */
.mobile-menu-overlay {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998 !important;
  pointer-events: none;
}

.mobile-menu-overlay.opacity-100 {
  pointer-events: auto;
}

/* モバイルメニューのアニメーション */
.mobile-menu {
  will-change: transform;
  z-index: 9999 !important;
}

/* ヘッダーのz-index */
.header-main {
  z-index: 50;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* ヘッダーメニューリンクのフォントサイズ */
.header-main nav a,
.header-main #menu-main-menu a,
.header-main .menu-item a {
  font-size: 1rem;
  /* text-base = 16px */
}

/* モバイルメニューのフォントサイズ（12px） */
.header-main nav[class*="xl:hidden"] span,
.header-main nav[class*="xl:hidden"] a span {
  font-size: 12px !important;
}

/* モバイルメニューのCTAボタン（オレンジ背景） */
.header-main nav[class*="xl:hidden"] .cta-button-primary span,
.header-main nav[class*="xl:hidden"] .cta-button-primary a span,
.header-main .cta-button-primary.menu-item span {
  background-color: #e17100 !important;
  color: white !important;
}

.header-main nav[class*="xl:hidden"] .cta-button-primary span:hover,
.header-main nav[class*="xl:hidden"] .cta-button-primary a span:hover,
.header-main .cta-button-primary.menu-item span:hover {
  background-color: #d16500 !important;
}

/* Misconceptions: make last card full width when odd (lg+) */
@media (min-width: 1024px) {
  .will-misconceptions-section .grid> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* モバイル時のロゴサイズ調整 */
@media (max-width: 375px) {
  .header-main .custom-logo-link img {
    max-height: 36px !important;
  }

  .header-main .text-xl {
    font-size: 0.875rem !important;
    /* 14px */
  }
}

/* カスタムロゴのスタイル調整 */
.custom-logo-link img {
  height: auto;
  max-height: 64px;
  width: auto;
}

@media (max-width: 640px) {
  .custom-logo-link img {
    max-height: 48px;
  }
}

@media (min-width: 1024px) {
  .custom-logo-link img {
    max-height: 80px;
  }
}

/* プログレッシブ画像読み込み */
img {
  max-width: 100%;
  height: auto;
}

/* アクセシビリティ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* フォーカススタイル */
a:focus,
button:focus {
  outline: 2px solid var(--color-amber-primary);
  outline-offset: 2px;
}

/* ブロックエディタコンテンツの改行サポート */
.entry-content,
.wp-block-post-content {
  font-size: var(--will-text-base);
  line-height: 1.8;
}

.entry-content br,
.wp-block-post-content br {
  display: block;
  content: "";
  margin-top: 0.5em;
}

/* ブロックエディタのブロック間隔 */
.entry-content>*,
.wp-block-post-content>* {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.entry-content>*:first-child,
.wp-block-post-content>*:first-child {
  margin-top: 0;
}

.entry-content>*:last-child,
.wp-block-post-content>*:last-child {
  margin-bottom: 0;
}

/* すべてのブロックのmargin-bottomを無効化 */
.wp-block,
[class*="wp-block-"] {
  margin-bottom: 0 !important;
}

/* セクションブロックのmargin-bottomを無効化 */
.will-hero-section,
.will-philosophy-section,
section {
  margin-bottom: 0 !important;
}

/* ============================================
   Contact Form 7 カスタムスタイル
   ============================================ */

/* フォームコンテナ */
.will-consultation-form {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  padding: 8rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* 1024px以下のレスポンシブ対応 */
@media (max-width: 1024px) {
  .will-consultation-form {
    padding: 4rem 1rem;
    max-width: 100%;
  }

  .will-form-input,
  .will-form-textarea {
    padding: 14px 20px;
    font-size: 16px;
  }

  .will-form-label {
    font-size: 18px;
  }

  .will-form-required {
    font-size: 18px;
  }

  .will-form-radio-group .wpcf7-radio {
    grid-template-columns: repeat(2, 1fr);
  }

  .will-form-radio-group .wpcf7-radio:has(.wpcf7-list-item:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }

  .will-form-radio-group label {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 72px;
  }

  .will-consultation-section {
    padding: 24px;
  }

  .will-consultation-title {
    font-size: 20px;
    margin-bottom: 32px;
  }

  .will-preference-fields {
    grid-template-columns: 1fr;
  }

  .will-preference-title {
    font-size: 18px;
  }

  .will-form-submit {
    width: 100%;
    max-width: 316px;
  }

  .will-consultation-section .will-form-radio-group .wpcf7-radio {
    grid-template-columns: 1fr;
  }
}

/* 768px以下のレスポンシブ対応 */
@media (max-width: 768px) {
  .will-consultation-form {
    padding: 3rem 0.75rem;
  }

  .will-form-input,
  .will-form-textarea {
    padding: 12px 16px;
    font-size: 16px;
  }

  .will-form-label {
    font-size: 16px;
  }

  .will-form-required {
    font-size: 16px;
  }
}

/* Contact Form 7の余分なbrタグを非表示 */
.will-consultation-form br,
.will-form-field br,
.will-consultation-section br,
.will-form-radio-group br,
.will-preference-group br {
  display: none;
}

/* ラベル内のbrは表示（必要に応じて） */
.will-form-label br {
  display: inline;
}

/* フォームフィールド */
.will-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.will-form-field p {
  margin-bottom: 0;
}

/* ラベル */
.will-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #101828;
  letter-spacing: -0.4492px;
  margin-bottom: 1rem;
}

.will-form-label-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.will-form-label-text {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.will-form-required {
  color: #e7000b;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.4492px;
}

/* テキスト入力 */
.will-form-input,
.will-form-textarea {
  width: 100%;
  height: 64px;
  padding: 16px 24px;
  border: 2px solid #d1d5dc;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: rgba(10, 10, 10, 0.5);
  letter-spacing: -0.4395px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  background-color: white;
}

.will-form-input:focus,
.will-form-textarea:focus {
  outline: none;
  border-color: #101828;
  color: #101828;
}

.will-form-input.wpcf7-not-valid,
.will-form-textarea.wpcf7-not-valid,
.will-form-date-input.wpcf7-not-valid,
.will-form-time-input.wpcf7-not-valid {
  background-color: #fef2f2;
  border-color: #f4a6ad;
}

.will-form-textarea {
  height: 120px;
  resize: vertical;
  padding-top: 16px;
}

/* ラジオボタングループ */
.will-form-radio-group {
  display: grid;
  gap: 16px;
}

.will-form-radio-group .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 3つの選択肢がある場合は3列（デスクトップのみ） */
.will-form-radio-group .wpcf7-radio:has(.wpcf7-list-item:nth-child(3)) {
  grid-template-columns: repeat(3, 1fr);
}

/* 1024px以下では2列に変更 */
@media (max-width: 1024px) {
  .will-form-radio-group .wpcf7-radio:has(.wpcf7-list-item:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr);
  }

  .will-form-radio-group label {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 72px;
  }
}

/* 768px以下では1列（縦並び）に変更 */
@media (max-width: 768px) {
  .will-form-radio-group .wpcf7-radio {
    grid-template-columns: 1fr !important;
    display: grid;
    flex-direction: column;
  }

  .will-form-radio-group .wpcf7-radio:has(.wpcf7-list-item:nth-child(3)) {
    grid-template-columns: 1fr !important;
  }

  .will-form-radio-group .wpcf7-list-item {
    width: 100%;
  }

  .will-form-radio-group label {
    padding: 12px 16px;
    font-size: 16px;
    min-height: 64px;
    width: 100%;
  }
}

.will-form-radio-group .wpcf7-list-item {
  margin: 0;
}

.will-form-radio-group .wpcf7-form-control-wrap {
  display: contents;
}

.will-form-radio-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  height: auto;
  padding: 16px 20px;
  background: white;
  border: 2px solid #d1d5dc;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #364153;
  letter-spacing: -0.4395px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.will-form-radio-group .wpcf7-list-item-label {
  display: inline-block;
  white-space: nowrap;
}

.will-form-radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.will-form-radio-group input[type="radio"]:checked+label,
.will-form-radio-group label:has(input[type="radio"]:checked) {
  border-color: #101828;
  background: #101828;
  color: white;
}

/* 相談セクション */
.will-consultation-section {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 34px;
  margin-bottom: 32px;
}

.will-consultation-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: #101828;
  letter-spacing: 0.0703px;
  margin: 0 0 48px 0;
}

/* 希望グループ */
.will-preference-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.will-preference-group:last-of-type {
  margin-bottom: 0;
}

.will-preference-header {
  display: flex;
  align-items: center;
}

.will-preference-header p {
  margin-bottom: 0;
}

.will-preference-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.will-preference-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #101828;
  letter-spacing: -0.4492px;
}

.will-preference-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .will-preference-fields {
    grid-template-columns: 1fr;
  }
}

.will-preference-field {
  display: flex;
  flex-direction: column;
}

.will-preference-field p {
  margin-bottom: 0;
}

.will-preference-field-full {
  display: flex;
  flex-direction: column;
}

.will-preference-field-full p {
  margin-bottom: 0;
}

.will-preference-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #4a5565;
  letter-spacing: -0.1504px;
  margin-bottom: 1rem;
  margin-top: 0;
}

.will-form-date-input,
.will-form-time-input {
  width: 100%;
  height: 56px;
  padding: 16px 24px;
  border: 2px solid #d1d5dc;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: rgba(10, 10, 10, 0.5);
  letter-spacing: -0.4395px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  transition: border-color 0.2s ease;
  box-sizing: border-box;

  /* iOS Safari 含む、日付/時刻inputのネイティブ見た目を抑えて統一 */
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  -webkit-text-fill-color: currentColor;
}

.will-form-date-input:focus,
.will-form-time-input:focus {
  outline: none;
  border-color: #101828;
  color: #101828;
}

/* 値が入ったら（required前提）通常文字色にする */
.will-form-date-input:valid,
.will-form-time-input:valid {
  color: #101828;
}

/* WebKit系（iOS Safari等）の内部レイアウト調整 */
.will-form-date-input::-webkit-date-and-time-value,
.will-form-time-input::-webkit-date-and-time-value {
  text-align: left;
}

/* ブラウザ差が出やすい「右側のネイティブアイコン」を統一（入力枠の見た目を揃える） */
.will-form-date-input,
.will-form-time-input {
  padding-right: 18px;
  /* 右側に自前アイコン用の余白 */
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px 18px;
}

/* カレンダー/時計アイコン（SVG） */
.will-form-date-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 2v2M17 2v2M3.5 9h17M5 5h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.will-form-time-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 7v5l3 2M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* WebKit系（Chrome/Safari/Edge）: ネイティブのインジケータは透明にしてクリック領域だけ残す */
.will-form-date-input::-webkit-calendar-picker-indicator,
.will-form-time-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

/* WebKit系: 余計な内側UIを抑制 */
.will-form-date-input::-webkit-inner-spin-button,
.will-form-time-input::-webkit-inner-spin-button,
.will-form-date-input::-webkit-clear-button,
.will-form-time-input::-webkit-clear-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* 相談セクション内のラジオボタン */
.will-consultation-section .will-form-radio-group {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  gap: 16px;
}

.will-consultation-section .will-form-radio-group .wpcf7-radio {
  grid-template-columns: repeat(2, 1fr);
}

.will-consultation-section .will-form-radio-group .wpcf7-form-control-wrap {
  display: contents;
}

.will-consultation-section .will-form-radio-group label {
  height: 64px;
  position: relative;
  padding-left: 20px;
  padding-right: 20px;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.will-consultation-section .will-form-radio-group .wpcf7-list-item-label {
  display: inline-block;
  white-space: nowrap;
}

/* 注意書き */
.will-consultation-notice {
  background: white;
  border: 1px solid #d1d5dc;
  border-radius: 10px;
  padding: 17px;
  margin-top: 32px;
}

.will-consultation-notice p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #4a5565;
  letter-spacing: -0.1504px;
  margin: 0 0 8px 0;
}

.will-consultation-notice p:last-child {
  margin-bottom: 0;
}

/* フォーム通知 */
.will-form-notice {
  background: #eff6ff;
  border: 2px solid #bedbff;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 32px;
}

.will-form-notice p {
  font-size: 18px;
  font-weight: 400;
  line-height: 29.25px;
  color: #364153;
  letter-spacing: -0.4395px;
  margin: 0;
}

/* 確認チェック */
.will-form-acceptance-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.will-form-acceptance-item .wpcf7-list-item {
  margin: 0;
}

.will-form-acceptance-item .wpcf7-list-item-label {
  font-size: 16px;
  line-height: 24px;
  color: #364153;
}

.will-form-acceptance-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.will-form-acceptance-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.will-form-acceptance-item label a {
  text-decoration: underline;
  color: #0f4c81;
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.will-form-acceptance-item label a:hover {
  color: #0b3a63;
}

/* 送信ボタン */
.will-form-submit {
  width: 316px;
  height: 48px;
  background: #101828;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.4492px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  margin: 0 auto;
}

.will-form-submit:hover {
  background: #1e293b;
}

.will-form-submit:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.will-form-submit:disabled:hover {
  background: #98a2b3;
}

.will-form-submit:focus {
  outline: 2px solid var(--color-amber-primary);
  outline-offset: 2px;
}

/* Contact Form 7のデフォルトスタイルを上書き */
.wpcf7-form {
  margin: 0;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-not-valid-tip {
  color: #e7000b;
  font-size: 14px;
  margin-top: 4px;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.wpcf7-validation-errors {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.wpcf7-mail-sent-ok {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Hero Section */
.will-hero-section h1 br {
  display: none;
}

.will-hero-description p {
  text-align: center;
}

@media (max-width: 768px) {
  .will-hero-section h1 br {
    display: block;
  }

  .will-hero-description p {
    text-align: left;
  }
}

/* will-media-text-section */
.will-media-text-section h2,
.will-misconceptions-section h3,
.will-service-flow-section h3 {
  line-height: 1.5;
}

/* 法務ページの見た目を他ページから切り分けて整える */
.will-legal-page {
  background: #fff;
  padding: 32px 0 88px;
}

.will-legal-page__header {
  padding: 24px 16px 0;
}

.will-legal-page__header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.will-legal-page__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #111827;
  font-weight: 700;
}

.will-legal-page__content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 0;
  color: #374151;
  font-size: 1rem;
  line-height: 2;
}

.will-legal-page__content>* {
  max-width: none;
}

.will-legal-page__content>.wp-block-heading:first-child,
.will-legal-page__content>p:first-child {
  margin-top: 0;
}

.will-legal-page__content>p,
.will-legal-page__content>ul,
.will-legal-page__content>ol,
.will-legal-page__content>table,
.will-legal-page__content>figure {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.will-legal-page__content>.wp-block-heading {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding: 0 0 0.75rem;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #d1d5db;
}

.will-legal-page__content>h2.wp-block-heading {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.will-legal-page__content>h3.wp-block-heading {
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
}

.will-legal-page__content p {
  color: #374151;
}

.will-legal-page__content p.has-text-align-right {
  text-align: right;
  font-weight: 600;
  color: #111827;
}

.will-legal-page__content ul,
.will-legal-page__content ol {
  padding-left: 1.5rem;
}

.will-legal-page__content li+li {
  margin-top: 0.5rem;
}

.will-legal-page__content a {
  color: #0f4c81;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.will-legal-page__content a:hover {
  color: #0b3a63;
}

@media (max-width: 767px) {
  .will-legal-page {
    padding: 20px 0 64px;
  }

  .will-legal-page__header {
    padding-top: 12px;
  }

  .will-legal-page__header-inner {
    padding: 0 16px 20px;
  }

  .will-legal-page__content {
    padding: 24px 16px 0;
    line-height: 1.9;
  }
}
