/* TOP / 案件一覧: 左の縦ラベル列の外側のカード列＋CTA 用。text-align や「もっと見る」が全幅基準にずれないようラップ */
.p-top__section-main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

/* TOP マガジン・コラム一覧: 記事タイトルリンクの ::after が親に position が無く
   絶対配置の参照先がズレ、意図しない領域（上部の案件カードなど）までクリックを拾う。
   styles.css の拡大用 ::after をタイトル要素内に閉じる。 */
.p-top__article-title,
.p-column__article-title {
  position: relative;
}

.p-column__article-title {
  margin-bottom: 1rem;
}

/* TOP マガジン: タイトル／抜粋との間が詰まるため、一覧用タグ行の上だけ余白を足す */
.p-top__article-body .p-column__article-tags {
  margin-top: 18px;
  margin-top: 1.125rem;
}

@media screen and (min-width: 768px) {
  .p-top__article-body .p-column__article-tags {
    margin-top: 24px;
    margin-top: 1rem;
  }
}

/* ============================================================
   add.css — 直接CSSを追記する用ファイル
   styles.css（Gulp/SCSS）の後に読み込まれるので上書き可能

   【レスポンシブの考え方】
   SP と PC の2段のみ（768px を境界）。Tablet 専用の別ブレークポイントは設けない。
   - SP: デフォルト（～767.98px まで指定する場合は max-width: 767.98px）
   - PC: min-width: 768px 以上
   ============================================================ */

/* ============================================================
   My Page layout (front-page.php の構成を転用)
   - top 固有のクラス名は使わず、mypage 側に切り出す
   ============================================================ */

.p-mypage__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.1875rem;
}

@media screen and (min-width: 768px) {
  .p-mypage__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4375rem;
  }
}

.p-mypage__section {
  margin: 60px 0 60px;
  padding-inline: 16px;
  padding-inline: 1rem;
}

@media screen and (min-width: 768px) {
  .p-mypage__section {
    margin-top: 110px;
    margin-bottom: 60px;
    padding: 0 2rem;
    max-width: 85rem;
    margin-inline: auto;
  }
}

.c-project-card__prefecture--battery {
  background-color: #3c5c9b;
}

.c-project-card__prefecture--solar {
  background-color: #2ea980;
}

.p-mypage__section-body {
  display: flex;
  flex-direction: column;
  gap: 2.375rem;
}

@media screen and (min-width: 768px) {
  .p-mypage__section-body {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ラベル列の右にカード・空メッセージ・セクションボタンを1列にまとめる（page-mypage.php 等） */
.p-mypage .p-mypage__main-column {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
}

.p-mypage .p-mypage__main-column .p-mypage__cards {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
}

.p-mypage__section-label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

@media screen and (min-width: 768px) {
  .p-mypage__section-label {
    flex-direction: column;
    width: 1.5625rem;
    min-width: 1.5625rem;
  }
}

.p-mypage__section-dot {
  width: 1.5625rem;
  height: 1.5625rem;
  border-radius: 50%;
  border: 0.3125rem solid currentColor;
  background-color: transparent;
  flex-shrink: 0;
  color: #2055a4;
}

.p-mypage__section-text {
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3c5c9b;
}

@media screen and (min-width: 768px) {
  .p-mypage__section-text {
    writing-mode: vertical-rl;
    font-size: 1.5rem;
    letter-spacing: 0.24em;
  }
}

.p-mypage__section-btn {
  text-align: center;
  margin-top: 2.5625rem;
}

@media screen and (min-width: 768px) {
  .p-mypage__section-btn {
    margin-top: 3.1875rem;
  }
}

/* お気に入り一覧ページ（page-favorites.php） */
.p-favorites-page__title {
  margin-bottom: 1.5rem;
}

.p-favorites-page__heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3c5c9b;
}

.p-favorites-page__error {
  color: #b91c1c;
  margin-top: 0.5rem;
}

.p-favorites-page__tabs {
  --fav-tab-accent: #3c5c9b;
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid var(--fav-tab-accent);
  border-radius: 0;
  box-sizing: border-box;
  background-color: #fff;
}

.p-favorites-page__tabs .fav-tab-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.35em;
  margin: 0;
  padding: 0.875rem 0.5rem;
  border: 0;
  border-right: 1px solid var(--fav-tab-accent);
  border-radius: 0;
  box-sizing: border-box;
  background-color: #fff;
  color: var(--fav-tab-accent);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.p-favorites-page__tabs .fav-tab-btn:last-of-type {
  border-right: 0;
}

.p-favorites-page__tabs .fav-tab-btn__text {
  flex: 0 1 auto;
}

.p-favorites-page__tabs .fav-tab-btn__count {
  flex: 0 1 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  opacity: 0.92;
}

.p-favorites-page__tabs .fav-tab-btn.is-active .fav-tab-btn__count {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .p-favorites-page__tabs .fav-tab-btn__count {
    font-size: 0.875rem;
  }
}

.p-favorites-page__tabs .fav-tab-btn:hover:not(.is-active) {
  background-color: #f2f4f7;
}

.p-favorites-page__tabs .fav-tab-btn:focus {
  outline: 2px solid var(--fav-tab-accent);
  outline-offset: -2px;
  z-index: 1;
}

.p-favorites-page__tabs .fav-tab-btn:focus:not(:focus-visible) {
  outline: none;
}

.p-favorites-page__tabs .fav-tab-btn:focus-visible {
  outline: 2px solid var(--fav-tab-accent);
  outline-offset: -2px;
  z-index: 1;
}

.p-favorites-page__tabs .fav-tab-btn.is-active {
  background-color: var(--fav-tab-accent);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .p-favorites-page__tabs .fav-tab-btn {
    padding: 1rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
}

/* .p-mypage__cards の display:grid が [hidden] より後から当たる場合でも、非アクティブタブのパネルを隠す */
.p-favorites-page .fav-panel[hidden] {
  display: none !important;
}

/* JS でタブ状態を決めた後: 見えないパネルへクリックが貫通しないよう保証（太陽光「もっと見る」用）
   （ready フラグは section#favorites-full に付与） */
#favorites-full.favorites-tabs--js-ready .fav-panel:not(.fav-panel--is-active) {
  display: none !important;
  pointer-events: none !important;
}

#favorites-full .fav-panel.fav-panel--is-active {
  pointer-events: auto;
}

