/*
Theme Name: Ticket Mikata
Theme URI:
Author: 編集部
Description: 比較メディア向けの軽量SEOテーマ。構造化データ（Article / FAQPage / BreadcrumbList）、目次自動生成、レスポンシブ比較表、告知バナーを内蔵。外部CDNとWebフォントへの依存ゼロ。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ticketfee
Tags: blog, one-column, custom-menu, translation-ready
*/

/* ==========================================================================
   1. デザインの方針
   --------------------------------------------------------------------------
   「主催者の手元にいくら残るか」を扱うサイトなので、
   スタートアップ的な華やかさより、検証記事・報告書としての落ち着きを優先する。

   - グラデーションは一切使わない
   - 装飾用のWebフォント・アイコンフォント・等幅ロゴは使わない
   - 色は「インク（濃紺寄りの黒）」＋「深い緑」の2色だけ
     緑は「手元に残る／有利」を表す色として、比較表の最安行と共通で使う
   - 見出しは上に罫線を引く新聞的な処理にする（左に太い縦線を引く定番型は使わない）
   - 角丸とドロップシャドウをほぼ使わず、罫線で構造を作る

   色を変えたいときは、下の変数だけ書き換えれば全体に反映されます。
   ========================================================================== */

:root {
	/* 文字と背景 */
	--tf-ink: #16202b;
	--tf-ink-soft: #4d5a68;
	--tf-ink-faint: #7b8794;
	--tf-paper: #ffffff;
	--tf-paper-tint: #f5f7f6;
	--tf-rule: #dde3e1;
	--tf-rule-strong: #16202b;

	/* 主色（深い緑）＝有利・手元に残る */
	--tf-accent: #0f6b5c;
	--tf-accent-deep: #0a4d42;
	--tf-accent-wash: #eaf3f0;
	--tf-accent-light: #7fc9b8;

	/* 注意・注記 */
	--tf-notice-bg: #fdf8ec;
	--tf-notice-rule: #d9b25f;
	--tf-notice-ink: #6a5218;

	/* レイアウト */
	--tf-measure: 700px;
	--tf-measure-wide: 1060px;
	--tf-radius: 3px;

	--tf-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
		"Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

body {
	margin: 0;
	font-family: var(--tf-font);
	font-size: 17px;
	line-height: 1.9;
	color: var(--tf-ink);
	background: var(--tf-paper);
	word-wrap: break-word;
	overflow-wrap: break-word;
	font-feature-settings: "palt";
}

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

a {
	color: var(--tf-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--tf-accent-deep);
	text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--tf-accent);
	outline-offset: 3px;
}

.tf-screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tf-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: var(--tf-paper);
	border: 2px solid var(--tf-accent);
}

/* ==========================================================================
   2. レイアウト
   ========================================================================== */

.tf-container {
	width: 100%;
	max-width: var(--tf-measure);
	margin: 0 auto;
	padding: 0 22px;
}

.tf-container--wide {
	max-width: var(--tf-measure-wide);
}

.tf-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.tf-main {
	flex: 1 0 auto;
	padding: 28px 0 72px;
}

/* ==========================================================================
   3. ヘッダー
   サイト名の下に短い太線を引くだけ。ロゴマークや記号は使わない。
   ========================================================================== */

.tf-header {
	border-bottom: 1px solid var(--tf-rule);
	background: var(--tf-paper);
}

.tf-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 32px;
	align-items: flex-end;
	justify-content: space-between;
	max-width: var(--tf-measure-wide);
	padding: 22px;
	margin: 0 auto;
}

.tf-logo {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.tf-logo a {
	display: inline-block;
	color: var(--tf-ink);
	text-decoration: none;
	border-bottom: 3px solid var(--tf-accent);
	padding-bottom: 6px;
}

.tf-logo a:hover {
	color: var(--tf-accent-deep);
}

.tf-logo__tagline {
	display: block;
	padding-top: 5px;
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--tf-ink-faint);
}

.tf-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	padding: 0;
	margin: 0;
	font-size: 0.88rem;
	list-style: none;
}

