/* =========================================================
   ジシューー テーマ  top.css（v0.2.20〜）
   トップページだけで読み込む。クラスは tp- で始める（main.css とぶつけない）。
   黄・白・うすいグレーの段を交互に置いて、段ごとに役目を1つにする。
   ヒーロー・ボタン・ヘッダー・フッターは main.css のまま。
   ========================================================= */

:root {
	--tp-line-strong: #C9C9C5;
	--tp-rule-on-accent: rgba(17, 17, 17, .28);
}

/* ---------- 共通の部品 ---------- */
.tp-eyebrow { font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tp-eyebrow b { font-family: var(--font); letter-spacing: .08em; color: var(--ink); }
.tp-nb { display: inline-block; }
.tp-mk { background: linear-gradient(transparent 62%, var(--accent) 62%); }
.tp-arr { font-family: var(--latin); margin-left: 8px; }
.tp-lead { font-size: 15px; color: var(--muted); max-width: 34em; word-break: auto-phrase; }
.tp-hl { display: inline-block; white-space: nowrap; background: var(--paper); padding: .02em .22em .06em; margin-top: .14em; transform: rotate(-1.5deg); }
.tp-hl--shadow { box-shadow: 6px 6px 0 var(--ink); }
.tp-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 900; line-height: 1; padding: 4px 6px; border: 1.5px solid var(--ink); border-radius: 4px; white-space: nowrap; color: var(--ink); }
.tp-msg h2, .tp-msg h3, .tp-find h2, .tp-find h3, .tp-paid h2, .tp-pop h2, .tp-pop h3, .tp-news h2, .tp-free h2 { line-height: 1.3; text-wrap: balance; word-break: auto-phrase; }
.tp-msg ul, .tp-find ul { list-style: none; }

/* 段の見出し（よく読まれている記事・新着） */
.tp-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 3px solid var(--ink); margin-bottom: 30px; }
.tp-sec-head > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-more { font-size: 14px; font-weight: 900; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.tp-more i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--latin); }

/* ---------- メッセージ ---------- */
.tp-msg { padding: 96px 0 88px; }
.tp-msg__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.tp-msg__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tp-msg__q { font-size: clamp(30px, 4.6vw, 54px); }
.tp-msg__body { font-size: 16px; max-width: 32em; }
.tp-msg__ans { font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; line-height: 1.7; }
.tp-msg__art img { width: 100%; }

.tp-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.tp-reason { display: grid; grid-template-columns: 190px minmax(0, 1fr); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--paper); }
.tp-reason__num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 22px 12px; text-align: center; font-weight: 900; font-size: 13px; line-height: 1.5; }
.tp-reason__num--y { background: var(--accent); color: var(--ink); }
.tp-reason__num--k { background: var(--ink); color: var(--paper); }
.tp-reason__num strong { font-family: var(--latin); font-size: 68px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.tp-reason__num strong small { font-family: var(--font); font-size: 22px; font-weight: 900; margin-left: 2px; }
.tp-reason__num--k strong { color: var(--accent); }
.tp-reason__txt { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-reason__no { font-family: var(--latin); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.tp-reason__txt h3 { font-size: 20px; line-height: 1.5; }
.tp-reason__txt p { font-size: 14px; line-height: 1.9; color: var(--muted); }

.tp-story { margin-top: 20px; background: var(--tile); border-radius: 20px; padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 28px; }
.tp-story h3 { font-size: clamp(20px, 2.4vw, 26px); }
.tp-story__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.tp-story__step { position: relative; padding: 0 26px; display: flex; flex-direction: column; gap: 8px; }
.tp-story__step:first-child { padding-left: 22px; }
.tp-story__step + .tp-story__step { border-left: 1px solid var(--tp-line-strong); }
.tp-story__step + .tp-story__step::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--tile); border-top: 1px solid var(--tp-line-strong); border-right: 1px solid var(--tp-line-strong); transform: rotate(45deg); }
.tp-story__step strong { font-family: var(--latin); font-size: clamp(34px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.tp-story__step strong small { font-family: var(--font); font-size: .42em; font-weight: 900; margin-left: 3px; letter-spacing: 0; }
.tp-story__step strong.tp-jp { font-family: var(--font); font-weight: 900; }
.tp-story__step p { font-size: 13px; line-height: 1.7; word-break: auto-phrase; }
.tp-story__say { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); }
.tp-story__avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--paper); object-fit: cover; }
.tp-story__say blockquote { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.85; }
.tp-story__say cite { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 何を作りたい？ ---------- */
.tp-find { background: var(--tile); padding: 88px 0 96px; }
.tp-find__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: end; margin-bottom: 36px; scroll-margin-top: 24px; }
.tp-find__copy { display: flex; flex-direction: column; gap: 16px; padding-bottom: 12px; min-width: 0; }
.tp-find__title { font-size: clamp(30px, 4.2vw, 48px); }
.tp-find__art img { width: 100%; }