/* PC で .p-mypage__section-body が row になっているため、ラベル列との横並びは「1列」にまとめる */
.p-favorites-page .p-favorites-page__main-column {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.75rem;
}

@media screen and (min-width: 768px) {
  .p-favorites-page .p-favorites-page__main-column {
    gap: 1rem;
  }
}

/* main-column が flex 縦並びのとき、グリッドが flex:1 で下に伸びないようにする */
.p-favorites-page .p-favorites-page__main-column .p-mypage__cards {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
}

/* カード／もっと見るの直下に「マイページへ戻る」 */
.p-favorites-page__footer-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  margin-top: 3.5rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.p-favorites-page__back {
  margin: 0;
  text-align: center;
}

.p-favorites__sentinel {
  width: 100%;
  height: 1px;
  flex-basis: 100%;
  grid-column: 1 / -1;
}

.p-favorites-page .fav-panel .p-favorites-page__more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .p-favorites-page .fav-panel .p-favorites-page__more-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0;
  }
}

/* 「もっと見る」はテキストリンク風（マイページへ戻るの線枠ボタンと差別化） */
.p-favorites-page .p-favorites-page__more-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3c5c9b;
  text-decoration: underline;
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
  text-underline-offset: 0.2em;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.p-favorites-page .p-favorites-page__more-link:hover {
  color: #2055a4;
}

/* 読み込み中は disabled にしない（禁止カーソル・操作不能に見えるのを避ける） */
.p-favorites-page .p-favorites-page__more-link.is-loading {
  opacity: 0.55;
  cursor: wait;
  text-decoration: none;
  pointer-events: none;
}

.p-favorites-page .p-favorites-page__more-link:disabled {
  opacity: 0.45;
  cursor: default;
  text-decoration: none;
}

.p-favorites-page .p-favorites-page__more-link:focus {
  outline: none;
}

.p-favorites-page .p-favorites-page__more-link:focus-visible {
  outline: 2px solid #3c5c9b;
  outline-offset: 3px;
}

/* プロフィール（page-profile.php）：SP 先頭は 60px／PC は 110px（.p-mypage__section と揃える） */
.p-profile-page .p-mypage__main {
  background-color: #f2f4f7;
  flex: 1;
  padding-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
  .p-profile-page .p-mypage__main {
    padding-bottom: 2.5rem;
  }
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-profile-page__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  text-align: center;
}

