/* --------------------------------------------------------------------------
   スコープ内リセット
   -------------------------------------------------------------------------- */
.p-lp__footer,
.p-lp__footer::before,
.p-lp__footer::after,
.p-lp__footer *,
.p-lp__footer *::before,
.p-lp__footer *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.p-lp__footer {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

/* :where() で詳細度を 0 にし、既存CSSの要素セレクタ (0,0,1) には勝ちつつ
   後述のコンポーネント指定 (0,1,0) を上書きしないようにする */
.p-lp__footer :where(h2, h3, p, ul, li, div, span, nav, section) {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.p-lp__footer :where(ul, li) {
  list-style: none;
}

.p-lp__footer :where(a) {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  outline: 0;
}

.p-lp__footer :where(img) {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
}

.p-lp__footer :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-align: left;
  -webkit-appearance: none;
          appearance: none;
}

/* --------------------------------------------------------------------------
   共通パーツ : 矢印 (Figma 4x8 / stroke 1px)
   -------------------------------------------------------------------------- */
.p-lp__footer-arrow {
  position: relative;
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  width: 4px;
  height: 8px;
  color: #333;
}

.p-lp__footer-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5.657px;
  height: 5.657px;
  margin: -2.828px 0 0 -2.828px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

/* ==========================================================================
   PC (Figma 113:91 / 1280px)
   ========================================================================== */
.p-lp__footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  /* 上は0。コンテンツとの境界線は最初のセクションに持たせ、
     内部のセクション区切り線と同じ内寄せ幅(1200px)にそろえる */
  padding: 0 40px 40px;
}

.p-lp__footer-sec + .p-lp__footer-sec,
.p-lp__footer-sec + .p-lp__footer-bottom {
  margin-top: 40px;
}

.p-lp__footer-sec:first-child,
.p-lp__footer-sec--bordered {
  padding-top: 40px;
  border-top: 1px solid #e1e1e1;
}

.p-lp__footer-ttl {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: #333;
}

/* --- 1. 各種お問い合わせはこちら (113:92) ------------------------------- */
.p-lp__footer-contact {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 32px;
  margin-top: 20px;
  padding: 0 1px;
}

.p-lp__footer-ctas {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  gap: 16px;
  max-width: 813.34px;
  min-width: 0;
}

/* background-image (グラデーション) は CSS で補間できずホバーが瞬時に切り替わるため、
   下地を淡色 (#f0f7fc) で固定し、グラデーションは ::before に載せて
   opacity でクロスフェードさせる。 */
.p-lp__footer-cta {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 1 1 398.67px;
      flex: 1 1 398.67px;
  -ms-flex-align: center;
      align-items: center;
  min-width: 0;
  height: 102px; /* Figma 113:96 = 枠線込み 102px (中身 100px) */
  padding: 12px 16px 12px 20px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background-color: #f0f7fc;
  color: #333;
  isolation: isolate;
  -webkit-transition: color .25s ease;
          transition: color .25s ease;
}

