#page-top {
    bottom: 90px;
}
@media screen and (max-width: 767px) {
	#page-top {
		bottom: 80px;
	}
}

/* footer改修*/
.footer-logoarea{width:36%;}
.footer_corpTi{margin:2rem auto 0;font-size: 1.4rem;}
.footer_corpTx{text-align:left;font-size: 1.4rem;}
.btn-corp{transition: 0.3s;font-size: 1.4rem;border: 1px solid #333;padding: 0.8rem;background: #fff;text-decoration: none;width: 100%;display: block;}
.footer-menu{width: calc(100% - 40%);}

/* ▼ PCのときだけ38% / 48%にするように変更 ▼ */
@media screen and (min-width: 768px) {
  .w38p {width: 38%;}
  .w48p {width: 48%;}
}

@media screen and (max-width: 767px) {
	.footer-logoarea{width:100%;}
	.footer-menu{width:100%;}
}

/* header改修*/
@media screen and (min-width: 1000px) {
#menu {margin-right: 1%;width: 60%; max-width: 580px;}
.menu li {width: auto;margin-left: 2%;font-size: 1.4rem !important;}
#top-contact {width: 48%;}
}

/*form追加*/
.td_form_file{line-height:3;}
.td_form_file>span{margin-right:1em}




/* --------------------------------------------------
 * フッター レスポンシブ＆表示補正（850px以下切り替え）
 * -------------------------------------------------- */

/* フッター全体背景色・デフォルトパディング指定（SP用） */
#footer {
    background-color: #FAFAF5 !important;
    padding: 0rem 0 0 !important;
}

/* 親メニュー見出しのパディング設定 */
ul.f-menu li.f-parent {
    padding: 8px 0 0 0 !important;
    display: block !important;
}

/* 850px以下（SP版）：縦1列・中央揃え・幅を下のコンテンツ（100%）に完全一致 */
@media screen and (max-width: 850px) {
  .footer-top {
    display: flex !important;
    flex-direction: column !important;
  }
  .footer-menu.sp-center {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    padding: 7rem 0rem 0rem 0rem !important; /* ← padding: 7rem 0 0 0 に変更 */
  }
  .footer-logoarea {
    order: 2 !important;
    width: 100% !important;
  }

  /* .footer-menu を追加して元コードの 320px !important 上書きに勝利 */
  .footer-menu ul.f-menu.w38p,
  .footer-menu ul.f-menu.w48p {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important; /* 強制打ち消しに勝って100%を適用 */
    margin: 0px auto 40px !important;
    padding: 0 20px !important;
    text-align: center !important;
  }
  .footer-menu ul.f-menu.w38p li,
  .footer-menu ul.f-menu.w48p li {
    text-align: center !important;
    word-break: break-word !important;
  }
}

/* 851px以上（PC・タブレット全般共通設定）：左揃えを徹底・全PCサイズで62%適用 */
@media screen and (min-width: 851px) {
  #footer {
    padding: 8rem 0 0 !important;
  }
  .footer-top {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
  }
  .footer-logoarea {
    width: 33% !important;
  }
  .footer-menu.sp-center {
    display: block !important;
    width: 67% !important;
  }
  
  /* 左側リスト */
  .footer-menu ul.f-menu.w38p {
    float: left !important;
    width: 35% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  
  /* 右側リスト（全PCサイズで62%に統一して確実に上書き） */
  .footer-menu ul.f-menu.w48p {
    float: left !important;
    width: 62% !important; 
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    text-align: left !important;
  }

  /* 中央揃え（center）の上書きを確実に防ぐ左揃え（left）指定 */
  .footer-menu ul.f-menu.w38p li,
  .footer-menu ul.f-menu.w48p li,
  .footer-menu ul.f-menu.w38p li a,
  .footer-menu ul.f-menu.w48p li a {
    text-align: left !important;
    font-size: 1.4rem !important;
  }
/* 見出し（親メニュー）だけ少し太く・大きくする場合 */
  .footer-menu ul.f-menu li.f-parent {
    font-size: 1.5rem !important;
    font-weight: bold !important;
  }
	
  /* リスト項目の下余白指定 */
  .f-menu li {
    margin-bottom: 1.7rem;
  }
}

/* 1200px以下：文字の自動改行を許可 */
@media screen and (max-width: 1200px) {
  ul.f-menu li,
  ul.f-menu li a {
    white-space: normal !important;
  }
}






/* ================================================
  PC・スマホ出し分け ＆ ドロップダウン設定
================================================ */

/* ---------- PC表示時（769px以上） ---------- */
@media screen and (min-width: 769px) {

  /* スマホ専用要素を非表示 */
  .gnavi_lists > li.sp {
    display: none !important;
  }

  /* 親要素：ドロップダウン表示の基準位置に設定 */
  .gnavi_lists > li.has-child {
    position: relative;
    display: inline-block;
  }

  /* リンクなし親文字（span）のスタイル */
  .gnavi_lists > li > .parent-title {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-align: center;
    cursor: default;
  }

  /* 子メニュー（ドロップダウン枠）初期状態 */
  .gnavi_lists .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 999;
    list-style: none;
    margin: 0;
  }

  /* マウスホバー時に子メニュー表示 */
  .gnavi_lists > li.has-child:hover .sub-menu {
    display: block;
  }

  /* 子メニュー内のリンク調整 */
  .gnavi_lists .sub-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .gnavi_lists .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333333;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .gnavi_lists .sub-menu li a:hover {
    background-color: #f7f7f7;
    color: #f26522; /* ホバー時の文字色 */
  }
}

/* ---------- スマホ表示時（768px以下） ---------- */
@media screen and (max-width: 768px) {

  /* PC専用要素（ドロップダウン親項目）を非表示 */
  .gnavi_lists > li.pc {
    display: none !important;
  }

  /* スマホ専用要素を表示 */
  .gnavi_lists > li.sp {
    display: block;
  }
}





/*フォーム個人情報*/
.handling-area {text-align: center;margin-bottom: 3rem;}
.handling{ width: 70%;margin: 0.5rem 0 0.5rem 27%;font-size: 1.4rem;text-align: left;line-height: 1.3;color: #444;}
.handling-area .wpcf7-list-item{margin: 0.5rem 0 0.5rem -14%;}
@media screen and (max-width: 768px) {
	.handling{ width: 100%;    margin: 0.5rem 0 0.5rem 0;}
	.handling-area .wpcf7-list-item{margin: 0.5rem 0 0.5rem -10%;}
}