.p-profile-page__notice {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.p-profile-page__notice--success {
  color: #16a34a;
}

@media screen and (min-width: 768px) {
  .p-profile-page__title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .p-profile-page__notice {
    margin-bottom: 2rem;
  }
}

.p-profile-page__inner {
  display: flex;
  flex-direction: column;
  padding-inline: 1rem;
  padding-top: 60px;
}

@media screen and (min-width: 768px) {
  .p-profile-page__inner {
    max-width: 860px;
    margin-inline: auto;
    padding-top: 110px;
    /* styles.css の .l-with-sidebar__main-inner と同じ横余白（0 だと後勝ちで消える） */
    padding-inline: 2rem;
  }
}

.p-profile-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.25rem 1.75rem;
}

.p-profile-card:not(:last-of-type) {
  margin-bottom: 1.5rem;
}

.p-profile-card--password {
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .p-profile-card--password {
    margin-bottom: 60px;
  }

  .p-profile-card {
    padding: 2rem 2.5rem 2.25rem;
  }

  .p-profile-card:not(:last-of-type) {
    margin-bottom: 2rem;
  }
}

.p-profile-card__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}

/* プロフィール：SP時は行区切り線 */
@media screen and (max-width: 767.98px) {
  .p-profile-card__list {
    gap: 0;
  }

  .p-profile-card__row {
    padding-block: 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .p-profile-card__row:last-child {
    border-bottom: 0;
  }
}

@media screen and (min-width: 768px) {
  .p-profile-card__list {
    gap: 2rem;
  }
}

.p-profile-card__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 0;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .p-profile-card__row {
    grid-template-columns: minmax(10rem, 12.5rem) 1fr;
    column-gap: 2rem;
    align-items: baseline;
  }
}

.p-profile-card__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000;
}

.p-profile-card__value {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #000;
  word-break: break-word;
}

.p-profile-card__value--mask {
  letter-spacing: 0.2em;
  font-size: 1rem;
}

.p-profile-card__actions {
  margin-top: 1.75rem;
  text-align: right;
}

/* プロフィール：SP時ボタンを中央寄せ */
@media screen and (max-width: 767.98px) {
  .p-profile-page .p-profile-card__actions {
    text-align: center;
  }

  .p-profile-page .p-profile-card__actions .p-profile-card__btn {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    display: block;
  }
}

@media screen and (min-width: 768px) {
  .p-profile-card__actions {
    margin-top: 2rem;
  }
}

.p-profile-card__actions .p-profile-card__btn {
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin-left: auto;
}

.p-profile-edit__errors {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.p-profile-edit__errors-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-profile-edit__req {
  color: #b91c1c;
  margin-left: 0.25rem;
  font-weight: 700;
}

.p-profile-edit__input,
.p-profile-edit__select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  background-color: #fff;
}

.p-profile-edit__select {
  padding-right: 2rem;
}

.p-profile-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.p-profile-edit-page .p-profile-page__inner {
  padding-top: 60px;
}

@media screen and (min-width: 768px) {
  .p-profile-edit-page .p-profile-page__inner {
    padding-top: 3rem;
  }
}

.p-profile-edit__registration .p-registration-form__inner {
  padding-inline: 0;
}

.p-profile-edit__submit {
  margin-top: 2.5rem;
}

.p-profile-edit-page .p-registration-submit__btn {
  width: 100%;
  max-width: 420px;
}

.p-profile-page__footer-back {
  margin: 0;
  text-align: center;
}

.p-profile-page__footer-back a {
  font-size: 0.9375rem;
  color: #3c5c9b;
  text-decoration: underline;
}

@media (any-hover: hover) {
  .p-profile-page__footer-back a:hover {
    opacity: 0.85;
  }
}

/* パスワード再設定メール送信（template/page-password-reset-request.php） */
/* ログインテストと同様：送信ボタン＋ステータス（styles.css に .p-login__btn-group が無いため） */
.p-login .p-login__btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.p-password-reset-request__errors {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-password-reset-request__errors,
.p-password-reset-request__errors li {
  color: #b91c1c !important;
}

.p-password-reset-request__back {
  margin: 1rem 0 0;
  text-align: center;
}

.p-registration-field__note {
  font-weight: 500;
  font-size: 0.875rem!important;
  line-height: 1.6;
}

/* 会員登録 確認画面：戻るを下段のテキストリンクに */
.p-registration-confirm__back-form {
  text-align: center;
}

.p-registration-confirm__back-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #3c5c9b;
  text-decoration: underline;
  cursor: pointer;
}

@media (any-hover: hover) {
  .p-registration-confirm__back-link:hover {
    opacity: 0.85;
  }
}

/* 会員登録 確認画面：list下は広め、ボタン↔戻るは狭め */
.p-registration-confirm {
  gap: 0 !important;
}

