/* TreeCMS integration; original design is preserved. */
body[data-section="inquiry"] .myform-intro{font-size:1.8rem;line-height:2;text-align:center;margin:40px 0}
body[data-section="inquiry"] #inquiry_wrap{padding-bottom:clamp(32px,5vw,64px)}
body[data-section="inquiry"] #inquiry_wrap .form_box .btn_box .myform-button{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:clamp(48px,5vw,60px);padding:.75em 1em;line-height:1.5}
body[data-section="inquiry"] .myform-privacy{font-size:1.6rem;line-height:1.8;text-align:center;margin-top:clamp(12px,2vw,16px)}
.cms-content img{max-width:100%;height:auto}
@media(max-width:1023px){body[data-section="inquiry"] .myform-intro{font-size:1.4rem;margin:24px 0}}

/* Native editable tables retain the original definition-list design. */
table.cms-spec-table{display:table!important;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
table.cms-spec-table>tbody{display:table-row-group}
table.cms-spec-table>tbody>tr{display:table-row}
table.cms-spec-table>tbody>tr>th,table.cms-spec-table>tbody>tr>td{display:table-cell;font-weight:inherit;text-align:inherit;vertical-align:top;border-top:0!important}
body[data-section="aboutus"] table.cms-spec-table>tbody>tr>th,body[data-section="aboutus"] table.cms-spec-table>tbody>tr>td{vertical-align:middle}
body[data-section="aboutus"] table.cms-spec-table>tbody>tr:first-child>th{border-top:1px solid #c57641!important}
body[data-section="aboutus"] table.cms-spec-table>tbody>tr:first-child>td{border-top:1px solid #ebe5d4!important}
body[data-section="facility"] table.cms-spec-table>tbody>tr:first-child>th,body[data-section="onsen"] table.cms-spec-table>tbody>tr:first-child>th{border-top:1px solid #aeaeae!important}
@media(min-width:1024px){
 body[data-section="en"] table.cms-spec-table>tbody>tr>th,body[data-section="en"] table.cms-spec-table>tbody>tr>td{vertical-align:middle}
 body[data-section="facility"] table.cms-spec-table>tbody>tr:first-child>td,body[data-section="onsen"] table.cms-spec-table>tbody>tr:first-child>td{border-top:1px solid #aeaeae!important}
}
@media(max-width:1023px){
 body[data-section="facility"] table.cms-spec-table,body[data-section="onsen"] table.cms-spec-table{display:block!important}
 body[data-section="facility"] table.cms-spec-table>tbody,body[data-section="facility"] table.cms-spec-table>tbody>tr,body[data-section="facility"] table.cms-spec-table>tbody>tr>th,body[data-section="facility"] table.cms-spec-table>tbody>tr>td,
 body[data-section="onsen"] table.cms-spec-table>tbody,body[data-section="onsen"] table.cms-spec-table>tbody>tr,body[data-section="onsen"] table.cms-spec-table>tbody>tr>th,body[data-section="onsen"] table.cms-spec-table>tbody>tr>td{display:block;width:100%}
 body[data-section="facility"] #info_wrap table.cms-spec-table>tbody>tr>td.des{border-bottom:1px solid #aeaeae!important}
 body[data-section="facility"] #info_wrap table.cms-spec-table>tbody>tr:last-child>td.des{border-bottom:0!important}
}

/* Newly added facility sections inherit the spacing of the existing galleries. */
body[data-section="facility"] .cms-facility-section[id^="facility-section-"]{margin-top:112px}
@media(max-width:1023px){body[data-section="facility"] .cms-facility-section[id^="facility-section-"]{margin-top:min(69px,14.375vw)}}

/* CMS attachments below standard page and news article bodies. */
.cms-attachments{box-sizing:border-box;container-type:inline-size;width:min(90%,1000px);margin:clamp(24px,5vw,64px) auto;overflow-wrap:anywhere}
.art_cont .cms-attachments{width:100%;margin-bottom:0}
.cms-attachment-gallery{display:grid;gap:1rem}
.cms-attachment-photo{margin:0;text-align:center}
.cms-attachment-photo img{display:block;max-width:100%;height:auto;margin:auto}
.cms-attachment-photo figcaption{margin-top:.5em;line-height:1.5;font-size:.9em}
.cms-attachment-gallery.slick-initialized{display:block}
.cms-attachment-gallery .slick-slide{margin:0 .5rem;max-width:100cqi}
.cms-attachment-gallery .slick-slide img{width:auto;height:min(34rem,50cqi);max-width:100cqi;object-fit:contain}
.cms-gallery-controls{display:flex;align-items:center;justify-content:center;gap:clamp(4px,1.5vw,16px);margin-top:16px}
.cms-gallery-controls button{position:static;display:grid;place-items:center;box-sizing:border-box;padding:0;cursor:pointer}
.cms-gallery-controls .cms-gallery-arrow{flex:0 0 44px;width:44px;height:44px;border:1px solid #b58565;border-radius:50%;background:#fff;color:#744322}
.cms-gallery-arrow::before{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0}
.cms-gallery-prev::before{transform:translateX(2px) rotate(135deg)}
.cms-gallery-next::before{transform:translateX(-2px) rotate(-45deg)}
.cms-gallery-indicators{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;min-width:0}
.cms-gallery-indicators button{width:26px;height:28px;border:0;background:transparent;color:#744322}
.cms-gallery-indicators button::before{content:"";box-sizing:border-box;width:8px;height:8px;border:1px solid currentColor;border-radius:50%}
.cms-gallery-indicators button[aria-current="true"]::before{background:currentColor;transform:scale(1.25)}
.cms-attachments .cms-attachment-resources{list-style:none;padding:0;margin:0}
.cms-attachments :is(.cms-attachment-gallery,.cms-gallery-controls) + .cms-attachment-resources{margin-top:2em}
.cms-attachment-resources li{border-bottom:1px solid #ddd6cf}
.cms-attachment-resources a{display:flex;align-items:center;gap:.65em;min-height:44px;padding:.5em 0;color:inherit;text-decoration:underline;text-underline-offset:.2em}
.cms-attachment-resources svg{width:1em;height:1.15em;fill:currentColor;color:#89562e;flex:none}
.cms-attachment-resources small{color:#57524d;font-size:.85em;flex:none}
.cms-attachment-resources p{margin:0 0 .7em}
.cms-attachments button:focus-visible,.cms-attachments a:focus-visible{outline:2px solid #865226;outline-offset:2px}