.tf-nav a {
	color: var(--tf-ink-soft);
	text-decoration: none;
}

.tf-nav a:hover {
	color: var(--tf-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ==========================================================================
   4. 告知バナー（カスタマイザーで空にすると非表示）
   ========================================================================== */

.tf-disclosure {
	padding: 11px 22px;
	margin: 0;
	font-size: 0.79rem;
	line-height: 1.7;
	color: var(--tf-notice-ink);
	text-align: center;
	background: var(--tf-notice-bg);
	border-bottom: 1px solid var(--tf-notice-rule);
}

.tf-disclosure a {
	color: var(--tf-notice-ink);
}

.tf-disclosure--inline {
	margin: 0 0 32px;
	text-align: left;
	border: 0;
	border-left: 3px solid var(--tf-notice-rule);
}

/* ==========================================================================
   5. パンくずリスト
   ========================================================================== */

.tf-breadcrumb {
	padding: 18px 0 0;
	font-size: 0.76rem;
	letter-spacing: 0.01em;
	color: var(--tf-ink-faint);
}

.tf-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.tf-breadcrumb li:not(:last-child)::after {
	margin-left: 8px;
	color: var(--tf-rule);
	content: "/";
}

.tf-breadcrumb a {
	color: var(--tf-ink-faint);
	text-decoration: none;
}

.tf-breadcrumb a:hover {
	color: var(--tf-accent);
	text-decoration: underline;
}

/* ==========================================================================
   6. 記事の見出しまわり
   ========================================================================== */

.tf-article__header {
	padding-bottom: 26px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--tf-rule);
}

.tf-title {
	margin: 14px 0 16px;
	font-size: 1.95rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -0.015em;
}

.tf-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	font-size: 0.76rem;
	letter-spacing: 0.02em;
	color: var(--tf-ink-faint);
}

.tf-meta__updated {
	font-weight: 700;
	color: var(--tf-accent);
}

/* カテゴリは角丸バッジではなく、下線付きの小見出しラベルにする */
.tf-category-label {
	display: inline-block;
	padding-bottom: 3px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--tf-accent);
	text-decoration: none;
	background: none;
	border-bottom: 2px solid var(--tf-accent);
	border-radius: 0;
}

.tf-category-label:hover {
	color: var(--tf-accent-deep);
}

/* ==========================================================================
   7. 本文の文字組み
   見出しは上に罫線。h2は太線、h3は細線。
   ========================================================================== */

.tf-content > *:first-child {
	margin-top: 0;
}

.tf-content h2 {
	padding: 18px 0 0;
	margin: 68px 0 22px;
	font-size: 1.42rem;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: -0.01em;
	background: none;
	border: 0;
	border-top: 3px solid var(--tf-rule-strong);
	border-radius: 0;
}

.tf-content h3 {
	padding: 14px 0 0;
	margin: 46px 0 16px;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.6;
	border: 0;
	border-top: 1px solid var(--tf-rule);
}

.tf-content h4 {
	margin: 30px 0 10px;
	font-size: 1.01rem;
	font-weight: 700;
}

.tf-content p {
	margin: 0 0 1.6em;
}

.tf-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.6em;
	list-style: decimal;
}

.tf-content ol > li::marker {
	font-weight: 700;
	color: var(--tf-accent);
}

/* 箇条書きの点は小さな四角にする */
.tf-content ul {
	padding-left: 1.1em;
	margin: 0 0 1.6em;
	list-style: none;
}

.tf-content ul > li {
	position: relative;
}

.tf-content ul > li::before {
	position: absolute;
	top: 0.72em;
	left: -1.1em;
	width: 6px;
	height: 6px;
	content: "";
	background: var(--tf-accent);
}

.tf-content li {
	margin-bottom: 0.55em;
}

/* 強調は蛍光ペン風ではなく、下線を2段に重ねる */
.tf-content strong {
	font-weight: 700;
	background: none;
	box-shadow: inset 0 -2px 0 0 var(--tf-accent-wash), inset 0 -3px 0 0 var(--tf-accent);
}

