@charset "utf-8";

/* ==========================================================================
   ＦＴＣ合同会社 ── lp.ftc-operations.com 共通スタイル
   配色は qlm-plus.css / ftc-operations.com 本体と揃えている
   ========================================================================== */

:root {
  /* ── ブランド ── */
  --teal: #00bba7;
  --teal-dk: #00786f;
  --teal-lt: #cbfbf1;
  --mint: #d0fae5;

  /* ── 文字 ── */
  --ink: #101828;
  --text: #212529;
  --sub: #4a5565;
  --muted: #6a7282;

  /* ── 面 ── */
  --bg: #f8f9fa;
  --card: #ffffff;
  --gray-bg: #f3f4f6;
  --line: #e5e7eb;

  /* ── 補助 ── */
  --accent: #ff6b35;
  --footer-bg: #101828;

  /* ── レイアウト ── */
  --wrap: 1120px;
  --col-side: 300px;
  --col-left: 210px;
  --gap: 40px;

  /* ── タイポ ── */
  --text-base: 1rem;
  --lh-body: 1.9;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .08);

  --duration: 180ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-size: var(--text-base);
  line-height: var(--lh-body);
  font-feature-settings: "palt";
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── ヘッダー ───────────────────────────────────────── */

.site-header {
  background: linear-gradient(100deg, var(--teal-dk) 0%, var(--teal) 60%, #17c98f 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px; flex-wrap: wrap;
}

.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.site-logo:hover { text-decoration: none; opacity: .9; }

.site-logo-mark {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 2px 9px;
  font-weight: 700; letter-spacing: .08em; font-size: .82rem;
}

.site-logo-text { font-weight: 700; font-size: .98rem; }

.site-nav ul {
  display: flex; gap: 22px;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-nav a { color: rgba(255,255,255,.94); font-size: .88rem; }

/* ── レイアウト（2カラム → 3カラムへ広げられる） ───────── */

.layout {
  display: grid;
  gap: var(--gap);
  padding: 36px 0 64px;
  align-items: start;
}

.layout[data-columns="2"] { grid-template-columns: minmax(0, 1fr) var(--col-side); }

/* サイドバーの無い1カラムページ（募集LPなど）。本文幅は読みやすさ優先で絞る */
.layout[data-columns="1"] { grid-template-columns: minmax(0, 1fr); }
.layout[data-columns="1"] .col-main { max-width: 760px; margin-inline: auto; width: 100%; }

/* 記事が増えたら base.njk の data-columns を "3" にして col-left を入れる */
.layout[data-columns="3"] {
  grid-template-columns: var(--col-left) minmax(0, 1fr) var(--col-side);
}

.col-main { min-width: 0; }

@media (max-width: 960px) {
  .layout[data-columns="2"],
  .layout[data-columns="3"] { grid-template-columns: minmax(0, 1fr); }
  .col-left { order: 3; }
  .col-side { order: 2; }
}

/* ── 見出し・本文 ─────────────────────────────────── */

.page-head { margin-bottom: 32px; }

.page-head h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.45;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: .01em;
}

.page-lead { color: var(--sub); margin: 0; font-size: .95rem; }

.breadcrumb {
  font-size: .8rem; color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ── 記事カード（一覧） ───────────────────────────── */

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.post-card > a { display: block; padding: 22px 24px; color: inherit; }
.post-card > a:hover { text-decoration: none; }

.post-card-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: .76rem; color: var(--muted); margin-bottom: 8px;
}

.post-card-cat {
  background: var(--teal-lt); color: var(--teal-dk);
  padding: 2px 9px; border-radius: 999px; font-weight: 500;
}

.post-card-pdf {
  background: #fff4ed; color: #b3480f;
  padding: 2px 9px; border-radius: 999px; font-weight: 500;
}

.post-card-title {
  font-size: 1.16rem; line-height: 1.6;
  margin: 0 0 8px; color: var(--ink);
}

.post-card:hover .post-card-title { color: var(--teal-dk); }

.post-card-desc { margin: 0 0 10px; color: var(--sub); font-size: .9rem; line-height: 1.8; }

.post-card-more { color: var(--teal-dk); font-size: .84rem; font-weight: 500; }

.blog-more { margin-top: 24px; font-size: .88rem; }

.post-empty, .no-result {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
  color: var(--muted); list-style: none;
}

/* ── 一覧の検索 ──────────────────────────────────── */

.list-search { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.list-search input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: .92rem; font-family: inherit;
}
.list-search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-lt); }

