@charset "UTF-8";


/* =========================================================
   借地権相談所 フッター リデザイン
   - footer.php 内で読み込み（/css/site-footer.css）
   - PC：1025px以上 / スマホ・タブレット：1024px以下（ヘッダーと同じ）
   ========================================================= */
.siteFooter {
  --sf-orange: #ee7800;
  --sf-orange-dark: #c96400;
  --sf-orange-pale: #fff4e8;
  --sf-bg: #faf6f1;
  --sf-text: #333;
  --sf-sub: #666;
  --sf-line: #e8e0d6;
  background: var(--sf-bg);
  color: var(--sf-text);
  line-height: 1.6;
  text-align: left;
}
.siteFooter a { color: inherit; text-decoration: none; }
.siteFooter ul { list-style: none; margin: 0; padding: 0; }
.sfInner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 相談CTA帯 ---------- */
.sfCta { background: linear-gradient(135deg, #f39a3d, var(--sf-orange)); color: #fff; }
.sfCta .sfInner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 36px; padding-bottom: 36px;
}
.sfCta__lead { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.4; }
.sfCta__sub  { margin: 6px 0 0; font-size: 14px; opacity: .9; }
.sfCta__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.sfCta__tel { display: block; text-align: center; color: #fff !important; }
.sfCta__telNum { display: block; font-size: 30px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.sfCta__telNum::before { content: "☎"; margin-right: 6px; font-size: .8em; }
.sfCta__telHours { display: block; font-size: 12px; opacity: .9; }
.sfCta__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 170px; padding: 14px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s;
}
.sfCta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.sfCta__btn--main { background: #fff; color: var(--sf-orange-dark) !important; }
.sfCta__btn--sub  { border: 2px solid #fff; color: #fff !important; }

/* ---------- サイトマップ ---------- */
.sfMap .sfInner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 48px;
}
.sfGroup { margin: 0; }
.sfGroup + .sfGroup { margin-top: 32px; }
.sfGroup > summary { list-style: none; }
.sfGroup > summary::-webkit-details-marker { display: none; }
.sfGroup__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--sf-line);
  font-size: 16px; font-weight: 700;
}
.sfGroup__title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--sf-orange); }
.sfGroup__title a:hover { color: var(--sf-orange); }

.sfSubGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.sfSub__title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--sf-orange-dark); }

.sfList a {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0; font-size: 14px; transition: color .15s;
}
.sfList a::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 9px;
  border-top: 2px solid var(--sf-orange); border-right: 2px solid var(--sf-orange); transform: rotate(45deg);
}
.sfList a:hover { color: var(--sf-orange); }

/* ---------- 下段（会社情報・バナー・SNS） ---------- */
.sfBottom { border-top: 1px solid var(--sf-line); }
.sfBottom .sfInner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: center;
  padding-top: 36px; padding-bottom: 36px;
}
.sfCompany__logo img { max-width: 360px; width: 100%; height: auto; }
.sfCompany__addr { margin: 12px 0 0; font-style: normal; font-size: 14px; color: var(--sf-sub); }

.sfBanners { display: grid; gap: 12px; }
.sfBanners a { display: block; border: 1px solid var(--sf-line); background: #fff; border-radius: 6px; overflow: hidden; transition: box-shadow .15s; }
.sfBanners a:hover { box-shadow: 0 4px 12px rgba(60,40,20,.12); }
.sfBanners img { display: block; width: 100%; height: auto; }

.sfSns__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; text-align: center; }
.sfSns__list { display: flex; justify-content: center; gap: 16px; }
.sfSns__list img { display: block; width: 44px; height: 44px; transition: transform .15s; }
.sfSns__list a:hover img { transform: translateY(-2px); }

.sfLegal { border-top: 1px solid var(--sf-line); }
.sfLegal .sfInner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.sfLegal a { font-size: 13px; color: var(--sf-sub); }
.sfLegal a:hover { color: var(--sf-orange); }