.p-registration-confirm__list {
  margin-bottom: 3rem;
}

.p-registration-confirm__back-form {
  margin-top: 1.5rem;
}

/* 会員登録 確認画面：エラー表示 */
.p-registration-confirm__errors {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #e54848;
  font-size: 0.875rem;
  line-height: 1.6;
}

.p-registration-confirm__api-error {
  margin: 0 0 1rem;
  color: #e54848;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}

.p-registration-confirm__api-error-code {
  margin-left: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* 会員登録 ヒーロー：ログインリンク */
.p-registration-hero__login-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

@media (any-hover: hover) {
  .p-registration-hero__login-link:hover {
    opacity: 0.85;
  }
}

/* パスワード再設定（tokenで新パスワード設定 / template/page-password-reset.php） */
.p-password-reset__errors {
  margin: 0 0 1rem;
  padding-left: 0;
  margin-left: 0;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-password-reset__errors,
.p-password-reset__errors li {
  color: #b91c1c !important;
}

/* パスワード変更（template/page-change-password.php） */
.p-change-password__errors {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-change-password__errors,
.p-change-password__errors li {
  color: #b91c1c !important;
}

.p-change-password__hint {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #111827;
}

.p-change-password__notice {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-change-password__notice--success {
  color: #16a34a;
}

.p-change-password__back {
  margin: 1rem 0 0;
  text-align: center;
}

/* お問い合わせ（オーナー向け）: textarea（CF7移行前の暫定フォーム） */
.p-registration-field__textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  color: #111827;
  resize: vertical;
}

.p-registration-field__textarea:focus {
  outline: none;
  border-color: #3c5c9b;
  box-shadow: 0 0 0 3px rgba(60, 92, 155, 0.15);
}

/* お問い合わせ（オーナー向け）：案件概要はラベル上揃え */
.p-contact-owner-field--summary .p-registration-field__header {
  align-items: flex-start;
}

.p-contact-owner-field--summary .p-registration-field__badge {
  margin-top: 0.4em;
}

/* 案件掲載お問い合わせ：SP 先頭 60px／PC 110px（.p-mypage__section と揃える。PC は main +50px と積む） */
.p-registration-form.p-contact-owner-form {
  padding-top: 60px;
}

@media screen and (min-width: 768px) {
  .p-registration-form.p-contact-owner-form {
    padding-top: 110px;
  }
}

/*
 * 一般会員お問い合わせは .l-with-sidebar__main で +50px 済みのため、
 * フォームブロック側は registration と同種の 4rem のみ（二重 +50px を避ける）
 */
@media screen and (min-width: 768px) {
  .p-registration-form.p-contact-page-form {
    padding-top: 4rem;
  }
}

/* ============================================================
   会員関連ページ：PC時に上の余白を +50px
   （styles.css の既存 padding に対して calc で上乗せ）
   ============================================================ */
@media screen and (min-width: 768px) {
  /* ログイン / パスワード再設定 / パスワード変更 */
  body.page-template-template-page-login-php .p-login,
  body.page-template-template-page-password-reset-request-php .p-login,
  body.page-template-template-page-password-reset-php .p-login,
  body.page-template-template-page-change-password-php .p-login {
    padding-top: calc(3.75rem + 50px);
  }

  /* 新規会員登録フロー（入力/確認/メール送信完了/アクティベート完了） */
  body.page-template-template-page-registration-php .p-registration-form,
  body.page-template-template-page-registration-confirm-php .p-registration-form,
  body.page-template-template-page-mail-complete-php .p-registration-form,
  body.page-template-template-page-registration-complete-php .p-registration-form {
    padding-top: calc(4rem + 50px);
  }

  /* マイページ系（マイページ/お気に入り/お問い合わせ/プロフィール/編集/案件掲載お問い合わせ） */
  body.page-template-template-page-mypage-php .p-mypage__main,
  body.page-template-template-page-favorites-php .p-mypage__main,
  body.page-template-template-page-contact-php .p-contact-page .l-with-sidebar__main,
  body.page-template-template-page-profile-php .p-mypage__main,
  body.page-template-template-page-edit-profile-php .p-mypage__main,
  body.page-template-template-page-contact-owner-php .p-contact-owner .l-with-sidebar__main {
    padding-top: 50px;
  }
}

/* ============================================================
   CF7（案件掲載フォーム）：エラー表示を p-registration-field__error に揃える
   対象は page-contact-owner の埋め込み範囲のみ
   ============================================================ */
.p-contact-owner-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.25rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e54848;
}

.p-contact-owner-cf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

/* CF7は状態でクラスが変わる（成功/エラー/スパム等） */
.p-contact-owner-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.p-contact-owner-cf7 .wpcf7 form.failed .wpcf7-response-output,
.p-contact-owner-cf7 .wpcf7 form.aborted .wpcf7-response-output,
.p-contact-owner-cf7 .wpcf7 form.spam .wpcf7-response-output {
  border-color: #e54848;
  background: #fff5f5;
  color: #e54848;
}

.p-contact-owner-cf7 .wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

/* ============================================================
   CF7（案件掲載フォーム）：wrap要素が原因のレイアウト崩れ対策
   - CF7は input/textarea を span.wpcf7-form-control-wrap で包む（inline）
   - 既存の p-registration-field の2カラム/横幅設計に合わせて block化する
   ============================================================ */
.p-contact-owner-cf7 .wpcf7-form {
  /* 元の .p-registration-form__body と同様：項目は form 直下に並ぶのでここで gap を付ける */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .p-contact-owner-cf7 .wpcf7-form {
    gap: 2.5rem;
  }
}

.p-contact-owner-cf7 .wpcf7-form .hidden-fields-container {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 0;
}

.p-contact-owner-cf7 .wpcf7 form {
  margin: 0;
}

.p-contact-owner-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact-owner-cf7 .wpcf7-form-control {
  max-width: 100%;
}

/* 2カラム行（姓/名など）でもwrapが幅を取るように */
.p-contact-owner-cf7 .p-registration-field__col > .wpcf7-form-control-wrap {
  width: 100%;
}

/* 同意チェック：親 .p-registration-agree__label は inline-flex のため wrap を全幅ブロックにしない */
.p-contact-owner-cf7 .p-registration-agree .wpcf7-form-control-wrap {
  display: inline-flex;
  width: auto;
  flex-shrink: 0;
  align-items: center;
  vertical-align: middle;
}

.p-contact-owner-cf7 .p-registration-agree .wpcf7-acceptance,
.p-contact-owner-cf7 .p-registration-agree .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* CF7のデフォルトで入る余計な余白を抑制 */
.p-contact-owner-cf7 .wpcf7 form .wpcf7-response-output {
  box-sizing: border-box;
}

/* CF7のsubmitはプラグインCSSで幅が崩れることがあるため、登録フォームと同じ幅に固定 */
.p-contact-owner-cf7 input.wpcf7-submit.p-registration-submit__btn {
  width: 100% !important;
  max-width: 20.75rem !important; /* 332px */
}

/* ============================================================
   お問い合わせページ（template/page-contact.php）
   ============================================================ */
.p-contact-page__stack {
  background-color: #f2f4f7;
  padding-bottom: 2.5rem;
}

@media screen and (min-width: 768px) {
  .p-contact-page__stack {
    padding-bottom: 4rem;
  }
}

/* 先頭余白は .p-mypage__section と揃える（SP 60px／PC 110px） */
.p-contact-page__page-head {
  padding: 60px 1rem 0;
}

@media screen and (min-width: 768px) {
  .p-contact-page__page-head {
    padding-top: 110px;
    padding-inline: 2rem;
    max-width: 75rem;
    margin-inline: auto;
  }
}

.p-contact-page__h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #111827;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .p-contact-page__h1 {
    font-size: 1.75rem;
    text-align: center;
  }
}

.p-contact-page-faq {
  padding: 2rem 1rem 2.25rem;
}

@media screen and (min-width: 768px) {
  .p-contact-page-faq {
    padding: 2.25rem 2rem 2.5rem;
    max-width: 75rem;
    margin-inline: auto;
  }
}

.p-contact-page-faq__heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3c5c9b;
}

