/* 記事LP専用CSS v3（2026-11-21）
layout: lp の記事（post meta _nv_layout=lp）でのみ enqueue される。
確定形: 図解・画像が主役、絵文字なし、背景は白＋薄グレー、本文幅720px。
サイト palette の accent 色を使いながら、LPらしい大きな見出し、数字カード、
大きなCTAと追尾バーでメリハリを付ける。
v3: 見出し類（h2・ボックス見出し・表ヘッダー）の白文字を廃止し、薄い背景＋濃色文字に統一。 */

.layout-lp {
--lp-ink: #16263d;
--lp-body: #2d3a4a;
--lp-muted: #64748b;
--lp-line: #dbe3ec;
--lp-soft: #f4f6f8;
--lp-soft-blue: #eef6fd;
--lp-soft-green: #ecf8f2;
--lp-soft-yellow: #fff7dd;
--lp-blue: var(--accent, #2b8fd6);
--lp-green: var(--accent3, #3dbe8b);
--lp-yellow: var(--accent2, #ffc93c);
background: #fff;
color: var(--lp-body);
}
.layout-lp .post-head {
max-width: 920px;
margin-inline: auto;
padding: clamp(28px, 6vw, 54px) 0 8px;
}
.layout-lp .post-head h1 {
max-width: 720px;
margin-inline: auto;
font-size: clamp(34px, 6.4vw, 52px);
line-height: 1.24;
font-weight: 900;
letter-spacing: -.035em;
color: var(--lp-ink);
text-wrap: balance;
}
.layout-lp .post-head .lede {
max-width: 720px;
margin: 18px auto 0;
font-size: clamp(16px, 2.4vw, 18.5px);
line-height: 1.85;
color: #475569;
}
.layout-lp .byline {
max-width: 720px;
margin: 18px auto 0;
padding: 10px 0;
border-top: 1px solid var(--lp-line);
border-bottom: 1px solid var(--lp-line);
color: var(--lp-muted);
font-size: 13px;
}
.layout-lp .hero-card {
max-width: 920px;
aspect-ratio: 1600 / 822;
margin-top: 26px;
border: 1px solid #cfd9e4;
border-radius: 24px;
overflow: hidden;
background: var(--lp-soft);
box-shadow: 0 22px 48px rgba(22, 38, 61, .16);
}
.layout-lp .hero-card img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.layout-lp .content {
max-width: 720px;
margin-inline: auto;
font-size: 16.5px;
line-height: 1.9;
color: var(--lp-body);
}
.layout-lp .content > * {
max-width: 720px;
}
.layout-lp .content p {
margin: 0 0 1.15em;
}
.layout-lp .content > p:first-of-type {
display: inline-flex;
width: fit-content;
margin-bottom: 18px;
padding: 5px 11px;
border: 1px solid #f2c94c;
border-radius: 999px;
background: var(--lp-soft-yellow);
color: #6b5310;
font-size: 12.5px;
font-weight: 800;
line-height: 1.5;
}
.layout-lp .content strong {
color: var(--lp-ink);
font-weight: 900;
background: linear-gradient(transparent 64%, rgba(255, 201, 60, .42) 64%);
}
.layout-lp .content h2 {
max-width: 720px;
margin: 3.2em auto 1.15em;
padding: 19px 22px;
border: 1px solid var(--lp-line);
border-left: 8px solid var(--lp-yellow);
border-radius: 16px;
background: linear-gradient(180deg, #f7fafc, #eaf0f6);
box-shadow: 0 12px 26px rgba(22, 38, 61, .08);
color: var(--lp-ink);
font-size: clamp(24px, 5vw, 32px);
line-height: 1.42;
font-weight: 900;
letter-spacing: -.02em;
}
.layout-lp .content h2:first-of-type {
margin-top: 2.5em;
}
.layout-lp .content h3 {
max-width: 720px;
margin: 2em auto .75em;
padding-left: 14px;
border-left: 6px solid var(--lp-blue);
color: var(--lp-ink);
font-size: clamp(19px, 3.8vw, 23px);
line-height: 1.5;
font-weight: 900;
}
.layout-lp .content a:not([href*="/go/"]) {
color: #0877bd;
font-weight: 700;
text-decoration-thickness: 2px;
text-underline-offset: 3px;
}

/* 結論ボックス */
.layout-lp .content .verdict {
position: relative;
margin: 1.4em auto 2em;
padding: 24px 26px 20px;
overflow: hidden;
border: 2px solid var(--lp-blue);
border-radius: 22px;
background: linear-gradient(145deg, #eef6fd 0%, #fff 64%);
box-shadow: 0 16px 34px rgba(43, 143, 214, .14);
}
.layout-lp .content .verdict::after {
content: "";
position: absolute;
right: -34px;
top: -52px;
width: 132px;
height: 132px;
border-radius: 50%;
background: rgba(255, 201, 60, .28);
pointer-events: none;
}
.layout-lp .content .verdict .lbl {
display: inline-flex;
margin-bottom: 10px;
padding: 5px 11px;
border-radius: 999px;
background: var(--lp-blue);
color: #fff;
font-size: 12.5px;
font-weight: 900;
letter-spacing: .08em;
}
.layout-lp .content .verdict .lbl::before {
display: none;
}
.layout-lp .content .verdict p {
position: relative;
z-index: 1;
font-size: clamp(17px, 3vw, 19px);
line-height: 1.85;
font-weight: 700;
color: var(--lp-ink);
}

/* FV直後の仕様リストを数字・スペックのKPIカードにする */
.layout-lp .content > ul:first-of-type {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin: 1.2em auto 1.5em;
padding: 0;
list-style: none;
}
.layout-lp .content > ul:first-of-type li {
min-height: 76px;
margin: 0;
padding: 17px 18px;
border: 1px solid var(--lp-line);
border-top: 6px solid var(--lp-blue);
border-radius: 16px;
background: #fff;
box-shadow: 0 8px 20px rgba(22, 38, 61, .07);
color: var(--lp-ink);
font-size: 16px;
line-height: 1.6;
font-weight: 850;
}
.layout-lp .content > ul:first-of-type li:nth-child(2) {
border-top-color: var(--lp-green);
}
.layout-lp .content > ul:first-of-type li:nth-child(3) {
border-top-color: var(--lp-yellow);
}
.layout-lp .content > ul:first-of-type li:nth-child(4) {
border-top-color: #7c6bd9;
}

/* 通常リストはチェック付きカード行にする */
.layout-lp .content > ul:not(:first-of-type) {
display: grid;
gap: 9px;
margin: 1.1em auto 1.6em;
padding: 0;
list-style: none;
}
.layout-lp .content > ul:not(:first-of-type) li {
position: relative;
margin: 0;
padding: 13px 16px 13px 48px;
border: 1px solid var(--lp-line);
border-radius: 13px;
background: var(--lp-soft);
line-height: 1.7;
}
.layout-lp .content > ul:not(:first-of-type) li::before {
content: "✓";
position: absolute;
left: 14px;
top: 12px;
display: grid;
place-items: center;
width: 23px;
height: 23px;
border-radius: 50%;
background: var(--lp-green);
color: #fff;
font-size: 14px;
line-height: 1;
font-weight: 900;
}
.layout-lp .content > ol {
display: grid;
gap: 9px;
padding: 0;
list-style: none;
counter-reset: lp-step;
}
.layout-lp .content > ol li {
counter-increment: lp-step;
position: relative;
margin: 0;
padding: 13px 16px 13px 52px;
border: 1px solid var(--lp-line);
border-radius: 13px;
background: #fff;
}
.layout-lp .content > ol li::before {
content: counter(lp-step);
position: absolute;
left: 14px;
top: 12px;
display: grid;
place-items: center;
width: 25px;
height: 25px;
border-radius: 50%;
background: var(--lp-blue);
color: #fff;
font-size: 13px;
font-weight: 900;
}

/* 目次はLPでも読みやすいカードに寄せる */
.layout-lp .content .toc {
margin: 2em auto 2.4em;
padding: 20px 22px;
border: 1px solid var(--lp-line);
border-radius: 18px;
background: var(--lp-soft);
box-shadow: none;
}
.layout-lp .content .toc summary {
color: var(--lp-ink);
font-size: 16px;
font-weight: 900;
}
.layout-lp .content .toc li::before {
background: var(--lp-ink);
border-color: var(--lp-ink);
color: #fff;
}

/* 合う・合わない */
.layout-lp .content .cbox2 {
gap: 16px;
margin: 1.5em auto 2em;
}
.layout-lp .content .cbox {
border: 2px solid #bcd9ef;
border-radius: 18px;
background: #fff;
box-shadow: 0 10px 24px rgba(22, 38, 61, .07);
}
.layout-lp .content .cbox-t {
padding: 12px 18px;
background: var(--lp-soft-blue);
color: var(--lp-ink);
font-size: 16.5px;
font-weight: 900;
}
.layout-lp .content .cbox2 .cbox:nth-child(2) {
border-color: #f0d48a;
}
.layout-lp .content .cbox2 .cbox:nth-child(2) .cbox-t {
background: var(--lp-soft-yellow);
color: var(--lp-ink);
}
.layout-lp .content .cbox ul {
margin: 12px 18px 14px;
padding-left: 1.15em;
}
.layout-lp .content .cbox li {
font-size: 15.5px;
line-height: 1.75;
}

/* 画像と図解 */
.layout-lp .content figure.nv-illust {
margin: 2em auto !important;
}
.layout-lp .content figure.nv-illust img {
display: block;
width: 100%;
height: auto;
border: 1px solid #cfd9e4;
border-radius: 20px;
box-shadow: 0 16px 34px rgba(22, 38, 61, .13);
}
.layout-lp .content figure.nv-illust figcaption {
margin-top: 8px;
color: var(--lp-muted);
font-size: 12px;
text-align: right;
}
.layout-lp .content svg {
display: block;
width: 100%;
height: auto;
margin: 1.6em auto 2em;
padding: 18px;
border: 2px solid #cfe0ee;
border-radius: 20px;
background: linear-gradient(180deg, #f8fbfe, #fff);
box-shadow: 0 12px 26px rgba(22, 38, 61, .08);
box-sizing: border-box;
}
.layout-lp .content svg text {
font-weight: 700;
}
.layout-lp .content svg rect {
filter: saturate(1.08);
}

/* 吹き出し */
.layout-lp .content .say {
margin: 1.6em auto 2em;
}
.layout-lp .content .say-b {
border: 1px solid #f0d48a;
border-radius: 16px;
background: var(--lp-soft-yellow);
box-shadow: 0 8px 20px rgba(166, 106, 0, .08);
}

/* 比較表 */
.layout-lp .content .tbl {
margin: 1.5em auto .6em;
border: 2px solid #cbd7e3;
border-radius: 18px;
background: #fff;
box-shadow: 0 12px 26px rgba(22, 38, 61, .08);
}
.layout-lp .content .tbl table {
font-size: 15px;
line-height: 1.65;
}
.layout-lp .content .tbl th,
.layout-lp .content .tbl td {
padding: 14px 15px;
border-bottom-color: #e2e8f0;
}
.layout-lp .content .tbl thead th {
background: #e8eef4;
color: var(--lp-ink);
font-size: 14.5px;
font-weight: 900;
}
.layout-lp .content .tbl thead th:first-child {
background: #e8eef4;
color: var(--lp-ink);
}
.layout-lp .content .tbl thead th:nth-child(2) {
background: var(--lp-soft-blue);
color: var(--lp-ink);
}
.layout-lp .content .tbl tbody td:first-child {
background: #f1f5f9;
color: var(--lp-ink);
font-weight: 900;
}
.layout-lp .content .tbl tbody td:nth-child(2) {
background: #eef6fd;
color: var(--lp-ink);
font-weight: 800;
}
.layout-lp .content .tbl tbody tr:nth-child(even) td {
background: #fbfcfd;
}
.layout-lp .content .tbl tbody tr:nth-child(even) td:first-child {
background: #e8eef4;
}
.layout-lp .content .tbl tbody tr:nth-child(even) td:nth-child(2) {
background: #e3f0fa;
}
.layout-lp .content .tbl-hint {
margin-top: .4em;
color: var(--lp-muted);
}

/* 料金の数字を強く見せる。価格表の2列目にも効く */
.layout-lp .content .lp-price {
display: inline-block;
padding: 2px 8px;
border-radius: 8px;
background: var(--lp-soft-yellow);
color: #8a5a00;
font-size: 1.55em;
line-height: 1.25;
font-weight: 950;
letter-spacing: -.02em;
}
.layout-lp .content .tbl td:nth-child(2) {
font-size: 1.04em;
}

/* FAQ */
.layout-lp .content details:not(.toc):not(.sources):not(.criteria) {
max-width: 720px;
margin: .85em auto;
padding: 0;
overflow: hidden;
border: 1px solid var(--lp-line);
border-radius: 16px;
background: #fff;
box-shadow: 0 7px 18px rgba(22, 38, 61, .05);
}
.layout-lp .content details:not(.toc):not(.sources):not(.criteria) summary {
position: relative;
padding: 16px 48px 16px 18px;
color: var(--lp-ink);
font-size: 16.5px;
font-weight: 900;
cursor: pointer;
list-style: none;
}
.layout-lp .content details:not(.toc):not(.sources):not(.criteria) summary::-webkit-details-marker {
display: none;
}
.layout-lp .content details:not(.toc):not(.sources):not(.criteria) summary::after {
content: "+";
position: absolute;
right: 17px;
top: 50%;
transform: translateY(-50%);
display: grid;
place-items: center;
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--lp-soft-blue);
color: var(--lp-blue);
font-size: 19px;
line-height: 1;
}
.layout-lp .content details[open]:not(.toc):not(.sources):not(.criteria) summary::after {
content: "−";
}
.layout-lp .content details:not(.toc):not(.sources):not(.criteria) > :not(summary) {
margin: 0;
padding: 0 18px 17px;
}

/* CTA */
.layout-lp .content p > a[href*="/go/"]:only-child {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
box-sizing: border-box;
margin: 1.2em 0 1.8em;
padding: 17px 24px;
border: 1px solid #07834e;
border-radius: 999px;
background: linear-gradient(180deg, #20c67a, #07985c);
box-shadow: 0 14px 28px rgba(7, 152, 92, .26), inset 0 1px 0 rgba(255,255,255,.35);
color: #fff;
font-size: clamp(16.5px, 3vw, 19px);
line-height: 1.45;
font-weight: 950;
text-align: center;
text-decoration: none;
}
.layout-lp .content p > a[href*="/go/"]:only-child::after {
content: "→";
font-size: 1.15em;
font-weight: 900;
}
.layout-lp .content p > a[href*="/go/"]:only-child:hover {
filter: brightness(1.04);
transform: translateY(-1px);
}
.layout-lp .content p > a[href*="/go/"]:only-child:focus-visible,
.nv-lp-sticky a:focus-visible {
outline: 3px solid #111827;
outline-offset: 3px;
}

/* 追尾CTAバー */
.nv-lp-sticky {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
border-top: 1px solid rgba(203, 213, 225, .9);
background: rgba(255, 255, 255, .94);
box-shadow: 0 -12px 32px rgba(22, 38, 61, .16);
backdrop-filter: blur(12px);
text-align: center;
}
.nv-lp-sticky a {
display: flex;
align-items: center;
justify-content: center;
width: min(680px, 100%);
min-height: 54px;
margin-inline: auto;
padding: 13px 22px;
box-sizing: border-box;
border: 1px solid #07834e;
border-radius: 999px;
background: linear-gradient(180deg, #20c67a, #07985c);
box-shadow: 0 12px 26px rgba(7, 152, 92, .28), inset 0 1px 0 rgba(255,255,255,.35);
color: #fff;
font-size: 17px;
line-height: 1.35;
font-weight: 950;
text-align: center;
text-decoration: none;
}
.nv-lp-sticky a::after {
content: "→";
margin-left: 10px;
font-size: 1.1em;
}
body:has(.nv-lp-sticky) {
padding-bottom: 84px;
}

@media (max-width: 640px) {
.layout-lp .post-head {
padding-top: 24px;
}
.layout-lp .post-head h1 {
font-size: 32px;
line-height: 1.3;
}
.layout-lp .hero-card {
margin-top: 20px;
border-radius: 18px;
}
.layout-lp .content {
font-size: 16px;
}
.layout-lp .content h2 {
margin-top: 2.7em;
padding: 16px 17px;
border-left-width: 6px;
border-radius: 13px;
font-size: 23px;
}
.layout-lp .content > ul:first-of-type {
grid-template-columns: 1fr;
}
.layout-lp .content > ul:first-of-type li {
min-height: 0;
padding: 14px 16px;
}
.layout-lp .content .verdict {
padding: 20px 18px 16px;
border-radius: 18px;
}
.layout-lp .content figure.nv-illust img {
border-radius: 16px;
}
.layout-lp .content svg {
padding: 10px;
border-radius: 16px;
}
.layout-lp .content .tbl table {
min-width: 620px;
}
.nv-lp-sticky {
padding-inline: 10px;
}
.nv-lp-sticky a {
min-height: 52px;
font-size: 16px;
}
body:has(.nv-lp-sticky) {
padding-bottom: 80px;
}
}

@media (prefers-reduced-motion: reduce) {
.layout-lp .content p > a[href*="/go/"]:only-child:hover {
transform: none;
}
}
