/* 共通 */
[id]{scroll-margin-top:96px}html{scroll-behavior:auto}

#spmenu{position:fixed;inset:0;background:rgba(28,46,74,.55);z-index:100;display:none}
#spmenu.open{display:block}
#spmenu .spm-in{position:absolute;top:0;right:0;bottom:0;width:min(82vw,320px);background:#fff;padding:64px 24px 24px;box-sizing:border-box;overflow:auto;display:flex;flex-direction:column;font-family:'BIZ UDPGothic','Noto Sans JP',sans-serif}
#spmenu a{color:#231815;font-weight:700;font-size:15px;padding:14px 4px;border-bottom:1px solid #E7E4DF;text-decoration:none}
#spmenu a.spm-line{margin-top:18px;border:0;border-radius:999px;background:#80B943;text-align:center}
#spmenu .spm-x{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;background:#F7F5F0;border-radius:12px;font-size:22px;cursor:pointer}

/* ---- PC版 / スマホ版トップの切り替え ---- */
.bx-sp{display:none}
@media (max-width:760px){.bx-pc{display:none}.bx-sp{display:block}}
.sp-only{display:none!important}
@media (max-width:760px){
.sp-only{display:flex!important}
header .sp-line{width:44px;height:44px;border-radius:12px;background:#06C755;align-items:center;justify-content:center;margin-left:auto;order:8}
header .burger{order:9}
.gnav{display:none!important}.burger{display:flex!important}
header .wrap{flex-wrap:nowrap!important;gap:10px!important}
}
body{margin:0}
.bx-main{overflow-x:clip}
@media (max-width:760px){.bx-main>footer{padding-bottom:68px}.bx-util{display:none!important}}
.admin-bar header[style*="sticky"]{top:32px!important}
@media (max-width:782px){.admin-bar header[style*="sticky"]{top:46px!important}}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.nw{white-space:nowrap}

/* ---- ページ送り ---- */
.bx-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:40px}
.bx-pager .page-numbers{min-width:44px;height:44px;padding:0 12px;box-sizing:border-box;border:1px solid #D6D1CB;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#231815;font-weight:700;background:#fff}
.bx-pager .page-numbers.current{background:#1C2E4A;border-color:#1C2E4A;color:#fff}
.bx-pager .page-numbers.dots{border:0}
.chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid #D6D1CB;border-radius:999px;background:#fff;color:#231815;font-size:14px;cursor:pointer}
.chip.is-on{background:#1C2E4A;color:#fff;border-color:#1C2E4A;font-weight:700}

/* ---- 本文（WordPress のブロック・旧テーマ部品） ---- */
.body>*:first-child{margin-top:0}
.body .wp-block-image,.body .wp-caption{margin:24px 0;max-width:100%}
.body .wp-block-image img,.body .wp-caption img{border-radius:12px}
.body .wp-element-caption,.body .wp-caption-text{font-size:13px;color:#5E5753;margin-top:8px;text-align:center}
.body .aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.body .alignleft{float:left;margin:0 20px 12px 0}.body .alignright{float:right;margin:0 0 12px 20px}
.body .wp-block-table{margin:20px 0;overflow-x:auto}
.body .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:24px 0}
.body .wp-block-button__link,.body .wp-element-button,.body [class*="epb-btn"] a,.body [class*="epb-button"] a,.body [class*="advanced-button"] a{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:999px;background:#F19E14;color:#231815!important;font-weight:700;text-decoration:none!important}
.body a[href*="lin.ee"].wp-block-button__link,.body [class*="epb-btn"] a[href*="lin.ee"]{background:#80B943}
.body [class*="epb-btn"],.body [class*="epb-button"]{text-align:center;margin:24px 0}
.body .epb-box,.body [class*="epb-box"]{margin:24px 0;background:#F7F5F0;border-radius:14px;padding:18px 22px}
.body .epb-box__headline{font-weight:700;margin-bottom:6px}
.body [class*="headling"] h2,.body [class*="headling"] h3{margin-top:40px}
.body [class*="epb-underline"],.body .swl-marker{background:linear-gradient(transparent 60%,#FCE9B8 60%)}
.body [class*="toc"],.body [class*="sns-share"],.body [class*="share-btn"],.body [class*="author-card"],.body [class*="cta-"]{display:none!important}
.body iframe{max-width:100%}
.body .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;height:auto}
.body hr{border:0;border-top:1px solid #E7E4DF;margin:32px 0}

/* ---- お問い合わせフォーム（Contact Form 7） ---- */
.bx-cf7 p,.bx-form p{margin:0 0 16px}
.bx-cf7 label,.bx-form label{font-weight:700;font-size:14px}
.bx-cf7 input[type=text],.bx-cf7 input[type=email],.bx-cf7 input[type=tel],.bx-cf7 select,.bx-cf7 textarea,
.bx-form input[type=text],.bx-form input[type=email],.bx-form input[type=tel],.bx-form select,.bx-form textarea{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #D6D1CB;border-radius:10px;padding:10px 14px;font-size:16px;font-family:inherit;background:#fff}
.bx-cf7 textarea,.bx-form textarea{min-height:160px}
.bx-cf7 input[type=submit],.bx-form input[type=submit]{min-height:56px;padding:0 40px;border:0;border-radius:999px;background:#F19E14;color:#231815;font-weight:700;font-size:16px;font-family:inherit;cursor:pointer}
.bx-cf7 input[type=submit]:hover,.bx-form input[type=submit]:hover{background:#D98A06}
.bx-cf7 .wpcf7-list-item,.bx-form .wpcf7-list-item{display:inline-flex;margin:4px 16px 4px 0}
.bx-cf7 .wpcf7-not-valid-tip,.bx-form .wpcf7-not-valid-tip{font-size:13px}
.bx-cf7 .wpcf7-response-output,.bx-form .wpcf7-response-output{border-radius:10px;margin:16px 0 0!important}
.bx-cf7 table,.bx-form table{width:100%;border-collapse:collapse}
.bx-cf7 th,.bx-cf7 td,.bx-form th,.bx-form td{display:block;text-align:left;padding:6px 0;border:0}

.bx-cf7 .hidden-fields-container,.bx-form .hidden-fields-container{display:none!important;border:0;padding:0;margin:0}
.bx-cf7 .screen-reader-response,.bx-form .screen-reader-response{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.bx-cf7 .epb-columns,.bx-cf7 .epb-column,.bx-cf7 .epb-column__item{display:block;width:auto}

/* ---- 旧テーマ（Emanon）の見出しブロックを新デザインの見出しにそろえる ---- */
.body div[class*="epb-advanced-headling"]{background:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;color:inherit!important;min-height:0!important}
.body div[class*="epb-advanced-headling"]::before,.body div[class*="epb-advanced-headling"]::after,.body .epb-advanced-headling__text::before,.body .epb-advanced-headling__text::after{display:none!important;content:none!important}
.body h2.epb-advanced-headling__text{color:#231815!important;background:none!important;margin:48px 0 16px!important}
.body h3.epb-advanced-headling__text{color:#231815!important;background:none!important;margin:36px 0 12px!important}
.body .epb-advanced-headling__sub-text{font-size:13px;color:#5E5753;margin:-8px 0 16px}

/* ---- 文字の泣き別れを防ぐ（最終行が1〜2文字にならないよう調整） ---- */
.bx-main a,.bx-main p,.bx-main li,.bx-main dd,.bx-main dt,.bx-main td,.bx-main th,.bx-main h1,.bx-main h2,.bx-main h3,.bx-main h4,.bx-main figcaption,.bx-main summary,.bx-main label,.bx-main div,.bx-main span{word-break:auto-phrase;text-wrap:pretty;line-break:strict}
.bx-main h1,.bx-main h2,.bx-main h3{text-wrap:balance}

/* ---- 本文中のフォーム（表組みのフォーム）をスマホ幅に収める ---- */
.body form table,.body.bx-form table,.bx-form table{min-width:0!important;width:100%!important}
.body form .tbl{overflow:visible}
@media (max-width:760px){.body form th,.body form td{display:block;width:auto!important;padding:6px 0!important;border:0!important;background:none!important}}
.body .wpcf7-list-item{display:inline-flex;margin:4px 14px 4px 0}
.body [class*="epb-advanced-button__microcopy"]{width:auto!important;max-width:100%;white-space:normal}
aside p>.nw,div[style*="#EEF6E6"]>p>.nw{white-space:normal}
.body .epb-advanced-headling .epb-advanced-headling__inner{border:0!important;padding:0!important;background:none!important}
[style*="background:#1C2E4A"] .h2,[style*="background:#1C2E4A"] h2{color:#fff}