@media screen and (min-width: 768px) {
  .p-contact-page-faq__heading {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

.p-contact-page-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.p-contact-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #fff;
  overflow: hidden;
}

button.p-contact-faq-item__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1rem 1rem 1.125rem;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #111827;
  text-align: left;
}

.p-contact-faq-item__q {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b2966;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.p-contact-faq-item__question {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.p-contact-faq-item__toggle {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  color: #374151;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.p-contact-faq-item__toggle::before {
  content: "+";
}

.p-contact-faq-item.is-open .p-contact-faq-item__toggle {
  border-color: #3c5c9b;
  color: #3c5c9b;
}

.p-contact-faq-item.is-open .p-contact-faq-item__toggle::before {
  content: "\2212";
  font-size: 1rem;
}

/* FAQ 回答エリア：開閉の高さアニメーション（grid 0fr → 1fr） */
.p-contact-faq-item > .p-contact-faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.p-contact-faq-item.is-open > .p-contact-faq-item__panel {
  grid-template-rows: 1fr;
}

.p-contact-faq-item__panel-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
}

.p-contact-faq-item.is-open > .p-contact-faq-item__panel .p-contact-faq-item__panel-inner {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .p-contact-faq-item > .p-contact-faq-item__panel {
    transition-duration: 0.01ms;
  }

  .p-contact-faq-item__panel-inner {
    transition-duration: 0.01ms;
  }
}

.p-contact-faq-item__answer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  /* summary の左 padding（1.125rem）と同じ開始位置で、A を Q と縦に揃える */
  padding: 0.75rem 1.125rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.p-contact-faq-item__a {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6b9bd1;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.p-contact-faq-item__text {
  margin: 0;
  padding-top: 0.2em;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: #374151;
  text-align: left;
}

/* フォームエリア前のリード文：ステッパー直後の余白をデザインに合わせて詰める */
.p-registration-form__desc.p-contact-page-form__intro {
  margin-top: 1.25rem !important;
}

@media screen and (min-width: 768px) {
  .p-registration-form__desc.p-contact-page-form__intro {
    margin-top: 1.75rem !important;
  }
}

/* CF7（一般お問い合わせ）：案件掲載フォームと同じレイアウト調整 */
.p-contact-page-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.25rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e54848;
}

.p-contact-page-cf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.p-contact-page-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.p-contact-page-cf7 .wpcf7 form.failed .wpcf7-response-output,
.p-contact-page-cf7 .wpcf7 form.aborted .wpcf7-response-output,
.p-contact-page-cf7 .wpcf7 form.spam .wpcf7-response-output {
  border-color: #e54848;
  background: #fff5f5;
  color: #e54848;
}

.p-contact-page-cf7 .wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

.p-contact-page-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .p-contact-page-cf7 .wpcf7-form {
    gap: 2.5rem;
  }
}