.tf-content blockquote {
	padding: 2px 0 2px 22px;
	margin: 0 0 1.6em;
	color: var(--tf-ink-soft);
	border-left: 2px solid var(--tf-rule);
}

.tf-content hr {
	height: 0;
	margin: 56px 0;
	background: none;
	border: 0;
	border-top: 1px solid var(--tf-rule);
}

/* 表の下に置く出典・注記 */
.tf-source-note {
	margin: -0.6em 0 2.2em;
	font-size: 0.76rem;
	line-height: 1.8;
	color: var(--tf-ink-faint);
}

/* ==========================================================================
   8. 結論ボックス
   記事の答えを最初に置く場所なので、地の色を反転させて明確に区切る。
   ========================================================================== */

.tf-verdict {
	padding: 28px 30px;
	margin: 0 0 40px;
	color: #eef3f1;
	background: var(--tf-ink);
	border: 0;
	border-radius: 0;
}

.tf-verdict__title {
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--tf-accent-light);
}

/* ラベルより後に書くと詳細度で勝ってしまうため、ラベルを除外する */
.tf-verdict p:not(.tf-verdict__title),
.tf-verdict li {
	font-size: 0.97rem;
	line-height: 1.85;
}

.tf-verdict p:last-child,
.tf-verdict ul:last-child,
.tf-verdict ol:last-child {
	margin-bottom: 0;
}

.tf-verdict strong {
	font-weight: 700;
	color: #ffffff;
	background: none;
	box-shadow: inset 0 -2px 0 0 rgba(127, 201, 184, 0.3), inset 0 -3px 0 0 var(--tf-accent-light);
}

.tf-verdict a {
	color: #9fd9cb;
}

/* ==========================================================================
   9. 目次
   ========================================================================== */

.tf-toc {
	padding: 24px 26px;
	margin: 0 0 44px;
	background: var(--tf-paper-tint);
	border: 0;
	border-top: 2px solid var(--tf-rule-strong);
	border-radius: 0;
}

.tf-toc__title {
	padding: 0;
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--tf-ink-soft);
	background: none;
	border: 0;
}

.tf-toc ol {
	padding-left: 1.5em;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.75;
	list-style: decimal;
}

.tf-toc > ol > li {
	margin-bottom: 8px;
}

.tf-toc > ol > li::marker {
	font-weight: 700;
	color: var(--tf-accent);
}

.tf-toc ol ol {
	padding-left: 0;
	margin: 6px 0 10px;
	font-size: 0.95em;
	color: var(--tf-ink-soft);
	list-style: none;
}

.tf-toc ol ol li {
	padding-left: 14px;
	border-left: 1px solid var(--tf-rule);
}

.tf-toc ol ol li::before {
	content: none;
}

.tf-toc a {
	color: var(--tf-ink);
	text-decoration: none;
}

.tf-toc a:hover {
	color: var(--tf-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   10. 比較表
   スマホでも崩れないよう、表だけを横スクロールさせる。
   ========================================================================== */

.tf-table-scroll {
	position: relative;
	margin: 0 0 0.7em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 0;
	border-top: 2px solid var(--tf-rule-strong);
	border-bottom: 1px solid var(--tf-rule);
	border-radius: 0;
}

.tf-table-scroll table {
	width: 100%;
	min-width: 620px;
	margin: 0;
	font-size: 0.87rem;
	line-height: 1.65;
	border-collapse: collapse;
}

.tf-table-scroll th,
.tf-table-scroll td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
	border-right: 0;
	border-bottom: 1px solid var(--tf-rule);
}

.tf-table-scroll thead th {
	position: sticky;
	top: 0;
	font-size: 0.79rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--tf-ink-soft);
	background: var(--tf-paper);
	border-bottom: 1px solid var(--tf-rule-strong);
}

.tf-table-scroll tbody th {
	font-weight: 700;
	white-space: nowrap;
	background: none;
}

