/* ===== WordPress用の追加（2026 リニューアル・WEB担当） =====
   site.css（静的サイトと同じ見た目）のあとに読み込む。記事本文・一覧・フォームなど、WordPressにしかない部分 */

/* 管理バーが出ているとき、上のメニューと重ならないように */
.admin-bar .nav{top:32px}
@media (max-width:782px){.admin-bar .nav{top:46px}}

/* ---------- 記事の一覧 ---------- */
.ab-list{padding-top:48px}
.ab-catnav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 auto 40px;max-width:980px}
.ab-catnav a{display:inline-block;padding:8px 18px;border:1px solid var(--line);border-radius:999px;color:var(--text);font-size:14px;line-height:1.4;text-decoration:none;transition:background .2s,border-color .2s}
.ab-catnav a:hover{border-color:var(--text)}
.ab-catnav a.is-current{background:var(--text);border-color:var(--text);color:#fff;font-weight:600}
.ab-list .ci-img:empty{background:var(--gray)}
.ab-empty{text-align:center;color:var(--sub);padding:40px 0}
.pagination{margin-top:56px}
.pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border-radius:999px;background:var(--gray);color:var(--text);text-decoration:none;font-weight:600;font-size:15px;font-variant-numeric:tabular-nums}
.pagination .page-numbers.current{background:var(--text);color:#fff}
.pagination a.page-numbers:hover{background:#e8e8ed}
.pagination .dots{background:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ---------- 記事のページ ---------- */
.post-h .tags a{font-size:12px;font-weight:600;color:var(--sub);border:1px solid var(--line);border-radius:999px;padding:3px 12px;text-decoration:none}
.post-h .tags a:hover{color:var(--link);border-color:var(--link)}
.post-h .tags:empty{display:none}
.post-body{font-size:17px;line-height:2;color:#1d1d1f;overflow-wrap:anywhere}
.post-body > *:first-child{margin-top:0}
.post-body h2{font-size:clamp(22px,2.6vw,28px);font-weight:700;line-height:1.5;letter-spacing:-.01em;margin:64px 0 24px;padding-top:24px;border-top:1px solid var(--line);scroll-margin-top:90px}
.post-body h3{font-size:clamp(19px,2vw,22px);font-weight:700;line-height:1.6;margin:44px 0 16px;scroll-margin-top:90px}
.post-body h4{font-size:18px;font-weight:700;margin:32px 0 12px}
.post-body ul,.post-body ol{margin:0 0 24px;padding-left:1.4em}
.post-body li{margin:6px 0}
.post-body a{color:var(--link)}
.post-body img{max-width:100%;height:auto;border-radius:16px}
.post-body figure,.post-body .wp-block-image{margin:40px 0}
.post-body figcaption{font-size:13px;color:var(--sub);text-align:center;margin-top:10px;line-height:1.6}
.post-body blockquote{margin:32px 0;padding:20px 24px;background:var(--gray);border-radius:16px;color:#3c4043}
.post-body blockquote p:last-child{margin-bottom:0}
.post-body table{width:100%;border-collapse:collapse;margin:32px 0;font-size:15px;line-height:1.7;display:block;overflow-x:auto}
.post-body th,.post-body td{border:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top}
.post-body th{background:var(--gray);font-weight:600;white-space:nowrap}
.post-body hr{border:0;border-top:1px solid var(--line);margin:48px 0}
.post-body .aligncenter{display:block;margin-left:auto;margin-right:auto}
.post-body iframe{max-width:100%}
.post-body .ab-hook{font-size:clamp(19px,2.2vw,22px);line-height:1.7;margin:0 0 32px}
.post-body .ab-rule{color:transparent;height:1px;background:var(--line);margin:48px 0;line-height:0;overflow:hidden;font-size:0}
.post-body .ab-video,.post-body .youtube{position:relative;aspect-ratio:16/9;margin:0 0 20px;border-radius:20px;overflow:hidden;background:#000}
.post-body .ab-video iframe,.post-body .youtube iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.post-body .ab-ytlink{font-size:14px;margin:0 0 32px}
.post-body .ab-chapters{list-style:none;padding:0;margin:0 0 32px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.post-body .ab-chapters li{display:flex;gap:12px;align-items:baseline;margin:0;padding:10px 16px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.6}
.post-body .ab-chapters li:last-child{border-bottom:0}
.post-body .ab-chapter{flex:none;min-width:56px;text-align:center;font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--gray);color:var(--text);text-decoration:none}
.post-body .ab-chapter:hover{background:var(--text);color:#fff}
/* 目次 */
.post-body .ab-toc{margin:40px 0 48px;border:1px solid var(--line);border-radius:16px;background:var(--gray);overflow:hidden}
.post-body .ab-toc summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;font-size:16px;font-weight:700}
.post-body .ab-toc summary::-webkit-details-marker{display:none}
.post-body .ab-toc summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.post-body .ab-toc[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.post-body .ab-toc ol,.post-body .ab-toc ul{list-style:none;margin:0;padding:4px 20px 14px;border-top:1px solid var(--line)}
.post-body .ab-toc li{display:flex;gap:12px;align-items:baseline;margin:0;padding:9px 0;border-bottom:1px dashed var(--line);font-size:15px;line-height:1.6}
.post-body .ab-toc li:last-child{border-bottom:0}
.post-body .ab-toc li a{color:var(--text);text-decoration:none}
.post-body .ab-toc li a:hover{color:var(--link)}
.post-body .ab-tocnum{flex:none;min-width:22px;font-weight:600;color:var(--sub);font-variant-numeric:tabular-nums}
/* 関連記事のカード */
.post-body .ab-relcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 40px;padding:0;list-style:none}
.post-body .ab-relcards li{margin:0;min-width:0}
.post-body .ab-relcard{display:flex;flex-direction:column;height:100%;background:var(--gray);border-radius:16px;overflow:hidden;color:var(--text);text-decoration:none;transition:transform .2s,box-shadow .2s}
.post-body .ab-relcard:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.post-body .ab-relimg{aspect-ratio:16/9;background:#e8e8ed center/cover no-repeat}
.post-body .ab-relbody{display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px;flex:1;min-width:0}
.post-body .ab-reltag{align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:.06em;padding:2px 10px;border-radius:999px;background:var(--text);color:#fff;line-height:1.6}
.post-body .ab-reltag.is-video{background:#c4302b}
.post-body .ab-reltitle{font-size:15px;font-weight:600;line-height:1.6}
.post-body .ab-relmore{margin-top:auto;font-size:13px;color:var(--link)}
@media (max-width:640px){
  .post-body{font-size:16px}
  .post-body .ab-relcards{grid-template-columns:1fr;gap:12px}
  .post-body .ab-relcard{flex-direction:row}
  .post-body .ab-relimg{flex:none;align-self:center;width:42%;background-size:contain;background-color:#e8e8ed}
  .post-body .ab-relbody{padding:10px 12px;gap:6px}
  .post-body .ab-reltitle{font-size:14px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
  .post-body .ab-relmore{display:none}
}
.post-nav span:empty{display:block}
.page-body{max-width:820px;margin:0 auto}

/* ---------- フォーム（MW WP Form） ---------- */
.wpform dl{margin:0}
.wpform dt{font-size:15px;font-weight:700;margin:0 0 8px}
.wpform dt .must{font-size:11px;font-weight:600;color:#bf4800;margin-left:8px}
.wpform dd{margin:0 0 20px}
.wpform input[type=text],.wpform input[type=email],.wpform input[type=tel],.wpform select,.wpform textarea{font:inherit;font-size:17px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);width:100%;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}
.wpform textarea{min-height:180px;resize:vertical}
.wpform input:focus,.wpform select:focus,.wpform textarea:focus{outline:0;border-color:var(--link);box-shadow:0 0 0 4px color-mix(in srgb,var(--link) 18%,transparent)}
.wpform p{font-size:13px;color:var(--sub);line-height:1.8;margin:0 0 12px}
.wpform p.center,.wpform p[style*=center]{text-align:left!important}
.wpform a{color:var(--link)}
.wpform .mwform-checkbox-field{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--text);cursor:pointer}
.wpform input[type=checkbox]{width:20px;height:20px;accent-color:var(--link)}
.wpform .submit{margin-top:24px}
.wpform input[type=submit],.wpform button[type=submit],.wpform .submit input{display:block;width:100%;border:0;cursor:pointer;font:inherit;font-size:18px;font-weight:700;color:#fff;background:var(--blue);border-radius:999px;padding:18px 24px;transition:background .2s}
.wpform input[type=submit]:hover,.wpform .submit input:hover{background:var(--blue-h)}
.wpform input[name=submitBack]{background:var(--gray);color:var(--text);margin-top:12px}
.wpform .error{display:block;color:#d70015;font-size:13px;margin-top:6px}
.wpform .mw_wp_form_complete,.wpform .mw_wp_form_confirm{font-size:16px;line-height:1.9;color:var(--text)}

/* reCAPTCHAのバッジ（今のサイトと同じく隠す） */
.grecaptcha-badge{visibility:hidden}

/* ブログ・動画記事の最後の、無料説明会の案内（2026-10-12） */
.ab-lpcta{max-width:720px;margin:64px auto 0;padding:40px 32px;background:var(--gray);border-radius:24px;text-align:center}
.ab-lpcta .eyebrow{display:block;margin-bottom:8px}
.ab-lpcta-t{font-size:clamp(22px,3vw,28px);font-weight:700;line-height:1.4;letter-spacing:-.01em;margin:0 0 14px}
.ab-lpcta-p{font-size:15px;line-height:1.9;color:var(--sub);margin:0 auto 24px;max-width:560px;text-align:left}
@supports (word-break:auto-phrase){.ab-lpcta-p,.ab-lpcta-t{word-break:auto-phrase}}
@media (max-width:640px){.ab-lpcta{padding:32px 20px;border-radius:20px}.ab-lpcta .btn{width:100%}}

/* フォーム送信後の完了表示（LPとそろえる 2026-10-12） */
.wpform .form-done{background:#fff;border-radius:28px;padding:56px 28px;text-align:center;box-shadow:0 0 0 2px var(--link) inset}
.wpform .form-done .fd-ic{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--link);color:#fff;font-size:32px;font-weight:700;margin-bottom:18px}
.wpform .form-done h3{font-size:clamp(22px,3vw,28px);font-weight:700;margin:0 0 12px;color:var(--text)}
.wpform .form-done p{font-size:16px;color:var(--sub);line-height:1.9;text-align:center!important;margin:0 0 28px}
.wpform .form-done .fd-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.wpform .form-done .fd-btns a{display:inline-flex;align-items:center;justify-content:center;min-width:180px;padding:14px 24px;border-radius:999px;border:1px solid var(--link);color:var(--link);text-decoration:none;font-weight:600;font-size:15px}
.wpform .form-done .fd-btns a:first-child{background:var(--link);color:#fff}
.wpform:has(.form-done){background:none;padding:0}
@supports (word-break:auto-phrase){.wpform .form-done p,.wpform .form-done h3{word-break:auto-phrase}}
@media (max-width:734px){.wpform .form-done{padding:44px 20px}.wpform .form-done p{font-size:15px}.wpform .form-done .fd-btns a{width:100%}}

/* トップの動画欄（2026-10-12） */
.mv-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px;margin-top:8px}
.mv-img{position:relative}
.mv-img img{object-fit:cover!important}
.mv-play{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(0,0,0,.6);transition:background .2s}
.mv-play::after{content:"";position:absolute;left:22px;top:17px;border-style:solid;border-width:11px 0 11px 17px;border-color:transparent transparent transparent #fff}
.ci:hover .mv-play{background:#c4302b}
#movies .btns{margin-top:40px}
@media (max-width:900px){.mv-list{grid-template-columns:1fr;gap:28px}}
/* 動画欄：PCは3本、スマホは横にスワイプして6本 */
@media (min-width:901px){.mv-list .ci:nth-child(n+4){display:none}}
@media (max-width:900px){
  .mv-list{display:grid;grid-auto-flow:column;grid-auto-columns:82%;grid-template-columns:none;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin:8px -20px 0;padding:0 20px 8px;scroll-padding:0 20px;scrollbar-width:none}
  .mv-list::-webkit-scrollbar{display:none}
  .mv-list .ci{scroll-snap-align:start}
}
@media (max-width:900px){.mv-list{margin:8px -16px 0;padding:0 16px 8px;scroll-padding:0 16px}}
/* 動画欄のスワイプ：指が当たっても揺れないように（2026-10-12） */
@media (max-width:900px){
  .mv-list{scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
  .mv-list .ci-img img{transition:none!important;transform:none!important}
}
@media (hover:none){.ci:hover .ci-img img{transform:none!important}.ci:hover .mv-play{background:rgba(0,0,0,.6)}}
/* お問い合わせ：ご相談の内容（選ぶ欄） */
.wpform .mwform-radio-field{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:15px;color:var(--text);cursor:pointer}
.wpform .mwform-radio-field input{width:20px;height:20px;accent-color:var(--link);flex:none}
.wpform .mwform-radio-field.vertical-item{display:block}
.wpform .mwform-radio-field label{display:flex;align-items:center;gap:10px;cursor:pointer}

/* 目次：箱をやめて、上下の線だけのすっきりした形に（2026-10-12） */
.post-body details.ab-toc{margin:40px 0 48px;padding:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.post-body details.ab-toc summary{display:flex;align-items:center;justify-content:space-between;padding:18px 2px;margin:0;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none;color:var(--text)!important;font-size:15px;font-weight:700;letter-spacing:.04em}
.post-body details.ab-toc summary:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.post-body details.ab-toc summary::after{width:7px;height:7px;border-color:var(--sub)}
.post-body details.ab-toc ol,.post-body details.ab-toc ul{padding:0 2px 16px;border-top:0}
.post-body details.ab-toc li{padding:7px 0;border-bottom:0;font-size:15px}
.post-body details.ab-toc li a{color:var(--text)}
.post-body details.ab-toc li a:hover{color:var(--link);text-decoration:underline}
.post-body .ab-tocnum{color:var(--link);font-size:13px}
.post-body details.ab-toc{border-bottom:0}
.post-body details.ab-toc summary::before{content:none!important;display:none!important}
.post-body details.ab-toc summary::after{content:"＋"!important;width:auto!important;height:auto!important;border:0!important;transform:none!important;font-size:18px;font-weight:400;color:var(--link);line-height:1;background:none!important;position:static!important}
.post-body details.ab-toc[open] summary::after{content:"－"!important;transform:none!important}
.post-body details.ab-toc{margin-bottom:0}
.post-body details.ab-toc + h2{margin-top:28px}
