.footer_nav_blank { margin-top: 64px; }
.footer_nav_blank ul { align-items: center; display: flex; gap: 28px; justify-content: center; }
.footer_nav_blank li { align-items: center; display: flex; }
.footer_nav_blank li + li:before { background: #241f16; content: ""; height: 24px; margin-right: 28px; width: 1px; }
.footer_nav_blank a { align-items: center; display: flex; line-height: 1; }
.footer_nav_blank a:after { background: center/cover no-repeat url(../img/common/icon_anchor_blank.png); content: ""; height: 14px; margin-left: 8px; width: 14px; }
.footer small { background: #3a3a3a; color: #fff; display: block; font-size: 12px; line-height: 1.33; padding: 24px 20px; text-align: center; }
.float_btn { display: none; }


@media screen and (max-width:768px) {

 .footer_nav_blank { margin-top:12.8vw; }
  .footer_nav_blank ul { flex-wrap:wrap; gap:8.533vw 3.2vw; justify-content:flex-start; padding:0 4.267vw; }
  .footer_nav_blank li { min-width:30.4vw; }
  .footer_nav_blank li + li:before { display:none; }
  .footer_nav_blank a { font-size:3.2vw; }
  .footer_nav_blank a:after { height:2.667vw; margin-left:2.133vw; width:2.667vw; }
  .footer small { font-size:2.667vw; line-height:1.5; padding:6.4vw 0; }

  .float_btn { align-items:center; bottom:3.2vw; display:flex; gap:2.133vw; justify-content:center; left:0; opacity:0; pointer-events:none; position:fixed; right:0; transition:opacity .3s; z-index:20; }
  .float_btn a { display:block; width:46.667vw; }
  .float_btn.is-current { opacity:1; pointer-events:auto; }
}

/* =====================================
   フッター共通
===================================== */

.footer {
  background-color: #f7f6f2;
  border-top: 1px solid #ddd8ce;
  color: #333;
}

.footer .inner {
  width: min(1200px, calc(100% - 60px));
  margin: 0 auto;
  padding: 60px 0;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: #4a4338;
  text-decoration: none;
  line-height: 1.6;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.footer a:hover {
  color: #009e96;
  padding-left: 4px;
}

/* =====================================
   PC・タブレット用フッター
===================================== */

.footer-pc {
  display: block;
}

.footer-sp {
  display: none;
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer-col h3 {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid #009e96;
  color: #241f16;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-col h3.footer-sub-title {
  margin-top: 36px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  display: inline-block;
  position: relative;
  padding-left: 14px;
  font-size: 14px;
}

.footer-col a::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid #009e96;
  border-right: 1px solid #009e96;
  transform: rotate(45deg);
}

.parent-link{
  display:block;
  font-weight:700;
  margin-bottom:12px;
  font-size:15px;
}

.footer-submenu-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px 0;
  margin:0;
  padding:0;
}

.footer-submenu-grid li{
  width:50%;
  margin:0;
}

.footer-submenu-grid a{
  display:block;
  padding-right:10px;
  font-size:13px;
  line-height:1.5;
  color:#666;
}

/* =====================================
   タブレット
===================================== */

@media screen and (max-width: 1000px) and (min-width: 769px) {

  .footer-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 35px;
  }

}

/* =====================================
   スマホ用アコーディオン
===================================== */

@media screen and (max-width: 768px) {

  .footer .inner {
    width: 100%;
    padding: 25px 20px 35px;
  }

  /* PC用フッターを非表示 */
  .footer-pc {
    display: none;
  }

  /* スマホ用フッターを表示 */
  .footer-sp {
    display: block;
  }

  .footer-accordion {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d8d5ce;
  }

  .footer-accordion:first-child {
    border-top: 1px solid #d8d5ce;
  }

  .footer-accordion summary {
    position: relative;
    display: block;
    margin: 0;
    padding: 17px 48px 17px 4px;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  /* SafariやChromeの標準三角マークを非表示 */
  .footer-accordion summary::-webkit-details-marker {
    display: none;
  }

  .footer-accordion summary::marker {
    display: none;
    content: "";
  }

  /* プラス記号の横線 */
  .footer-accordion summary::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    width: 18px;
    height: 2px;
    background-color: #009e96;
    transform: translateY(-50%);
  }

  /* プラス記号の縦線 */
  .footer-accordion summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 2px;
    height: 18px;
    background-color: #009e96;
    transform: translateY(-50%);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  /* 開いたときは縦線を消してマイナスにする */
  .footer-accordion[open] summary::after {
    opacity: 0;
    transform: translateY(-50%) rotate(90deg);
  }

  .footer-accordion[open] summary {
    color: #009e96;
  }

  .footer-accordion ul {
    padding: 0 10px 16px 14px;
  }

  .footer-accordion li {
    margin: 0;
    border-top: 1px dotted #d8d5ce;
  }

  .footer-accordion a {
    display: block;
    position: relative;
    padding: 11px 10px 11px 16px;
    font-size: 14px;
  }

  .footer-accordion a::before {                
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 5px;
    height: 5px;
    border-top: 1px solid #009e96;
    border-right: 1px solid #009e96;
    transform: translateY(-50%) rotate(45deg);
  }

  .footer-accordion a:hover {
    padding-left: 20px;
  }

  .footer-copyright {
    padding: 15px 20px;
  }

}



/* 共通ヘッダーは style.css 側で固定配置、高さ74px */
body {
  padding-top: 74px;
}

/* 共通ヘッダーと既存ヘッダーを明確に分離 */
.bf-header {
  position: relative;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}

.bf-header .bf-nav {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 0;
}

/* ページ内リンク移動時に固定共通ヘッダーへ隠れないようにする */
#menu,
.card,
#contact {
  scroll-margin-top: 150px;
}

