/* =========================================================
   ANCHOR Design System
   プリセットビルダーの値を既存コンポーネントへ適用する最終レイヤー。
   ========================================================= */

html{
  scroll-padding-top: var(--anchor-offset, 90px);
}

body{
  font-size: var(--anchor-body-size, 16px);
  line-height: var(--anchor-body-line-height, 1.8);
}

:where(h1,h2,h3,h4,h5,h6){
  font-weight: var(--anchor-heading-weight, 700);
  letter-spacing: var(--anchor-heading-letter-spacing, 0em);
}

.site-main__inner,
.l-container,
.top-service__inner,
.service-section__inner{
  max-width: var(--anchor-content-width, 1100px);
  padding-left: var(--anchor-content-padding, 20px);
  padding-right: var(--anchor-content-padding, 20px);
}

.c-page{
  max-width: var(--anchor-content-width, 1100px);
}

.site-main{
  padding-top: clamp(36px, calc(var(--anchor-section-spacing, 80px) * .82), 112px);
  padding-bottom: clamp(58px, calc(var(--anchor-section-spacing, 80px) * 1.25), 150px);
}

/* フロントページは各セクション側で余白を管理する。 */
.site-main--front{
  padding-top: 0;
  padding-bottom: 0;
}

.c-page__header{
  margin-bottom: clamp(30px, calc(var(--anchor-section-spacing, 80px) * .65), 76px);
}

.c-page__content{
  font-size: var(--anchor-body-size, 16px);
  line-height: var(--anchor-body-line-height, 1.8);
}

.anchor-fixed-page{
  max-width: var(--anchor-content-narrow, 860px);
}

:where(
  .front-service__cards,
  .front-reasons__cards,
  .front-voice__cards,
  .top-features__cards,
  .top-worries__cards,
  .anchor-fixed-page__cards
){
  gap: var(--anchor-grid-gap, 24px);
}

/* ---------- 角丸 ---------- */
:where(
  .service-card,
  .front-reasons__card,
  .top-features__card,
  .top-voice__card,
  .top-worries__card,
  .anchor-fixed-page__card,
  .anchor-fixed-page__detail-item,
  .anchor-fixed-page__info-box,
  .anchor-fixed-page__note,
  .anchor-fixed-page__form-placeholder,
  .faq-card,
  .archive-card,
  .search-card,
  .profile-card,
  .home-cta__tel
){
  border-radius: var(--anchor-radius-card, var(--radius-m));
}

:where(
  .service-card__image,
  .service-card__image img,
  .front-about__image,
  .front-about__image img,
  .anchor-fixed-page__image,
  .anchor-fixed-page__profile-image,
  .anchor-fixed-page__image img,
  .anchor-fixed-page__profile-image img,
  .profile-card__img,
  .profile-card__img img,
  .c-page__content > .wp-block-image,
  .c-page__content > .wp-block-image img
){
  border-radius: var(--anchor-radius-image, var(--radius-m));
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),textarea,select){
  border-radius: var(--anchor-radius-input, var(--radius-s));
}

/* ---------- ボタン共通 ---------- */
:where(
  .btn,
  .home-cta__button,
  .top-hero__button,
  .c-page__content .wp-block-button__link,
  .anchor-fixed-page__cta-button .wp-block-button__link,
  .faq-search__button,
  .contact-panel__btn
){
  min-height: var(--anchor-button-height, 48px);
  border-radius: var(--anchor-radius-button, 999px);
  font-weight: var(--anchor-button-weight, 700);
  box-shadow: var(--anchor-button-shadow, none);
}

