/* HANDS V6.5 - 2026-10-14 - responsive bottom contact and unified navigation */
.hands-v65-footer,.hands-v65-footer *{box-sizing:border-box}
.hands-v65-footer{width:min(787px,calc(100% - 12px));max-width:100%;margin:26px auto 36px!important;padding:0 0 16px;color:#26445e;font-family:Meiryo,"Yu Gothic",sans-serif!important;line-height:1.75!important;overflow-wrap:anywhere}
.hands-v65-footer img{max-width:100%;height:auto!important}
.hands-v65-contact{background:linear-gradient(150deg,#eff8ff,#fff 70%);border:1px solid #b8d9f0;border-radius:9px;padding:18px 20px;margin-bottom:22px;text-align:center}
.hands-v65-contact h2{color:#07549d!important;font-size:21px!important;line-height:1.5!important;margin:0 0 15px!important;font-weight:800!important}
.hands-v65-contact-picture{display:block;width:min(607px,100%);margin:0 auto 16px!important;line-height:0}
.hands-v65-contact-picture img{display:block;width:100%;height:auto!important;border:0}
.hands-v65-action{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:12px auto 14px!important}
.hands-v65-action a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 19px;border-radius:6px;background:#0967b2;color:#fff!important;text-decoration:none!important;font-size:16px!important;font-weight:800!important;line-height:1.35!important}
.hands-v65-action a.hands-v65-alt{background:#fff!important;color:#07549d!important;border:2px solid #1482c5}
.hands-v65-notice{max-width:680px;margin:12px auto 0!important;text-align:left;font-size:15px!important;line-height:1.85!important;color:#34536c!important;overflow-wrap:anywhere;word-break:normal}
.hands-v65-category-area{margin:0 auto 18px;padding:12px 6px 10px;border:1px solid #bddff3;border-radius:8px;background:#f6fbff}
.hands-v65-category-area h2{margin:2px 8px 10px!important;font-size:21px!important;line-height:1.4!important;color:#07549d!important;font-weight:800!important}
.hands-v65-category-area .hands-v63-categories{margin:0!important;width:100%!important;border-radius:5px}
.hands-v65-company{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;padding:20px 22px;background:#eaf5fd;border-top:3px solid #158cce;border-radius:0 0 8px 8px;color:#214664}
.hands-v65-company h2{font-size:19px!important;color:#064b8c!important;line-height:1.4!important;margin:0 0 8px!important}
.hands-v65-company p{color:#294761!important;margin:0 0 7px!important;font-size:15px!important;line-height:1.85!important;overflow-wrap:anywhere}
.hands-v65-company a{color:#075ba4!important;overflow-wrap:anywhere}
.hands-v65-fineprint{margin:10px auto!important;font-size:13px!important;color:#54728c!important;text-align:center;overflow-wrap:anywhere}
@media(max-width:640px){
.hands-v65-footer{width:calc(100% - 8px)!important;min-width:0!important;max-width:100%!important;margin:18px auto 24px!important}
.hands-v65-contact{padding:16px 12px;margin-bottom:16px!important}
.hands-v65-contact h2,.hands-v65-category-area h2{font-size:19px!important}
.hands-v65-action{flex-direction:column;gap:8px}
.hands-v65-action a{width:100%;max-width:360px;white-space:normal}
.hands-v65-notice{font-size:15px!important;line-height:1.85!important;text-align:left}
.hands-v65-category-area{padding:10px 5px}
.hands-v65-category-area .hands-v63-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
.hands-v65-category-area .hands-v63-category{font-size:13px!important;min-height:42px!important;line-height:1.4!important;padding:7px 4px!important}
.hands-v65-company{grid-template-columns:1fr;gap:14px;padding:18px 14px}
.hands-v65-company p{font-size:15px!important;line-height:1.8!important}
}
@media(max-width:350px){.hands-v65-category-area .hands-v63-category{font-size:12px!important;padding:6px 2px!important}}
/* Some legacy documents never linked visual-preserve.css; keep the core
   content within the mobile viewport rather than letting an 800px table
   shift the entire page horizontally. The shared top categories remain. */
@media(max-width:640px){
  html{max-width:100%;}
  body{box-sizing:border-box;max-width:100%!important;width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;overflow-x:clip;}
  .main-wrapper.content-layout,.main-wrapper.content-layout>tbody,.main-wrapper.content-layout>tbody>tr{
    display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;
  }
  .main-wrapper.content-layout>tbody>tr>.left-menu{display:none!important;}
  .main-wrapper.content-layout>tbody>tr>.main-content,
  .main-wrapper.content-layout>tbody>tr>td[colspan="37"]{
    display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;overflow-x:auto;
  }
  .main-wrapper.content-layout .main-content-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;}
  .main-wrapper.content-layout .main-content-table img{max-width:100%!important;height:auto!important;}
}
