/* A案（セキュリティ点検LP）だけの上書き。LP2の style.css は無変更で残す */

/* FVの回転スロット：LP2の2倍の時間で切り替える（1枚1秒→2秒、1周3秒→6秒） */
.p-fv2__slot .slot li {
  animation-duration: 6s;
}
.p-fv2__slot .slot li:nth-child(2) {
  animation-delay: 2s;
}
.p-fv2__slot .slot li:nth-child(3) {
  animation-delay: 4s;
}

/* 見出し・ボタン・ラベルの改行（2026-10-27）
   行末に1〜2文字だけ残る改行を減らす。balance は各行の長さをそろえ、auto-phrase は日本語を文節の途中で切らない。
   未対応のブラウザは従来どおりの改行になるだけ */
h1, h2, h3, h4,
.c-mail-button__label,
.p-fv2 .element,
.p-works__item-ctg,
.p-plan-tabs__nav .tab-btn,
.p-plan-tabs .plan-lead,
.p-plan-tabs .plan-total,
.p-price-list__item-title,
.p-price__contents-title,
.p-faq-item__q,
.p-fv2__slot .slot li,
.c-mail-button,
.p-plan-tabs .plan-table th,
.common-title__detail,
.p-solution-list__item .check-list li,
.p-fv2__lead,
.l-footer__catch {
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* 本文：段落の最後の行に1〜2文字だけ残る改行を減らす（未対応のブラウザは従来どおり） */
p, li, dd, td {
  text-wrap: pretty;
}

/* SP（2026-10-27）：問題セクションの見出しを「会社のWebサイトに潜む、／5つの「よくある見落とし」」の2行に収める */
@media (max-width: 430px) {
  .p-problems .common-title h2 {
    font-size: 26px;
  }
}

/* SP：対応範囲のカードを3列→2列に。3列では1行4〜5文字になり読みにくかったため。
   左の9枚は最後の1枚を横幅いっぱいにし、右の4枚は2×2にする。アイコンと文字が重ならないよう下に余白を取る */
@media (max-width: 576px) {
  .p-service .service-list__item {
    width: calc((100% - 8px) / 2);
    min-height: 0;
    padding: 10px 10px 40px;
  }
  .p-service .service-list__item:last-child:nth-child(odd) {
    width: 100%;
  }
  .p-service .service-list__item h4 {
    font-size: 14px;
  }
}

/* SP：料金のタブ4つを2×2に（3つ＋1つだと最後のタブだけ横長になるため） */
@media (max-width: 576px) {
  .p-plan-tabs__nav .tab-btn {
    flex: 1 1 calc(50% - 2px);
  }
}

/* タブレット〜小さめのPC（〜1199px）：FVの説明文は列が狭く、固定の改行で「点検。」だけが次の行に残るため、改行を外して文章のまま流す */
@media (max-width: 1199px) {
  .p-fv2__lead br {
    display: none;
  }
}

/* タブレット〜小さめのPC（993〜1199px）：対応範囲の左右2枠を縦に並べる。
   横並びのままだと1枚の幅が150px前後になり、見出しが1行3〜4文字で折れていたため（992px以下はもともと縦並び） */
@media (max-width: 1199px) {
  .p-service__contents {
    flex-direction: column;
  }
  .p-service__content-left,
  .p-service__content-right {
    width: 100%;
  }
}

/* タブレット・SP（〜992px）：FVの写真を右下の隅（幅200px）に重ねる配置をやめ、説明文とボタンの間に横幅いっぱいで置く。
   隅に置くと左側が空き、説明文の下にも写真分の大きな余白が必要になっていたため。
   左の列を display: contents にして、写真をボタンの前に並べ替える */
@media (max-width: 992px) {
  .p-fv2__content {
    gap: 0;
    align-items: stretch;
  }
  .p-fv2__content-left {
    display: contents;
  }
  .p-fv2__lead {
    margin-bottom: 20px;
  }
  .p-fv2__content-right {
    position: static;
    order: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 24px;
  }
  .p-fv2__content-right img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .p-fv2__actions {
    order: 2;
    width: 100%;
  }
}

/* SP（〜576px）：写真をボタンの下へ。写真が先だとボタンが1画面目に入らないため */
@media (max-width: 576px) {
  .p-fv2__actions {
    order: 1;
  }
  .p-fv2__content-right {
    order: 2;
    margin: 24px auto 0;
  }
}

/* 追従バナーは最初は隠し、FVの相談ボタンが画面外に出てから表示する（表示の切り替えは lp5 本体のスクリプト） */
.c-banner {
  display: none;
}