.sfCopy { display: block; padding: 16px; background: var(--sf-orange); color: #fff; text-align: center; font-size: 12px; }

/* ---------- タブレット・スマホ（1024px以下） ---------- */
@media (max-width: 1024px) {
  .sfCta .sfInner { flex-direction: column; text-align: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  .sfCta__lead { font-size: 20px; }
  .sfCta__actions { flex-direction: column; width: 100%; max-width: 360px; }
  .sfCta__btn { width: 100%; }

  /* サイトマップはアコーディオン */
  .sfMap .sfInner { display: block; padding-top: 24px; padding-bottom: 24px; }
  .sfGroup + .sfGroup { margin-top: 0; }
  .sfGroup { border-bottom: 1px solid var(--sf-line); }
  .sfGroup > summary { cursor: pointer; }
  .sfGroup__title { margin: 0; padding: 16px 4px; border: 0; justify-content: flex-start; }
  .sfGroup__title::after {
    content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; color: var(--sf-orange); line-height: 1;
  }
  .sfGroup[open] .sfGroup__title::after { content: "−"; }
  .sfGroup__title a { pointer-events: none; } /* タップは開閉に使う（一覧ページへはリスト先頭のリンクから） */
  .sfGroup__body { padding: 0 4px 16px; }
  .sfSubGrid { grid-template-columns: 1fr; gap: 14px; }
  .sfList a { padding: 9px 0; border-bottom: 1px dashed var(--sf-line); }

  .sfBottom .sfInner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .sfCompany__logo img { max-width: 280px; }
  .sfBanners { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .sfList__top { display: none; } /* 「〇〇トップ」リンクはスマホ用（PCは見出しがリンク） */
}

/* =========================================================
   借地権相談所 メインナビ / メガメニュー リデザイン
   - layout.css の後に読み込んでください
   - 既存の Bootstrap collapse（スマホ開閉）はそのまま利用
   ========================================================= */
:root {
  --mn-orange: #ee7800;
  --mn-orange-dark: #c96400;
  --mn-orange-pale: #fff4e8;
  --mn-text: #333;
  --mn-sub: #666;
  --mn-line: #e8e2da;
  --mn-bg: #faf8f5;
}

/* ---------- PC: グローバルナビ（.headerBottomNav） ---------- */
@media (min-width: 1025px) {
  /* メガメニューの基準を .headerBottom（画面幅いっぱい）に固定する。
     ページ別CSS（about-sokochi.css など）が後から読み込まれても崩れないよう !important で指定 */
  #header .headerBottom { position: relative !important; }
  #header .headerBottomNav,
  #header .headerBottomList,
  #header .headerBottomItem { position: static !important; }
  #header .headerBottomList { align-items: center; }

  #header .headerBottomLink { position: relative; transition: color .2s; }
  /* 下線インジケーター */
  #header .headerBottomLink::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
    background: var(--mn-orange); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .2s;
  }
  #header .headerBottomItem:hover > .headerBottomLink,
  #header .headerBottomItem.current > .headerBottomLink { color: var(--mn-orange); }
  #header .headerBottomItem:hover > .headerBottomLink::after,
  #header .headerBottomItem.current > .headerBottomLink::after { transform: scaleX(1); }

  /* メガメニューありの項目に ∨ */
  #header .headerBottomItem.is-mega > .headerBottomLink > span:last-child::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); opacity: .6; transition: transform .2s;
  }
  #header .headerBottomItem.is-mega:hover > .headerBottomLink > span:last-child::after {
    transform: rotate(-135deg); margin-bottom: -2px;
  }

  /* 資料請求はボタン風 */
  #header .headerBottomItem.nav-doc > .headerBottomLink {
    padding: 8px 18px; border: 2px solid var(--mn-orange); border-radius: 999px; color: var(--mn-orange);
  }
  #header .headerBottomItem.nav-doc > .headerBottomLink::after { display: none; }
  #header .headerBottomItem.nav-doc:hover > .headerBottomLink { background: var(--mn-orange); color: #fff; }

  /* メガメニュー：ホバー／キーボードフォーカス／開閉ボタン(.show)で表示 */
  #header .headerBottomItem > .mega {
    display: block !important; height: auto !important;
    visibility: hidden; opacity: 0; pointer-events: none;
    position: absolute !important; left: 0 !important; right: 0 !important; top: 100% !important;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; z-index: 1000;
    transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
    background: #fff; border-top: 1px solid var(--mn-line);
    box-shadow: 0 16px 32px rgba(60, 40, 20, .12);
  }
  #header .headerBottomItem:hover > .mega,
  #header .headerBottomItem:focus-within > .mega,
  #header .headerBottomItem > .mega.show {
    visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0);
  }
}