.anchor-button-style-solid :where(
  .btn--primary,
  .home-cta__button--primary,
  .top-hero__button.is-primary,
  .c-page__content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
  .anchor-fixed-page__cta-button .wp-block-button__link,
  .faq-search__button,
  .contact-panel__btn
){
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.anchor-button-style-outline :where(
  .btn--primary,
  .home-cta__button--primary,
  .top-hero__button.is-primary,
  .c-page__content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
  .anchor-fixed-page__cta-button .wp-block-button__link,
  .faq-search__button,
  .contact-panel__btn
){
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.anchor-button-style-gradient :where(
  .btn--primary,
  .home-cta__button--primary,
  .top-hero__button.is-primary,
  .c-page__content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
  .anchor-fixed-page__cta-button .wp-block-button__link,
  .faq-search__button,
  .contact-panel__btn
){
  border: 1px solid transparent;
  background: linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));
  color: #fff;
}

.anchor-button-style-minimal :where(
  .btn--primary,
  .home-cta__button--primary,
  .top-hero__button.is-primary,
  .c-page__content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
  .anchor-fixed-page__cta-button .wp-block-button__link,
  .faq-search__button,
  .contact-panel__btn
){
  min-height: auto;
  padding-left: 4px;
  padding-right: 4px;
  border: 0;
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.anchor-button-hover-none :where(.btn,.home-cta__button,.top-hero__button,.wp-block-button__link,.faq-search__button,.contact-panel__btn):hover{
  transform: none;
}
.anchor-button-hover-lift :where(.btn,.home-cta__button,.top-hero__button,.wp-block-button__link,.faq-search__button,.contact-panel__btn):hover{
  transform: translateY(-2px);
}
.anchor-button-hover-scale :where(.btn,.home-cta__button,.top-hero__button,.wp-block-button__link,.faq-search__button,.contact-panel__btn):hover{
  transform: scale(1.025);
}

/* ---------- カード ---------- */
:where(
  .service-card,
  .front-reasons__card,
  .top-features__card,
  .top-voice__card,
  .top-worries__card,
  .anchor-fixed-page__card,
  .anchor-fixed-page__detail-item,
  .faq-card,
  .archive-card,
  .search-card,
  .profile-card
){
  border-width: var(--anchor-card-border-width, 1px);
  border-color: var(--color-accent-border);
}

:where(
  .service-card__link,
  .front-reasons__card,
  .top-features__card,
  .top-voice__card,
  .top-worries__card,
  .anchor-fixed-page__card
){
  padding: var(--anchor-card-padding, 28px);
}

.anchor-card-style-flat :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card){
  border-color: transparent;
  box-shadow: none;
}
.anchor-card-style-border :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card){
  box-shadow: none;
}
.anchor-card-style-shadow :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card),
.anchor-card-style-lift :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card){
  box-shadow: var(--anchor-card-shadow);
}
.anchor-card-style-lift :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card){
  transition: transform .24s ease,box-shadow .24s ease;
}
.anchor-card-style-lift :where(.service-card,.front-reasons__card,.top-features__card,.top-voice__card,.top-worries__card,.anchor-fixed-page__card,.anchor-fixed-page__detail-item,.faq-card,.archive-card,.search-card,.profile-card):hover{
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(17,24,39,.15);
}

/* ---------- セクション見出し ---------- */
:where(
  .c-section__title,
  .front-about__title,
  .front-service__title,
  .front-reasons__title,
  .front-voice__title,
  .front-cta__title,
  .top-worries__title,
  .top-features__title,
  .top-profile__title,
  .p-frontNews__title,
  .service-section__title,
  .faq-section__heading,
  .anchor-fixed-page__section-title
){
  position: relative;
}

.anchor-heading-style-plain :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding-left: 0;
  padding-bottom: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
}
.anchor-heading-style-plain :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::before,
.anchor-heading-style-plain :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::after{
  content: none;
}

.anchor-heading-style-left-line :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding-left: calc(var(--anchor-heading-accent-width) + 14px);
  text-align: left;
}
.anchor-heading-style-left-line :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::before{
  content: "";
  position: absolute;
  left: 0;
  top: .14em;
  bottom: .14em;
  width: var(--anchor-heading-accent-width);
  height: auto;
  border-radius: 999px;
  background: var(--color-primary);
}

