@charset "UTF-8";
/*
 * ======================================
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ======================================
 *
 * ▼ レイアウト補助
 * .ap-container-mid      - 内容幅1100pxのコンテナ（container=1240 / narrow=900 の中間）
 * .ap-container-tel      - 内容幅1000pxのコンテナ（電話バナー用）
 * .ap-autogrid           - auto-fit minmax グリッド（--min* / --gap* で調整）
 * .ap-blog-layout        - 記事一覧・詳細の「本文 + 320pxサイドバー」2カラム
 * .ap-panel              - 薄背景の角丸パネル
 * .ap-memphis / .ap-bg-texture - 背景装飾レイヤー（memphis.png / bg-02.jpg）
 *
 * ▼ ヘッダー・フッター
 * .ap-header / __top / __right / __tel-* / __cta - 2段組ヘッダー（上：ロゴ＋電話＋CTA）
 * .ap-logo / __en / __ja  - テキストロゴ
 * .ap-gnav / __inner / __item - 全幅グローバルナビ（下段・セル区切り）
 * .ap-fcta / __item / __icon / __body / __big / __note - フッター上部2分割CTA
 * .ap-footer-* - フッター本体（ナビ・ロゴ・丸アイコン・住所）
 * .ap-side-bnr / .ap-bottom-bnr - 追従バナー（PC右側 / SP下部）
 *
 * ▼ 見出し
 * .ap-sec-head / --reverse - 「日本語特大＋罫線＋英字」セクション見出し
 * .ap-sec-head2 / --center - 「小さい英字＋日本語」セクション見出し
 * .ap-band-head            - 青帯＋下向き三角の見出し
 * .ap-page-ttl             - 下層ページの標準h2
 *
 * ▼ ボタン
 * .ap-btn / --orange / --blue / --white / --outline / --submit / --flat-blue
 *          / --tel-box / --stack / --lg / --full  - 立体（下影4px）ボタン群
 * .ap-btn__note / __num / __icon - ボタン内部要素
 *
 * ▼ パーツ
 * .ap-mv / __stage / __slide / __cap / __tag / __copy / __sub / __dots / __dot - MVカルーセル
 * .ap-tel-bnr            - 電話バナー画像リンク
 * .ap-service-card       - TOP事業内容カード
 * .ap-reason-card        - 選ばれる理由カード（上部6px罫）
 * .ap-work-grid / --4    - 施工実績カードの列固定グリッド（3列／TOPのみ4列）
 * .ap-work-card          - 施工実績カード
 * .ap-cat-badge / .ap-date - カテゴリバッジ・日付
 * .ap-flow / __item / __num / __body / __rule - STEP付き施工の流れ
 * .ap-trouble-card       - 「こんなお悩み」アイコンカード
 * .ap-detail-card        - 「対応内容」写真付きカード
 * .ap-hero / .ap-hero-works - 下層ページヒーロー2種
 * .ap-contact / __card / __head - お問い合わせカード
 * .ap-form / __label / __row - フォーム
 * .ap-side / .ap-side-box / .ap-side-link / .ap-side-post - ブログサイドバー
 * .ap-pager              - ページネーション
 * .ap-cat-tabs           - カテゴリタブ（リンク型）
 * .ap-dl                 - dl定義リスト表（会社概要・施工情報）
 * .ap-ba                 - ビフォーアフター2枚並び
 * .ap-badge-orange / .ap-text-muted / .ap-text-deep / .ap-text-mid - 補助
 *
 * ======================================
 * 共通SCSSに不足していたもの
 * ======================================
 *
 * ・値の粒度不足
 *   - clamp() ベースの流体タイポ／流体余白が utility に無い（見出し・MV・ヒーロー）
 *   - .container に左右 padding が無く、画面端ギリギリになる（24px を site.css で付与）
 *   - grid の auto-fit minmax パターンが .grid-auto(250px固定) のみ
 * ・指定方向不足
 *   - 「PC右側固定の縦書き追従バナー」に相当する component が無い（.sp-fixed-bar はSPのみ）
 * ・状態不足
 *   - :active で沈む立体ボタン（下影 → 0）の状態 utility が無い
 * ・構造不足
 *   - ヘッダーが1段組前提（.header__inner 固定高80px）。2段組（情報行＋全幅ナビ行）が組めない
 *   - フッター上部の「2分割ベタ塗りCTA（全幅）」が footer-cta に無い
 *   - 「番号セル＋本文セル」を横に連結し、番号セル下に三角を出すフロー表現が card-flow に無い
 * ・装飾パターン不足
 *   - .page-top__link に矢印アイコンが入っておらず中身が空になる
 *     （FontAwesome 6 の "\f077" を site.css で ::before に追加）
 *   - 帯見出しの下に三角（吹き出しの尻尾）を出す modifier が heading-band に無い
 *   - 見出し左右に「太い日本語＋伸びる罫線＋英字」を配置するパターンが heading 系に無い
 */

/* ==========================================================================
   1. ベース調整
   ========================================================================== */
/* 共通CSSはSPで body を 1.4rem / 1.2rem に縮小するが、
   本案件は「年齢層が高い方にも読みやすく」が要件のため縮小幅を抑える */