.p-contact-page-cf7 .wpcf7-form .hidden-fields-container {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 0;
}

.p-contact-page-cf7 .wpcf7 form {
  margin: 0;
}

.p-contact-page-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact-page-cf7 .wpcf7-form-control {
  max-width: 100%;
}

.p-contact-page-cf7 .p-registration-field__col > .wpcf7-form-control-wrap {
  width: 100%;
}

.p-contact-page-cf7 .p-registration-agree .wpcf7-form-control-wrap {
  display: inline-flex;
  width: auto;
  flex-shrink: 0;
  align-items: center;
  vertical-align: middle;
}

.p-contact-page-cf7 .p-registration-agree .wpcf7-acceptance,
.p-contact-page-cf7 .p-registration-agree .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

/* 同意（会員登録）：チェックボックスと文を縦中央に。ブラウザ／継承の margin でずれないようリセット */
.p-registration-agree__label {
  align-items: center;
}

input.p-registration-agree__checkbox[type="checkbox"] {
  margin: 0;
  align-self: center;
}

/*
 * CF7 の acceptance は .p-registration-agree__checkbox クラスを付けられないことが多く、
 * styles.css の先頭リセット（input[type=checkbox]{display:none}）のままになると非表示になる。
 * オーナー／一般お問い合わせの同意行だけ可視・登録フォームと同様の見た目にする。
 */
.p-contact-owner-cf7 .p-registration-agree label input[type="checkbox"],
.p-contact-page-cf7 .p-registration-agree label input[type="checkbox"] {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  align-self: center;
  border: 0.0625rem solid #838383;
  appearance: none;
  cursor: pointer;
  position: relative;
}

@media screen and (min-width: 768px) {
  .p-contact-owner-cf7 .p-registration-agree label input[type="checkbox"],
  .p-contact-page-cf7 .p-registration-agree label input[type="checkbox"] {
    border-width: 0.125rem;
  }
}

.p-contact-owner-cf7 .p-registration-agree label input[type="checkbox"]:checked,
.p-contact-page-cf7 .p-registration-agree label input[type="checkbox"]:checked {
  background-color: #3c5c9b;
  border-color: #3c5c9b;
}

.p-contact-owner-cf7 .p-registration-agree label input[type="checkbox"]:checked::after,
.p-contact-page-cf7 .p-registration-agree label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  width: 0.375rem;
  height: 0.625rem;
  border-right: 0.125rem solid #fff;
  border-bottom: 0.125rem solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.p-contact-owner-cf7 .p-registration-agree .wpcf7-list-item label,
