/* ===== 記事ページ（article-*.html）を案N7の見た目にそろえる共通の上書き ===== */
/* 記事の中のCSSの後に読み込む。ヘッダー・フッターは style.css と同じ作り。 */
:root{--serif:'Noto Sans JP',sans-serif;--sans:'Noto Sans JP',sans-serif;--law:#1F3A5F;--law-soft:#EAF0F6}

/* ---- ヘッダー（トップと同じ） ---- */
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
header.gh{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);font-size:16px;line-height:1.9;letter-spacing:0}
header.gh .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
header.gh .logo{flex-shrink:0;text-decoration:none}
header.gh .wrap>nav,header.gh .menu{flex-shrink:0}
.gnav{display:flex;gap:24px;align-items:center;font-size:14px}
.gnav a{color:var(--ink);text-decoration:none}
.gh .btn{display:inline-block;font-weight:700;text-decoration:none;letter-spacing:.06em;border:1px solid var(--wine);transition:.2s;text-align:center;border-radius:999px}
.gh .btn-primary{background:var(--wine);color:#fff}
.gh .btn-primary:hover{background:var(--wine-deep)}
.gnav .btn{padding:9px 18px;font-size:13px;color:#fff;white-space:nowrap}
.menu{display:none;position:relative}
.menu summary{list-style:none;cursor:pointer;border:1px solid var(--line);padding:6px 12px;font-size:13px;border-radius:999px;white-space:nowrap;display:block}
.menu summary::before{content:none}
.menu summary::-webkit-details-marker{display:none}
.menu nav{position:absolute;right:0;top:44px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px rgba(0,0,0,.08);display:flex;flex-direction:column;min-width:220px}
.menu nav a{padding:13px 20px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-size:15px;line-height:1.9}
.menu nav a:last-child{background:var(--wine);color:#fff;font-weight:700;border:0}
@media(max-width:900px){.gnav a:not(.btn){display:none}.menu{display:block}header.gh .wrap{gap:10px}.gnav{gap:10px}}
@media(max-width:400px){.gnav .btn{padding:8px 12px}}
@media(max-width:360px){.gnav{display:none}}

/* ロゴ（Zen オールド明朝の事務所名） */
.lg{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;line-height:1}
.lg-mark{width:38px;height:38px;flex:0 0 38px}
.lg-text{display:flex;flex-direction:column;gap:5px;border-left:1px solid #E6DCDE;padding-left:10px;position:relative;top:3px}
.lg-ja{font-family:'Zen Old Mincho',serif;font-weight:600;font-size:21px;letter-spacing:.08em;color:#5E1830;white-space:nowrap}
.lg-en{font-family:'Cormorant Garamond',serif;font-size:8.6px;letter-spacing:.24em;color:#9A7B45;white-space:nowrap}
@media(max-width:520px){.lg{gap:8px}.lg-ja{font-size:16px;letter-spacing:.04em}.lg-mark{width:30px;height:30px;flex-basis:30px}.lg-text{padding-left:8px;gap:4px}.lg-en{font-size:6.6px;letter-spacing:.18em}header.gh .wrap{gap:8px}.menu summary,.gnav .btn{padding:8px 12px}}
@media(max-width:400px){.lg-ja{font-size:14.5px;letter-spacing:.02em}.lg-mark{width:26px;height:26px;flex-basis:26px}.lg-en{font-size:5.8px;letter-spacing:.12em}.lg-text{padding-left:7px}}

/* ---- フッター（トップと同じ） ---- */
footer.gf{background:#1E1416;color:rgba(255,255,255,.75);padding:52px 0 32px;font-size:13px;line-height:1.9;letter-spacing:0}
footer.gf .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
footer.gf a{color:rgba(255,255,255,.8);text-decoration:none}
footer.gf ul{list-style:none;display:grid;gap:6px;margin:0}
footer.gf p{margin:0}
footer.gf .copy{border-top:1px solid rgba(255,255,255,.12);margin-top:32px;padding-top:18px}
footer.gf .lawnote{font-size:12.5px;line-height:1.8;opacity:.85;margin-top:8px}
footer.gf .lg{margin-bottom:14px}
footer.gf .lg-mark{filter:brightness(0) invert(1);opacity:.9}
footer.gf .lg-text{border-left-color:rgba(255,255,255,.35)}
footer.gf .lg-ja{color:#fff}
footer.gf .lg-en{color:rgba(255,255,255,.7)}
@media(max-width:760px){footer.gf .cols{grid-template-columns:1fr 1fr}footer.gf .cols>div:first-child{grid-column:1/-1}}

/* ---- 記事の本体 ---- */
/* 見出しを角ゴシック（Noto Sans JP）に */
h1,h2,h3,.faq summary::before,.author .name,.related .label,.duo .co b.h,.cta .price{font-family:'Noto Sans JP',sans-serif}
h1,h2,h3{font-weight:700}

/* 記事の帯（art-head）をトップのファーストビューと同じワインレッドに */
.art-head{background:radial-gradient(130% 150% at 88% 0%,#8C2646 0%,#7B1E3A 36%,#4A0F22 100%);border-radius:10px 10px 0 0}
@media(max-width:700px){.art-head{border-radius:0}}
.article{border-radius:10px}
@media(max-width:700px){.article{border-radius:0}}

/* 左に縦線のアクセントがある囲みは四隅を四角、縦線は4px */
h2{border-left-width:4px;border-radius:0}
.inline-link{border-left-width:4px;border-radius:0}

/* カード・囲みの四隅は10pxの角丸 */
.summary,.toc,.point,figure,.faq details,.comment,.related a,.cta{border-radius:10px}
.author img{border-radius:10px}
.tbl{border-radius:10px}

/* ボタンを丸い囲いに */
.cta a{border-radius:999px;padding:12px 26px}
.cta .ctanote a{border-radius:0;padding:0}
.author .more{border-radius:999px}

/* スマホのメニューを三本線（ハンバーガー）に（2026-11-21） */
.menu summary{border:0;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:0;background:none}
.menu .hb{position:relative;display:block;width:24px;height:16px}
.menu .hb i{position:absolute;left:0;width:100%;height:2px;background:#5E1830;border-radius:2px;transition:transform .2s,opacity .2s}
.menu .hb i:nth-child(1){top:0}.menu .hb i:nth-child(2){top:7px}.menu .hb i:nth-child(3){top:14px}
.menu[open] .hb i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu[open] .hb i:nth-child(2){opacity:0}
.menu[open] .hb i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:520px){.menu summary{padding:0}}

/* トップに戻るボタンを少し上に（2026-11-21） */
.totop{bottom:32px}
@media(max-width:640px){.totop{bottom:28px}}

/* スマホのメニュー一覧を画面の右端にぴったり付ける（2026-11-21） */
@media(max-width:900px){.menu nav{right:-20px;border-right:0}}

/* ヘッダーの検索（無料相談とメニューの間）（2026-11-21） */
.hsearch{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#5E1830;text-decoration:none;line-height:1;padding:2px 4px}
.hsearch span{font-size:10px;font-weight:700;letter-spacing:.04em}
.hsearch:hover{color:var(--wine)}
@media(max-width:900px){.gnav a.hsearch{display:inline-flex}}
@media(max-width:520px){.gnav{gap:8px}.hsearch svg{width:21px;height:21px}}

/* 検索を足した分、PC表示のヘッダーの間隔を詰める（2026-11-21） */
@media(min-width:901px) and (max-width:1180px){.gnav{gap:14px}.gnav a:not(.btn):not(.hsearch){font-size:13.5px}header.gh .wrap{gap:10px}}
@media(min-width:901px) and (max-width:1000px){.gnav a:not(.btn):not(.hsearch){display:none}.menu{display:block}header.gh .menu{margin-left:-22px}.menu nav{right:-20px;border-right:0}.gnav{gap:10px}}
@media(max-width:1000px){header.gh .gnav{margin-left:auto}}
@media(max-width:1000px){header.gh .menu{margin-left:-4px}}
@media(max-width:360px){.gnav{display:flex}.gnav .btn{display:none}}

/* 記事の相談の囲み：無料のDD自己診断への下線リンク（2026-11-21） */
.cta .ctajump{margin:14px 0 0}
.cta .ctajump a{display:inline;background:none;border:0;border-radius:0;padding:0;color:#fff;font-size:14px;font-weight:500;text-decoration:underline;text-decoration-color:rgba(201,169,110,.9);text-underline-offset:5px;box-shadow:none}
.cta .ctajump a:hover{color:#F3E3C3;background:none}
