/* techou-core components (テーマに依存しない部品のスタイル) */
:root {
	--tc-accent: #1b7f5f;
	--tc-accent-dark: #146a4f;
	--tc-accent-soft: #e9f4ef;
	--tc-text: #1f2328;
	--tc-sub: #6b6f76;
	--tc-line: #e8e6e1;
	--tc-bg: #ffffff;
	--tc-paper: #faf9f6;
	--tc-danger: #c0392b;
	--tc-radius: 12px;
}

.tc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tc-muted { color: var(--tc-sub); font-weight: 400; font-size: .85em; }
.tc-empty { padding: 40px 20px; text-align: center; color: var(--tc-sub); background: var(--tc-paper); border-radius: var(--tc-radius); line-height: 2; }
.tc-empty .tc-btn { margin-top: 12px; }
.tc-section { margin: 0 0 48px; }
.tc-section-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; letter-spacing: .02em; }

/* ---------- ボタン ---------- */
.tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 8px 16px; border: 1px solid var(--tc-line); border-radius: 999px;
	background: #fff; color: var(--tc-text); font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.tc-btn:hover { border-color: #cfccc5; background: #f7f6f3; color: var(--tc-text); }
.tc-btn:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
.tc-btn--primary { background: var(--tc-accent); border-color: var(--tc-accent); color: #fff; }
.tc-btn--primary:hover { background: var(--tc-accent-dark); border-color: var(--tc-accent-dark); color: #fff; }
.tc-btn--large { min-height: 48px; padding: 10px 24px; font-size: 1rem; }
.tc-btn--small { min-height: 34px; padding: 6px 14px; font-size: .85rem; }
.tc-btn--block { display: flex; width: 100%; }
.tc-btn--danger { color: var(--tc-danger); border-color: #efc9c4; }
.tc-btn--danger:hover { background: #fdf3f2; color: var(--tc-danger); border-color: var(--tc-danger); }
.tc-btn--toggle.is-active { color: #b7791f; border-color: #f0d9a8; background: #fffaf0; }
.tc-btn--follow.is-active { background: var(--tc-accent-soft); border-color: #bfe0d2; color: var(--tc-accent-dark); }
.tc-btn[disabled] { opacity: .6; cursor: wait; }
.tc-count { font-weight: 400; color: var(--tc-sub); }

/* ---------- バッジ・タグ ---------- */
.tc-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.6; vertical-align: middle; background: #f0efec; color: var(--tc-sub); }
.tc-badge--unlisted { background: #fff4e0; color: #9a5b00; }
.tc-badge--private { background: #eceff5; color: #3d4b66; }
.tc-badge--draft { background: #f3eefc; color: #6343a6; }
.tc-badge--sample { background: var(--tc-accent-soft); color: var(--tc-accent-dark); }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0; }
.tc-tag { color: var(--tc-accent-dark); text-decoration: none; font-size: .88rem; background: var(--tc-accent-soft); padding: 2px 10px; border-radius: 999px; }
.tc-tag:hover { text-decoration: underline; }

/* ---------- カバー ---------- */
.tc-cover { position: relative; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--tc-paper); }
.tc-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-cover--gen { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px 18px 34px; color: #fff; }
.tc-cover--gen .tc-cover__band { position: absolute; left: 14px; top: 0; bottom: 0; width: 6px; background: rgba(255,255,255,.35); }
.tc-cover--gen .tc-cover__label { position: relative; font-size: .72rem; letter-spacing: .12em; opacity: .85; margin-bottom: 4px; }
.tc-cover--gen .tc-cover__title { position: relative; font-size: 1.05rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tc-cover--c1 { background: linear-gradient(135deg, #1b7f5f, #2fa37d); }
.tc-cover--c2 { background: linear-gradient(135deg, #2f5f9e, #4a86c5); }
.tc-cover--c3 { background: linear-gradient(135deg, #a8553a, #d0805f); }
.tc-cover--c4 { background: linear-gradient(135deg, #5b4a8f, #8572b8); }
.tc-cover--c5 { background: linear-gradient(135deg, #8a6d1f, #b8963c); }
.tc-cover--c6 { background: linear-gradient(135deg, #2a7f8a, #47a8b2); }
.tc-cover--c7 { background: linear-gradient(135deg, #8f3a5c, #c0628a); }
.tc-cover--c8 { background: linear-gradient(135deg, #3d4b5c, #64758a); }

/* ---------- カード ---------- */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.tc-card { display: flex; flex-direction: column; min-width: 0; }
.tc-card__link { display: block; color: inherit; text-decoration: none; }
.tc-card__cover { border-radius: var(--tc-radius); border: 1px solid rgba(0,0,0,.04); transition: transform .2s; }
.tc-card__link:hover .tc-card__cover { transform: translateY(-2px); }
.tc-card__link:hover .tc-card__title { color: var(--tc-accent-dark); }
.tc-card__body { padding: 12px 2px 0; }
.tc-card__cat { margin: 0 0 4px; font-size: .78rem; color: var(--tc-sub); min-height: 1.2em; }
.tc-card__cat .tc-badge:first-child { margin-left: 0; }
.tc-card__title { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: var(--tc-text); }
.tc-card__desc { margin: 0; font-size: .86rem; color: var(--tc-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 0 2px; font-size: .8rem; color: var(--tc-sub); }
.tc-card__stats { display: flex; gap: 10px; flex-shrink: 0; }

.tc-author { display: inline-flex; align-items: center; gap: 8px; color: var(--tc-text); text-decoration: none; min-width: 0; }
.tc-author:hover .tc-author__name { text-decoration: underline; }
.tc-author__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-avatar, .tc-author img { border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #eee; }

/* ---------- 手帳ページ ---------- */
.tc-techou-head { margin: 0 0 40px; }
.tc-techou-head__cover { border-radius: var(--tc-radius); margin-bottom: 28px; }
.tc-techou-head__cover.tc-cover--gen .tc-cover__title { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.tc-techou-head__cat { margin: 0 0 8px; font-size: .85rem; }
.tc-techou-head__cat a { color: var(--tc-accent-dark); text-decoration: none; font-weight: 600; }
.tc-techou-head__cat .tc-badge:first-child { margin-left: 0; }
.tc-techou-head__title { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.4; margin: 0 0 16px; letter-spacing: .01em; }
.tc-techou-head__author { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tc-techou-head__author .tc-author { font-weight: 600; }
.tc-techou-head__desc { color: #3a3f45; line-height: 1.95; }
.tc-techou-head__desc p { margin: 0 0 1em; }
.tc-techou-head__goal { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--tc-accent); background: var(--tc-paper); border-radius: 0 8px 8px 0; line-height: 1.7; }
.tc-techou-head__goal span { display: block; font-size: .75rem; font-weight: 700; color: var(--tc-accent-dark); letter-spacing: .1em; }
.tc-techou-head__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0; padding: 0; font-size: .85rem; }
.tc-techou-head__meta div { display: flex; gap: 8px; }
.tc-techou-head__meta dt { color: var(--tc-sub); }
.tc-techou-head__meta dd { margin: 0; font-weight: 600; }
.tc-techou-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- タイムライン ---------- */
.tc-timeline-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-top: 28px; border-top: 1px solid var(--tc-line); }
.tc-timeline-bar .tc-section-title { margin: 0; }
.tc-seg { display: inline-flex; padding: 3px; background: #f2f1ee; border-radius: 999px; }
.tc-seg__item { padding: 6px 14px; border-radius: 999px; font-size: .84rem; color: var(--tc-sub); text-decoration: none; }
.tc-seg__item.is-active { background: #fff; color: var(--tc-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tc-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.tc-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--tc-line), var(--tc-line)) ; }
.tc-timeline__year { position: relative; margin: 8px 0 16px -22px; padding-left: 0; font-weight: 700; font-size: .85rem; color: var(--tc-sub); letter-spacing: .08em; }
.tc-timeline__year::before { content: ""; display: inline-block; width: 12px; height: 2px; background: var(--tc-sub); vertical-align: middle; margin-right: 10px; }
.tc-entry { position: relative; margin: 0 0 28px; scroll-margin-top: 90px; }
.tc-entry::before { content: ""; position: absolute; left: -22px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--tc-accent); box-sizing: border-box; }
.tc-entry:target .tc-entry__card { box-shadow: 0 0 0 2px var(--tc-accent); }
.tc-entry__date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; font-size: .88rem; font-weight: 700; color: var(--tc-accent-dark); }
.tc-entry__elapsed { font-size: .75rem; font-weight: 600; color: var(--tc-sub); background: #f2f1ee; padding: 1px 8px; border-radius: 999px; }
.tc-entry__card { background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); padding: 18px 20px; }
.tc-entry__title { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.5; }
.tc-entry__title a { color: var(--tc-text); text-decoration: none; }
.tc-entry__title a:hover { color: var(--tc-accent-dark); text-decoration: underline; }
/* 手帳の罫線（行の高さ 32px に揃える） */
.tc-entry__body { line-height: 32px; color: #2d3237; overflow-wrap: anywhere; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #efede8 31px 32px); }
.tc-entry__body p { margin: 0 0 32px; }
.tc-entry__body p:last-child { margin-bottom: 0; }
.tc-entry__more { font-size: .88rem; font-weight: 600; color: var(--tc-accent-dark); }
.tc-entry__owner { margin: 10px 0 0; font-size: .82rem; text-align: right; }
.tc-entry__owner a { color: var(--tc-sub); }

/* ---------- 画像・埋め込み・リンク ---------- */
.tc-gallery { display: grid; gap: 6px; margin: 14px 0 4px; border-radius: 10px; overflow: hidden; }
.tc-gallery--1 { grid-template-columns: 1fr; }
.tc-gallery--2, .tc-gallery--4 { grid-template-columns: 1fr 1fr; }
.tc-gallery--3 { grid-template-columns: 1fr 1fr 1fr; }
.tc-gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tc-paper); }
.tc-gallery--1 .tc-gallery__item { aspect-ratio: auto; max-height: 560px; }
.tc-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-gallery--1 .tc-gallery__item img { height: auto; max-height: 560px; object-fit: contain; }
.tc-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 1.2rem; }
.tc-embed { margin: 16px 0; }
.tc-embed iframe { max-width: 100%; }
.tc-embed iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.tc-linkcard a { display: flex; flex-direction: column; gap: 2px; margin: 16px 0; padding: 12px 16px; border: 1px solid var(--tc-line); border-radius: 10px; text-decoration: none; color: var(--tc-text); }
.tc-linkcard a:hover { background: var(--tc-paper); }
.tc-linkcard__label { font-size: .72rem; color: var(--tc-sub); }
.tc-linkcard__url { font-weight: 600; color: var(--tc-accent-dark); word-break: break-all; }

/* ---------- 記録ページ ---------- */
.tc-record__parent { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 28px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); text-decoration: none; color: var(--tc-text); font-weight: 700; line-height: 1.45; }
.tc-record__parent:hover { background: var(--tc-paper); }
.tc-record__parent small { display: block; font-size: .72rem; font-weight: 400; color: var(--tc-sub); }
.tc-record__parent-cover { flex: 0 0 96px; border-radius: 8px; }
.tc-record__parent-cover.tc-cover--gen { padding: 6px 8px 6px 18px; }
.tc-record__parent-cover.tc-cover--gen .tc-cover__band { left: 6px; width: 4px; }
.tc-record__parent-cover .tc-cover__label { display: none; }
.tc-record__parent-cover .tc-cover__title { font-size: .55rem; -webkit-line-clamp: 2; }
.tc-record__date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-weight: 700; color: var(--tc-accent-dark); }
.tc-record__date .tc-badge { margin-left: 0; }
.tc-record__title { font-size: clamp(1.4rem, 3.6vw, 1.9rem); line-height: 1.45; margin: 0 0 16px; }
.tc-record__author { margin-bottom: 28px; font-size: .9rem; }
.tc-record__body { font-size: 1.04rem; line-height: 2; overflow-wrap: anywhere; }
.tc-record__body p { margin: 0 0 1.4em; }
.tc-record__owner { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tc-record__back { text-align: center; margin: 24px 0; }
.tc-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 0; }
.tc-adjacent a { display: block; padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); color: var(--tc-text); text-decoration: none; font-weight: 600; line-height: 1.5; font-size: .92rem; }
.tc-adjacent a:hover { background: var(--tc-paper); }
.tc-adjacent small { display: block; font-weight: 400; color: var(--tc-sub); font-size: .76rem; margin-bottom: 2px; }
.tc-adjacent__next { text-align: right; }

/* ---------- 共有・通報 ---------- */
.tc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; }
.tc-share__label { font-size: .8rem; color: var(--tc-sub); margin-right: 4px; }
.tc-share__btn { padding: 6px 14px; border: 1px solid var(--tc-line); border-radius: 999px; background: #fff; color: var(--tc-text); font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.tc-share__btn:hover { background: var(--tc-paper); }
.tc-report { margin: 40px 0 0; font-size: .85rem; color: var(--tc-sub); }
.tc-report summary { cursor: pointer; display: inline-block; }
.tc-report__form { margin-top: 12px; padding: 16px; background: var(--tc-paper); border-radius: var(--tc-radius); }

/* ---------- フォーム ---------- */
.tc-form { max-width: 680px; }
.tc-field { position: relative; margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.tc-label { display: block; margin: 0 0 8px; font-weight: 700; font-size: .92rem; padding: 0; }
.tc-req { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #fdecea; color: var(--tc-danger); font-size: .7rem; font-weight: 600; vertical-align: 1px; }
.tc-input, .tc-textarea, .tc-select {
	display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #d9d6cf; border-radius: 10px;
	background: #fff; color: var(--tc-text); font: inherit; font-size: 16px; line-height: 1.6; transition: border-color .15s, box-shadow .15s;
}
.tc-textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.tc-input:focus, .tc-textarea:focus, .tc-select:focus { outline: none; border-color: var(--tc-accent); box-shadow: 0 0 0 3px rgba(27,127,95,.15); }
.tc-help { margin: 6px 0 0; font-size: .8rem; color: var(--tc-sub); line-height: 1.6; }
.tc-help code { background: #f2f1ee; padding: 0 4px; border-radius: 4px; font-size: .95em; }
.tc-counter { position: absolute; right: 2px; top: 2px; font-size: .72rem; color: #a2a6ab; }
.tc-counter.is-near { color: var(--tc-danger); }
.tc-static { margin: 0; color: var(--tc-sub); }
.tc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tc-row--date { grid-template-columns: minmax(0, 240px); }
.tc-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 20px; font-size: .9rem; line-height: 1.6; cursor: pointer; }
.tc-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tc-accent); flex-shrink: 0; }
.tc-radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tc-radio { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.tc-radio input { accent-color: var(--tc-accent); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chips--examples { margin: -12px 0 22px; align-items: center; }
.tc-chip { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid #d9d6cf; border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; color: var(--tc-text); cursor: pointer; }
.tc-chip:hover { border-color: var(--tc-accent); }
.tc-chips--radio .tc-chip { padding: 0; }
.tc-chips--radio .tc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tc-chips--radio .tc-chip span { padding: 8px 14px; border-radius: 999px; }
.tc-chips--radio .tc-chip:has(input:checked) { background: var(--tc-accent); border-color: var(--tc-accent); color: #fff; font-weight: 600; }
.tc-chips--radio .tc-chip:has(input:focus-visible) { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
.tc-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tc-option { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 40px; border: 1px solid #d9d6cf; border-radius: 10px; cursor: pointer; line-height: 1.5; }
.tc-option input { position: absolute; left: 14px; top: 17px; accent-color: var(--tc-accent); width: 16px; height: 16px; }
.tc-option:has(input:checked) { border-color: var(--tc-accent); background: var(--tc-accent-soft); }
.tc-option__title { font-weight: 700; }
.tc-option__desc { font-size: .78rem; color: var(--tc-sub); }
.tc-more { margin: 8px 0 24px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); }
.tc-more > summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: .92rem; list-style-position: inside; }
.tc-more__body { padding: 8px 16px 4px; border-top: 1px solid var(--tc-line); }
.tc-file { display: inline-block; position: relative; }
.tc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tc-file__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px dashed #bdb9b0; border-radius: 10px; background: var(--tc-paper); font-size: .9rem; font-weight: 600; }
.tc-file:hover .tc-file__btn { border-color: var(--tc-accent); color: var(--tc-accent-dark); }
.tc-file:has(input:focus-visible) .tc-file__btn { outline: 2px solid var(--tc-accent); }
.tc-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tc-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.tc-current-cover img, .tc-current-images img { border-radius: 8px; max-width: 220px; height: auto; display: block; }
.tc-current-images { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tc-current-images__item { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; }
.tc-current-images__item img { width: 96px; height: 96px; object-fit: cover; }
.tc-avatar-edit { display: flex; align-items: center; gap: 16px; }
.tc-avatar-edit > img { border-radius: 50%; }
.tc-field--password .tc-input { padding-right: 64px; }
.tc-pass-toggle { position: absolute; right: 8px; top: 38px; padding: 6px 10px; border: 0; background: transparent; color: var(--tc-accent-dark); font: inherit; font-size: .82rem; cursor: pointer; }
.tc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.tc-danger { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--tc-line); }
.tc-danger h3 { font-size: 1rem; margin: 0 0 4px; }

/* ---------- 投稿画面 ---------- */
.tc-editor { max-width: 680px; margin: 0 auto; }
.tc-editor__q { font-size: clamp(1.4rem, 4vw, 1.75rem); margin: 0 0 8px; line-height: 1.4; }
.tc-editor__lead { color: var(--tc-sub); margin: 0 0 28px; line-height: 1.8; }
.tc-editor__back { margin: 0 0 16px; font-size: .9rem; }
.tc-editor__back a { color: var(--tc-sub); }
.tc-editor--record .tc-editor__q { margin-bottom: 24px; }
.tc-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: .8rem; counter-reset: s; }
.tc-steps li { counter-increment: s; flex: 1; padding: 8px 10px; border-radius: 8px; background: #f2f1ee; color: var(--tc-sub); font-weight: 600; }
.tc-steps li::before { content: counter(s) ". "; }
.tc-steps li.is-current { background: var(--tc-accent); color: #fff; }
.tc-steps li.is-done { background: var(--tc-accent-soft); color: var(--tc-accent-dark); }

/* ---------- 通知 ---------- */
.tc-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; line-height: 1.7; font-size: .92rem; }
.tc-notice ul { margin: 0; padding-left: 1.2em; }
.tc-notice--success { background: var(--tc-accent-soft); color: var(--tc-accent-dark); border: 1px solid #c4e3d5; }
.tc-notice--error { background: #fdf1ef; color: #9b2c1f; border: 1px solid #f3cdc7; }

/* ---------- 登録 ---------- */
.tc-auth { max-width: 440px; margin: 0 auto; }
.tc-auth__lead { color: var(--tc-sub); line-height: 1.8; margin: 0 0 24px; }
.tc-auth__alt { text-align: center; margin: 24px 0 0; font-size: .9rem; }

/* ---------- プロフィール・マイページ ---------- */
.tc-profile { display: flex; gap: 24px; align-items: flex-start; margin: 0 0 40px; }
.tc-profile__avatar { border-radius: 50%; flex-shrink: 0; width: 96px; height: 96px; object-fit: cover; }
.tc-profile__main { flex: 1; min-width: 0; }
.tc-profile__name { font-size: 1.5rem; margin: 0; line-height: 1.4; }
.tc-profile__id { margin: 0 0 8px; color: var(--tc-sub); font-size: .88rem; }
.tc-profile__stats { display: flex; gap: 16px; margin: 0 0 12px; font-size: .88rem; color: var(--tc-sub); }
.tc-profile__stats strong { color: var(--tc-text); }
.tc-profile__bio { line-height: 1.85; }
.tc-profile__bio p { margin: 0 0 .8em; }
.tc-profile__links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; margin: 8px 0 0; }
.tc-profile__links a { color: var(--tc-accent-dark); }
.tc-profile__actions { margin-top: 16px; }
.tc-mypage__head { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.tc-mypage__name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.tc-mypage__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; font-size: .85rem; }
.tc-mypage__links a { color: var(--tc-sub); }
.tc-mypage__cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tc-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 28px; border-bottom: 1px solid var(--tc-line); scrollbar-width: none; }
.tc-tabs__item { flex-shrink: 0; padding: 10px 14px; color: var(--tc-sub); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tc-tabs__item.is-active { color: var(--tc-text); border-bottom-color: var(--tc-text); }
.tc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tc-line); }
.tc-list__item a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--tc-line); color: var(--tc-text); text-decoration: none; }
.tc-list__item a:hover { background: var(--tc-paper); }
.tc-list__title { font-weight: 600; }
.tc-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tc-users__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); }
.tc-users__item .tc-author { font-weight: 700; }
.tc-users__bio { grid-column: 1; margin: 0; font-size: .85rem; color: var(--tc-sub); }
.tc-users__item .tc-btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- 一覧系 ---------- */
.tc-record-item { padding: 18px 0; border-bottom: 1px solid var(--tc-line); }
.tc-record-item__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; font-size: .8rem; color: var(--tc-sub); }
.tc-record-item__meta a { color: var(--tc-accent-dark); text-decoration: none; font-weight: 600; }
.tc-record-item__title { margin: 0 0 4px; font-size: 1.05rem; }
.tc-record-item__title a { color: var(--tc-text); text-decoration: none; }
.tc-record-item__title a:hover { text-decoration: underline; }
.tc-record-item__excerpt { margin: 0; font-size: .88rem; color: var(--tc-sub); line-height: 1.7; }
.tc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0; }
.tc-pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--tc-line); border-radius: 999px; color: var(--tc-text); text-decoration: none; font-size: .9rem; box-sizing: border-box; }
.tc-pager__item.is-current, .tc-pager__item.current { background: var(--tc-text); border-color: var(--tc-text); color: #fff; }
.tc-pager__item.dots { border: 0; }
.tc-catlist { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tc-catlist__item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); text-decoration: none; color: var(--tc-text); font-weight: 600; }
.tc-catlist__item:hover { border-color: var(--tc-accent); color: var(--tc-accent-dark); }
.tc-catlist__count { font-size: .78rem; font-weight: 400; color: var(--tc-sub); }
.tc-searchform { display: flex; gap: 8px; margin: 0 0 32px; }
.tc-searchform .tc-input { flex: 1; border-radius: 999px; padding-left: 20px; }
.tc-searchform .tc-btn { min-height: 50px; padding: 0 22px; }

/* ---------- スマートフォン ---------- */
@media (max-width: 680px) {
	.tc-grid { grid-template-columns: 1fr; gap: 28px; }
	.tc-options { grid-template-columns: 1fr; }
	.tc-row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
	.tc-actions--sticky { position: sticky; bottom: 0; z-index: 20; margin: 24px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--tc-line); backdrop-filter: blur(6px); }
	.tc-actions--sticky .tc-btn { flex: 1; }
	.tc-actions--sticky .tc-btn--primary { flex: 2; }
	.tc-entry__card { padding: 16px; }
	.tc-profile { flex-direction: column; gap: 12px; }
	.tc-profile__avatar { width: 80px; height: 80px; }
	.tc-adjacent { grid-template-columns: 1fr; }
	.tc-adjacent__next { text-align: left; }
	.tc-timeline { padding-left: 18px; }
	.tc-timeline__year { margin-left: -18px; }
	.tc-entry::before { left: -18px; }
	.tc-timeline::before { left: 5px; }
	.tc-users__item { grid-template-columns: 1fr; }
	.tc-users__item .tc-btn { grid-column: 1; grid-row: auto; justify-self: start; }
	.tc-searchform .tc-btn { min-height: 48px; }
}