.p-contact-page-cf7 .p-registration-agree .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
}

.p-contact-owner-cf7 .p-registration-agree .wpcf7-list-item-label,
.p-contact-page-cf7 .p-registration-agree .wpcf7-list-item-label {
  align-self: center;
  margin: 0;
}

.p-contact-page-cf7 .wpcf7 form .wpcf7-response-output {
  box-sizing: border-box;
}

.p-contact-page-cf7 input.wpcf7-submit.p-registration-submit__btn {
  width: 100% !important;
  max-width: 20.75rem !important;
}

/* 案件一覧（template/page-project.php） */
.p-project__api-error {
  margin: 0 0 1rem;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-project__empty {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #111827;
}

.p-column__more .js-project-load-more {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

/* styles.css が .c-project-card__favorite に pointer-events:none を指定しているため、クリックできるようにする */
.c-project-card .c-project-card__favorite {
  pointer-events: auto;
}

.c-project-card .c-project-card__favorite[disabled] {
  opacity: 0.5;
  cursor: default;
}

.p-project-detail__api-error-title {
  margin: 2rem 1.5rem 0.75rem;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
}

.p-project-detail__api-error-meta {
  margin: 0 1.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
}

.p-project-detail__api-error {
  margin: 0 1.5rem 1rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
}

.p-project-detail__api-error-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #991b1b;
}

.p-project-detail__api-error-body {
  margin: 0;
  color: #b91c1c;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-project-detail__api-hint {
  margin: 0 1.5rem;
  padding: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #374151;
}

@media screen and (min-width: 768px) {
  .p-project-detail__api-error-title,
  .p-project-detail__api-error-meta,
  .p-project-detail__api-error,
  .p-project-detail__api-hint {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .p-project-detail__api-error {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.p-project-detail__api-code {
  font-size: 0.8125rem;
}

.p-project-detail__back--after-error {
  margin-top: 2rem;
  margin-inline: 1.5rem;
}

@media screen and (min-width: 768px) {
  .p-project-detail__back--after-error {
    margin-inline: 0;
  }
}

.p-project-detail__favorite-msg {
  margin: 0 0 1rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
}

@media screen and (min-width: 768px) {
  .p-project-detail__favorite-msg {
    margin-bottom: 1.25rem;
  }
}

/* お気に入りフォームを .p-project-detail__btns の flex 行に揃える */
.p-project-detail__favorite-form {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0;
  min-width: 0;
}

.p-project-detail__favorite-form .p-project-detail__btn {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  width: 100%;
}

/* salePrice が明示的 0 のときの問い合わせ文言（.p-project-detail__price-oku のタイポグラフィに合わせる） */
.p-project-detail__price-ask {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.35;
  padding-bottom: 0.375rem;
}

@media screen and (min-width: 768px) {
  .p-project-detail__price-ask {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* 案件カード: 販売価格行（長い ask 文言の折返し） */
.c-project-card__yield {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  row-gap: 0.125rem;
}

/* 案件カード: 問い合わせ文言 / 億+万 の価格（詳細ページのルールに合わせる） */
.c-project-card__yield-ask {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #000;
}

/* 直前の「万円」「億」などと (税抜) の間を少し空ける */
.c-project-card__yield-pct .tax,
.p-project-detail__price .tax {
  margin-left: 0.25em;
}

.p-project-detail__price .tax {
  font-size: 0.75rem;
}

/* 案件詳細ヒーロー画像（1枚・Swiper なし）: 右カラム高さいっぱいに */
.p-project-detail__hero-still {
  height: 100%;
  width: 100%;
  min-width: 0;
}

/* メインコンテンツ〜フッター（styles.css は SP で margin-top 10rem）。SP のみ約 60px に */
@media screen and (max-width: 767.98px) {
  .p-top__footer {
    margin-top: 60px;
  }
}

/* コラム詳細 single: アイキャッチ（本文直上） */
.column-detail__content > .column-detail__hero-img {
  margin: 0 0 1.5rem;
}

/* 本文直下の監修者ブロック（author_select ありのとき） */
.column-detail__author-after-content {
  margin-top: 2.25rem;
}

@media screen and (min-width: 768px) {
  .column-detail__author-after-content {
    margin-top: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   目次プラグイン（#toc_container / .toc_list）→ テーマの .column-detail__toc に合わせる
   -------------------------------------------------------------------------- */
.column-detail #toc_container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 29px 16px;
  padding: 1.8125rem 1rem;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 17px;
  margin-top: 1.0625rem;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .column-detail #toc_container {
    padding: 43px 40px;
    padding: 2.6875rem 2.5rem;
    margin-top: 54px;
    margin-top: 3.375rem;
  }
}

/* 目次見出し（プラグイン: Contents / hide） */
.column-detail #toc_container > p.toc_title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  max-width: 100%;
  text-align: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #3c5c9b;
  line-height: 1.4;
}

.column-detail #toc_container > p.toc_title .toc_toggle {
  font-size: 0.875rem;
  font-weight: 500;
}

.column-detail #toc_container > p.toc_title .toc_toggle a {
  color: #3c5c9b;
}

@media screen and (min-width: 768px) {
  .column-detail #toc_container > p.toc_title {
    font-size: 1.375rem;
    margin-bottom: 1.75rem;
  }
}

.column-detail #toc_container ul.toc_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-detail #toc_container > ul.toc_list {
  max-height: 12.5rem;
  overflow: hidden;
  position: relative;
  -webkit-transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JS 計測後: 短い目次は常に全表示（初期のチラ見え防止のあとに付与） */
.column-detail #toc_container.toc-measured-short > ul.toc_list {
  max-height: none;
  overflow: visible;
  -webkit-transition: none;
  transition: none;
}

/* 長い目次: 折りたたみ中はグラデーション（開くアニメ中は非表示） */
.column-detail #toc_container.toc-expandable:not(.toc-open) > ul.toc_list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.column-detail #toc_container.toc-expandable.toc-open > ul.toc_list::after {
  opacity: 0;
  pointer-events: none;
}