/* style.css の共通リセットによる既存ページへの影響を抑える */
.bf-header + .hero {
  margin-top: 0;
}

/* スマートフォン */
@media screen and (max-width: 768px) {
  /* style.css のスマホ共通ヘッダーは absolute、高さ16vw */
  body {
    padding-top: 16vw;
  }

  .bf-header {
    position: relative;
    top: auto;
    margin-top: 0;
  }

  #menu,
  .card,
  #contact {
    scroll-margin-top: 32vw;
  }
}

/* =========================================================
   フッターリンク：ホバー時の矢印との重なりを防止
========================================================= */
@media screen and (min-width: 769px) {
  /* 左側の矢印用スペースを常に確保する */
  .footer-col a {
    padding-left: 18px;
    transition: color 0.2s ease;
  }

  /* ホバー時にリンク全体を左へ動かさない */
  .footer-col a:hover {
    padding-left: 18px;
  }

  /* 矢印は確保したスペース内の固定位置に置く */
  .footer-col a::before {
    left: 1px;
  }

  /* リンク文字だけを右へ少し動かしたい場合 */
  .footer-col a > span {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .footer-col a:hover > span {
    transform: translateX(4px);
  }
}


/* =========================================================
   共通ヘッダー＋ハンバーガー＋右スライドメニュー
   親メニュー・子メニュー対応 完成版
========================================================= */

/* ---------- 基本設定 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 74px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

.header a,
.nav a {
  text-decoration: none;
}


/* =========================================================
   固定ヘッダー
========================================================= */

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: 74px;

  background: #ffffff;
  border-top: 1px solid #dddddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 100%;
  padding: 0 95px 0 20px;
}


/* ---------- ロゴ ---------- */

.header .logo,
.nav_inner_header .logo {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.header .logo {
  width: 80px;
}

.header .logo a,
.nav_inner_header .logo a {
  display: block;
}

.header .logo img,
.nav_inner_header .logo img {
  display: block;
  width: 100%;
  height: auto;
}


/* ---------- PCヘッダーナビ ---------- */

.header_nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header_nav a {
  color: #241f16;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.header_nav a:hover {
  opacity: 0.65;
}


/* =========================================================
   ハンバーガーボタン
========================================================= */

.header_nav_trigger {
  position: fixed;
  top: 15px;
  right: 25px;
  z-index: 1200;

  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;

  appearance: none;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.header_nav_trigger span {
  position: absolute;
  left: 50%;

  display: block;
  width: 24px;
  height: 2px;

  background: #241f16;
  transform: translateX(-50%);
  transition:
    top 0.3s ease,
    transform 0.3s ease;
}

.header_nav_trigger span:nth-child(1) {
  top: 16px;
}

.header_nav_trigger span:nth-child(2) {
  top: 26px;
}

.header_nav_trigger u {
  display: none;
}


/* ---------- 開いた状態のボタン ---------- */

.header_nav_trigger.is-current span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.header_nav_trigger.is-current span:nth-child(2) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}


/* =========================================================
   右スライドメニュー
========================================================= */

.nav {
  position: fixed;
  top: 0;
  right: -380px;
  z-index: 1100;

  width: 380px;
  height: 100vh;
  height: 100dvh;
  padding: 0 32px 50px;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;

  color: #241f16;
  background: #fdfbf4;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.12);

  visibility: hidden;
  transition:
    right 0.3s ease,
    visibility 0.3s ease;
}

.nav.is-open {
  right: 0;
  visibility: visible;
}


/* =========================================================
   スライドメニュー内ヘッダー
========================================================= */

.nav_inner_header {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  min-height: 86px;

  background: #fdfbf4;
}

.nav_inner_header .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
}

