/* =========================================================
   下層ページ共通（一覧・記事・会社概要・フォームなど）
   style.css → lp.css → sub.css の順に読み込む
   ========================================================= */

/* ---------- ページ見出し（写真なしのヒーロー） ---------- */
.ph {
  position: relative;
  padding: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + clamp(16px, 2.4vw, 32px)) 0 clamp(28px, 3.2vw, 44px);
  color: #fff;
  background: var(--brand-grad);
  overflow: hidden;
}
.ph .fv-grain { opacity: .14; }
.ph > .wrap { position: relative; }
.ph .crumb { margin-bottom: clamp(16px, 2vw, 24px); }
.ph-en {
  font-family: var(--font-en); font-size: clamp(14px, 1.4vw, 16px); letter-spacing: .16em;
  color: var(--mint);
}
.ph-h1 { margin-top: 4px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.ph-lead { margin-top: 10px; max-width: 760px; font-size: clamp(14px, 1.4vw, 16px); color: rgba(255, 255, 255, .85); }
/* 写真付きのページ見出し */
.ph.has-img { background: #2f2f2f; }
.ph.has-img .lp-hero-bg img { filter: grayscale(.85) contrast(.95) brightness(.85); }

.sec-tight { padding: clamp(56px, 8vw, 104px) 0; }
.bg-2 { background: var(--bg-2); }
.lead-p { max-width: 820px; font-size: 15px; color: var(--ink-2); margin-top: -24px; margin-bottom: 40px; }

/* ---------- サービス一覧 ---------- */
.svc-groups { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 88px); }
.svc-group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--teal); }
.svc-group-head .no { font-family: var(--font-en); font-size: 28px; color: var(--teal); line-height: 1; }
.svc-group-head h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: .08em; }
.svc-group-head .en { margin-left: auto; font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.svc-card:hover { box-shadow: 0 12px 32px rgba(10, 33, 64, .12); transform: translateY(-2px); }
.svc-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s; }
.svc-card:hover .svc-card-img img { filter: grayscale(0); }
.svc-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.svc-card-body h3 { font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.svc-card-body p { font-size: 14px; color: var(--ink-2); }
.svc-card-body .more { margin-top: auto; padding-top: 8px; }
@media (max-width: 767px) { .svc-cards { grid-template-columns: 1fr; } }

/* ---------- 汎用カード（特徴・機能など） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px 26px; background: #fff; border-radius: 4px; border: 1px solid var(--line); border-top: 3px solid var(--teal); }
.card .num { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--teal); }
.card .num b { font-size: 26px; font-weight: 400; margin-left: 4px; }
.card .tag { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--teal); }
.card h3 { margin: 8px 0 10px; font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.card p { font-size: 14px; color: var(--ink-2); }
.card ul.dots { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.card ul.dots li { position: relative; padding-left: 14px; }
.card ul.dots li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.card .ic {
  width: 40px; height: 40px; margin-bottom: 14px;
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}
@media (max-width: 1023px) { .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .cards, .cards.c2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards.c4 { grid-template-columns: 1fr; } }

/* ---------- BEFORE / AFTER ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.ba-col { padding: 28px; border-radius: 4px; background: #fff; }
.ba-col.after { background: var(--mint-l); }
.ba-col h3 { font-family: var(--font-en); font-size: 13px; letter-spacing: .16em; margin-bottom: 16px; color: var(--ink-3); }
.ba-col.after h3 { color: var(--teal); }
.ba-col li + li { margin-top: 18px; }
.ba-col li b { display: block; font-size: 16px; margin-bottom: 4px; }
.ba-col li span { font-size: 14px; color: var(--ink-2); }
.ba-arw { align-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); position: relative; }
.ba-arw::after { content: ""; position: absolute; left: 13px; top: 14px; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
@media (max-width: 899px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arw { justify-self: center; transform: rotate(90deg); }
}

/* ---------- 画面イメージ ---------- */
.shot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.shot-img { border-radius: 4px; overflow: hidden; box-shadow: 0 16px 48px rgba(10, 33, 64, .14); }
.shot-img img { width: 100%; height: auto; }
.shot-body h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.6; margin-bottom: 16px; }
.shot-body p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 899px) { .shot { grid-template-columns: 1fr; } }

