@charset "UTF-8";
/* ────────────────────── *
 * 既存CSS（common.css / common-s.css）への追加・上書き
 * common-s.css の直後に読み込む。外すときは header.php の読み込み1行を消す
 * ────────────────────── */

/* フッターのサイトマップ: 子リンクを持つ項目（.has-sub）は1段を占有する。並び順に依存しない */
#sitemap .inner ul.nav > li.has-sub {
    width: 100%;
}
@media only screen and (min-width: 0px) and (max-width: 640px) {
    /* common-s.css の「先頭2項目を全幅」を打ち消し、.has-sub だけ全幅にする */
    #sitemap .inner ul.nav > li:nth-child(1),
    #sitemap .inner ul.nav > li:nth-child(2) {
        width: 50%;
    }
    #sitemap .inner ul.nav > li.has-sub {
        width: 100%;
    }
}

/* ────────────────────── *
 * SP固定フッター（お問い合わせ／電話 名古屋・東京／TOP）。HTMLは footer.php
 * ────────────────────── */
.sp-fixed-cta {
    display: none;
}
@media only screen and (min-width: 0px) and (max-width: 640px) {
  .sp-fixed-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96);
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
    box-sizing: border-box;
  }
  .sp-fixed-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 8px;
    min-height: 48px;
    box-sizing: border-box;
  }
  .sp-fixed-cta__contact { flex: 1; background: #1254ae; color: #fff; white-space: nowrap; gap: 4px; padding: 0 4px; font-size: clamp(11px, 3.4vw, 14px); }
  .sp-fixed-cta__contact img { width: clamp(22px, 8vw, 34px); height: clamp(22px, 8vw, 34px); object-fit: contain; }
  /* 電話: 黄色の箱の中に [TELマーク][名古屋][東京] */
  .sp-fixed-cta__tel {
    flex: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 5px;
    background: #f8e040;
    border-radius: 8px;
    min-height: 48px;
    box-sizing: border-box;
  }
  /* TELマークは左の「お問い合わせ」のマークと同じ大きさ */
  .sp-fixed-cta__tel img { flex: none; width: clamp(22px, 8vw, 34px); height: clamp(22px, 8vw, 34px); object-fit: contain; }
  .sp-fixed-cta .sp-fixed-cta__tel a {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    padding: 0 2px;
    border-radius: 6px;
    background: #fff;
    color: #1254ae;
    border: 1.5px solid #1254ae;
    font-size: clamp(11px, 3.4vw, 14px);
    white-space: nowrap;
  }
  .sp-fixed-cta__top     { flex: 0 0 48px; padding: 0; }
  .sp-fixed-cta__top img { width: 48px; height: 48px; display: block; }

  /* 固定フッター（高さ約61px＋iPhoneのホームバー分）でサイトフッターが隠れないよう、最下部に余白 */
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  /* 既存の追従要素は固定フッターに置き換える */
  #pagetop,
  .btn-floating,
  .bnr-dl {
    display: none !important;
  }
}