.nav_inner_header .logo > a:first-child {
  width: 78px;
}


/* 「オンラインで相談」 */

.nav_inner_header .logo .is-sp {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0 0 12px;

  color: #241f16;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;

  border-bottom: 1px solid #dedbd3;
}


/* =========================================================
   メニューリスト共通
========================================================= */

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
  padding: 0;
}

.nav a {
  color: #241f16;
}


/* =========================================================
   親メニュー
========================================================= */

.first_nav {
  width: 100%;
}

.first_nav > li {
  width: 100%;
}

.first_nav > li > a {
  display: block;
  width: 100%;
  padding: 15px 0 13px;

  color: #241f16;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;

  border-bottom: 1px solid #dedbd3;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.first_nav > li > a:hover {
  color: #009b84;
  padding-left: 4px;
}

.first_nav > li > a .jp {
  display: block;
}


/* =========================================================
   第2階層メニュー
========================================================= */

.second_nav {
  width: 100%;
}

.second_nav > li {
  width: 100%;
}

.second_nav > li > a {
  display: block;
  position: relative;

  width: 100%;
  padding: 15px 0 13px;

  color: #241f16;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;

  border-bottom: 1px solid #dedbd3;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.second_nav > li > a:hover {
  color: #009b84;
  padding-left: 4px;
}


/* =========================================================
   小さく表示する子メニュー
   HTMLのliへ class="nav-child" を付ける
========================================================= */

.second_nav > li.nav-child > a {
  padding-top: 11px;
  padding-right: 8px;
  padding-bottom: 11px;
  padding-left: 30px;

  color: #55514a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;

  background: transparent;
  border-bottom: 1px solid #e7e3da;
}

.second_nav > li.nav-child > a::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 12px;

  width: 7px;
  height: 1px;

  background: #aaa59b;
  transform: translateY(-50%);
}

.second_nav > li.nav-child > a:hover {
  color: #009b84;
  padding-left: 34px;
  background: #f7f4ec;
}


/* =========================================================
   子メニューを背景付きにする場合

   HTML：
   <li class="nav-child nav-child-bg">
========================================================= */

.second_nav > li.nav-child-bg > a {
  background: #f8f5ed;
}

.second_nav > li.nav-child-bg > a:hover {
  background: #f1ede3;
}


/* =========================================================
   フォーカス表示
========================================================= */

.header a:focus-visible,
.nav a:focus-visible,
.header_nav_trigger:focus-visible {
  outline: 2px solid #009b84;
  outline-offset: 3px;
}


/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 768px) {

  body {
    padding-top: 60px;
  }

  /* ---------- ヘッダー ---------- */

  .header {
    height: 60px;
  }

  .header .inner {
    padding: 0 62px 0 16px;
  }

  .header .logo {
    width: 66px;
  }

  .header_nav {
    display: none;
  }

  /* ---------- ハンバーガー ---------- */

  .header_nav_trigger {
    top: 8px;
    right: 10px;

    width: 44px;
    height: 44px;
  }

  /* ---------- スライドメニュー ---------- */

  .nav {
    right: -100%;

    width: 100%;
    max-width: none;
    padding: 0 32px 40px;

    box-shadow: none;
  }

  .nav.is-open {
    right: 0;
  }

  /* ---------- メニュー内ヘッダー ---------- */

  .nav_inner_header {
    min-height: 90px;
  }

  .nav_inner_header .logo > a:first-child {
    width: 58px;
  }

  .nav_inner_header .logo .is-sp {
    margin-top: 8px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  /* ---------- 親メニュー ---------- */

  .first_nav > li > a,
  .second_nav > li > a {
    padding-top: 13px;
    padding-bottom: 12px;
    font-size: 13px;
  }

  /* ---------- 子メニュー ---------- */

  .second_nav > li.nav-child > a {
    padding-top: 10px;
    padding-right: 6px;
    padding-bottom: 10px;
    padding-left: 28px;

    font-size: 11px;
    line-height: 1.7;
  }

  .second_nav > li.nav-child > a::before {
    left: 11px;
    width: 6px;
  }

  .second_nav > li.nav-child > a:hover {
    padding-left: 32px;
  }
}