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




/* =========================
ヘッダー2段組み
========================= */
@media screen and (min-width: 999px) and (max-width: 1280px) {
	    left: 20% !important;
}
@media screen and (min-width: 1024px) {
  #menu li.pc, .pc { display: block !important; }
  #menu li.sp, .sp { display: none !important; }
  .header-wrap { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; padding-top: 18px !important; height: 130px !important; }
  .header-menu, .sp-top-nav { display: contents !important; }
  #top-logo { order: 1 !important; display: flex !important; align-items: center !important;}
  #top-logo img { max-height: 48px !important; width: auto !important; }
  #top-contact { order: 2 !important; display: flex !important; align-items: center !important; gap: 15px !important; margin-bottom: 0 !important; padding: 0 !important; list-style: none !important; }
  #top-contact li { margin: 0 !important; white-space: nowrap !important; }
  #top-contact .top-tel { display: flex !important; flex-direction: column !important; align-items: flex-end !important; }
  #top-contact .top-tel a { font-size: 2.6rem !important; font-weight: 800 !important; line-height: 1.1 !important; color: #F27D41 !important; text-decoration: none !important; white-space: nowrap !important; }
  #top-contact .tel-txt { font-size: 1.3rem !important; color: #555 !important; white-space: nowrap !important; }
  #menu.gnavi_lists { order: 3 !important; flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 40px !important; margin: 0 auto 1.5rem !important; padding: 0 !important; border-top: none !important; list-style: none !important; float: none !important; }
  #menu.gnavi_lists > li { position: relative !important; white-space: nowrap !important; float: none !important; margin: 0 !important; padding: 15px 0 10px 0 !important; }
  #menu.gnavi_lists > li + li::before { content: "" !important; position: absolute !important; left: -20px !important; top: 60% !important; transform: translateY(-50%) !important; width: 1px !important; height: 20px !important; background-color: #ccc !important; }
  #menu .sub-menu { position: absolute !important; top: 100% !important; left: 50% !important; transform: translateX(-50%) !important; display: none !important; width: 280px !important; background-color: #ffffff !important; border-radius: 8px !important; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important; padding: 12px 0 !important; margin: 0 !important; list-style: none !important; z-index: 9999 !important; overflow: hidden !important; }
  #menu li.has-child:hover > .sub-menu { display: block !important; }
  #menu .sub-menu li { width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: center !important; }
  #menu .sub-menu li a { display: block !important; padding: 10px 12px !important; color: #555 !important; font-size: inherit !important; font-weight: bold !important; text-decoration: none !important; white-space: normal !important; line-height: 1.4 !important; transition: background-color 0.2s, color 0.2s !important; }
  #menu .sub-menu li a:hover { color: #f06a35 !important; background-color: #f4f4f4 !important; }
  #toggle { display: none !important; }
}
@media screen and (max-width: 1023px) {
   #menu.gnavi_lists > li.pc,
  #menu .sub-menu {
    display: none !important;
  }
  #top-logo img { max-height: 36px !important; width: auto !important; }
  #top-logo .logo-txt { font-size: 0.6rem !important; }
  .header-wrap #top-contact { display: none !important; }
  #toggle {
    display: block !important;
  }
  #toggle span {
    background-color: #F27D41 !important;
  }
  #menu.gnavi_lists {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    text-align: left !important;
    padding-left: 0 !important;
  }
  #menu.gnavi_lists > li:not(.pc) {
    display: block !important;
    width: 100% !important;
    float: none !important;
    white-space: normal !important;
    text-align: left !important;
    padding: 0 !important;
  }
  #menu.gnavi_lists > li:not(.pc) a {
    display: block !important;
    text-align: left !important;
    padding-top: 20px !important; 
    padding-bottom: 8px !important; 
    line-height: 1.3 !important;
  }
  #menu.gnavi_lists > li + li::before {
    display: none !important;
  }
}


/* =========================
ヘッダーボタン
========================= */
.top-material {
    width: 200px;
    max-width: 100%;
}
.icn-material {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    font-weight: bold;
    position: relative;
    background-image: url(/wp-content/uploads/2026/10/icon_material.png);
    background-repeat: no-repeat;
    background-position: 42px center;
    background-size: 24px auto;
    color: #F27D41 ;
    background-color: #FFF;
	  border: 2px solid #F27D41;
    border-radius: 10em;
    margin: 0;
    padding: 0 2.4rem 0 4.2rem; 
    text-align: center;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    max-width: 360px;
    width: 200px;
    height: 58px;
    font-size: 1.6rem;
}
.top-mail {
    width: 200px;
    max-width: 100%;
}
.icn-mail {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    font-weight: bold;
    position: relative;
    background-image: url(/wp-content/uploads/2026/10/icon-mail.png);
    background-repeat: no-repeat;
    background-position: 30px center;
    background-size: 24px auto;
    color: #FFF;
    background-color: #F27D41;
    border-radius: 10em;
    margin: 0;
    padding:0 1.8rem 0 4.4rem; 
    text-align: center;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    max-width: 360px;
    width: 200px;
    height: 58px;
    font-size: 1.6rem;
}

/* =========================
SP版フッターボタン
========================= */
.footer-tel{
    font-size:1.6rem;
    margin: 0;
    background-color: #fff;
    width: 38%;
    height: 50px;
    display: flex;
    align-items: center;
    border-radius: 10px;
	 color:#F27D41;
}
.footer-tel a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Roboto', sans-serif;
    line-height: 100%;
    font-weight:bold;
    text-decoration: none;
    position: relative;
    margin: 0;
    width: 110%;
}
.footer-tel .tel-time {
    font-size: 0.9rem;
    color:#555 ;
    letter-spacing: 1px;
    line-height: 100%;
}
.footer-tel::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 4px;
    background-image: url(wp-content/uploads/2026/10/icon-tel.png);
    background-size: contain;
    vertical-align: middle;
    background-repeat: no-repeat;
}
.footer-material{
    width: 27%;
    background-color:#FFF;
    border:solid 2px #F27D41;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 10px;
}
.footer-material a {
    color:#F27D41;
    font-weight:bold;
    text-decoration: none;
    font-size:1rem;
    letter-spacing: 1px;
    width: 100%;
    height: 100%;
    line-height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.footer-material a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background-image: url(wp-content/uploads/2026/10/icon_material.png);
    background-size: contain;
    vertical-align: middle;
    background-repeat: no-repeat;
}
.footer-mail {
    width: 27%;
    background-color:#F27D41;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 10px;
}
.footer-mail a {
    color: #fff;
    font-weight:bold;
    text-decoration: none;
    font-size:1rem;
    letter-spacing: 1px;
    width: 100%;
    height: 100%;
    line-height: 120%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.footer-mail a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background-image: url(wp-content/uploads/2026/10/icon-mail.png);
    background-size: contain;
    vertical-align: middle;
    background-repeat: no-repeat;
}