/* ---------- 料金プラン ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.plan.is-rec { border: 2px solid var(--teal); }
.plan .badge { position: absolute; top: -12px; left: 24px; padding: 2px 12px; font-size: 12px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 2px; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .scope { font-size: 13px; color: var(--ink-2); }
.plan .pv { display: flex; align-items: baseline; gap: 6px; margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan .pv b { font-family: var(--font-en); font-size: 48px; line-height: 1; color: var(--navy); }
.plan .pv span { font-size: 14px; font-weight: 700; }
.plan ul { font-size: 14px; color: var(--ink-2); }
.plan ul li { position: relative; padding-left: 20px; }
.plan ul li + li { margin-top: 6px; }
.plan ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 899px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 一覧（ニュース・ブログ） ---------- */
.list-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.list-filter button { padding: 6px 14px; font: inherit; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; cursor: pointer; transition: color .25s, background .25s, border-color .25s; }
.list-filter button:hover { color: var(--teal); border-color: var(--teal); }
.list-filter button.is-on { color: #fff; background: var(--teal); border-color: var(--teal); }
.list-filter button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[data-cat].is-hidden { display: none; }
.list-big .post-list a { grid-template-columns: 120px auto 1fr; padding: 26px 0; }
.list-big .post-list .ttl { grid-column: 3; font-size: 16px; }
@media (max-width: 767px) {
  .list-big .post-list a { grid-template-columns: auto auto 1fr; }
  .list-big .post-list .ttl { grid-column: 1 / -1; }
}
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; transition: box-shadow .4s; }
.blog-card:hover { box-shadow: 0 12px 32px rgba(10, 33, 64, .12); }
.blog-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transition: filter .5s; }
.blog-card:hover .thumb img { filter: grayscale(0); }
.blog-card .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.blog-card .meta { display: flex; align-items: center; gap: 10px; }
.blog-card time { font-family: var(--font-en); font-size: 12px; color: var(--ink-3); }
.blog-card .tag { font-size: 11px; padding: 4px 8px; color: var(--teal); background: var(--mint-l); border-radius: 2px; }
.blog-card h3 { font-size: 16px; font-weight: 700; line-height: 1.7; }
@media (max-width: 899px) { .blog-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-cards { grid-template-columns: 1fr; } }