.anchor-heading-style-underline :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding-left: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-accent-border);
  text-align: left;
}
.anchor-heading-style-underline :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--anchor-heading-accent-length);
  height: var(--anchor-heading-accent-width);
  border-radius: 999px;
  background: var(--color-primary);
}

.anchor-heading-style-background :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--color-accent-soft);
  text-align: left;
}
.anchor-heading-style-background :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::before,
.anchor-heading-style-background :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::after{
  content: none;
}

.anchor-heading-style-center :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding-left: 0;
  padding-bottom: 16px;
  border: 0;
  text-align: center;
}
.anchor-heading-style-center :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--anchor-heading-accent-length);
  height: var(--anchor-heading-accent-width);
  border-radius: 999px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

@media (max-width: 680px){
  .site-main__inner,.l-container,.top-service__inner,.service-section__inner{
    padding-left: max(16px,var(--anchor-content-padding));
    padding-right: max(16px,var(--anchor-content-padding));
  }
}

/* 既存テーマ側の見出し疑似要素を、選択中の型に合わせて整理する。 */
.anchor-heading-style-left-line :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title){
  padding-bottom: 0;
  border: 0;
  background: transparent;
}
.anchor-heading-style-left-line :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::after,
.anchor-heading-style-underline :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::before,
.anchor-heading-style-center :where(.c-section__title,.front-about__title,.front-service__title,.front-reasons__title,.front-voice__title,.front-cta__title,.top-worries__title,.top-features__title,.top-profile__title,.p-frontNews__title,.service-section__title,.faq-section__heading,.anchor-fixed-page__section-title)::before{
  content: none;
}