.tf-table-scroll tbody tr:last-child th,
.tf-table-scroll tbody tr:last-child td {
	border-bottom: 0;
}

/* 最安・最有利の行を強調する。
   使い方: 表ブロックの「高度な設定 > 追加CSSクラス」に tf-highlight-first を入れ、
   強調したい行を表の1行目に置く。 */
.tf-table-scroll.tf-highlight-first tbody tr:first-child th,
.tf-table-scroll.tf-highlight-first tbody tr:first-child td {
	font-weight: 600;
	background: var(--tf-accent-wash);
	box-shadow: none;
}

.tf-table-scroll.tf-highlight-first tbody tr:first-child th {
	box-shadow: inset 3px 0 0 0 var(--tf-accent);
}

.tf-scroll-hint {
	margin: 0 0 2.2em;
	font-size: 0.73rem;
	letter-spacing: 0.02em;
	color: var(--tf-ink-faint);
}

@media (min-width: 700px) {
	.tf-scroll-hint {
		display: none;
	}
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.tf-faq {
	margin: 0 0 2.2em;
	border-top: 1px solid var(--tf-rule);
}

.tf-faq__item {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--tf-rule);
	border-radius: 0;
}

.tf-faq__q {
	padding: 18px 4px 18px 0;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.7;
	cursor: pointer;
	background: none;
	border: 0;
	border-radius: 0;
}

.tf-faq__q::marker {
	color: var(--tf-accent);
}

.tf-faq__item[open] .tf-faq__q {
	padding-bottom: 8px;
	border: 0;
}

.tf-faq__a {
	padding: 0 0 6px 16px;
	font-size: 0.93rem;
	color: var(--tf-ink-soft);
	border-left: 2px solid var(--tf-accent-wash);
}

.tf-faq__a > *:last-child {
	margin-bottom: 1em;
}

/* ==========================================================================
   12. CTA（TicketDiveへの導線）
   広告ブロックに見えないよう、背景色とボタンを使わず罫線だけで区切る。
   ========================================================================== */

.tf-cta {
	padding: 18px 0 0;
	margin: 44px 0 0;
	border-top: 1px solid var(--tf-rule);
}

.tf-cta__title {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--tf-ink-faint);
}

.tf-cta__text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.85;
	color: var(--tf-ink-soft);
}