/* ---------- 記事 ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.article-meta time { font-family: var(--font-en); font-size: 13px; color: rgba(255, 255, 255, .75); }
.article-meta .tag { font-size: 12px; padding: 4px 10px; color: var(--navy); background: var(--mint); border-radius: 2px; }
.article-eye { margin-bottom: 40px; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; }
.article-eye img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 16px; line-height: 2; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { margin-top: 2.4em; padding-bottom: 10px; font-size: 22px; font-weight: 700; line-height: 1.6; border-bottom: 2px solid var(--teal); }
.prose h3 { margin-top: 2em; font-size: 18px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose .box { padding: 20px 24px; background: var(--mint-l); border-radius: 4px; font-size: 15px; }
.draft-note { padding: 12px 16px; font-size: 13px; color: #7a5a00; background: #fff6d6; border-radius: 4px; }
.article-foot { max-width: 800px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.related-cta { max-width: 800px; margin: 48px auto 0; padding: 28px 32px; border-radius: 4px; background: var(--brand-grad); color: #fff; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.related-cta p { font-size: 16px; font-weight: 700; }
.related-cta .btn-solid { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- 会社概要 ---------- */
.company-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.company-tbl th, .company-tbl td { padding: 22px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.company-tbl tr:first-child th, .company-tbl tr:first-child td { border-top: 2px solid var(--teal); }
.company-tbl th { width: 200px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.company-tbl td ul li + li { margin-top: 4px; }
.company-tbl td .grp { font-weight: 700; }
.company-tbl td .grp + ul { margin: 2px 0 10px; color: var(--ink-2); }
@media (max-width: 600px) {
  .company-tbl th, .company-tbl td { display: block; width: auto; }
  .company-tbl th { padding: 18px 0 4px; border-bottom: 0; }
  .company-tbl td { padding: 0 0 18px; }
  .company-tbl tr:first-child td { border-top: 0; }
}

/* ---------- フォーム ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-side h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.form-side p { font-size: 14px; color: var(--ink-2); }
.form-side .side-list { margin-top: 20px; font-size: 14px; }
.form-side .side-list li { position: relative; padding-left: 24px; }
.form-side .side-list li + li { margin-top: 8px; }
.form-side .side-list li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.form-side .side-contact { margin-top: 28px; padding: 20px; background: var(--bg-2); border-radius: 4px; font-size: 13px; }
.form-side .side-contact b { display: block; font-size: 14px; margin-bottom: 4px; }
@media (max-width: 899px) { .form-wrap { grid-template-columns: 1fr; } }

.form { padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 8px 32px rgba(10, 33, 64, .06); }
.fld + .fld, .fld-row + .fld, .fld + .fld-row, .fld-row + .fld-row { margin-top: 22px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
@media (max-width: 600px) { .fld-row { grid-template-columns: 1fr; } }
.fld label, .fld .lb { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.rq, .opt { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px; line-height: 1.4; }
.rq { color: #fff; background: #b4432f; }
.opt { color: var(--ink-3); background: var(--bg-2); }
.fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld select, .fld textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fafaf8; border: 1px solid #cfcfca; border-radius: 4px;
  transition: border-color .2s, background-color .2s;
}
.fld textarea { min-height: 160px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(63, 107, 112, .15); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; font-size: 14px; font-weight: 500; border: 1px solid #cfcfca; border-radius: 4px; cursor: pointer; background: #fafaf8; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.checks label:has(input:checked) { border-color: var(--teal); background: var(--mint-l); }
.fld .err { display: none; margin-top: 6px; font-size: 13px; color: #b4432f; }
.fld.bad .err { display: block; }
.fld.bad input { border-color: #b4432f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-submit { width: 100%; justify-content: center; margin-top: 32px; height: 60px; font-size: 16px; background: var(--teal); border-color: var(--teal); color: #fff; cursor: pointer; }
.form .btn-submit:hover { background: var(--navy); border-color: var(--navy); }
.form .btn-submit:disabled { opacity: .6; cursor: default; }
.form-note { margin-top: 16px; font-size: 12px; color: var(--ink-3); }
.form-note a { color: var(--teal); text-decoration: underline; }
.form-msg { display: none; margin-top: 16px; padding: 16px 18px; border-radius: 4px; font-size: 14px; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--navy); background: var(--mint-l); }
.form-msg.ng { color: #8a2f20; background: #fbe9e5; }

/* 用件別の入り口（お問い合わせページ） */
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.route-cards a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #fff; border-radius: 4px; border-left: 3px solid var(--teal); transition: box-shadow .3s; }
.route-cards a:hover { box-shadow: 0 8px 24px rgba(10, 33, 64, .1); }
.route-cards .g { font-size: 12px; color: var(--teal); font-weight: 700; }
.route-cards b { font-size: 16px; }
.route-cards span:last-child { font-size: 13px; color: var(--ink-2); }
@media (max-width: 899px) { .route-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .route-cards { grid-template-columns: 1fr; } }

/* 資料一覧（資料請求ページ） */
.doc-one { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--teal); border-radius: 4px; background: var(--mint-l); }
.doc-one-ic { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 54px; font-family: "Libre Baskerville", serif; font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--teal); border-radius: 3px; }
.doc-one b { display: block; font-size: 15px; }
.doc-one span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.form-msg .dl-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 28px; font-weight: 700; color: #fff; background: var(--teal); border-radius: 999px; text-decoration: none; transition: background .3s; }
.form-msg .dl-btn:hover { background: var(--navy); }
.booking { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.booking-h { font-size: 18px; font-weight: 700; }
.booking-lead { margin: 8px 0 20px; font-size: 14px; color: var(--ink-2); }
.booking iframe { display: block; width: 100%; height: 720px; border: 0; border-radius: 4px; background: #fff; }
@media (max-width: 767px) { .booking iframe { height: 640px; } }
.form-msg .dl-btn svg { width: 16px; height: 16px; }

/* ---------- 規約文書（プライバシーポリシー） ---------- */
.doc { max-width: 860px; }
.doc section + section { margin-top: 48px; }
.doc h2 { font-size: 20px; font-weight: 700; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--teal); }
.doc h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.doc p, .doc li { font-size: 15px; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin-top: 8px; padding-left: 1.4em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--teal); text-decoration: underline; }
.doc-meta { margin-top: 48px; font-size: 13px; color: var(--ink-3); }
.fld-row > .fld + .fld { margin-top: 0; }

