/* Mobile-only correction. Desktop appearance remains unchanged. */
.mobile-contact-copy,.mobile-contact-actions,.mobile-related-link,.mobile-map-hint,.mobile-form-header,.mobile-form-footer {display:none;}
@media(max-width:768px){
 html {scroll-padding-top:82px;}
 body {min-width:0!important;font-size:18px;}
 #contents {width:100%!important;max-width:100%;box-sizing:border-box!important;padding:12px 0 24px!important;}
 #contents p,#contents li,#contents td,#contents th,#contents label {font-size:18px!important;line-height:1.85!important;}
 #contents h2,#contents h3,#contents h4 {height:auto!important;line-height:1.65!important;}
 #contents h2 {font-size:21px!important;}
 #contents h3,#contents h4 {font-size:20px!important;}
 #contents .mobile-empty {display:none!important;}
 #contents>p,#contents>ul,#contents>figure {box-sizing:border-box;width:92%;margin-left:auto!important;margin-right:auto!important;}
 #contents>p {margin-top:16px!important;margin-bottom:20px!important;}
 #contents figure {height:auto!important;min-height:0!important;margin-top:16px!important;margin-bottom:20px!important;}
 #contents figure img,#contents .image-zoom-trigger img {height:auto!important;margin-top:0!important;margin-bottom:0!important;}
 #contents .image-zoom-trigger {line-height:0!important;max-width:100%;vertical-align:top;}
 #contents .placewaku,#contents .placewaku02 {height:auto!important;min-height:0!important;margin-top:20px!important;margin-bottom:24px!important;}
 #contents .placewaku p,#contents .placewaku02 p {padding:0 12px;}
 #contents .placewaku ul,#contents .placewaku02 ul {margin-top:18px!important;}
 #contents .image-zoom-badge {font-size:14px!important;}
 #spHeader {height:70px!important;display:flex!important;align-items:center;justify-content:space-between;padding:8px 12px!important;box-sizing:border-box!important;background:#fff;}
 #spHeader__logo {width:calc(100% - 58px)!important;height:auto!important;}
 #spHeader__logo a img {display:block;width:100%!important;max-width:285px!important;height:auto!important;}
 #hamburger {position:static!important;flex:0 0 46px;width:46px!important;height:46px!important;}
 #hamburger img {width:46px!important;height:46px!important;}
 body:has(#spHeader) #wrapper {padding-top:70px!important;}
 .spNav {top:70px!important;}
 #contents .spContact {width:92%!important;margin:24px auto!important;border:0!important;box-shadow:none!important;}
 #contents .spContact__head {display:flex!important;align-items:center!important;justify-content:space-between;min-height:142px!important;height:auto!important;padding:12px 16px!important;border-radius:12px;background:#edf4f8!important;box-sizing:border-box;}
 #contents .spContact__text {width:58%!important;}
 #contents .spContact__text>img {display:none!important;}
 #contents .mobile-contact-copy {display:block;margin:0!important;padding:0!important;color:#123b65;font-size:19px!important;line-height:1.65!important;font-weight:700;}
 #contents .spContact__photo {position:static!important;width:38%!important;max-width:140px!important;align-self:flex-end;}
 #contents .spContact__photo img {display:block;width:100%!important;height:auto!important;max-height:150px;object-fit:contain;}
 #contents .spContact__btnArea {display:none!important;}
 #side .side_contact>ul {display:flex!important;flex-direction:column;gap:10px;}
 #side .side_contact>ul>li {width:100%!important;margin:0!important;}
 #side .side_contact a:has(.mobile-related-link)>img,#side .side_contact a:has(.mobile-related-link)>span:not(.mobile-related-link) {display:none!important;}
 #side .side_contact a:has(.mobile-related-link) {display:block;text-decoration:none;}
 #side .mobile-related-link {display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #d4e0ec;border-radius:10px;padding:16px 14px;color:#123b65;font-size:18px;font-weight:700;line-height:1.6;}
 #side .mobile-related-link i {display:flex;justify-content:center;align-items:center;width:34px;height:34px;flex-shrink:0;border-radius:8px;background:#edf3f8;color:#a76718;}
 #side .side_box h2,#side .side_box a,#side .side_box p {font-size:17px!important;line-height:1.7!important;}
 #side .related-panel>summary {font-size:18px!important;line-height:1.6;}
 #contents .mobile-map-scroll {display:block;width:100%;overflow-x:auto;border:1px solid #cfdae5;border-radius:10px;background:white;touch-action:pan-x pan-y pinch-zoom;}
 #contents .mobile-map-scroll .image-zoom-trigger {display:block;width:760px!important;max-width:none!important;}
 #contents .mobile-map-scroll img {display:block;width:760px!important;max-width:none!important;height:auto!important;}
 #contents .mobile-map-hint {display:block;padding:10px 0;color:#315577;font-size:15px;line-height:1.6;}
 #contents .mobile-map-scroll .image-zoom-badge {position:sticky;display:table;left:8px;bottom:8px;}
 #spFoot .spFoot__item a {font-size:15px!important;line-height:1.5;min-height:48px;box-sizing:border-box;padding:12px 8px!important;}
 .contact-refresh>h1,.contact-refresh>#header {display:none!important;}
 .contact-refresh .mobile-form-header {display:flex;position:sticky;top:0;z-index:100;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:white;border-bottom:1px solid #dce6ef;box-sizing:border-box;min-height:70px;}
 .mobile-form-header>a:first-child {width:calc(100% - 65px);max-width:285px;}
 .mobile-form-header img {display:block;width:100%;height:auto;}
 .mobile-form-header .mobile-home {font-size:14px;color:#123b65;}
 .contact-refresh #wrapper {padding-top:0!important;}
 .contact-refresh .contact_page {width:92%!important;box-sizing:border-box;margin:0 auto!important;}
 .contact-refresh .contact_page .corner_box {padding:16px!important;}
 .contact-refresh #contents .form-illustration {max-height:130px;margin-bottom:16px;}
 .contact-refresh #contents .contact_page .corner_box p {font-size:18px!important;}
 .contact-refresh #contents .contact_page .corner_box .red {font-size:19px!important;white-space:normal;}
 .contact-refresh #contents .contact_page table,.contact-refresh #contents .contact_page tbody,.contact-refresh #contents .contact_page tr,.contact-refresh #contents .contact_page th,.contact-refresh #contents .contact_page td {display:block!important;width:100%!important;height:auto!important;box-sizing:border-box!important;}
 .contact-refresh #contents .contact_page th {padding:12px 14px!important;border-bottom:0!important;white-space:normal!important;text-align:left!important;}
 .contact-refresh #contents .contact_page td {padding:14px!important;}
 .contact-refresh #contents .contact_page th span {font-size:13px!important;}
 .contact-refresh #contents .contact_page input[type=text],.contact-refresh #contents .contact_page textarea {display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;font-size:18px!important;line-height:1.6!important;padding:12px!important;min-height:52px;border:1px solid #9db1c4;border-radius:8px;}
 .contact-refresh #contents .contact_page textarea {min-height:180px!important;}
 .contact-refresh #contents .contact_page input[type=submit],.contact-refresh #contents .contact_page input[type=reset] {width:100%!important;min-height:52px!important;font-size:18px!important;margin:6px 0!important;}
 .contact-refresh #contents .contact_page input[type=checkbox] {width:22px;height:22px;}
 .contact-refresh #contents .contact_page td>label {padding:12px 0!important;}
 #inquiry-form {scroll-margin-top:82px;}
 .contact-refresh #contents>.contact {display:none!important;}
 .contact-refresh .mobile-form-footer {display:flex;position:fixed;bottom:0;left:0;width:100%;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box;background:#fff;box-shadow:0 -2px 10px #123b6522;z-index:200;}
 .mobile-form-footer a {display:flex;align-items:center;justify-content:center;flex:1;padding:13px 7px;background:#123b65;color:#fff;border-radius:24px;font-size:15px;line-height:1.5;text-decoration:none;}
 .mobile-form-footer a:first-child {background:#d76d00;}
 .contact-refresh {padding-bottom:84px;}
}
.mobile-map-scroll{display:contents}@media(max-width:768px){#contents .mobile-map-scroll{display:block}#spFoot .spFoot__item a{font-size:14px!important;white-space:nowrap}#contents .mobile-contact-copy{font-size:18px!important}#side .side_contact li:has(img[src*="tel.png"]){display:none!important}}@media(max-width:360px){#spFoot .spFoot__item a{font-size:12px!important}.mobile-form-footer a{font-size:13px}}
@media(max-width:768px){.spNav a,.spNav__close{font-size:17px!important;line-height:1.7!important}}
@media(min-width:769px){#side .side_contact img[src*="nenmatsu.jpg"]{display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;}}
@media(max-width:768px){
 #contents .spContact {margin:18px auto!important;}
 #contents .spContact__head {min-height:0!important;padding:12px 12px 0!important;border-radius:12px 12px 0 0;gap:8px;}
 #contents .spContact__text {width:65%!important;}
 #contents .mobile-contact-copy {font-size:17px!important;line-height:1.65!important;}
 #contents .spContact__photo {width:30%!important;max-width:105px!important;}
 #contents .spContact__photo img {max-height:115px;}
 #contents .mobile-contact-actions {display:flex;gap:8px;background:#edf4f8;padding:10px 12px 14px;border-radius:0 0 12px 12px;}
 #contents .mobile-contact-actions a {display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:48px;box-sizing:border-box;padding:10px 5px;background:#123b65;color:#fff;border-radius:8px;font-size:15px;line-height:1.5;text-decoration:none;white-space:nowrap;}
 #contents .mobile-contact-actions a:first-child {background:#d96f00;}
 #contents .mobile-contact-actions i,#contents .mobile-contact-actions span {color:inherit;}
}
@media(max-width:360px){#contents .mobile-contact-copy{font-size:15px!important;}#contents .mobile-contact-actions a{font-size:13px;gap:4px;}}
