@charset "UTF-8";

/* サービス詳細ページのPC表示の大きさ。
   1440pxの見え方を基準に、画面幅に合わせて同じ比率で縮める。
   タブレットに切り替わる1025pxまで縮め、1440pxより上は11.28pxで止める。
   1024px以下はLP側の指定のまま。 */
@media screen and (min-width: 1025px) {
  html {
    font-size: min(0.7835vw, 0.705rem);
  }

  /* 1440pxより広い画面では、ファーストビューやロゴの幅も1440pxのときの幅で止める */
  .l-main-lp__wrapper .l-inner {
    max-width: 1130px;
  }

  /* 本文：1280pxで12.8px、1440pxで16pxまで上げて止める（メインと同じ）。
     LPの行間はrem固定で文字だけ大きくすると詰まるので、メインと同じ1.8倍にする */
  .l-main-lp__wrapper .p-voice__slide-text,
  .l-main-lp__wrapper .p-feature__item-text,
  .l-main-lp__wrapper .p-message__text,
  .l-main-lp__wrapper .p-message__profile-text,
  .l-main-lp__wrapper .p-flow__item-text,
  .l-main-lp__wrapper .p-point__item-text,
  .l-main-lp__wrapper .p-point__bottom-text,
  .l-main-lp__wrapper .p-faq__answer-text,
  .l-main-lp__wrapper .p-case__item-text,
  .l-main-lp__wrapper .p-cta__text,
  .l-main-lp__wrapper .p-intro__text,
  .l-main-lp__wrapper .p-problem__item-text,
  .l-main-lp__wrapper .p-plan__work-text {
    font-size: clamp(12.8px, calc(2vw - 12.8px), 16px);
    line-height: 1.8;
  }

  /* 見出し・ボタン：大きい画面で大きくなりすぎないよう上限を付ける。
     行間はrem固定だと大画面で開きすぎるので、文字に対する倍率にする */
  .l-main-lp__wrapper .c-title__text-big {
    font-size: min(3.75rem, 36px);
  }

  .l-main-lp__wrapper .p-cta__title-text {
    font-size: min(3.75rem, 36px);
    line-height: 1;
  }

  .l-main-lp__wrapper .p-feature__item-title {
    font-size: min(2rem, 22px);
    line-height: 1.3;
  }

  .l-main-lp__wrapper .p-point__item-title {
    font-size: min(2rem, 22px);
    line-height: 1.55;
  }

  .l-main-lp__wrapper .p-case__item-title,
  .l-main-lp__wrapper .p-faq__question-text {
    font-size: min(1.875rem, 20px);
    line-height: 1.35;
  }

  .l-main-lp__wrapper .p-cta__sentence {
    font-size: min(1.875rem, 20px);
    line-height: 1.85;
  }

  .l-main-lp__wrapper .p-voice__slide-title {
    font-size: min(1.625rem, 20px);
  }

  .l-main-lp__wrapper .p-problem__item-title {
    font-size: min(1.5rem, 20px);
    line-height: 1.4;
  }

  body .c-btn__text-main {
    font-size: min(1.75rem, 18px);
  }

  /* ナビ・注釈など：小さくなりすぎないよう下限を付ける */
  .l-header .l-header__nav-link {
    font-size: max(1rem, 13px);
  }

  .l-header .l-header__nav-link-sub {
    font-size: max(0.625rem, 9px);
  }

  .l-main-lp__wrapper .p-plan__fee--compact .p-plan__fee-note {
    font-size: max(0.75rem, 10px);
  }

  .l-main-lp__wrapper .p-fv__media-note {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  body .p-breadcrumb__link,
  body .p-breadcrumb__current {
    font-size: max(0.875rem, 11px);
  }

  body .p-contact__head,
  .l-main-lp__wrapper .p-voice__slide-sentence,
  .l-footer .l-footer__nav-link {
    font-size: max(1rem, 12px);
  }

  body .c-btn__text-sub {
    font-size: max(1rem, 11px);
  }

  /* 選ばれる理由の比較表を小さくする */
  .l-main-lp__wrapper .p-reason__compare {
    grid-template-columns: max-content minmax(0, 24rem) minmax(0, 23rem);
  }

  .l-main-lp__wrapper .p-reason__compare-cell {
    padding: 0.75rem;
  }

  .l-main-lp__wrapper .p-reason__compare-cell--label {
    max-width: 11rem;
    padding: 0.75rem 0.875rem;
    font-size: 1.3125rem;
    line-height: 1.4;
  }

  .l-main-lp__wrapper .p-reason__compare-cell--head {
    min-height: 3rem;
    padding-block: 0.625rem;
  }

  .l-main-lp__wrapper .p-reason__compare-cell--head.p-reason__compare-cell--plumarke {
    font-size: 2rem;
  }

  .l-main-lp__wrapper .p-reason__compare-text {
    margin-top: 0.625rem;
    font-size: 1.3125rem;
    line-height: 1.5;
  }

  .l-main-lp__wrapper .p-reason__icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  /* FVの説明文の幅も画面に合わせて縮める（元の500px固定だと左右の余白が詰まる） */
  .l-main-lp__wrapper .p-fv__sentence {
    max-width: 44.3rem;
  }

  /* 次の料金プランと同じ白背景で余白が二重になるので、下を詰める */
  .l-main-lp__wrapper .p-reason {
    padding-bottom: 2rem;
  }

  /* お悩みカードが4枚のときは2列×2段にする（1列だと細く窮屈になる） */
  .l-main-lp__wrapper .p-problem__list:has(> .p-problem__item:nth-child(4)) {
    max-width: 75rem;
    margin-inline: auto;
    gap: 1.25rem;
  }

  .l-main-lp__wrapper .p-problem__list:has(> .p-problem__item:nth-child(4)) .p-problem__item {
    flex: 0 0 calc(50% - 0.625rem);
    max-width: none;
  }

  .l-main-lp__wrapper .p-problem__list:has(> .p-problem__item:nth-child(4)) .p-problem__item-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .l-main-lp__wrapper .p-problem__list:has(> .p-problem__item:nth-child(4)) .p-problem__item-text {
    font-size: clamp(12.8px, calc(2vw - 12.8px), 16px);
    line-height: 1.8;
  }

  /* ヘッダー・フッターのキャッチコピーが小さくなりすぎないよう下限を付ける */
  .l-header .l-header__sentence,
  .l-footer .l-footer__sentence {
    font-size: max(0.75rem, 11px);
    line-height: 1.35;
  }

  /* 本文中のお問合せフォームを大きくする（右サイドのフォームは対象外） */
  /* セクション全体も入力欄に合わせて約1.25倍にする */
  .p-contact--main {
    padding-block: 6.25rem;
  }

  .p-contact--main .p-contact__title {
    font-size: 2rem;
  }

  .p-contact--main .p-contact__title::after {
    bottom: 0.3125rem;
    height: 0.78rem;
  }

  .p-contact--main .wpcf7 {
    max-width: 62rem;
  }

  .p-contact--main .p-contact__row + .p-contact__row {
    margin-top: 1rem;
  }

  .p-contact--main .p-contact__head {
    font-size: 14px;
    line-height: 1.8;
  }

  .p-contact--main .wpcf7-form input:not([type="submit"]):not([type="checkbox"]) {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .p-contact--main .p-contact__acceptance {
    font-size: 13px;
  }

  .p-contact--main .p-contact__data-checkbox .wpcf7-list-item-label {
    padding-left: 24px;
  }

  .p-contact--main .p-contact__data-checkbox .wpcf7-list-item-label::before,
  .p-contact--main .p-contact__data-checkbox .wpcf7-list-item-label::after {
    width: 16px;
    height: 16px;
  }

  .p-contact--main .wpcf7-turnstile {
    margin-top: 1.5rem;
  }

  .p-contact--main .p-contact__submit {
    margin-top: 1.5rem;
    max-width: 19.5rem;
  }

  .p-contact--main .p-contact__submit::after {
    right: 0.9375rem;
    width: 1rem;
    height: 1.484rem;
  }

  .p-contact--main .p-contact__submit input {
    padding-block: 1.1719rem;
    font-size: 1.72rem;
  }

  /* 代表メッセージは文章と写真を下で揃える */
  .l-main-lp__wrapper .p-message__content-wrap {
    align-items: flex-end;
  }

  /* 右サイドのフォームの同意欄が小さくなりすぎないよう下限を付ける */
  .p-contact__aside .p-contact__acceptance {
    font-size: max(0.875rem, 11px);
  }

  /* 左の余白があると1025pxで2行になるので外して、中央に置く */
  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item {
    margin-left: 0;
  }

  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item-label {
    padding-left: max(1.5rem, 18px);
  }

  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item-label::before,
  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item-label::after {
    width: max(0.875rem, 12px);
    height: max(0.875rem, 12px);
  }

  /* チェックボックスと文字の見た目の中心を揃える（文字の見た目の中心が1px下にあるため） */
  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item-label::before,
  .p-contact__aside .p-contact__data-checkbox .wpcf7-list-item-label::after,
  .p-contact--main .p-contact__data-checkbox .wpcf7-list-item-label::before,
  .p-contact--main .p-contact__data-checkbox .wpcf7-list-item-label::after {
    transform: translateY(calc(-50% + 1px));
  }

  /* 見出しと中身の間を詰める（元のままだとメインの2倍以上空く） */
  .l-main-lp__wrapper .c-section__content {
    margin-top: 3.5rem;
  }

  /* 同じ背景のセクションが続く所は、余白が二重になるので下を詰める */
  .l-main-lp__wrapper .p-point:has(+ .p-case),
  .l-main-lp__wrapper .p-flow:has(+ .p-faq) {
    padding-bottom: 2rem;
  }

  .l-main-lp__wrapper .p-area__list-item:not(.p-area__list-item-label) .p-area__list-item-link {
    font-size: 1.25rem;
  }

  /* セクションタイトルの上の余白を詰める（薄い英字がセクションからはみ出さない値まで） */
  .l-main-lp__wrapper .c-title {
    padding-top: 2.5rem;
  }

  .l-main-lp__wrapper .c-title::after {
    bottom: -2rem;
  }

  /* 料金シミュレーションの数値を大きくする */
  .l-main-lp__wrapper .p-plan__sim-cell--value {
    font-size: 2rem;
    line-height: 1.2;
  }

  .l-main-lp__wrapper .p-plan__sim-cell--value .p-plan__sim-note {
    font-size: 0.9375rem;
  }
}