.tf-cta__link {
	font-weight: 700;
	color: var(--tf-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tf-cta__link:hover {
	color: var(--tf-accent-deep);
}

/* ボタン（現在は使っていないが、必要になったとき用に残す） */
.tf-button {
	display: inline-block;
	padding: 14px 30px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	background: var(--tf-accent);
	border-radius: var(--tf-radius);
}

.tf-button:hover {
	color: #ffffff;
	background: var(--tf-accent-deep);
}

/* ==========================================================================
   13. 記事一覧
   カードは枠で囲まず、罫線で区切る一覧形式にする。
   ========================================================================== */

.tf-archive__header {
	padding-bottom: 24px;
	margin-bottom: 36px;
	border-bottom: 1px solid var(--tf-rule);
}

.tf-archive__title {
	margin: 12px 0;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.tf-archive__description {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.85;
	color: var(--tf-ink-soft);
}

.tf-card-list {
	display: block;
	padding: 0;
	margin: 0;
	list-style: none;
	border-top: 1px solid var(--tf-rule);
}

.tf-card {
	padding: 26px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--tf-rule);
	border-radius: 0;
}

.tf-card::before {
	content: none;
}

.tf-card__title {
	margin: 12px 0 10px;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.65;
}

.tf-card__title a {
	color: var(--tf-ink);
	text-decoration: none;
}

.tf-card__title a:hover {
	color: var(--tf-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tf-card__excerpt {
	margin: 0 0 12px;
	font-size: 0.87rem;
	line-height: 1.85;
	color: var(--tf-ink-soft);
}

.tf-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	font-size: 0.73rem;
	letter-spacing: 0.02em;
	color: var(--tf-ink-faint);
}

/* ==========================================================================
   14. 関連記事
   ========================================================================== */

.tf-related {
	padding-top: 36px;
	margin-top: 60px;
	border-top: 3px solid var(--tf-rule-strong);
}

.tf-related__title {
	margin: 0 0 20px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--tf-ink-soft);
}

/* ==========================================================================
   15. フッター
   上から順に、メニュー → 注意書き → サイト名と著作権。
   左右に振り分けず、縦に積む構成にする。
   ========================================================================== */

.tf-footer {
	padding: 44px 0 52px;
	font-size: 0.84rem;
	color: var(--tf-ink-soft);
	background: var(--tf-paper);
	border-top: 3px solid var(--tf-rule-strong);
}

.tf-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	padding: 0;
	margin: 0 0 30px;
	font-size: 0.88rem;
	list-style: none;
	border: 0;
}

.tf-footer__nav a {
	color: var(--tf-ink);
	text-decoration: none;
}

.tf-footer__nav a:hover {
	color: var(--tf-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tf-footer__notes {
	padding: 20px 24px;
	margin: 0 0 30px;
	text-align: left;
	background: var(--tf-paper-tint);
}

.tf-footer__notes p {
	position: relative;
	padding-left: 15px;
	margin: 0 0 7px;
	font-size: 0.76rem;
	line-height: 1.8;
	color: var(--tf-ink-soft);
}

.tf-footer__notes p::before {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--tf-ink-faint);
	content: "※";
}

.tf-footer__notes p:last-child {
	margin-bottom: 0;
}

.tf-footer__brand {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	align-items: baseline;
	padding-top: 22px;
	border-top: 1px solid var(--tf-rule);
}

.tf-footer__logotype {
	margin: 0;
	font-family: var(--tf-font);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.tf-footer__logotype a {
	color: var(--tf-ink);
	text-decoration: none;
}

.tf-footer__logotype a:hover {
	color: var(--tf-accent);
}

.tf-footer__copyright {
	margin: 0;
	font-size: 0.73rem;
	letter-spacing: 0.02em;
	color: var(--tf-ink-faint);
}

/* ==========================================================================
   16. ページネーション
   ========================================================================== */

.tf-pagination {
	margin-top: 48px;
	font-size: 0.88rem;
}

.tf-pagination .page-numbers {
	display: inline-block;
	padding: 9px 15px;
	margin: 0 4px 6px 0;
	color: var(--tf-ink);
	text-decoration: none;
	border: 1px solid var(--tf-rule);
	border-radius: var(--tf-radius);
}

.tf-pagination .page-numbers:hover {
	border-color: var(--tf-accent);
}

.tf-pagination .page-numbers.current {
	color: #ffffff;
	background: var(--tf-accent);
	border-color: var(--tf-accent);
}

/* ==========================================================================
   17. スマホ
   ========================================================================== */

@media (max-width: 600px) {
	body {
		font-size: 16px;
		line-height: 1.85;
	}

	.tf-title {
		font-size: 1.5rem;
	}

	.tf-content h2 {
		margin-top: 52px;
		font-size: 1.24rem;
	}

	.tf-content h3 {
		font-size: 1.05rem;
	}

	.tf-verdict {
		padding: 24px 22px;
	}

	.tf-toc,
	.tf-cta,
	.tf-footer__notes {
		padding-right: 20px;
		padding-left: 20px;
	}

	.tf-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   18. 印刷
   ========================================================================== */

@media print {
	.tf-header,
	.tf-footer,
	.tf-cta,
	.tf-disclosure,
	.tf-related,
	.tf-breadcrumb {
		display: none;
	}

	.tf-verdict {
		color: var(--tf-ink);
		background: none;
		border: 1px solid var(--tf-ink);
	}

	.tf-verdict__title,
	.tf-verdict strong {
		color: var(--tf-ink);
		box-shadow: none;
	}

	.tf-table-scroll {
		overflow: visible;
	}

	.tf-table-scroll table {
		min-width: 0;
		font-size: 9pt;
	}
}
