/* =========================================================
 * 最新トピック（topics-pc / topics-sp）
 * ======================================================= */
.tp-wrap { padding: 20px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.tp-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tp-head { display: flex; flex-direction: column; gap: 8px; }
.tp-head__title { margin: 0; font-size: clamp(23px, 2.6vw, 30px); font-weight: 900; line-height: 1.45; word-break: auto-phrase; }
.tp-head__lead { font-size: 13px; color: var(--sub); }
/* 一覧の説明（2026-10-31） */
.tp-intro p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--body); }
.tp-intro p[hidden] { display: none; }

.tp-filters { display: flex; flex-direction: column; gap: 22px; }
.tp-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-cat {
	border: 1.5px solid var(--bd); background: var(--bg); color: var(--ink); font-weight: 900; font-size: 13px; padding: 8px 15px; border-radius: 999px;
	white-space: nowrap; cursor: pointer; font-family: inherit;
}
.tp-cat span { opacity: .7; font-weight: 700; }
.tp-cat:hover { border-color: var(--ink); }
.tp-cat.is-active { border-color: var(--ink); background: var(--ink); color: #fff; cursor: default; }
.tp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-count { font-size: 13px; }
.tp-count b { font-size: 18px; font-weight: 900; }
.tp-status { display: flex; gap: 4px; background: var(--bg1); padding: 4px; border-radius: 999px; }
.tp-status__btn {
	border: 0; background: transparent; color: var(--body); font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
	cursor: pointer; font-family: inherit;
}
.tp-status__btn.is-active { background: var(--red); color: #fff; font-weight: 900; cursor: default; }

.tp-tag { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tp-date { font-family: var(--mono); font-size: 12px; color: var(--sub); }
.tp-new { font-size: 11px; font-weight: 900; color: var(--red); }
.tp-left { font-size: 12px; font-weight: 900; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

.tp-feature {
	border: 2px solid var(--red); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.tp-feature[hidden] { display: none; }
.tp-feature:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29, 33, 48, .12); color: var(--ink); }
.tp-feature__media { position: relative; min-height: 230px; }
.tp-feature__img { position: absolute; inset: 0; height: 100%; }
.tp-feature__tag { position: absolute; top: 12px; right: 12px; /* 右上に（左上はアイキャッチの季節のラベルと重なるため。2026-11-02） */ z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.tp-feature__note { position: absolute; bottom: 10px; left: 12px; z-index: 1; font-family: var(--mono); font-size: 10px; color: #7a8090; }
.tp-feature__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tp-feature__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-feature__title { font-size: 21px; font-weight: 900; line-height: 1.45; word-break: auto-phrase; }
.tp-feature__sum { font-size: 14px; color: var(--body); line-height: 1.75; word-break: auto-phrase; }
.tp-feature__when { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.tp-feature__when .tp-left { padding: 5px 12px; }
.tp-feature__cta {
	align-self: flex-start; background: var(--btn); color: #fff; font-weight: 900; font-size: 14px; padding: 12px 24px; border-radius: 999px;
	box-shadow: 0 3px 0 var(--btn-sh); white-space: nowrap;
}

.tp-list { display: flex; flex-direction: column; border-top: 1px solid var(--bd); }
.tp-row {
	display: grid; grid-template-columns: 168px minmax(0, 1fr) 112px; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--row);
	transition: background .15s; color: var(--ink);
}
.tp-row[hidden] { display: none; }
.tp-row:hover { background: #fafbfd; color: var(--ink); }
.tp-row.is-ended { opacity: .55; }
.tp-row__img { aspect-ratio: 16 / 9; border-radius: 8px; }
.tp-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-row__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-row__title { font-size: 16px; font-weight: 900; line-height: 1.5; word-break: auto-phrase; }
.tp-row__sum { font-size: 13px; color: var(--sub); line-height: 1.6; word-break: auto-phrase; }
.tp-row__when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tp-row__period { font-size: 11px; color: var(--sub); white-space: nowrap; }
.tp-empty { padding: 36px; text-align: center; font-size: 14px; color: var(--sub); }
.tp-empty[hidden], .tp-more[hidden] { display: none; }
.tp-more {
	align-self: center; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 900; font-size: 14px; padding: 12px 40px;
	border-radius: 999px; cursor: pointer; font-family: inherit;
}
.tp-more:hover { background: var(--navy); color: #fff; }

/* 管理用の枠 */
.tp-admin { margin-top: 12px; border: 2px dashed #9aa0b0; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: #fafbfc; }
.tp-admin__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-admin__h--tbd { margin-top: 6px; }
.tp-admin__tag { background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 4px; }
.tp-admin__tag.is-blue { background: var(--blue); }
.tp-admin__title { font-size: 17px; font-weight: 900; }
.tp-admin__h--tbd .tp-admin__title { font-size: 15px; }
.tp-admin__note { font-size: 12px; color: var(--sub); line-height: 1.7; }
.tp-admin__list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; }
.tp-admin__row { display: flex; flex-direction: column; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--row); font-size: 13px; }
.tp-admin__line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tp-admin__end { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.tp-admin__ago { font-size: 12px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.tp-admin__warn { background: var(--red); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tp-admin__btns { display: flex; gap: 6px; margin-left: auto; }
.tp-admin__btns a { border: 1px solid var(--bd2); font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: #fff; }
.tp-admin__btns a:hover { border-color: var(--navy); color: var(--navy); }
.tp-admin__t { font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.tp-admin__empty { padding: 16px; text-align: center; font-size: 13px; color: var(--sub); }

/* 横のメニュー */
.tp-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.tp-line { background: #eafaf0; border: 1px solid #bfe9cf; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tp-line__eyebrow { font-size: 12px; font-weight: 900; color: #0b7d3b; }
.tp-line__t { font-size: 15px; font-weight: 900; line-height: 1.55; word-break: auto-phrase; }
.tp-line__list { display: flex; flex-direction: column; gap: 4px; }
.tp-line__list span { font-size: 12px; display: flex; gap: 6px; }
.tp-line__list b { color: #0b7d3b; font-weight: 900; }
.tp-line__btn { font-size: 14px; padding: 12px; box-shadow: 0 3px 0 #04913f; }
.tp-ending { border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.tp-ending__h { padding: 12px 16px; font-weight: 900; font-size: 14px; background: #fff7f6; color: #c2332c; }
.tp-ending__row { padding: 11px 16px; border-top: 1px solid var(--row); display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.tp-ending__row:hover { background: var(--hover); color: var(--ink); }
.tp-ending__meta { display: flex; gap: 6px; align-items: center; }
.tp-ending__meta .tp-left { font-size: 10px; padding: 2px 8px; }
.tp-ending__cat { font-size: 10px; font-weight: 700; }
.tp-ending__t { font-size: 13px; font-weight: 700; line-height: 1.55; word-break: auto-phrase; }
.tp-pr { border: 2px solid var(--red); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tp-pr__h { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 900; color: var(--red); }
.tp-pr__h .lbl-pr { font-size: 10px; padding: 2px 6px; }
.tp-pr__name { font-size: 16px; font-weight: 900; }
.tp-pr__btn { font-size: 13px; padding: 11px; }

@media (max-width: 1000px) and (min-width: 769px) {
	.tp-wrap { grid-template-columns: 1fr; }
	.tp-side { position: static; }
}

/* =========================================================
 * スマホ
 * ======================================================= */
@media (max-width: 768px) {
	.tp-wrap { display: block; padding: 0; }
	.tp-main { gap: 0; }
	.tp-head { padding: 12px 16px 0; gap: 6px; }
	.tp-head__title { font-size: 21px; line-height: 1.5; }
	.tp-head__lead { font-size: 12px; line-height: 1.6; }
	.tp-intro { padding: 8px 16px 4px; }
	.tp-intro p { font-size: 13px; line-height: 1.75; }
	.tp-filters {
		position: sticky; top: 65px; z-index: 4; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--row); gap: 8px; margin-top: 2px;
	}
	.tp-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
	.tp-cats::-webkit-scrollbar { display: none; }
	.tp-cat { flex-shrink: 0; font-size: 12px; padding: 9px 13px; }
	.tp-cat span { opacity: 1; font-weight: 900; }
	.tp-bar { display: block; }
	.tp-status { margin: 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 2px; padding: 3px; }
	.tp-status__btn { font-size: 11px; padding: 9px 6px; }
	.tp-count { padding: 0 16px; font-size: 12px; }
	.tp-count b { font-size: 16px; }
	.tp-feature { margin: 14px 16px 0; display: flex; flex-direction: column; }
	.tp-feature:hover { transform: none; box-shadow: none; }
	.tp-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
	.tp-feature__tag { top: 10px; right: 10px; font-size: 11px; padding: 3px 9px; }
	.tp-feature__body { padding: 14px; gap: 8px; }
	.tp-feature__meta { flex-wrap: nowrap; }
	.tp-feature__meta .tp-tag { font-size: 10px; }
	.tp-feature__meta .tp-date { font-size: 11px; }
	.tp-feature__meta .tp-left { margin-left: auto; font-size: 11px; padding: 3px 9px; }
	.tp-feature__title { font-size: 17px; line-height: 1.5; }
	.tp-feature__sum { font-size: 13px; line-height: 1.7; }
	.tp-feature__cta { align-self: stretch; text-align: center; font-size: 15px; padding: 13px; }
	.tp-list { margin-top: 8px; border-top: 0; }
	.tp-row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
	.tp-row:hover { background: none; }
	.tp-row__img { border-radius: 6px; align-self: start; }
	.tp-row__body { gap: 5px; }
	.tp-row__meta { gap: 6px; }
	.tp-row__meta .tp-tag { font-size: 10px; padding: 2px 7px; }
	.tp-row__meta .tp-left { font-size: 10px; padding: 2px 8px; }
	.tp-row__title { font-size: 14px; }
	.tp-row .tp-date { font-size: 11px; }
	.tp-empty { padding: 28px 16px; font-size: 13px; }
	.tp-more { align-self: stretch; margin: 14px 16px 0; padding: 13px; }
	.tp-admin { margin: 20px 16px 0; border-radius: 12px; padding: 14px; gap: 10px; }
	.tp-admin__tag { font-size: 10px; padding: 2px 8px; }
	.tp-admin__title { font-size: 15px; }
	.tp-admin__h--tbd .tp-admin__title { font-size: 14px; }
	.tp-admin__note { font-size: 11px; line-height: 1.6; }
	.tp-admin__list { background: none; border: 0; gap: 10px; overflow: visible; }
	.tp-admin__row {
		background: #fff; border: 1px solid var(--bd); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: auto auto 1fr;
		gap: 6px 8px; align-items: center; justify-items: start;
	}
	.tp-admin__line { display: contents; }
	.tp-admin__end, .tp-admin__ago { font-size: 11px; }
	.tp-admin__t { order: 2; grid-column: 1 / -1; font-size: 13px; }
	.tp-admin__btns { order: 3; grid-column: 1 / -1; justify-self: stretch; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
	.tp-admin__btns a { font-size: 12px; padding: 10px 4px; text-align: center; }
	.tp-admin__empty { font-size: 12px; padding: 4px; }
	.tp-line { margin: 22px 16px 0; padding: 14px; gap: 8px; }
	.tp-line__btn { padding: 13px; box-shadow: none; }
	.fixbar--wide-left { grid-template-columns: 1.3fr 1fr; }
	.fixbar__btn--outline { border: 1.5px solid var(--red); background: #fff; color: var(--red); padding: 12px 4px; font-family: inherit; cursor: pointer; }
	.fixbar__btn--outline:hover { color: var(--red); }
}
