#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;
  }
}