.list-search-count { color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* ── 記事本文 ────────────────────────────────────── */

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 44px 30px;
  box-shadow: var(--shadow-sm);
}

.article-head { border-bottom: 2px solid var(--gray-bg); padding-bottom: 20px; margin-bottom: 30px; }

.article-head h1 {
  font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2rem);
  line-height: 1.5; margin: 0 0 14px; color: var(--ink);
}

.article-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}

.article-cat { background: var(--teal-lt); color: var(--teal-dk); padding: 2px 10px; border-radius: 999px; }

.article-body { font-size: 1.02rem; }

/* ★行間(1.9)より明確に大きくすること。差が小さいと「段落の切れ目」と
   「ただの折り返し」が見分けられず、画面全体が詰まって見える */
.article-body > * + * { margin-top: 2.3em; }

.article-body h2 {
  font-size: 1.28rem; line-height: 1.6; color: var(--ink);
  margin-top: 2.4em; margin-bottom: .9em;
  padding-left: 14px; border-left: 5px solid var(--teal);
}

.article-body h3 {
  font-size: 1.1rem; color: var(--ink);
  margin-top: 2em; margin-bottom: .8em;
}

/* 行間1.9でも文字の直下に一定の太さで引けるようにする
   （linear-gradient の割合指定だと line-height に引きずられてズレる） */
.article-body strong {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(var(--mint), var(--mint)) no-repeat;
  background-size: 100% .42em;
  background-position: 0 .92em;
}

.article-body a { text-decoration: underline; text-underline-offset: 3px; }

.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }

.article-body blockquote {
  margin: 2em 0; padding: 18px 22px;
  background: var(--gray-bg); border-left: 4px solid var(--line);
  border-radius: 0 8px 8px 0; color: var(--sub);
}
.article-body blockquote p + p { margin-top: 1em; }

.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

.article-body img { border-radius: 8px; border: 1px solid var(--line); }

/* 画像プレースホルダー（本番画像が入るまでの仮表示） */
.img-placeholder {
  display: flex; align-items: center; gap: 12px;
  background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 10px, #f1f3f5 10px, #f1f3f5 20px);
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}
.img-placeholder::before { content: "🖼"; font-size: 1.6rem; flex: none; }
.img-placeholder strong { display: block; color: var(--sub); font-size: .78rem; margin-bottom: 3px; }

.article-body code {
  background: var(--gray-bg); padding: 2px 6px; border-radius: 4px;
  font-size: .9em;
}

.article-body pre {
  background: var(--ink); color: #e6edf3;
  padding: 18px; border-radius: 8px; overflow-x: auto;
}
.article-body pre code { background: none; color: inherit; padding: 0; }

.article-body table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--gray-bg); }

/* 表が横に溢れてもページ本体は横スクロールさせない */
.article-body .table-scroll { overflow-x: auto; }

/* ── 記事内のPDF導線 ─────────────────────────────── */

.article-pdf {
  margin-top: 44px;
  background: linear-gradient(160deg, #fffdf9 0%, #fff4ed 100%);
  border: 1px solid #ffd9c2;
  border-radius: var(--radius);
  padding: 26px 28px;
}

.article-pdf h2 { font-size: 1.1rem; margin: 10px 0 8px; color: var(--ink); }
.article-pdf p { margin: 0 0 18px; color: var(--sub); font-size: .92rem; }

.report-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 4px;
}

.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: 8px; font-weight: 700; font-size: .95rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary { background: var(--accent); color: #fff; }

/* ── 記事のフッター ─────────────────────────────── */

.article-foot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: .86rem;
}

.article-share { display: flex; align-items: center; gap: 12px; color: var(--muted); }