/* 展開時: max-height を大きくしてトランジション（none だとアニメしない） */
.column-detail #toc_container.toc-expandable.toc-open > ul.toc_list {
  max-height: 100rem;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .column-detail #toc_container > ul.toc_list {
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .column-detail #toc_container.toc-expandable:not(.toc-open) > ul.toc_list::after {
    -webkit-transition: none;
    transition: none;
  }
}

.column-detail .column-detail__toc-more-btn {
  display: block;
  width: 100%;
  max-width: 17.5rem;
  margin: 1rem auto 0;
  padding: 0.625rem 1.25rem;
  box-sizing: border-box;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: #3c5c9b;
  background-color: #fff;
  border: 2px solid #3c5c9b;
  border-radius: 999px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.column-detail .column-detail__toc-more-btn:hover {
  background-color: #3c5c9b;
  color: #fff;
}

.column-detail .column-detail__toc-more-btn:focus-visible {
  outline: 2px solid #3c5c9b;
  outline-offset: 2px;
}

.column-detail #toc_container ul.toc_list ul {
  list-style: none;
  margin: 17px 0 0;
  margin: 1.0625rem 0 0;
  padding: 0 0 0 40px;
  padding: 0 0 0 2.5rem;
}

.column-detail #toc_container > ul.toc_list > li + li {
  margin-top: 17px;
  margin-top: 1.0625rem;
}

.column-detail #toc_container ul.toc_list ul > li + li {
  margin-top: 17px;
  margin-top: 1.0625rem;
}

/* 第1階層リンク = .column-detail__toc-item 相当 */
.column-detail #toc_container ul.toc_list > li > a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 16px;
  gap: 1rem;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .column-detail #toc_container ul.toc_list > li > a {
    line-height: 1.33;
  }
}

.column-detail #toc_container ul.toc_list > li > a:hover {
  opacity: 0.85;
}

/* 青丸番号 = .column-detail__toc-num（第1階層のみ） */
.column-detail #toc_container .toc_number.toc_depth_1 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 21px;
  width: 1.3125rem;
  height: 21px;
  height: 1.3125rem;
  background-color: #3c5c9b;
  border-radius: 50%;
  font-size: 11px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-top: 3px;
  margin-top: 0.1875rem;
}

@media screen and (min-width: 768px) {
  .column-detail #toc_container .toc_number.toc_depth_1 {
    width: 24px;
    width: 1.5rem;
    height: 24px;
    height: 1.5rem;
    margin-top: 0;
    font-size: 13px;
    font-size: 0.8125rem;
  }
}

/* 第2階層以下 = .column-detail__toc-item--sub（番号バッジは非表示、本文のみ） */
.column-detail #toc_container .toc_number:not(.toc_depth_1) {
  display: none !important;
}

.column-detail #toc_container ul.toc_list ul li a {
  display: block;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .column-detail #toc_container ul.toc_list ul li a {
    line-height: 1.33;
  }
}

.column-detail #toc_container ul.toc_list ul li a:hover {
  opacity: 0.85;
}