.anchor-fixed-page__card,
.anchor-fixed-page__detail-item{
  background: var(--service-card-bg, #fff);
}

/* 3.21.47: ヒーロー専用CSSより優先してデザインプリセットのボタン設定を反映する。 */
.anchor-button-style-solid .top-hero__button,
.anchor-button-style-outline .top-hero__button,
.anchor-button-style-gradient .top-hero__button,
.anchor-button-style-minimal .top-hero__button{
  min-height: var(--anchor-button-height, 48px);
  border-radius: var(--anchor-radius-button, 999px);
  font-weight: var(--anchor-button-weight, 700);
  box-shadow: var(--anchor-button-shadow, none);
}

.anchor-button-style-solid .top-hero__button.is-primary{
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.anchor-button-style-outline .top-hero__button.is-primary{
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}
.anchor-button-style-gradient .top-hero__button.is-primary{
  border: 1px solid transparent;
  background: linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));
  color: #fff;
}
.anchor-button-style-minimal .top-hero__button.is-primary{
  min-height: auto;
  padding-left: 4px;
  padding-right: 4px;
  border: 0;
  border-bottom: 2px solid var(--color-primary);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.anchor-button-hover-none .top-hero__button:hover{
  transform: none;
  box-shadow: var(--anchor-button-shadow, none);
}
.anchor-button-hover-lift .top-hero__button:hover{
  transform: translateY(-2px);
  box-shadow: var(--anchor-button-shadow, none);
}
.anchor-button-hover-scale .top-hero__button:hover{
  transform: scale(1.025);
  box-shadow: var(--anchor-button-shadow, none);
}

/* 3.21.48: 選ばれる理由セクションにもプリセットの幅・余白を確実に反映する。 */
.front-reasons{
  padding-block: var(--sec-pad-y, var(--anchor-section-spacing, 80px));
}

.front-reasons__inner{
  width: min(100%, var(--anchor-content-width, 1100px));
  max-width: var(--anchor-content-width, 1100px);
  margin-inline: auto;
  padding-left: var(--anchor-content-padding, 20px);
  padding-right: var(--anchor-content-padding, 20px);
}

@media (max-width: 680px){
  .front-reasons__inner{
    padding-left: max(16px, var(--anchor-content-padding, 20px));
    padding-right: max(16px, var(--anchor-content-padding, 20px));
  }
}

/* 3.21.49: :where() の詳細度0により既存固定値へ負けていた角丸設定を最終レイヤーで確実に適用する。 */
body .service-card,
body .front-reasons__card,
body .top-features__card,
body .top-voice__card,
body .top-worries__card,
body .anchor-fixed-page__card,
body .anchor-fixed-page__detail-item,
body .anchor-fixed-page__info-box,
body .anchor-fixed-page__note,
body .anchor-fixed-page__form-placeholder,
body .faq-card,
body .archive-card,
body .search-card,
body .profile-card,
body .home-cta__tel{
  border-radius: var(--anchor-radius-card, var(--radius-m, 14px));
}

body .service-card__image,
body .service-card__image img,
body .front-about__image,
body .front-about__image img,
body .anchor-fixed-page__image,
body .anchor-fixed-page__profile-image,
body .anchor-fixed-page__image img,
body .anchor-fixed-page__profile-image img,
body .profile-card__img,
body .profile-card__img img,
body .c-page__content > .wp-block-image,
body .c-page__content > .wp-block-image img{
  border-radius: var(--anchor-radius-image, var(--radius-m, 14px));
}

body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body textarea,
body select{
  border-radius: var(--anchor-radius-input, var(--radius-s, 8px));
}

body .btn,
body .home-cta__button,
body .top-hero__button,
body .c-page__content .wp-block-button__link,
body .anchor-fixed-page__cta-button .wp-block-button__link,
body .faq-search__button,
body .contact-panel__btn{
  border-radius: var(--anchor-radius-button, 999px);
}

/* セクション固有の画像角丸変数もプリセット値へ追従させる。 */
body .top-service .service-card__image,
body .top-service .service-card__image img{
  border-radius: var(--as-img-radius, var(--anchor-radius-image, var(--radius-m, 14px))) !important;
}

body .top-features__media,
body .top-features__img,
body .top-features__avatar,
body .top-features__avatar-img{
  border-radius: var(--af-img-radius, var(--anchor-radius-image, var(--radius-m, 14px)));
}

body .top-about .profile-card__media,
body .top-about .profile-card__img,
body .top-profile__image{
  border-radius: var(--anchor-radius-image, var(--radius-m, 14px));
}

/* 3.21.76: ヒーロー固有の固定角丸は使わず、画像角丸プリセットへ明示接続する。 */
body .top-hero__media,
body .top-hero__image{
  border-radius: var(--anchor-radius-image, var(--radius-m, 14px));
}

body.anchor-button-style-minimal .btn,
body.anchor-button-style-minimal .home-cta__button,
body.anchor-button-style-minimal .top-hero__button,
body.anchor-button-style-minimal .c-page__content .wp-block-button__link,
body.anchor-button-style-minimal .anchor-fixed-page__cta-button .wp-block-button__link,
body.anchor-button-style-minimal .faq-search__button,
body.anchor-button-style-minimal .contact-panel__btn{
  border-radius: 0;
}

/* 3.21.71: トップページ共通クラスをデザインシステムへ接続する最終レイヤー。 */
body .c-section{
  padding-block: var(--sec-pad-y, var(--anchor-section-spacing, 80px));
}
body .c-section__inner{
  width: min(100%, var(--anchor-content-width, 1100px));
  max-width: var(--anchor-content-width, 1100px);
  margin-inline: auto;
  padding-left: var(--anchor-content-padding, 20px);
  padding-right: var(--anchor-content-padding, 20px);
}
body .c-section__grid{
  gap: var(--anchor-grid-gap, 24px);
}
body .c-card,
body .top-service .service-card__link{
  padding: var(--anchor-card-padding, 28px);
}
body .c-section__title{
  font-size: var(--h2-size, 24px);
  line-height: var(--h2-lh, 1.5);
}
@media (max-width: 1024px){
  body .c-section__title{
    font-size: var(--h2-size-tb, var(--h2-size, 24px));
    line-height: var(--h2-lh-tb, var(--h2-lh, 1.5));
  }
}
@media (max-width: 767px){
  body .c-section__inner{
    padding-left: max(16px, var(--anchor-content-padding, 20px));
    padding-right: max(16px, var(--anchor-content-padding, 20px));
  }
  body .c-section__title{
    font-size: var(--h2-size-sp, var(--h2-size, 24px));
    line-height: var(--h2-lh-sp, var(--h2-lh, 1.5));
  }
}

/* 3.21.100: ヒーロー副CTAはホバー動作を維持し、配色だけ通常時のままにする。 */
body .top-hero__button.is-secondary:hover{
  background: var(--color-accent-soft, #f3ecff);
  color: var(--color-text-base);
  border-color: var(--color-primary);
}

/* =========================================================
   3.21.190: 選ばれる理由 / 安心のポイントの表示崩れ防止
   - Gridのstretchを解除して、内容量に応じた高さにする
   - カード余白はデザインシステム変数を明示的に維持する
   - 選ばれる理由の子要素がmin-content幅へ縮むのを防ぐ
   - 極小幅では安心のポイント（お客様の声風）を縦積みにする
   ========================================================= */
body .front-reasons__cards,
body .top-features__grid{
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
}

body .front-reasons__card,
body .top-features__card{
  align-self: start;
  block-size: auto !important;
  height: auto !important;
  min-block-size: 0 !important;
  min-height: 0 !important;
  padding: var(--anchor-card-padding, 28px);
  box-sizing: border-box;
}

body .front-reasons__card{
  align-items: stretch;
}

body .front-reasons__card-title,
body .front-reasons__card-text{
  inline-size: 100%;
  width: 100%;
  min-inline-size: 0;
  min-width: 0;
}

/* カード幅が足りない場合は本文を画像の下へ自動的に折り返す。 */
body .top-features--layout-voice .top-features__row{
  flex-wrap: wrap;
}

body .top-features--layout-voice .top-features__body{
  flex: 1 1 160px;
  min-inline-size: min(100%, 160px);
  min-width: min(100%, 160px);
}

@media (max-width: 480px){
  body .top-features--layout-voice .top-features__row{
    flex-direction: column;
    align-items: center;
  }

  body .top-features--layout-voice .top-features__body{
    inline-size: 100%;
    width: 100%;
    min-inline-size: 0;
    min-width: 0;
  }

  body .top-features--layout-voice .top-features__card-title,
  body .top-features--layout-voice .top-features__text{
    inline-size: 100%;
    width: 100%;
  }
}

/* =========================================================
   3.21.192: トップカードのSP2列表示を全対象セクションで統一
   対象：取扱業務 / 選ばれる理由 / お困りごと / 安心のポイント / お客様の声
   - 2列設定時だけ余白・文字・画像サイズをコンパクト化
   - 画像＋本文の横並びを縦積みにして、本文幅が潰れるのを防ぐ
   - 各カードは内容量に応じた高さとし、1列設定・PC表示には影響させない
   ========================================================= */
@media (max-width: 767px){
  body .top-service--sp-2cols .top-service__grid,
  body .front-reasons--sp-2cols .front-reasons__cards,
  body .top-worries--sp-2cols .top-worries__grid,
  body .top-features--sp-2cols .top-features__grid,
  body .top-voice--sp-2cols .top-voice__list{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: min(var(--anchor-grid-gap, 24px), 12px) !important;
  }

  body .top-service--sp-2cols .service-card,
  body .front-reasons--sp-2cols .front-reasons__card,
  body .top-worries--sp-2cols .top-worries__card,
  body .top-features--sp-2cols .top-features__card,
  body .top-voice--sp-2cols .top-voice__card{
    align-self: start;
    inline-size: 100%;
    width: 100%;
    min-inline-size: 0;
    min-width: 0;
    block-size: auto !important;
    height: auto !important;
    min-block-size: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box;
  }

  body .front-reasons--sp-2cols .front-reasons__card,
  body .top-worries--sp-2cols .top-worries__card,
  body .top-features--sp-2cols .top-features__card,
  body .top-voice--sp-2cols .top-voice__card,
  body .top-service--sp-2cols .service-card__link{
    padding: min(var(--anchor-card-padding, 28px), 14px) !important;
  }

  body .top-service--sp-2cols .service-card__link,
  body .front-reasons--sp-2cols .front-reasons__card > *,
  body .top-worries--sp-2cols .top-worries__card > *,
  body .top-features--sp-2cols .top-features__card > *,
  body .top-voice--sp-2cols .top-voice__card > *,
  body .top-service--sp-2cols .service-card__body,
  body .top-service--sp-2cols .service-card__text,
  body .top-features--sp-2cols .top-features__body,
  body .top-voice--sp-2cols .top-voice__body{
    max-inline-size: 100%;
    max-width: 100%;
    min-inline-size: 0;
    min-width: 0;
    box-sizing: border-box;
    writing-mode: horizontal-tb;
  }

  body .top-service--sp-2cols .service-card__body,
  body .top-service--sp-2cols .service-card__text,
  body .front-reasons--sp-2cols .front-reasons__card-title,
  body .front-reasons--sp-2cols .front-reasons__card-text,
  body .top-worries--sp-2cols .top-worries__card-text,
  body .top-features--sp-2cols .top-features__card-title,
  body .top-features--sp-2cols .top-features__text,
  body .top-voice--sp-2cols .top-voice__card-title,
  body .top-voice--sp-2cols .top-voice__text{
    inline-size: 100%;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body .top-service--sp-2cols .service-card__title,
  body .front-reasons--sp-2cols .front-reasons__card-title,
  body .top-features--sp-2cols .top-features__card-title,
  body .top-voice--sp-2cols .top-voice__card-title{
    font-size: clamp(14px, 4vw, 17px) !important;
    line-height: 1.45 !important;
  }

  body .top-service--sp-2cols .service-card__text,
  body .front-reasons--sp-2cols .front-reasons__card-text,
  body .top-worries--sp-2cols .top-worries__card-text,
  body .top-features--sp-2cols .top-features__text,
  body .top-voice--sp-2cols .top-voice__text{
    font-size: clamp(12px, 3.5vw, 14px) !important;
    line-height: 1.7 !important;
  }

  /* 取扱業務：2列カード内のメディアを縮小し、本文幅を確保する。 */
  body .top-service--sp-2cols .service-card__link{
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  body .top-service--sp-2cols .service-card__icon{
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
  }

  body .top-service--sp-2cols .service-card__icon--plain,
  body .top-service--sp-2cols .service-card__icon--circle-image{
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  body .top-service--sp-2cols .service-card__image{
    margin-bottom: 8px;
  }

  /* 安心のポイント（お客様の声風）とお客様の声は縦積みにする。 */
  body .top-features--sp-2cols.top-features--layout-voice .top-features__row,
  body .top-voice--sp-2cols .top-voice__row{
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body .top-features--sp-2cols.top-features--layout-voice .top-features__avatar,
  body .top-voice--sp-2cols .top-voice__avatar{
    flex: 0 0 46px !important;
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
  }

  body .top-features--sp-2cols.top-features--layout-voice .top-features__body,
  body .top-voice--sp-2cols .top-voice__body{
    flex: 0 1 auto;
    inline-size: 100%;
    width: 100%;
  }

  body .top-features--sp-2cols .top-features__media{
    margin-bottom: 8px;
  }
}