.article-share a {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 14px; color: var(--sub);
}
.article-share a:hover { border-color: var(--teal); color: var(--teal-dk); text-decoration: none; }

.back-link { color: var(--sub); }

/* ── 前後の記事 ─────────────────────────────────── */

.post-nav { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr 1fr; }

@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

.post-nav-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  color: var(--ink); font-size: .9rem; line-height: 1.6;
  transition: border-color var(--duration) var(--ease);
}
.post-nav-item:hover { border-color: var(--teal); text-decoration: none; }
.post-nav-item span { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.post-nav-next { text-align: left; }
.post-nav-prev { text-align: right; }
/* 片方しか無いときは、それぞれ左端／右端に寄せる */
.post-nav-prev:only-child { grid-column: 2; }
@media (max-width: 640px) { .post-nav-prev:only-child { grid-column: 1; } }

/* ── サイドバー ─────────────────────────────────── */

.col-side { display: grid; gap: 20px; align-content: start; }

.side-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
}

.side-head {
  font-size: .88rem; font-weight: 700; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-lt);
}

.side-lead { font-size: .78rem; color: var(--muted); margin: -6px 0 14px; line-height: 1.7; }

.side-list { list-style: none; margin: 0; padding: 0; font-size: .86rem; }

.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.side-list a { color: var(--sub); display: block; line-height: 1.65; }
.side-list a:hover { color: var(--teal-dk); }

.side-list time { display: block; font-size: .72rem; color: var(--muted); margin-top: 3px; }

.side-list-arrow a { padding-left: 18px; position: relative; font-weight: 500; color: var(--ink); }
.side-list-arrow a::before {
  content: "›"; position: absolute; left: 4px; top: -1px;
  color: var(--teal); font-size: 1.15em;
}

.side-list-cat li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-count {
  background: var(--gray-bg); color: var(--muted);
  font-size: .7rem; padding: 1px 8px; border-radius: 999px; flex: none;
}