@media (max-width: 896px) {
  body { font-size: 1.7rem; }
}
@media (max-width: 639px) {
  body { font-size: 1.6rem; }
}

.container,
.container-narrow,
.container-wide {
  padding-left: 24px;
  padding-right: 24px;
}

.ap-container-mid {
  max-width: 1148px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ap-container-tel {
  max-width: 1048px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ap-text-muted { color: #3D5B75; }
.ap-text-deep  { color: #2B4A63; }
.ap-text-mid   { color: #41637F; }
.ap-pretty     { text-wrap: pretty; }

.ap-badge-orange {
  background: #EB6101;
  color: #fff;
  font-weight: 900;
  font-size: 1.7rem;
  padding: 8px 20px;
  border-radius: 4px;
}

.ap-panel {
  background: #F7FAFD;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 8px;
}

.ap-aspect-16-10 { aspect-ratio: 16 / 10; }

.ap-memphis,
.ap-bg-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ap-memphis {
  background-image: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28510/memphis.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.16;
}
.ap-bg-texture {
  background: url(https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28510/bg-02.jpg) repeat;
  opacity: 0.5;
}

/* auto-fit グリッド */
.ap-autogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--ap-min, 280px), 1fr));
  gap: var(--ap-gap, 24px);
}
.ap-autogrid--min220 { --ap-min: 220px; }
.ap-autogrid--min240 { --ap-min: 240px; }
.ap-autogrid--min250 { --ap-min: 250px; }
.ap-autogrid--min260 { --ap-min: 260px; }
.ap-autogrid--min280 { --ap-min: 280px; }
.ap-autogrid--min300 { --ap-min: 300px; }
.ap-autogrid--min320 { --ap-min: 320px; }
.ap-autogrid--gap18 { --ap-gap: 18px; }
.ap-autogrid--gap20 { --ap-gap: 20px; }
.ap-autogrid--gap22 { --ap-gap: 22px; }
.ap-autogrid--gap24 { --ap-gap: 24px; }
.ap-autogrid--gap28 { --ap-gap: 28px; }
.ap-autogrid--gap32 { --ap-gap: 32px; }
.ap-autogrid--gap40 { --ap-gap: 40px; }
.ap-autogrid--top { align-items: start; }
.ap-autogrid--center { align-items: center; }

/* ==========================================================================
   2. ボタン（立体・下影4px）
   ========================================================================== */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.4;
  border: 0;
  border-radius: 6px;
  padding: 14px 22px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 0 var(--ap-btn-shadow, #9B3C00);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ap-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ap-btn-shadow, #9B3C00);
}
.ap-btn:hover { opacity: 1; }

.ap-btn__icon { width: 20px; height: 20px; flex: none; }
.ap-btn__note { font-size: 1.4rem; font-weight: 700; }
.ap-btn__num  {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 3.4rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
}
/* 電話番号の文字サイズに追従する電話アイコン */
.ap-btn__num-icon {
  width: 0.78em;
  height: 0.78em;
  flex: none;
}

.ap-btn--stack { display: grid; gap: 2px; padding: 18px 30px; }
.ap-btn--center { justify-self: center; margin-left: auto; margin-right: auto; }
.ap-btn--lg    { font-size: 2rem; padding: 16px 26px; }
.ap-btn--xl    { font-size: 2rem; padding: 18px 30px; }
.ap-btn--full  { width: 100%; }

.ap-btn--orange {
  background: linear-gradient(180deg, #FF8A34 0%, #EB6101 55%, #C94F00 100%);
  color: #fff;
  --ap-btn-shadow: #9B3C00;
}
.ap-btn--orange:hover {
  background: linear-gradient(180deg, #FF9A4B 0%, #F26A0A 55%, #D45600 100%);
  color: #fff;
}

.ap-btn--blue {
  background: linear-gradient(180deg, #5AA7F0 0%, #3489e0 55%, #1E6BC0 100%);
  color: #fff;
  --ap-btn-shadow: #16548F;
}
.ap-btn--blue:hover {
  background: linear-gradient(180deg, #6FB4F5 0%, #3E93E8 55%, #2372C7 100%);
  color: #fff;
}

.ap-btn--white {
  background: #fff;
  color: #14314D;
  --ap-btn-shadow: #BCCEDD;
}
.ap-btn--white:hover { background: #EFF6FD; color: #14314D; }

.ap-btn--outline {
  background: #fff;
  color: #1E6BC0;
  border: 2px solid #3489e0;
  --ap-btn-shadow: #BCCEDD;
  padding: 12px 22px;
}
.ap-btn--outline:hover { background: #3489e0; color: #fff; }

.ap-btn--tel-box {
  background: #EFF6FD;
  border: 2px solid #3489e0;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #14314D;
  --ap-btn-shadow: #BCCEDD;
}
.ap-btn--tel-box:hover { background: #DFEDFA; color: #14314D; }
.ap-btn--tel-box .ap-btn__num {
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  color: #1E6BC0;
}
.ap-btn--tel-box .ap-btn__note { font-size: 1.5rem; }

.ap-btn--flat-blue {
  background: #3489e0;
  color: #fff;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 4px;
  --ap-btn-shadow: #1B5EA6;
}
.ap-btn--flat-blue:hover { background: #1E6BC0; color: #fff; }
.ap-btn--flat-blue .ap-btn__num { font-size: 3rem; }
.ap-btn--flat-blue .ap-btn__note { font-size: 1.5rem; }
.ap-btn--flat-blue .ap-btn__sub  { font-size: 1.3rem; font-weight: 700; }

.ap-btn--submit {
  background: #EB6101;
  color: #fff;
  padding: 20px;
  font-size: 2.1rem;
  --ap-btn-shadow: #A94500;
}
.ap-btn--submit:hover { background: #c94f00; color: #fff; }

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */
.ap-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
}

.ap-header__top {
  max-width: 1288px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ap-logo {
  display: grid;
  gap: 4px;
  color: #14314D;
  line-height: 1.1;
  flex-shrink: 0;
}
.ap-logo:hover { opacity: 0.75; }
.ap-logo__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 4rem;
  letter-spacing: 0.14em;
  color: #1E6BC0;
  font-weight: 600;
  line-height: 1;
}
.ap-logo__ja { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.22em; }

.ap-header .header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
  height: auto;
}

.ap-header .header__tel {
  font-family: inherit;
  color: #14314D;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 700;
}
/* 共通CSSの FontAwesome 5 指定は使わず、インラインSVGアイコンを使用する */
.ap-header .header__tel::before { content: none; }
.ap-header__tel-icon { flex: none; }
.ap-header .header__tel:hover { opacity: 0.75; }
.ap-header__tel-body { display: grid; line-height: 1.15; }
.ap-header__tel-num {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ap-header__tel-note { font-size: 1.2rem; font-weight: 700; color: #5A7791; }

.ap-header .header__cta {
  height: auto;
  flex-direction: row;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(180deg, #FF8A34 0%, #EB6101 55%, #C94F00 100%);
  box-shadow: 0 4px 0 #9B3C00;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.ap-header .header__cta:hover {
  background: linear-gradient(180deg, #FF9A4B 0%, #F26A0A 55%, #D45600 100%);
}
.ap-header .header__cta:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #9B3C00;
}

/* グローバルナビ（下段・全幅） */
.ap-gnav {
  background: #fff;
  border-bottom: 3px solid #3489e0;
}
.ap-gnav__inner {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.ap-gnav__item { flex: 1; }
.ap-gnav__item > a {
  height: 100%;
  padding: 12px 10px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 2px;
  color: #14314D;
  border-left: 1px solid #DDE5EC;
}
.ap-gnav__item:last-child > a { border-right: 1px solid #DDE5EC; }
.ap-gnav__item > a::after { display: none; }
.ap-gnav__item > a:hover { color: #EB6101; opacity: 1; }
.ap-gnav__item .header__nav-ja {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: normal;
  white-space: nowrap;
  color: inherit;
  margin-top: 0;
  order: 1;
}
.ap-gnav__item .header__nav-en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #7C93A8;
  font-weight: 600;
  order: 2;
}
.ap-gnav__item--current > a { color: #1E6BC0; }
.ap-gnav__item--current .header__nav-ja { text-decoration: underline; text-underline-offset: 5px; }

/* SPナビ：Font Awesome 5 依存の矢印をCSS三角に置き換え */
.sp-nav__link::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(255, 255, 255, 0.6);
  flex: none;
  margin-left: 10px;
}
.sp-nav__en { font-size: 1.5rem; }

@media (max-width: 1100px) {
  .ap-gnav { display: none; }
  .ap-header .header__right { display: flex; }
  .ap-header .header__cta { display: none; }
  .ap-header__top { padding-right: 68px; }
}
@media (max-width: 639px) {
  .ap-logo__en { font-size: 3rem; }
  .ap-logo__ja { font-size: 1.2rem; letter-spacing: 0.16em; }
  /* SPは画面下部の追従バナーに電話導線があるため、ヘッダーの電話は非表示 */
  .ap-header .header__tel { display: none; }
  .ap-header .header__right { display: none; }
}

/* ==========================================================================
   4. メインビュー（TOP）
   ========================================================================== */
.ap-mv {
  background: linear-gradient(90deg, #1E6BC0 0%, #7FC0F7 50%, #1E6BC0 100%);
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(24px, 3vw, 36px);
}
.ap-mv__stage {
  position: relative;
  height: clamp(300px, 34vw, 500px);
  overflow: hidden;
}
.ap-mv__slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 56%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2C5E86;
  color: #fff;
  box-shadow: 0 8px 28px rgba(8, 36, 63, 0.28);
  transition: transform 0.7s ease, opacity 0.7s ease;
  transform: translateX(22%) scale(0.88);
  opacity: 0.55;
  z-index: 2;
}
.ap-mv__slide:hover { opacity: inherit; }
.ap-mv__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-mv__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(8, 30, 50, 0) 0%, rgba(8, 30, 50, 0.78) 55%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.ap-mv__tag {
  justify-self: start;
  background: #EB6101;
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  padding: 5px 14px;
  border-radius: 3px;
}
.ap-mv__copy { font-size: clamp(22px, 2.9vw, 36px); font-weight: 900; line-height: 1.3; }
.ap-mv__sub  { font-size: clamp(14px, 1.4vw, 17px); font-weight: 700; color: #DCEBF8; }
.ap-mv__dots { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.ap-mv__dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.3s ease;
}
.ap-mv__dot.is-active { background: #EB6101; }

/* JS適用前のちらつき防止（初期表示＝1枚目がセンター） */
.ap-mv__slide:first-child {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
}
.ap-mv__slide:first-child .ap-mv__cap { opacity: 1; }
.ap-mv__slide:nth-child(3) { transform: translateX(-122%) scale(0.88); }

@media (max-width: 639px) {
  .ap-mv__slide { width: 84%; }
  .ap-mv__cap { padding: 18px 18px; }
}

/* ==========================================================================
   5. セクション見出し
   ========================================================================== */
.ap-sec-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.ap-sec-head .heading__ja {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #3489e0;
  white-space: nowrap;
}
.ap-sec-head__rule {
  flex: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.ap-sec-head__rule::before {
  content: "";
  display: block;
  height: 3px;
  background: #3489e0;
}
.ap-sec-head .heading__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #3489e0;
  text-align: right;
  line-height: 1;
}
.ap-sec-head--reverse .heading__en { text-align: left; }

.ap-sec-head2 { display: grid; gap: 6px; }
.ap-sec-head2 .heading__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  color: #3489e0;
  font-weight: 600;
  line-height: 1.4;
}
.ap-sec-head2 .heading__ja {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.3;
}
.ap-sec-head2--center { justify-items: center; text-align: center; }
.ap-sec-head2--sm .heading__ja { font-size: clamp(24px, 3vw, 32px); }

.ap-band-head {
  position: relative;
  background: #3489e0;
  padding: 22px 24px;
  text-align: center;
}
.ap-band-head .heading__ja {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.ap-band-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 18px solid #3489e0;
}

.ap-page-ttl {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.4;
}
.ap-page-ttl--sm { font-size: clamp(24px, 3.2vw, 34px); }

/* ==========================================================================
   6. TOP：事業内容 / 緊急対応 / 選ばれる理由 / 施工実績
   ========================================================================== */
.ap-service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #DDE5EC;
  border-radius: 8px;
  overflow: hidden;
  color: #14314D;
  background: #fff;
  transition: border-color 0.3s ease;
}
.ap-service-card:hover { border-color: #3489e0; color: #14314D; opacity: 1; }
.ap-service-card__img {
  width: 100%;
  align-self: start;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.ap-service-card__body {
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}
.ap-service-card__title { font-size: 2.4rem; font-weight: 900; }
.ap-service-card__text { font-size: 1.7rem; color: #3D5B75; font-weight: 500; }
.ap-service-card__more { color: #EB6101; font-weight: 900; font-size: 1.7rem; }

.ap-emergency { position: relative; background: #EFF6FD; overflow: hidden; }
.ap-emergency__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.ap-emergency__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.4;
}
.ap-emergency__lead {
  font-size: 1.9rem;
  font-weight: 700;
  color: #3D5B75;
  max-width: 760px;
}
.ap-emergency__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

.ap-reason-card {
  border-top: 6px solid #3489e0;
  background: #F7FAFD;
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.ap-reason-card__head { display: flex; align-items: center; gap: 14px; }
.ap-reason-card__icon { width: 40px; height: 40px; flex: none; color: #3489e0; }
.ap-reason-card__title { font-size: 2.3rem; font-weight: 900; line-height: 1.4; }
.ap-reason-card__text { font-size: 1.7rem; color: #3D5B75; font-weight: 500; }

/* 施工実績カードのグリッド
   auto-fit（.ap-autogrid）だと記事が1〜2件のときカードが全幅まで引き伸ばされるため、
   列数を3カラムに固定し、件数が変わってもカードのサイズが変わらないようにする。
   CMSテンプレート側のラッパーが .ap-autogrid のままでも効くよう、
   「.ap-work-card を含むグリッド」も同じ扱いにする。 */
.ap-work-grid,
.ap-autogrid:has(.ap-work-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
/* 4カラム版（使う場合は .ap-work-grid--4 を後置） */
.ap-work-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .ap-work-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 896px) {
  .ap-work-grid,
  .ap-work-grid--4,
  .ap-autogrid:has(.ap-work-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .ap-work-grid,
  .ap-work-grid--4,
  .ap-autogrid:has(.ap-work-card) { grid-template-columns: minmax(0, 1fr); }
}

.ap-works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ap-work-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  /* 写真=auto / 本文=残り全部。カードを同じ高さに伸ばして日付の位置を揃える */
  grid-template-rows: auto 1fr;
  color: #14314D;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.ap-work-card:hover { color: #14314D; opacity: 1; box-shadow: 0 6px 18px rgba(20, 49, 77, 0.12); }
.ap-work-card--bordered { border: 1px solid #DDE5EC; }
.ap-work-card--bordered:hover { border-color: #3489e0; }
.ap-work-card__img {
  width: 100%;
  align-self: start;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
/* バッジ=auto / タイトル=残り / 日付=下端固定 → タイトルの行数が違っても日付が揃う */
.ap-work-card__body {
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}
.ap-work-card__title { font-size: 1.9rem; font-weight: 900; line-height: 1.5; }
.ap-cat-badge {
  justify-self: start;
  background: #3489e0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  line-height: 1.6;
}
.ap-cat-badge--lg { font-size: 1.4rem; padding: 5px 14px; }
.ap-date {
  font-family: "Barlow Semi Condensed", sans-serif;
  color: #7C93A8;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* 日付の前に時計アイコン（FontAwesome 6 regular） */
.ap-date::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  content: "\f017";
  font-size: 0.92em;
  line-height: 1;
}
.ap-date--lg { font-size: 1.7rem; }
/* カード内の日付は右寄せ＋カード下端に揃える */
.ap-work-card__body .ap-date { justify-self: end; align-self: end; }

.ap-empty { font-size: 1.7rem; font-weight: 700; color: #3D5B75; }

/* ==========================================================================
   7. 施工の流れ
   ========================================================================== */
.ap-flow-sec { position: relative; overflow: hidden; }
.ap-flow-sec > .ap-band-head,
.ap-flow-sec > .ap-container-mid { position: relative; z-index: 1; }

.ap-flow { display: grid; gap: 32px; }
.ap-flow__item {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
}
.ap-flow__num {
  position: relative;
  background: #3489e0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 28px 12px;
}
.ap-flow__item:not(:last-child) .ap-flow__num::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 14px solid #3489e0;
}
.ap-flow__num-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #EFF6FD;
  line-height: 1.4;
}
.ap-flow__num-value {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: #EFF6FD;
}
.ap-flow__body {
  background: #fff;
  border: 1px solid #DDE5EC;
  border-left: 0;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.ap-flow__head { display: grid; gap: 10px; }
.ap-flow__title { font-size: 2.2rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.4; }
.ap-flow__rule {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #3489e0 0%, #3489e0 120px, #DDE5EC 120px, #DDE5EC 100%);
}
.ap-flow__text { font-size: 1.7rem; line-height: 1.9; color: #3D5B75; font-weight: 500; }

@media (max-width: 639px) {
  .ap-flow__item { grid-template-columns: 96px 1fr; }
  .ap-flow__num { padding: 20px 6px; }
  .ap-flow__num-value { font-size: 3.2rem; }
}

/* ==========================================================================
   8. 下層ページ：ヒーロー / お悩み / 対応内容
   ========================================================================== */
.ap-hero {
  background: #14314D;
  padding: clamp(64px, 8vw, 110px) 24px;
}
.ap-hero .page-hero__overlay {
  background: linear-gradient(180deg, rgba(8, 28, 48, 0.55) 0%, rgba(8, 28, 48, 0.35) 45%, rgba(8, 28, 48, 0.6) 100%);
}
.ap-hero .page-hero__content {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  color: #fff;
}
.ap-hero__title {
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(8, 28, 48, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.ap-hero__title em { color: #FFC24A; font-style: normal; }
.ap-hero__ribbon {
  background: #3489e0;
  color: #fff;
  font-size: clamp(17px, 2.3vw, 26px);
  font-weight: 900;
  padding: 12px clamp(18px, 3vw, 38px);
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(8, 28, 48, 0.35);
}
/* 価格訴求リボン：既存リボンと並べるため配色を反転（白地×紺文字） */
.ap-hero__ribbon--price {
  background: #fff;
  color: #14314D;
}
.ap-hero__ribbon--price em {
  font-style: normal;
  color: #EB6101;
}
.ap-hero__box {
  background: rgba(255, 255, 255, 0.92);
  color: #14314D;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 44px);
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 720px;
}
.ap-hero__box-lead { font-size: clamp(18px, 2.2vw, 24px); font-weight: 900; color: #1E6BC0; }
.ap-hero__box-item { font-size: 1.6rem; font-weight: 700; color: #3D5B75; }
.ap-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 下層ページヒーロー：PCではヘッダー込みで1画面（100svh）に収める。
   横幅(vw)だけでなく画面の高さ(vh)でも各要素を頭打ちにして、
   縦の狭いPCでもボタンまでが1画面に入るようにする。 */
@media (min-width: 897px) {
  .ap-hero {
    --ap-header-h: 145px;
    min-height: calc(100svh - var(--ap-header-h));
    padding: clamp(24px, 4vh, 72px) 24px;
    display: grid;
    align-content: center;
  }
  .ap-hero .page-hero__content { gap: clamp(12px, 2.2vh, 22px); }
  .ap-hero__title { font-size: clamp(28px, min(5.2vw, 5.6vh), 60px); }
  .ap-hero__ribbon {
    font-size: clamp(16px, min(2.3vw, 2.4vh), 26px);
    padding: clamp(8px, 1.3vh, 12px) clamp(18px, 3vw, 38px);
  }
  .ap-hero__box {
    padding: clamp(14px, 2.4vh, 30px) clamp(20px, 4vw, 44px);
    gap: clamp(4px, 0.9vh, 8px);
  }
  .ap-hero__box-lead { font-size: clamp(17px, min(2.2vw, 2.3vh), 24px); }
  .ap-hero__box-item { font-size: clamp(13px, 1.7vh, 16px); }
}

/* ベタ塗りヒーロー（お問い合わせ等）：トンマナ合わせ */
.page-hero--solid .heading__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
}
.page-hero--solid .heading__ja {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ap-hero-works {
  background: #2C5E86;
  padding: clamp(48px, 6vw, 80px) 24px;
}
.ap-hero-works .page-hero__overlay {
  background: linear-gradient(90deg, rgba(10, 32, 52, 0.88) 0%, rgba(10, 32, 52, 0.6) 55%, rgba(10, 32, 52, 0.32) 100%);
}
.ap-hero-works .page-hero__content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  color: #fff;
}
.ap-hero-works__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: #A8D3F5;
  font-weight: 600;
}
.ap-hero-works__title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; line-height: 1.3; }

.ap-trouble-card {
  background: #EFF6FD;
  padding: 24px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  align-content: start;
}
.ap-trouble-card__icon { width: 44px; height: 44px; color: #3489e0; }
.ap-trouble-card__text { font-size: 1.9rem; font-weight: 900; line-height: 1.5; }

.ap-detail-card {
  border: 1px solid #DDE5EC;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ap-detail-card--plain { border: 0; }
.ap-detail-card__img {
  width: 100%;
  align-self: start;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.ap-detail-card__body { padding: 22px; display: grid; gap: 8px; }
.ap-detail-card__title { font-size: 2.2rem; font-weight: 900; line-height: 1.4; }
.ap-detail-card__text { font-size: 1.7rem; color: #3D5B75; font-weight: 500; }

.ap-lead-text { font-size: 1.8rem; font-weight: 500; color: #2B4A63; }

.ap-tel-bnr {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 0 #1B5EA6;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.ap-tel-bnr:hover { opacity: 1; }
.ap-tel-bnr:active { transform: translateY(4px); box-shadow: 0 0 0 #1B5EA6; }
.ap-tel-bnr img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   9. お問い合わせ
   ========================================================================== */
.ap-contact {
  position: relative;
  background: #EFF6FD;
  overflow: hidden;
  /* sticky ヘッダーの高さ分、アンカー移動先をずらす */
  scroll-margin-top: 140px;
}
@media (max-width: 1100px) { .ap-contact { scroll-margin-top: 84px; } }
@media (max-width: 639px)  { .ap-contact { scroll-margin-top: 74px; } }
.ap-contact__card {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 24px;
}
.ap-contact__head { display: grid; gap: 6px; text-align: center; justify-items: center; }
.ap-contact__lead { font-size: 1.7rem; font-weight: 700; color: #3D5B75; }

.ap-thanks { display: grid; gap: 16px; text-align: center; }
.ap-thanks__text { font-size: 1.8rem; font-weight: 500; color: #2B4A63; line-height: 1.9; }
.ap-thanks__note { font-size: 1.6rem; font-weight: 700; color: #3D5B75; }

.ap-form { display: grid; gap: 18px; }
.ap-form__label { display: grid; gap: 8px; font-weight: 700; font-size: 1.6rem; }
.ap-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ap-form .form-input,
.ap-form .form-select {
  width: 100%;
  font-family: inherit;
  font-size: 1.8rem;
  padding: 14px;
  border: 1px solid #C3D2DE;
  border-radius: 6px;
  font-weight: 500;
  color: #14314D;
}
.ap-form .form-input { background: #fff; }
/* select は共通CSSの矢印SVGを残すため background-color のみ差し替える */
.ap-form .form-select {
  background-color: #fff;
  padding-right: 40px;
}
.ap-form textarea.form-input { resize: vertical; }
.ap-form .form-input:focus,
.ap-form .form-select:focus { border-color: #3489e0; outline: none; }
.ap-form__req {
  background: #EB6101;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

/* ==========================================================================
   10. ブログ（施工実績）
   ========================================================================== */
.ap-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 896px) {
  .ap-blog-layout { grid-template-columns: minmax(0, 1fr); }
}

.ap-blog-main { display: grid; gap: 26px; min-width: 0; align-content: start; }

.ap-cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-cat-tabs__item {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  padding: 11px 20px;
  border-radius: 5px;
  border: 2px solid #3489e0;
  color: #1E6BC0;
  background: #fff;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.ap-cat-tabs__item:hover { background: #EFF6FD; color: #1E6BC0; opacity: 1; }
.ap-cat-tabs__item.is-active { background: #3489e0; color: #fff; }

.ap-side { display: grid; gap: 26px; min-width: 0; }
.ap-side-box {
  border: 1px solid #DDE5EC;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.ap-side-box--posts { gap: 14px; }
.ap-side-box__title {
  font-size: 1.9rem;
  font-weight: 900;
  border-bottom: 3px solid #3489e0;
  padding-bottom: 10px;
  line-height: 1.4;
}
.ap-side-link { font-size: 1.6rem; font-weight: 700; color: #14314D; }
.ap-side-link:hover { color: #EB6101; opacity: 1; }
.ap-side-post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  color: #14314D;
}
.ap-side-post:hover { color: #EB6101; opacity: 1; }
.ap-side-post img {
  width: 100%;
  align-self: start;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.ap-side-post span { font-size: 1.5rem; font-weight: 700; line-height: 1.5; }

.ap-pager { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.ap-pager__item {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #C3D2DE;
  color: #14314D;
  font-weight: 900;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.ap-pager__item:hover { background: #EFF6FD; color: #14314D; opacity: 1; }
.ap-pager__item.is-current {
  background: #3489e0;
  border-color: #3489e0;
  color: #fff;
}
.ap-pager__item--next { width: auto; padding: 0 18px; }

.ap-breadcrumb { background: #EFF6FD; padding: 14px 24px; }
.ap-breadcrumb__inner {
  max-width: 1240px;
  margin: 0 auto;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-breadcrumb__inner a { color: #1E6BC0; }
.ap-breadcrumb__sep { color: #7C93A8; }
.ap-breadcrumb__current { color: #41637F; }

.ap-entry { display: grid; gap: 24px; min-width: 0; align-content: start; }
.ap-entry__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ap-entry__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.45;
}
.ap-entry__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.ap-entry__body { display: grid; gap: 16px; font-size: 1.8rem; font-weight: 500; color: #2B4A63; }
.ap-entry__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #DDE5EC;
  padding-top: 24px;
}

.ap-ba__item { display: grid; gap: 8px; align-content: start; }
.ap-ba__label {
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  justify-self: start;
  padding: 4px 14px;
  border-radius: 3px;
}
.ap-ba__label--before { background: #41637F; }
.ap-ba__label--after { background: #EB6101; }
.ap-ba__item img {
  width: 100%;
  align-self: start;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   11. 定義リスト表
   ========================================================================== */
.ap-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  font-size: 1.6rem;
  border-top: 1px solid #DDE5EC;
}
.ap-dl dt {
  padding: 14px 16px 14px 0;
  font-weight: 900;
  border-bottom: 1px solid #DDE5EC;
  white-space: nowrap;
}
.ap-dl dd {
  padding: 14px 0;
  border-bottom: 1px solid #DDE5EC;
  font-weight: 500;
}
.ap-dl--compact dt { padding: 12px 16px 12px 0; }
.ap-dl--compact dd { padding: 12px 0; }
@media (max-width: 639px) {
  .ap-dl { grid-template-columns: 1fr; }
  .ap-dl dt { border-bottom: 0; padding-bottom: 0; white-space: normal; }
  .ap-dl dd { padding-top: 4px; }
}

.ap-map {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   12. フッター
   ========================================================================== */
/* SPは下部の追従バナー分だけフッター下に余白を確保し、
   最後までスクロールするとコピーライトがバナーの上に出るようにする */
@media (max-width: 899px) {
  .ap-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

.ap-fcta { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ap-fcta__item {
  padding: clamp(32px, 4vw, 52px) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
  transition: background 0.15s ease;
}
.ap-fcta__item:hover { color: #fff; opacity: 1; }
.ap-fcta__item--tel { background: #3489e0; }
.ap-fcta__item--tel:hover { background: #1E6BC0; }
.ap-fcta__item--mail { background: #5AA7F0; }
.ap-fcta__item--mail:hover { background: #3489e0; }
.ap-fcta__icon { width: 58px; height: 58px; flex: none; }
.ap-fcta__body { display: grid; gap: 4px; }
.ap-fcta__big {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
.ap-fcta__big--mail { font-size: clamp(32px, 3.6vw, 42px); }
.ap-fcta__note { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.1em; }

.ap-footer-body { background: #fff; padding: clamp(44px, 5vw, 72px) 24px 40px; }
.ap-footer-body__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; }
.ap-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 4vw, 56px);
  justify-content: center;
}
.ap-footer-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #14314D;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ap-footer-nav a::before {
  content: "";
  width: 9px;
  height: 11px;
  flex: none;
  background: #3489e0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ap-footer-nav a:hover { color: #EB6101; opacity: 1; }
.ap-footer-hr { height: 1px; background: #DDE5EC; }
/* SPはフッターナビを非表示（区切り線も不要になるため合わせて非表示） */
@media (max-width: 639px) {
  .ap-footer-nav,
  .ap-footer-hr { display: none; }
}
.ap-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
}
.ap-footer-logo { display: grid; gap: 6px; justify-items: center; color: #14314D; }
.ap-footer-logo:hover { color: #14314D; opacity: 0.75; }
.ap-footer-logo__en {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #1E6BC0;
}
.ap-footer-logo__ja { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.24em; }
.ap-footer-icons { display: flex; gap: 14px; justify-content: center; }
.ap-footer-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #3489e0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: background 0.15s ease;
}
.ap-footer-circle:hover { background: #1E6BC0; color: #fff; opacity: 1; }
.ap-footer-info {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #3D5B75;
}
.ap-footer-copy {
  margin-top: 10px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 1.4rem;
  color: #7C93A8;
}

/* ページトップへ戻る（共通CSSの .page-top にアイコンと配置差分を追加） */
.page-top__link::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f077";
  font-size: 1.8rem;
  line-height: 1;
}
/* SPは追従バナーの上に逃がす */
@media (max-width: 899px) {
  .page-top { bottom: 66px; }
}

/* 追従バナー */
.ap-side-bnr {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: grid;
  gap: 8px;
}
.ap-side-bnr__item {
  padding: 20px 14px;
  border-radius: 8px 0 0 8px;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  color: #fff;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.ap-side-bnr__item:hover { color: #fff; opacity: 1; }
.ap-side-bnr__icon { width: 22px; height: 22px; }
.ap-side-bnr__txt { writing-mode: vertical-rl; }
.ap-side-bnr__item--tel { background: #3489e0; box-shadow: 0 4px 0 #1B5EA6; }
.ap-side-bnr__item--tel:hover { background: #1E6BC0; }
.ap-side-bnr__item--tel:active { transform: translateY(4px); box-shadow: 0 0 0 #1B5EA6; }
.ap-side-bnr__item--mail { background: #EB6101; box-shadow: 0 4px 0 #A94500; }
.ap-side-bnr__item--mail:hover { background: #c94f00; }
.ap-side-bnr__item--mail:active { transform: translateY(4px); box-shadow: 0 0 0 #A94500; }

.ap-bottom-bnr {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}
.ap-bottom-bnr__item {
  padding: 9px 10px;
  padding-bottom: max(9px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 1px;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #fff;
}
.ap-bottom-bnr__item:hover { color: #fff; opacity: 1; }
.ap-bottom-bnr__item--tel { background: #3489e0; }
.ap-bottom-bnr__item--mail { background: #EB6101; }
.ap-bottom-bnr__icon { width: 19px; height: 19px; }

@media (max-width: 899px) {
  .ap-side-bnr { display: none; }
  .ap-bottom-bnr { display: grid; }
}

/* ==========================================================================
   13. スクロールフェードイン（インタラクション：低〜中）
   ========================================================================== */
.ap-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.ap-fade.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .ap-fade { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   14. SP調整
   ========================================================================== */
/* 中央寄せの長文はSPで行末がガタつくため左寄せに戻す（見出し・短いラベルは中央のまま） */
@media (max-width: 639px) {
  .ap-emergency__lead,
  .ap-contact__lead,
  .ap-hero__box-item {
    text-align: left;
  }
  .ap-hero__box { justify-items: stretch; }
  .ap-hero__box-lead { text-align: center; }
  .ap-thanks { text-align: left; }

  /* 下層ページヒーローの見出しを <br> の位置どおり2行で収める */
  .ap-hero__title { font-size: clamp(19px, 6.2vw, 30px); }
  /* リボン：2行になっても崩れないよう行間と中央揃えを整える */
  .ap-hero__ribbon {
    text-align: center;
    line-height: 1.5;
    padding: 10px 16px;
  }

  /* 緊急対応バッジ：2行になるので行間と中央揃えを整える */
  .ap-badge-orange {
    text-align: center;
    line-height: 1.5;
    font-size: 1.6rem;
    padding: 8px 16px;
  }

  /* 見出しを2行（<br>の位置どおり）で収める */
  .ap-emergency__title {
    font-size: clamp(17px, 5.6vw, 26px);
    text-align: center;
  }

  /* 選ばれる理由：アイコンを中央、小見出しはその下に1行で置く */
  .ap-reason-card { padding: 24px 20px; }
  .ap-reason-card__head {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .ap-reason-card__title {
    text-align: center;
    white-space: nowrap;
    font-size: clamp(15px, 4.9vw, 23px);
  }
}

/* ==========================================================================
   15. CMSフォーム（cms_ajax 出力）の上書き
   CMSが後から生成・注入するHTMLとCSSを上書きする必要があるため、
   このセクションに限り !important を使用する。
   ========================================================================== */

/* 送信ボタン：サイト共通のCTAボタン（.ap-btn--submit）に合わせる＋中央配置 */
.ap-contact .submit-btn,
.form-pattern-1 .submit-btn,
.submit-btn {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 10px auto 0 !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #EB6101 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 0 #A94500 !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease !important;
}
.submit-btn:hover {
  background: #c94f00 !important;
  color: #fff !important;
  opacity: 1 !important;
}
.submit-btn:active {
  transform: translateY(4px) !important;
  box-shadow: 0 0 0 #A94500 !important;
}

/* 送信ボタンの親（CMS側が左寄せで出力する場合の中央寄せ保険） */
.ap-contact .form-pattern-1 .btn-area,
.ap-contact .form-pattern-1 .submit-area {
  text-align: center !important;
}

/* 「必須」バッジ：CMS既定の赤(#ff4f4f)をサイトのアクセントカラーに */
.form-pattern-1 dl dt:not(.pattern-exclusion) span.required::before {
  content: '必須' !important;
  color: #fff !important;
  background: #EB6101 !important;
}