.p-lp__footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background-image: -webkit-gradient(linear, left top, right top, from(#11ade6), to(#2b5fad));
  background-image: linear-gradient(90deg, #11ade6 0%, #2b5fad 100%);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity .25s ease;
          transition: opacity .25s ease;
}

/* 疑似要素より前面に出す */
.p-lp__footer-cta-illust,
.p-lp__footer-cta-txt,
.p-lp__footer-cta-arrow {
  position: relative;
  z-index: 1;
}

.p-lp__footer-cta--primary {
  -webkit-box-shadow: 4px 4px 8px 0 rgba(22, 50, 89, .13);
          box-shadow: 4px 4px 8px 0 rgba(22, 50, 89, .13);
}

.p-lp__footer-cta--secondary {
  -webkit-box-shadow: 4px 4px 4px 0 rgba(22, 50, 89, .13);
          box-shadow: 4px 4px 4px 0 rgba(22, 50, 89, .13);
}

.p-lp__footer-cta-illust {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  margin-right: 16px;
}

.p-lp__footer-cta--primary .p-lp__footer-cta-illust {
  width: 78px;
  height: 67px;
}

.p-lp__footer-cta--secondary .p-lp__footer-cta-illust {
  width: 53px;
  height: 66px;
}

.p-lp__footer-cta-txt {
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.p-lp__footer-cta-arrow {
  position: relative;
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 12px;
}

.p-lp__footer-cta-arrow-img {
  width: 18px;
  height: 18px;
  -webkit-transition: opacity .25s ease;
          transition: opacity .25s ease;
}

.p-lp__footer-cta-arrow-img--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* 電話 (113:195) */
.p-lp__footer-tel {
  display: -ms-grid;
  display: grid;
  -ms-flex: 1 1 0px;
      flex: 1 1 0px;
  grid-template-columns: auto auto;
  -ms-flex-pack: start;
      justify-content: start;
  -ms-flex-align: center;
      align-items: center;
  column-gap: 4px;
  row-gap: 4px;
}

.p-lp__footer-tel-ico {
  position: relative;
  display: block;
  grid-row: 1 / 3;
  grid-column: 1;
  width: 80px;
  height: 66.087px;
  background: #fff;
  border-radius: 2px;
}

.p-lp__footer-tel-ico img {
  position: absolute;
  top: 9.92px;
  left: 18.18px;
  width: 44.602px;
  height: 45.542px;
}

.p-lp__footer-tel-time {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  color: #333;
  text-align: center;
  white-space: nowrap;
}

.p-lp__footer-tel-num {
  grid-column: 2;
  grid-row: 2;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: #333;
  text-align: center;
  white-space: nowrap;
}

.p-lp__footer-tel-num a {
  color: inherit;
  pointer-events: none;
}

/* 「電話で相談する」はSP専用の表記 */
.p-lp__footer-tel-label {
  display: none;
}

/* --- 2. 料金表のダウンロード (113:206) --------------------------------- */
.p-lp__footer-cards {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
      align-items: flex-start;
  gap: 24px;
  margin-top: 20px;
  padding: 0 1px;
}

.p-lp__footer-card {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  -ms-flex-direction: column;
      flex-direction: column;
  width: 280px;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  overflow: hidden;
}

.p-lp__footer-card-thumb {
  display: block;
  width: 100%;
  line-height: 0;
}

.p-lp__footer-card-thumb img {
  width: 100%;
  height: auto;
}

.p-lp__footer-card-label {
  display: none;
}

/* ダウンロードバー。knowhow ヘッダーの .p-gnav__card-link と同方式で、
   通常は淡色、ホバーでグラデーションを opacity クロスフェードさせる。 */
.p-lp__footer-card-bar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  -ms-flex-pack: justify;
      justify-content: space-between;
  min-height: 44.53px;
  padding: 8px 12px;
  border-top: 1px solid #f1f1f1;
  background-color: #f0f7fc;
  color: #333;
  isolation: isolate;
  -webkit-transition: color .25s ease;
          transition: color .25s ease;
}

.p-lp__footer-card-bar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: -webkit-gradient(linear, left top, right top, from(#11ade6), to(#2b5fad));
  background-image: linear-gradient(90deg, #11ade6 0%, #2b5fad 100%);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity .25s ease;
          transition: opacity .25s ease;
}

.p-lp__footer-card-bar-txt,
.p-lp__footer-card-icon {
  position: relative;
  z-index: 1;
}

.p-lp__footer-card-bar-txt {
  font-size: 15px;
  font-weight: 700;
  line-height: 19.6px;
}

.p-lp__footer-card-icon {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.p-lp__footer-card-icon-img {
  width: 16px;
  height: 16px;
  -webkit-transition: opacity .25s ease;
          transition: opacity .25s ease;
}

.p-lp__footer-card-icon-img--hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.p-lp__footer-morelink {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 0 4px 8px 0;
  border-bottom: 1px solid #333;
  -webkit-transition: color .2s ease, border-color .2s ease;
          transition: color .2s ease, border-color .2s ease;
}

.p-lp__footer-morelink-txt {
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  color: inherit;
}

.p-lp__footer-morelink .p-lp__footer-arrow {
  color: inherit;
}

/* --- 3. サイトマップ (113:227) ------------------------------------------ */
.p-lp__footer-sitemap {
  padding-left: 2px;
  padding-right: 2px;
}

.p-lp__footer-ttl--top a {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 8px;
  -webkit-transition: color .2s ease;
          transition: color .2s ease;
}

.p-lp__footer-ttl--top img {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.p-lp__footer-cols {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex-align: start;
      align-items: flex-start;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 32px 24px;
  margin-top: 32px;
  padding: 0 1px;
}

.p-lp__footer-col {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
}

.p-lp__footer-col--service { width: 202px; }
.p-lp__footer-col--case    { width: 197px; }
.p-lp__footer-col--knowhow { width: 221px; }
.p-lp__footer-col--area    { width: 266px; }

.p-lp__footer-col-btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 4px;
}

/* PCではアコーディオンを使わないので、見出しを通常テキストとして扱う。
   front.css の [type="button"] { cursor: pointer } が lp.css より後に
   読まれ、同じ詳細度 (0,1,0) で後勝ちするため、ここだけ詳細度を上げる。 */
.p-lp__footer .p-lp__footer-col-btn {
  cursor: default;
  -webkit-user-select: text;
     -moz-user-select: text;
      -ms-user-select: text;
          user-select: text;
}

.p-lp__footer-col-txt {
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  color: #1b92e8;
}

.p-lp__footer-col-ico {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
}

.p-lp__footer-col--service .p-lp__footer-col-ico { width: 18px; height: 18px; }
.p-lp__footer-col--case    .p-lp__footer-col-ico { width: 20px; height: 20px; }
.p-lp__footer-col--knowhow .p-lp__footer-col-ico { width: 22px; height: 22px; }
.p-lp__footer-col--area    .p-lp__footer-col-ico { width: 22px; height: 22px; }

.p-lp__footer-col-arrow {
  display: none;
}

.p-lp__footer-panel-inner {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: start;
      align-items: flex-start;
  gap: 16px;
  padding: 20px 1px 0;
}

.p-lp__footer-listlink {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 31px;
  width: 100%;
  padding: 0 4px 6px 0;
  border-bottom: 1px solid #9e9e9e;
  color: #333;
  -webkit-transition: color .2s ease, border-color .2s ease;
          transition: color .2s ease, border-color .2s ease;
}

.p-lp__footer-col--service .p-lp__footer-listlink {
  width: auto;
}

.p-lp__footer-listlink-txt {
  -ms-flex: 1 1 auto;
      flex: 1 1 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}

.p-lp__footer-col--service .p-lp__footer-listlink-txt {
  -ms-flex: 0 0 156px;
      flex: 0 0 156px;
  width: 156px;
}

.p-lp__footer-listlink .p-lp__footer-arrow {
  color: inherit;
}

/* ノウハウ列のみ一覧リンクとリストの間隔が 12px (113:318)。
   見出しアイコンが 22px で高い分を詰め、リスト開始位置をサービス列と揃える意図。 */
.p-lp__footer-col--knowhow .p-lp__footer-panel-inner {
  gap: 12px;
}

.p-lp__footer-col--knowhow .p-lp__footer-listlink {
  margin: 0 2px;
  width: calc(100% - 4px);
}

.p-lp__footer-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: start;
      align-items: flex-start;
  gap: 12px;
}

.p-lp__footer-col--knowhow .p-lp__footer-list {
  margin: 0 2px;
}

.p-lp__footer-list-item a {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 4px;
  padding-left: 1px;
  color: #707070;
  -webkit-transition: opacity .2s ease;
          transition: opacity .2s ease;
}

.p-lp__footer-list-item a::before {
  content: "\2212";
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.p-lp__footer-list-body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-align: start;
      align-items: flex-start;
  -ms-flex-pack: center;
      justify-content: center;
  margin-left: -6px;
}

.p-lp__footer-list-body--inline {
  -ms-flex-direction: row;
      flex-direction: row;
  -ms-flex-align: center;
      align-items: center;
  margin-left: 0;
}

.p-lp__footer-list-main {
  padding-left: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  white-space: nowrap;
}

.p-lp__footer-list-body--inline .p-lp__footer-list-main {
  padding-left: 0;
}

/* サービス列のみ Figma は leading 1.4 (113:259 / 113:266) -> 14px*1.4=19.6 を 20px に丸め */
.p-lp__footer-col--service .p-lp__footer-list-main {
  line-height: 20px;
}

.p-lp__footer-list-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  white-space: nowrap;
}

.p-lp__footer-col--area .p-lp__footer-panel-inner {
  padding-left: 0;
  padding-right: 0;
}

.p-lp__footer-areas {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex-align: start;
      align-items: flex-start;
  width: 266px;
  max-width: 100%;
  padding: 0 1px;
}

/* --- 4. ロゴ / 規約リンク (113:369) ------------------------------------- */
.p-lp__footer-bottom {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 77px;
  padding-top: 48px;
  border-top: 1px solid #a9a9a9;
  background: #fff;
}

.p-lp__footer-logo {
  -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  width: 275px;
}

.p-lp__footer-logo img {
  width: 100%;
  height: auto;
}

.p-lp__footer-nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  gap: 23.62px;
}

.p-lp__footer-nav a {
  display: block; /* inline のままだと strut とのベースライン差で行箱が 1px 高くなる */
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  color: #333;
  -webkit-transition: color .2s ease;
          transition: color .2s ease;
}

/* ==========================================================================
   SP (Figma 113:374 / 113:430 / 375px)
   ========================================================================== */
@media screen and (max-width: 767px) {

  /* SPは Figma 値から フォントサイズ +1px / 行間 +4px して運用 */

  .p-lp__footer-inner {
    max-width: none;
    padding: 0 16px 40px;
  }

  .p-lp__footer-sec + .p-lp__footer-sec,
  .p-lp__footer-sec + .p-lp__footer-bottom {
    margin-top: 30px;
  }

  .p-lp__footer-sec--bordered {
    padding-top: 32px;
  }

  .p-lp__footer-ttl {
    font-size: 16px;
    line-height: 22px;
  }

  /* 大項目（各種お問い合わせ / 料金表のダウンロード / TOPページ）に対して、
     その配下（中項目以下）を 16px インデントして階層を分かりやすくする */
  .p-lp__footer-contact,
  .p-lp__footer-cards,
  .p-lp__footer-cols {
    padding-left: 16px;
  }

  /* トグルboxは右端に開閉矢印があるため、右にも同じ16pxをとる */
  .p-lp__footer-cols {
    padding-right: 16px;
  }

  /* 下線が伸びないよう margin で寄せる */
  .p-lp__footer-morelink {
    margin-left: 16px;
    /* 「サービス一覧」の下線 (1px #9e9e9e) と濃さをそろえる */
    border-bottom-color: #9e9e9e;
  }

  /* --- 1. 各種お問い合わせ (113:431) ----------------------------------- */
  .p-lp__footer-contact {
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: start;
        align-items: flex-start;
    gap: 12px;
  }

  .p-lp__footer-ctas {
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    gap: 12px;
    max-width: none;
  }

  .p-lp__footer-cta {
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    display: block;
    width: 178px;
    height: auto;
    min-height: 17px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    color: #707070;
  }

  .p-lp__footer-cta::before {
    content: none;
  }

  .p-lp__footer-cta-illust,
  .p-lp__footer-cta-arrow {
    display: none;
  }

  .p-lp__footer-cta-txt {
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    color: inherit;
  }

  /* 電話 (113:438) */
  /* 電話はSPでは「電話で相談する」のテキストリンクにし、
     上2つ（適切なプランを相談する / サービス資料を受け取る）と同列に見せる。
     アイコン・受付時間・番号は非表示（受付時間は追従CTAにもあるため省略） */
  .p-lp__footer-tel {
    display: block;
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    width: auto;
    margin-left: 0;
  }

  .p-lp__footer-tel-ico,
  .p-lp__footer-tel-time,
  .p-lp__footer-tel-digits {
    display: none;
  }

  .p-lp__footer-tel-label {
    display: inline;
  }

  .p-lp__footer-tel-num {
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    color: #707070;
    text-align: left;
  }

  .p-lp__footer-tel-num a {
    pointer-events: auto;
  }

  /* --- 2. 料金表のダウンロード (113:447) ------------------------------- */
  .p-lp__footer-cards {
    -ms-flex-direction: column;
        flex-direction: column;
    gap: 8px;
    padding: 0 0 0 16px;
  }

  .p-lp__footer-card {
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .p-lp__footer-card-thumb,
  .p-lp__footer-card-bar {
    display: none;
  }

  .p-lp__footer-card-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    color: #707070;
  }

  .p-lp__footer-morelink {
    margin-top: 20px;
    padding: 0 4px 8px 0;
  }

  .p-lp__footer-morelink-txt {
    font-size: 14px;
    line-height: 20px;
  }

  /* --- 3. サイトマップ (113:460) --------------------------------------- */
  .p-lp__footer-ttl--top img {
    width: 16px;
    height: 16px;
  }

  /* 中項目の開始位置を 16px ちょうどに揃えるため、既存の 1〜2px のズレを打ち消す */
  .p-lp__footer-sitemap {
    padding-left: 0;
    padding-right: 0;
  }

  .p-lp__footer-cols {
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: stretch;
        align-items: stretch;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    gap: 20px;
    margin-top: 24px;
  }

  .p-lp__footer-col,
  .p-lp__footer-col--service,
  .p-lp__footer-col--case,
  .p-lp__footer-col--knowhow,
  .p-lp__footer-col--area {
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9d9d9;
    -webkit-transition: padding-bottom .3s ease;
            transition: padding-bottom .3s ease;
  }

  .p-lp__footer-col.is-open {
    padding-bottom: 16px;
  }

  .p-lp__footer-col-btn {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
        align-items: center;
    gap: 4px;
    width: 100%;
  }

  /* SPはアコーディオンの開閉ボタンとして機能させる */
  .p-lp__footer .p-lp__footer-col-btn {
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }

  .p-lp__footer-col-txt {
    -ms-flex: 1 1 auto;
        flex: 1 1 auto;
    font-size: 15px;
    line-height: 21px;
  }

  .p-lp__footer-col-ico {
    display: none;
  }

  .p-lp__footer-col-arrow {
    position: relative;
    display: block;
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    width: 8px;
    height: 4px;
    color: #1b92e8;
  }

  .p-lp__footer-col-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5.657px;
    height: 5.657px;
    margin: -2.828px 0 0 -2.828px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    -webkit-transform: translateY(-2px) rotate(135deg);
            transform: translateY(-2px) rotate(135deg);
    -webkit-transition: -webkit-transform .3s ease;
            transition: transform .3s ease;
  }

  .p-lp__footer-col.is-open .p-lp__footer-col-arrow::before {
    -webkit-transform: translateY(2px) rotate(-45deg);
            transform: translateY(2px) rotate(-45deg);
  }

  /* アコーディオン開閉 (JSで height を制御) */
  .p-lp__footer-panel {
    overflow: hidden;
  }

  .p-lp__footer-panel.is-collapsed {
    height: 0;
    /* 高さ0のまま中のリンクにタブ移動できてしまうのを防ぐ */
    visibility: hidden;
  }

  .p-lp__footer-panel-inner {
    gap: 12px;
    padding: 12px 0 0;
  }

  .p-lp__footer-col--area .p-lp__footer-panel-inner {
    padding-top: 20px;
  }

  .p-lp__footer-listlink,
  .p-lp__footer-col--service .p-lp__footer-listlink,
  .p-lp__footer-col--knowhow .p-lp__footer-listlink {
    width: auto;
    margin: 0;
    gap: 16px;
    padding: 0 2px 4px 0;
  }

  .p-lp__footer-listlink-txt,
  .p-lp__footer-col--service .p-lp__footer-listlink-txt {
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    width: auto;
    font-size: 14px;
    line-height: 20px;
  }

  .p-lp__footer-list,
  .p-lp__footer-col--knowhow .p-lp__footer-list {
    gap: 8px;
    margin: 0;
  }

  .p-lp__footer-list-item a {
    gap: 0;
    padding-left: 0;
  }

  .p-lp__footer-list-item a::before {
    display: none;
  }

  .p-lp__footer-list-body {
    -ms-flex-direction: row;
        flex-direction: row;
    -ms-flex-align: center;
        align-items: center;
    /* PC指定の justify-content: center は縦方向の中央揃え用。
       SPは横方向になるため、折り返した行が中央寄せにならないよう左揃えに戻す */
    -ms-flex-pack: start;
        justify-content: flex-start;
    /* 最長項目が1行に収まらない幅では括弧部分の折り返しを許可する */
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-left: 0;
  }

  .p-lp__footer-list-main {
    padding-left: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .p-lp__footer-col--service .p-lp__footer-list-main {
    line-height: 22px;
  }

  .p-lp__footer-list-sub {
    font-size: 13px;
    line-height: 21px;
  }

  .p-lp__footer-areas {
    -ms-flex-pack: start;
        justify-content: flex-start;
    gap: 24px;
    width: auto;
    padding-left: 0;
  }

  /* --- 4. ロゴ / 規約リンク (113:559) ---------------------------------- */
  .p-lp__footer-bottom {
    -ms-flex-direction: column;
        flex-direction: column;
    -ms-flex-align: center;
        align-items: center;
    gap: 16px;
    padding-top: 32px;
  }

  .p-lp__footer-logo {
    width: 180px;
  }

  /* ロゴを上、規約リンクを下の横並びにする */
  .p-lp__footer-nav {
    -ms-flex-direction: row;
        flex-direction: row;
    -ms-flex-pack: center;
        justify-content: center;
    gap: 24px;
  }

  .p-lp__footer-nav a {
    font-size: 13px;
    line-height: 25px;
  }
}

/* ==========================================================================
   タブレット (768px 〜 1279px) : PCレイアウトのまま破綻させない
   ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 1279px) {

  .p-lp__footer-inner {
    padding: 0 24px 40px;
  }

  /* CTA2枚 + 電話が 1行に収まらない幅では電話を折り返す */
  .p-lp__footer-contact {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 24px 32px;
  }

  /* CTA2枚で 688px を下回ると文言が2行になるため、
     それ以上を確保できない幅では電話ブロックを次の行へ送る */
  .p-lp__footer-ctas {
    -ms-flex: 1 1 700px;
        flex: 1 1 700px;
  }

  .p-lp__footer-tel {
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
  }

  .p-lp__footer-cta-txt {
    font-size: 16px;
  }

  /* サイトマップ4カラムは2カラム折り返し */
  .p-lp__footer-cols {
    -ms-flex-pack: start;
        justify-content: flex-start;
    gap: 32px 40px;
  }

  .p-lp__footer-bottom {
    gap: 40px;
  }
}

/* ==========================================================================
   ホバー (Figma 113:564 / 118:56 / 仕様コメント 118:340)
   タッチ端末では発火させない
   ========================================================================== */
@media (any-hover: hover) {

  /* お問い合わせCTA / 料金表カード共通:
     通常は淡色、ホバーでグラデーションへクロスフェードする */
  .p-lp__footer-cta:hover,
  .p-lp__footer-card:hover .p-lp__footer-card-bar {
    color: #fff;
  }

  .p-lp__footer-cta:hover::before,
  .p-lp__footer-card:hover .p-lp__footer-card-bar::before {
    opacity: 1;
  }

  .p-lp__footer-cta:hover .p-lp__footer-cta-arrow-img--default,
  .p-lp__footer-card:hover .p-lp__footer-card-icon-img--default {
    opacity: 0;
  }

  .p-lp__footer-cta:hover .p-lp__footer-cta-arrow-img--hover,
  .p-lp__footer-card:hover .p-lp__footer-card-icon-img--hover {
    opacity: 1;
  }

  /* 「TOPページ」は青文字にします */
  .p-lp__footer-ttl--top a:hover {
    color: #1b92e8;
  }

  /* 「一覧」は、テキスト及び下線と矢印も青にします */
  .p-lp__footer-listlink:hover,
  .p-lp__footer-morelink:hover {
    border-color: #1b92e8;
    color: #1b92e8;
  }

  /* 孫にあたる「−」のテキストは透明度50%にします */
  .p-lp__footer-list-item a:hover {
    opacity: .5;
  }

  .p-lp__footer-nav a:hover {
    color: #1b92e8;
  }
}

/* ==========================================================================
   追従CTAとの重なり回避
   固定バーがあるページだけ、バーの高さぶんフッター下端に余白を確保する。
   バーはフッターより後ろ (dr/agent) にも置かれるため後方参照できない。
   body直下の構成がページごとに異なることを利用し、先行する兄弟要素で判定する。

     トップ    body > .column_header_wrap > main.mod_main > footer
     knowhow  body > .p-header > .column_wrap    > footer   ← 固定バー無し
     dr/agent body > .p-header > main.mod_main   > footer > #js-fixed-cta
   ========================================================================== */

/* トップ : .column_fixed_footer  (〜460px 96px / 461px〜 84px) */
.column_header_wrap ~ .p-lp__footer {
  padding-bottom: 96px;
}

@media screen and (min-width: 461px) {
  .column_header_wrap ~ .p-lp__footer {
    padding-bottom: 84px;
  }
}

/* dr/agent : #js-fixed-cta  (〜767px 61px / 768px〜 幅に比例し最大100px) */
.p-header ~ main.mod_main ~ .p-lp__footer {
  padding-bottom: 61px;
}

@media screen and (min-width: 768px) {
  .p-header ~ main.mod_main ~ .p-lp__footer {
    /* dr_agent.css の .p-fixed-cta { height: 10rem } × html { font-size: .877vw } 相当 */
    padding-bottom: 100px;
    padding-bottom: min(8.772vw, 100px);
  }
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  .p-lp__footer *,
  .p-lp__footer *::before,
  .p-lp__footer *::after {
    -webkit-transition-duration: .01ms !important;
            transition-duration: .01ms !important;
  }
}