/* プロフィール */
.profile-row { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--teal-lt); flex: none; object-fit: cover; }
.profile-name { font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.profile-role { font-size: .74rem; color: var(--muted); }
.profile-text { font-size: .8rem; color: var(--sub); line-height: 1.85; margin: 0 0 18px; }
.profile-note {
  font-size: .78rem; color: var(--teal-dk); margin: 0;
  background: var(--teal-lt); border-radius: 6px; padding: 10px 12px; line-height: 1.7;
}

/* サイドバーのPDF */
.side-reports { background: linear-gradient(160deg, #fffdf9 0%, #fff6f0 100%); border-color: #ffd9c2; }

.report-card {
  display: block; background: var(--card);
  border: 1px solid #ffd9c2; border-radius: 8px;
  padding: 14px 16px; color: inherit;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.report-card + .report-card { margin-top: 12px; }
.report-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.report-title { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin: 8px 0 5px; line-height: 1.55; }
.report-desc { display: block; font-size: .76rem; color: var(--sub); line-height: 1.75; }
.report-meta { display: block; font-size: .7rem; color: var(--muted); margin-top: 8px; }

/* サイドバーの無料PDF導線（一覧ページへ飛ばすだけの1行バナー） */
.report-link {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 8px; padding: 11px 14px;
  font-size: .84rem; font-weight: 700;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.report-link:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* PDF一覧ページのカード（post-card を継承しつつバッジを乗せる） */
.report-post-card { position: relative; }
.report-post-card .report-badge { position: absolute; top: 22px; right: 24px; }
.report-post-card .post-card-title { padding-right: 50px; }

/* サイドバーの検索 */
.side-search { display: flex; gap: 8px; }
.side-search input {
  flex: 1; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: .84rem; font-family: inherit;
}
.side-search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-lt); }
.side-search button {
  background: var(--teal-dk); color: #fff; border: 0;
  padding: 0 14px; border-radius: 7px; cursor: pointer;
  font-size: .82rem; font-family: inherit; font-weight: 500;
}
.side-search button:hover { background: var(--teal); }

/* ── 募集LP（/join/）専用パーツ ───────────────────── */

.landing-article { padding: 44px 48px 40px; }

@media (max-width: 640px) {
  .landing-article { padding: 26px 20px 24px; margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
}

/* 冒頭のフック（署名の前） */
.landing-hero { margin-bottom: 6px; }
/* 実物準拠：見出しは中央寄せ + 太字左ボーダーは外す（本文と区別するため） */
.landing-article h2,
.landing-article h3 {
  text-align: center;
  border-left: 0;
  padding-left: 0;
}

.landing-hero h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.15rem);
  line-height: 1.6; color: var(--ink);
  margin: 0 0 .7em; font-weight: 700;
}
.landing-hero p { font-size: 1.06rem; line-height: 2; }

/* From: 差出人 */
.byline {
  background: var(--gray-bg); border-radius: 8px;
  padding: 16px 20px; margin: 1.6em 0;
  font-size: .9rem; color: var(--sub); line-height: 1.8;
}
.byline strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }

/* 実レター（グリーン全書）実測に基づく強調3段階
   ── .red(文字色)=272字に1回 / span.bold(完結した1文)=603字に1回 / .imp-yellow(切り札)=1190字に1回 */
.emp { color: #c2410c; font-weight: 700; }
mark.mk {
  background: #fff3a0; color: var(--ink);
  padding: 0 3px; border-radius: 2px; font-weight: 700;
}

/* 引用の中の大きな見出し（心の声・強調セリフ） */
.article-body blockquote h2,
.article-body blockquote h3 {
  border: 0; padding: 0; margin: 0;
  font-size: 1.18rem; line-height: 1.8; color: var(--ink);
  font-weight: 700;
}

/* 箇条書きのコールアウト（元は```で囲われた▸リスト） */
.callout {
  background: var(--gray-bg); border-radius: 8px;
  padding: 20px 24px; margin: 1.6em 0;
}
.callout ul, .callout ol { margin: 0; padding-left: 1.3em; }
.callout li + li { margin-top: .7em; }
.callout p { margin: 0; }
.callout-formula {
  text-align: center; font-weight: 700; color: var(--ink);
  font-size: 1.05rem; letter-spacing: .02em;
}

/* 料金の内訳 */
.pricing-list { list-style: none; margin: 1.6em 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pricing-list li {
  display: flex; justify-content: space-between;
  padding: 11px 18px; font-size: .92rem;
  border-bottom: 1px solid var(--line);
}
.pricing-list li:last-child { border-bottom: 0; }
.pricing-list li strong { color: var(--teal-dk); }

/* CTAボタン（大） */
.cta-row { text-align: center; margin: 2em 0; }
.btn-cta {
  display: inline-block; width: min(100%, 420px);
  background: var(--accent); color: #fff;
  padding: 18px 28px; border-radius: 10px;
  font-size: 1.08rem; font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration) var(--ease);
}
.btn-cta:hover { text-decoration: none; transform: translateY(-2px); }
.cta-note { display: block; margin-top: 10px; font-size: .78rem; color: var(--muted); }

/* ── フッター ───────────────────────────────────── */

.site-footer {
  background: var(--footer-bg); color: #a9b2c3;
  padding: 40px 0 32px; font-size: .82rem;
}

.footer-nav ul {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-nav a { color: #cfd6e4; }

.disclaimer {
  font-size: .72rem; line-height: 1.9; color: #7d8699;
  border-top: 1px solid #232c40; padding-top: 20px; margin: 0 0 16px;
}

.copyright { margin: 0; font-size: .74rem; color: #7d8699; }

/* ── 記事本文の余白（スマホ） ───────────────────── */

@media (max-width: 720px) {
  .header-inner { min-height: 0; padding: 10px 0; gap: 8px; }
  /* 折り返して3行にせず、横スクロールで1行に収める */
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; gap: 18px; }
  .site-nav a { font-size: .82rem; white-space: nowrap; }
  .site-logo-text { font-size: .9rem; }
}

@media (max-width: 640px) {
  .article { padding: 26px 20px 24px; border-radius: 0; margin-inline: -16px; border-left: 0; border-right: 0; }
  .article-body { font-size: .98rem; }
  .post-card > a { padding: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