/* ---------- メガメニュー本体 ---------- */
/* 旧メガメニュー用のスタイル（li の幅・float・背景画像など）が当たらないようリセット */
.megaNav ul, .megaNav li, .megaNav p, .megaNav section {
  float: none !important; width: auto !important; max-width: none !important;
  background-image: none !important;
}
.megaNav__body, .megaNav__group { min-width: 0; }
.megaNav {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px;
  width: 100%; max-width: 1200px; box-sizing: border-box; margin: 0 auto; padding: 32px 24px 36px;
  text-align: left; color: var(--mn-text); line-height: 1.6;
}
.megaNav a { text-decoration: none; }

/* 左：導入エリア */
.megaNav__intro { padding-right: 32px; border-right: 1px solid var(--mn-line); }
.megaNav__label { margin: 0 0 4px; font-size: 11px; letter-spacing: .15em; color: var(--mn-orange); font-weight: 700; }
.megaNav__title { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.megaNav__desc  { margin: 0 0 18px; font-size: 13px; color: var(--mn-sub); }
.megaNav__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--mn-orange);
}
.megaNav__more::after { content: "→"; transition: transform .2s; }
.megaNav__more:hover::after { transform: translateX(4px); }

.megaNav__cta { margin-top: 24px; padding: 16px; background: var(--mn-orange-pale); border-radius: 10px; }
.megaNav__ctaText { margin: 0 0 8px; font-size: 12px; color: var(--mn-sub); }
.megaNav__ctaBtn {
  display: block; padding: 11px; border-radius: 6px; text-align: center;
  background: var(--mn-orange); color: #fff !important; font-weight: 700; font-size: 14px;
  transition: background .2s;
}
.megaNav__ctaBtn:hover { background: var(--mn-orange-dark); }
.megaNav__tel { margin: 10px 0 0; text-align: center; font-size: 18px; font-weight: 700; color: var(--mn-orange-dark); }
.megaNav__tel small { display: block; font-size: 11px; font-weight: 400; color: var(--mn-sub); }

/* 右：カテゴリ */
.megaNav__body { display: grid; gap: 28px 32px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.megaNav__body--cols2 { grid-template-columns: repeat(2, 1fr); }
.megaNav__body--list2 .megaNav__list { columns: 2; column-gap: 32px; }
.megaNav__body--list2 { grid-template-columns: 1fr; }

.megaNav__groupTitle {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--mn-line);
  font-size: 15px; font-weight: 700;
}
.megaNav__groupTitle::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--mn-orange);
}
.megaNav__list { list-style: none; margin: 0; padding: 0; }
.megaNav__list li { break-inside: avoid; }
.megaNav__list a {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 8px; margin: 0 -8px; border-radius: 6px;
  font-size: 14px; color: var(--mn-text); transition: background .15s, color .15s;
}
.megaNav__list a::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px;
  border-top: 2px solid var(--mn-orange); border-right: 2px solid var(--mn-orange);
  transform: rotate(45deg);
}
.megaNav__list a:hover { background: var(--mn-orange-pale); color: var(--mn-orange-dark); }
.megaNav__list a.is-pickup { font-weight: 700; }
.megaNav__badge {
  margin-left: 4px; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700;
  background: var(--mn-orange); color: #fff; white-space: nowrap; align-self: center;
}

/* ---------- スマホ・タブレット（ハンバーガー内 / 1024px以下） ---------- */
@media (max-width: 1024px) {
  /* サブメニューは閉じた状態が基本。「＋」開閉（.opened）のときだけ表示 */
  #header .headerBottomItem > .mega {
    display: none !important; position: static !important;
    visibility: visible !important; opacity: 1 !important; transform: none !important;
    box-shadow: none !important; width: auto !important;
  }
  #header .headerBottomItem.opened > .mega {
    display: block !important; height: auto !important; max-height: none !important; overflow: visible !important;
  }
  .megaNav { display: block; padding: 4px 16px 16px; }
  .megaNav__intro { padding: 0; border: 0; }
  .megaNav__label, .megaNav__title, .megaNav__desc, .megaNav__cta { display: none; }
  .megaNav__more { display: flex; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--mn-line); }
  .megaNav__body, .megaNav__body--cols2 { display: block; }
  .megaNav__body--list2 .megaNav__list { columns: 1; }
  .megaNav__group { margin-top: 14px; }
  .megaNav__groupTitle { font-size: 14px; }
  .megaNav__list a { margin: 0; padding: 10px 4px; border-bottom: 1px dashed var(--mn-line); border-radius: 0; }
}