.tp-wants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tp-want { background: var(--paper); border-radius: 20px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tp-want__top { display: flex; align-items: center; gap: 16px; }
.tp-want__ic { flex: 0 0 auto; width: 76px; height: 58px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.tp-want__ic .ic { width: 48px; }
.tp-want__ic .ic .ic-fill { fill: var(--paper); }
.tp-want h3 { font-size: 20px; line-height: 1.4; }
.tp-want ul { display: flex; flex-direction: column; }
.tp-want li { border-top: 1px solid var(--line); }
.tp-want li a { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.tp-want li a::after { content: "→"; font-family: var(--latin); margin-left: auto; color: var(--muted); }
.tp-want li a:hover { opacity: 1; background: linear-gradient(transparent 62%, var(--accent) 62%); }
.tp-want__paid { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 900; line-height: 1.5; }
.tp-want__paid em { font-style: normal; color: var(--accent); font-size: 11px; display: block; }

.tp-ops { margin-top: 18px; background: var(--paper); border-radius: 20px; display: grid; grid-template-columns: 320px minmax(0, 1fr); overflow: hidden; }
.tp-ops__side { background: var(--accent); padding: 30px 28px 0; display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.tp-ops__side h3 { font-size: 24px; line-height: 1.4; }
.tp-ops__side p { font-size: 13px; font-weight: 500; line-height: 1.8; margin-top: 10px; }
.tp-ops__side img { width: 100%; margin-top: 8px; }
.tp-ops__main { padding: 32px 34px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.tp-ops__grp { display: flex; flex-direction: column; gap: 12px; }
.tp-ops__grp h4 { font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.tp-ops__grp h4::before { content: ""; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--ink); border-radius: 2px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.4; background: var(--paper); }
.tp-chips a:hover { opacity: 1; background: var(--accent); }

/* ---------- 有料テンプレ ---------- */
.tp-paid { padding: 88px 0 0; }
.tp-paid__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border: 2px solid var(--ink); border-radius: 28px; padding: 52px 52px 52px 56px; box-shadow: 8px 8px 0 var(--ink); background: var(--accent); }
.tp-paid__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.tp-paid .tp-eyebrow { color: var(--ink); }
.tp-paid__title { font-size: clamp(23px, 6.8vw, 42px); line-height: 1.4; }
.tp-paid__lead { font-size: 15px; line-height: 1.9; max-width: 30em; }
.tp-paid__nums { display: grid; grid-template-columns: repeat(3, auto); gap: 0; width: 100%; max-width: 480px; border-top: 1px solid var(--tp-rule-on-accent); border-bottom: 1px solid var(--tp-rule-on-accent); }
.tp-paid__nums div { padding: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.tp-paid__nums div + div { padding-left: 22px; border-left: 1px solid var(--tp-rule-on-accent); }
.tp-paid__nums span { font-size: 11px; font-weight: 700; line-height: 1.5; }
.tp-paid__nums strong { font-family: var(--latin); font-size: 34px; line-height: 1.1; font-weight: 700; white-space: nowrap; }
.tp-paid__nums strong small { font-family: var(--font); font-size: 14px; font-weight: 900; margin-left: 2px; }
.tp-paid__buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tp-paid__price { font-size: 13px; font-weight: 700; line-height: 1.5; }
.tp-paid__price b { font-family: var(--latin); font-size: 34px; font-weight: 700; margin: 0 2px 0 8px; background: linear-gradient(transparent 62%, var(--paper) 62%); }
.tp-paid__price small { display: block; font-size: 11px; font-weight: 500; }
.tp-paid__art { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; }
.tp-paid__sl { position: absolute; width: 50%; height: auto; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); box-shadow: 8px 8px 0 rgba(17, 17, 17, .18); }
.tp-paid__sl--1 { left: 21%; top: 9%; transform: rotate(-4deg); }
.tp-paid__sl--2 { left: 31%; top: 36%; transform: rotate(2.5deg); }
.tp-paid__pp { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.tp-paid__tag { position: absolute; left: 43%; bottom: 4%; width: 88px; height: 88px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; line-height: 1.3; transform: rotate(8deg); color: var(--ink); }
.tp-paid__tag strong { font-family: var(--latin); font-size: 30px; line-height: 1; }

/* ---------- よく読まれている記事 ---------- */
.tp-pop { padding: 96px 0 72px; }
.tp-pop__title { font-size: clamp(24px, 3vw, 36px); }
.tp-pops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
.tp-popc { display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0; }
.tp-popc__th { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.tp-popc__th img { width: 100%; height: 100%; object-fit: cover; }
.tp-popc__th .ic { width: 96px; }
.tp-popc__rank { position: absolute; left: -8px; top: -12px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--latin); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.tp-popc__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; min-height: 21px; }
.tp-popc h3 { font-size: 17px; line-height: 1.6; }

/* ---------- 新着＋カテゴリ ---------- */
.tp-news { padding: 24px 0 96px; }
.tp-news__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.tp-news h2 { font-size: clamp(24px, 2.8vw, 32px); }
.tp-newl { display: flex; flex-direction: column; }
.tp-newl a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tp-newl__th { display: flex; align-items: center; justify-content: center; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line); background: var(--tile); overflow: hidden; }
.tp-newl__th img { width: 100%; height: 100%; object-fit: cover; }
.tp-newl__th .ic { width: 56px; }
.tp-newl__body { display: block; min-width: 0; }
.tp-newl time { font-family: var(--latin); font-size: 12px; color: var(--muted); display: block; line-height: 1.5; }
.tp-newl__body span { font-size: 15px; font-weight: 700; line-height: 1.6; display: block; }
.tp-cats { background: var(--tile); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tp-cats h3 { font-size: 18px; }
.tp-cats a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--paper); border-radius: 12px; font-weight: 900; font-size: 15px; line-height: 1.5; }
.tp-cats a small { font-family: var(--latin); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tp-cats a:hover { opacity: 1; background: var(--accent); }

/* ---------- 無料テンプレ ---------- */
.tp-free { background: var(--accent); overflow: hidden; }
.tp-free__in { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 56px; align-items: end; padding-top: 56px; }
.tp-free__art img { width: 100%; }
.tp-free__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-bottom: 64px; min-width: 0; }
.tp-free .tp-eyebrow { color: var(--ink); }
.tp-free__title { font-size: clamp(30px, 8vw, 52px); line-height: 1.34; }
.tp-free__lead { font-size: 15px; font-weight: 500; max-width: 30em; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
	.tp-msg__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tp-msg__art img { width: min(100%, 440px); margin: 0 auto; }
	.tp-reasons { grid-template-columns: minmax(0, 1fr); }
	.tp-story__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
	.tp-story__step:nth-child(odd) { border-left: 0; padding-left: 0; }
	.tp-story__step:nth-child(odd)::before { display: none; }
	.tp-find__head { grid-template-columns: minmax(0, 1fr); }
	.tp-find__art img { width: min(100%, 420px); margin: 0 auto; }
	.tp-wants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-ops { grid-template-columns: minmax(0, 1fr); }
	.tp-ops__side { flex-direction: row; align-items: flex-end; padding: 26px 26px 0; }
	.tp-ops__side > div { padding-bottom: 24px; }
	.tp-ops__side img { width: 46%; max-width: 240px; margin: 0; }
	.tp-paid__card { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tp-pops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-news__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tp-free__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tp-free__copy { order: 1; padding-bottom: 28px; }
	.tp-free__art { order: 2; }
	.tp-free__art img { width: min(100%, 260px); margin: 0 auto; }
}

@media (max-width: 768px) {
	.tp-hl--shadow { box-shadow: 4px 4px 0 var(--ink); }
	.tp-msg { padding: 56px 0; }
	.tp-reasons { margin-top: 36px; }
	.tp-reason { grid-template-columns: minmax(0, 1fr); }
	.tp-reason__num { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 10px; padding: 14px 18px; text-align: left; font-size: 12px; }
	.tp-reason__num strong { font-size: 44px; }
	.tp-reason__num strong small { font-size: 15px; }
	.tp-reason__txt { padding: 20px 18px; }
	.tp-reason__txt h3 { font-size: 17px; }
	.tp-story { padding: 28px 20px; }
	.tp-story__step { padding: 0 0 0 18px; }
	.tp-story__step:first-child, .tp-story__step:nth-child(odd) { padding: 0 14px 0 0; }
	.tp-story__say { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
	.tp-story__avatar { width: 56px; height: 56px; }
	.tp-story__say .btn { grid-column: 1 / -1; }
	.tp-story__say blockquote { font-size: 15px; }
	.tp-find { padding: 56px 0 64px; }
	.tp-find__head { margin-bottom: 24px; gap: 20px; }
	.tp-wants { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.tp-want { padding: 20px 20px 16px; }
	.tp-ops__side { flex-direction: column; align-items: stretch; padding: 24px 20px 0; }
	.tp-ops__side > div { padding-bottom: 0; }
	.tp-ops__side img { width: 70%; max-width: 260px; margin: 8px auto 0; }
	.tp-ops__main { padding: 24px 20px; }
	.tp-paid { padding: 56px 0 0; }
	.tp-paid__card { padding: 28px 20px; border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
	.tp-paid__nums strong { font-size: 26px; }
	.tp-paid__nums div + div { padding-left: 14px; }
	.tp-paid__tag { width: 60px; height: 60px; font-size: 7px; bottom: 3%; }
	.tp-paid__tag strong { font-size: 18px; }
	.tp-pop { padding: 56px 0 48px; }
	.tp-sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.tp-pops { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tp-popc { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
	.tp-popc__th { grid-row: 1 / 3; border-radius: 8px; }
	.tp-popc__th .ic { width: 56px; }
	.tp-popc__rank { width: 30px; height: 30px; font-size: 13px; left: -6px; top: 8px; }
	.tp-popc__meta { min-height: 0; }
	.tp-popc h3 { font-size: 15px; }
	.tp-news { padding: 8px 0 64px; }
	.tp-newl a { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
	.tp-newl__th { width: 92px; }
	.tp-newl__body span { font-size: 14px; }
	.tp-free__in { padding-top: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
	.tp-chips a, .tp-cats a { transition: background-color .15s ease; }
}