/* 記事内の表・著者紹介・記事0件 */
.prose .tbl-scroll { overflow-x: auto; }
.prose .tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.prose .tbl th, .prose .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose .tbl th { font-size: 13px; color: var(--teal); background: var(--mint-l); border-bottom: 2px solid var(--teal); white-space: nowrap; }
.prose img { border-radius: 4px; }
.author { max-width: 800px; margin: 56px auto 0; display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--bg-2); border-radius: 4px; }
.author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-role { font-size: 12px; color: var(--teal); font-weight: 700; }
.author-name { font-size: 17px; font-weight: 700; }
.author-name span { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.author-bio { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.post-list li.empty { padding: 20px 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) { .author { flex-direction: column; } .author-name span { display: block; margin: 2px 0 0; } }

/* ---------- ブログ記事：本文＋右に目次 ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.post-main .article, .post-main .author, .post-main .related-cta, .post-main .article-foot { max-width: none; }
.post-side { align-self: stretch; }
.post-side-in { position: sticky; top: calc(var(--hd-h) + 24px); display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - var(--hd-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.prose h2, .prose h3, .author, .form-msg { scroll-margin-top: calc(var(--hd-h) + 24px); }
.article-meta time + time { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); }

/* 冒頭：書いた人と共有ボタン */
.post-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.author-top { display: flex; align-items: center; gap: 14px; }
.author-top img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-top p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; line-height: 1.5; }
.author-top .author-role { width: 100%; font-size: 11px; }
.author-top .author-name { font-size: 15px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.author-top .author-name:hover { color: var(--teal); }
.author-sub { font-size: 12px; color: var(--ink-2); }
.share { display: flex; gap: 8px; }
.share a, .share button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer; transition: color .25s, border-color .25s; }
.share a:hover, .share button:hover { color: var(--teal); border-color: var(--teal); }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.share .share-line { font-size: 9px; font-weight: 700; letter-spacing: 0; }
.share button.is-copied { color: #fff; background: var(--teal); border-color: var(--teal); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 56px; padding: 20px; background: var(--bg-2); border-radius: 4px; font-size: 13px; font-weight: 700; }

/* 目次 */
.toc-h { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--teal); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 9px 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .25s; }
.toc-list a span { font-family: var(--font-en); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.toc-list a:hover, .toc-list a.is-current { color: var(--navy); }
.toc-list a.is-current { font-weight: 700; }
.toc-list a.is-current span { color: var(--teal); }
.toc-side { padding: 22px 22px 10px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 4px; }
.toc-side .toc-h { margin-bottom: 6px; }
.toc-side .toc-list li:last-child a { border-bottom: 0; }
.toc-inline { display: none; margin-bottom: 40px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 4px; }
.toc-inline summary { padding: 14px 18px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "＋"; color: var(--teal); }
.toc-inline[open] summary::after { content: "－"; }
.toc-inline .toc-list { padding: 0 18px 10px; }

/* 右カラム：サービスへの導線とカテゴリ */
.side-cta { padding: 24px 22px; color: #fff; background: var(--brand-grad); border-radius: 4px; display: flex; flex-direction: column; gap: 10px; }
.side-cta-ttl { font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.side-cta .btn-solid { justify-content: center; background: #fff; color: var(--navy); border-color: #fff; }
.side-cta .btn-solid:hover { background: var(--mint-l); }
.side-cta-sub { font-size: 12px; text-align: center; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
/* 末尾：サービスへの導線、書いた人、関連記事 */
.related-cta { margin-top: 40px; }
.related-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.related-cta .btn-ghost { color: #fff; }
.related-cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.post-main .author { margin-top: 40px; padding: 28px; }
.post-main .author img { width: 96px; height: 96px; }
.post-main .author .more { margin-top: 12px; }
.rel-h { margin-bottom: 28px; font-size: 22px; font-weight: 700; }

@media (max-width: 1023px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .post-side { display: none; } /* スマホでは目次を本文の前に、サービスへの導線を本文の後に出す */
  .toc-inline { display: block; }
}
@media (max-width: 767px) {
  .post-head .share { display: none; }
}

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf p { font-size: 15px; line-height: 2; }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
