@charset "UTF-8";
/*
 * site.css : とーんと♡日本橋 サイト共通シェルCSS（脱SWELL P2・2026-07-26）
 *
 *   1. ヘッダー（tn-header）＝旧SWELLヘッダー＋blog_parts 8019 のネイティブ実装。
 *      本番実測値（PC1440: ヘッダー120px・ロゴ高100px・コンテナ1200px／SP: バー90px・ロゴ高70px・sticky追従）
 *   2. Hubナビ（tn-custom-nav）＝旧8019のCSSを移植（SWELL打消し分は削除）
 *   3. SPドロワー（tn-drawer）＝旧SWELL p-spMenu の代替（左スライド・全幅）
 *   4. フッター微調整
 *   5. 帯レイアウト（tn-band）＝旧 swell-block-fullWide の代替（本番実測: 標準34px/SP23px・tall 68px）
 *   6. 新着記事グリッド（tn-news-list）＝旧 loos/post-list の代替（本番実測で再現）
 *   7. もっと見るボタン（tn-more-btn）＝旧 is-style-more_btn の代替（本番実測で再現）
 */

/* ============================================================
   1. ヘッダー枠
   ============================================================ */
.site-header.tn-header {
	position: relative; /* カテゴリーポップアップ（tn-catpop）の位置決めの基準 */
	border-bottom: none;
	background: #fff;
}
.tn-header__inner {
	position: relative;
	z-index: 2; /* ポップアップの暗幕（z-index:1）より前に置き、ヘッダーだけは暗くしない */
	max-width: 1240px;
	margin-inline: auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
}
.tn-header__bar {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 0 0 auto; /* ロゴ側は縮めない。縮むと height 固定の img が max-width で横に潰れる */
}
.tn-header__logo {
	margin: 0;
	line-height: 0;
}
.tn-header__logo img {
	height: 52px; /* 横長ロゴ（縦横比6.44:1）。幅は約335px */
	max-height: none; /* layout.css の .site-branding img { max-height:44px } に勝つ */
	width: auto;
	max-width: 100%;
}
/* SP専用の操作面（カテゴリー / メニュー）。PCはHubナビが常時見えているので出さない */
.tn-header__actions { display: none; }

/* ------------------------------------------------------------
   1-2. SPヘッダー右の操作面（案X2「和の建具」・2026-07-26 UI期第4回で確定）
        四角い枠が2つ浮いていた旧実装をやめ、ヘッダーの右端まで抜いた1枚の面にする。
        淡クリーム(#f7f2ea)で沈め、開いている側だけ白に起き上がる。
        - 面どうし・面と白地の境の縦罫は、押せる領域の切れ目を示す構造線（装飾の縦棒ではない）
        - 下端の朱2pxは「今どちらが開いているか」を伝える状態表示（装飾ではない）
        - 開閉状態は JS が付ける aria-expanded を直接読む（is-open 等のクラスを別に持たない）
   ------------------------------------------------------------ */
.tn-hbtn {
	position: relative; /* 状態バー（::after）の位置決め */
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 58px;
	height: 100%;
	padding: 0;
	background: none;
	border: none;
	color: #3a332d; /* 墨（純黒は使わない） */
	font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
	font-size: 9.5px;
	letter-spacing: 0.12em;
	line-height: 1;
	cursor: pointer;
}
.tn-hbtn + .tn-hbtn { border-left: 1px solid #e6dbc9; }
.tn-hbtn__label { color: #6b625c; }
.tn-hbtn[aria-expanded="true"] { background: #fff; }
/* 状態バー：開いている面の下端にだけ出る朱の2px */
.tn-hbtn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #b8242b;
	transform: scaleX(0);
	transition: transform 0.24s ease;
}
.tn-hbtn[aria-expanded="true"]::after { transform: scaleX(1); }

/* --- 格子戸（カテゴリー）：2枚の戸。開くと引き分けに開く --- */
.tn-koushi {
	display: flex;
	width: 22px;
	height: 22px;
}
.tn-koushi__leaf {
	display: flex;
	flex-direction: column;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.tn-koushi__leaf + .tn-koushi__leaf { margin-left: -1.2px; } /* 枠線を重ねて二重線にしない */
.tn-koushi i {
	display: block;
	width: 11.6px;
	height: 11.6px;
	border: 1.2px solid currentColor;
}
.tn-koushi i + i { margin-top: -1.2px; }
.tn-hbtn[aria-expanded="true"] .tn-koushi__leaf:first-child { transform: translateX(-3.5px); }
.tn-hbtn[aria-expanded="true"] .tn-koushi__leaf:last-child { transform: translateX(3.5px); }

/* --- 暖簾（メニュー）：竿から3枚の布が垂れる。押すと布が揺れる（transformのみ） --- */
.tn-noren {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 22px;
	height: 22px;
	padding-top: 3px;
}
.tn-noren__rod {
	display: block;
	width: 22px;
	height: 1.4px;
	background: currentColor;
}
.tn-noren__cloth {
	display: flex;
	gap: 2.4px;
	margin-top: 1.4px;
}
.tn-noren__cloth i {
	display: block;
	width: 5.7px;
	height: 12px;
	background: currentColor;
	opacity: 0.82;
	transform-origin: top center;
	transition: transform 0.3s ease;
}
.tn-hbtn:active .tn-noren__cloth i:nth-child(1),
.tn-catpop__link:active .tn-noren__cloth i:nth-child(1) { transform: rotate(-5deg); }
.tn-hbtn:active .tn-noren__cloth i:nth-child(2),
.tn-catpop__link:active .tn-noren__cloth i:nth-child(2) { transform: rotate(2deg); }
.tn-hbtn:active .tn-noren__cloth i:nth-child(3),
.tn-catpop__link:active .tn-noren__cloth i:nth-child(3) { transform: rotate(6deg); }
/* ポップアップの8マス目に置くとき。他のマスのアイコン（24px角）と大きさを揃える */
.tn-noren--grid { width: 24px; height: 24px; }
.tn-noren--grid .tn-noren__rod { width: 24px; }
.tn-noren--grid .tn-noren__cloth i { width: 6.2px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
	.tn-koushi__leaf,
	.tn-noren__cloth i,
	.tn-hbtn::after { transition: none; }
}

/* --- SP: 1行だけのヘッダー（ロゴ左＋操作面2つ・72px）。ヘッダー全体を追従(sticky) --- */
@media screen and (max-width: 959px) {
	.site-header.tn-header {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 1000;
		box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
	}
	.tn-header__inner {
		display: block;
		max-width: none;
		padding: 0;
	}
	/* 操作面をヘッダーの上下いっぱい・右端まで抜くため、バー側の padding は持たせない */
	.tn-header__bar {
		gap: 0;
		padding: 0;
		height: var(--tn-sp-header-h, 72px);
		align-items: stretch;
	}
	.tn-header__logo {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		align-items: center;
		padding-left: 12px;
	}
	.tn-header__logo img {
		height: 37px; /* ロゴに使える幅は 390-12-116＝262px。37px x 6.44 = 238px で収まる */
	}
	.tn-header__actions {
		flex: 0 0 auto;
		display: flex;
		background: #f7f2ea; /* 淡クリーム＝和紙。白地のロゴ面との明度差で面が彫り込まれて見える */
		border-left: 1px solid #e6dbc9;
	}
	/* 旧・横スクロールのHubナビ帯（65px）は廃止。中身はカテゴリーのポップアップへ移した */
	.tn-nav-wrapper { display: none; }
}

/* ============================================================
   2. Hubナビ（旧 blog_parts 8019 移植・SWELL打消し分は削除）
   ============================================================ */
.tn-nav-wrapper {
	position: relative;
	background: #fff;
	box-sizing: border-box;
	min-width: 0; /* 幅が足りないときはロゴではなくこちらが縮む（ロゴへの潜り込み防止） */
}
.tn-custom-nav {
	font-family: "Yu Mincho", "YuMincho", serif;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.tn-custom-nav::-webkit-scrollbar { display: none; }

/*
 * justify-content:flex-end で右寄せすると、項目が入り切らないときに「左へ」溢れて
 * ロゴの上に重なり、しかも overflow のスクロールでは戻せない（flexbox の既知の挙動）。
 * width:max-content ＋ margin-left:auto なら、収まるときは右寄せ・収まらないときは
 * ちゃんと横スクロールできる状態になる。
 */
.tn-custom-nav ul {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	margin-left: auto;
	gap: 0;
	width: max-content;
}
.tn-custom-nav li {
	position: relative;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	list-style: none;
}
.tn-custom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #333;
	padding: 0.8rem 1.5rem;
	transition: all 0.3s ease;
	min-width: 100px;
	background: transparent;
	border: none;
}
.tn-custom-nav a:hover {
	background-color: #fafafa;
	transform: translateY(-2px);
}
.tn-nav-jp {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 3px;
	letter-spacing: 0.05em;
	display: block;
	line-height: 1.2;
}
.tn-nav-en {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.65rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
	line-height: 1.2;
}
.tn-nav-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 6px;
	fill: #555;
	display: block;
}

/* カテゴリー別カラー */
.nav-item-tourism .tn-nav-icon { fill: #2a83a2; }
.nav-item-tourism a:hover .tn-nav-jp { color: #2a83a2; }
.nav-item-tourism .tn-nav-en { color: #2a83a2; opacity: 0.7; }

.nav-item-event .tn-nav-icon { fill: #8b5cf6; }
.nav-item-event a:hover .tn-nav-jp { color: #8b5cf6; }
.nav-item-event .tn-nav-en { color: #8b5cf6; opacity: 0.7; }

.nav-item-food .tn-nav-icon { fill: #e59a05; }
.nav-item-food a:hover .tn-nav-jp { color: #e59a05; }
.nav-item-food .tn-nav-en { color: #e59a05; opacity: 0.7; }

.nav-item-shrine .tn-nav-icon { fill: #b91c1c; }
.nav-item-shrine a:hover .tn-nav-jp { color: #b91c1c; }
.nav-item-shrine .tn-nav-en { color: #b91c1c; opacity: 0.7; }

.nav-item-shop .tn-nav-icon { fill: #00a693; }
.nav-item-shop a:hover .tn-nav-jp { color: #00a693; }
.nav-item-shop .tn-nav-en { color: #00a693; opacity: 0.7; }

.nav-item-life .tn-nav-icon { fill: #0ea5e9; }
.nav-item-life a:hover .tn-nav-jp { color: #0ea5e9; }
.nav-item-life .tn-nav-en { color: #0ea5e9; opacity: 0.7; }

.nav-item-area .tn-nav-icon { fill: #333; }
.nav-item-area a:hover .tn-nav-jp { color: #333; }

/* 区切り線 */
.tn-custom-nav li:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 20px;
	width: 1px;
	background-color: #eee;
}

/* スクロール示唆（SPのみ） */
.tn-scroll-hint { display: none; }

/*
 * 中間幅のPC（960〜1223px）。ロゴ335px＋Hubナビ833px＋余白では1224px必要で、
 * それ未満ではナビがロゴに重なっていた（2026-07-26 UI期第4回で発見・修正）。
 * ロゴを少し下げ、ナビの余白と文字を詰めて1行に収める。1224px以上の見た目は変えない。
 */
@media screen and (min-width: 960px) and (max-width: 1223px) {
	.tn-header__logo img { height: 44px; } /* 幅283px */
	.tn-custom-nav a {
		padding: 0.8rem 0.75rem;
		min-width: auto;
	}
	.tn-nav-jp { font-size: 0.9rem; }
	.tn-nav-en { font-size: 0.6rem; }
}

/*
 * 以下のSP用ルールは 2026-07-26 のヘッダー改修で「現在は効いていない」。
 * SPでは .tn-nav-wrapper 自体を display:none にし、中身をカテゴリーポップアップ（§2-2）へ移したため。
 * 帯を復活させたくなったときにそのまま使えるよう、意図的に残してある（消さないこと）。
 */
@media screen and (max-width: 959px) {
	.tn-custom-nav ul {
		justify-content: flex-start;
		padding-right: 40px;
	}
	.tn-custom-nav a {
		padding: 0.6rem 0.7rem;
		min-width: auto;
	}
	.tn-nav-jp { font-size: 0.75rem; margin-bottom: 1px; }
	.tn-nav-en { font-size: 0.5rem; }
	.tn-nav-icon { width: 18px; height: 18px; margin-bottom: 3px; }

	.tn-nav-wrapper {
		background: rgba(255, 255, 255, 0.98);
	}
	.tn-scroll-hint {
		display: block;
		position: absolute;
		right: 0;
		top: 0;
		height: 100%;
		width: 40px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 90%);
		pointer-events: none;
		z-index: 10;
	}
	.tn-scroll-hint::after {
		content: '';
		position: absolute;
		top: 50%;
		right: 8px;
		width: 6px;
		height: 6px;
		border-top: 2px solid #ccc;
		border-right: 2px solid #ccc;
		transform: translateY(-50%) rotate(45deg);
		animation: tnScrollArrow 1.5s infinite;
	}
	@keyframes tnScrollArrow {
		0% { opacity: 0; transform: translateY(-50%) rotate(45deg) translateX(-3px); }
		50% { opacity: 1; transform: translateY(-50%) rotate(45deg) translateX(0); }
		100% { opacity: 0; transform: translateY(-50%) rotate(45deg) translateX(3px); }
	}
}

/* ============================================================
   2-2. カテゴリーポップアップ（SP専用）
   ============================================================ */
/*
 *   ヘッダーの「カテゴリー」ボタンで、ヘッダー直下に開くドロップダウン。
 *   4列×2行の8マス＝Hubナビ7項目＋メニュー（押すとドロワーが開く）。
 *   マス目の境界は grid の gap 1px ＋ パネルの地色で引いている（枠線の二重引きを避けるため）。
 */
.tn-catpop {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1;
}
.tn-catpop[hidden] { display: none; }
body.tn-catpop-open { overflow: hidden; }

/* 背面の暗幕。タップで閉じる。ヘッダー自身は tn-header__inner(z-index:2) が前に来るので暗くならない */
.tn-catpop__veil {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.3);
}
.tn-catpop__panel {
	position: relative;
	z-index: 1;
	background: #ece5da; /* マス目の境界線として見える地色 */
	border-bottom: 1px solid #ded2c0;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
	animation: tnCatPopIn 0.22s ease;
}
@keyframes tnCatPopIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tn-catpop__panel { animation: none; }
}

.tn-catpop__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tn-catpop__grid li {
	margin: 0;
	list-style: none;
}
.tn-catpop__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 76px;
	padding: 12px 4px;
	background: #fff;
	border: none;
	color: #1a1a1a;
	font-family: "Yu Mincho", "YuMincho", serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}
/* アイコンの色は §2 のカテゴリー別カラー（.nav-item-* .tn-nav-icon）がそのまま効く */
.tn-catpop__link .tn-nav-icon {
	display: block;
	width: 24px;
	height: 24px;
	margin: 0;
}
.tn-catpop__link .tn-noren { color: #333; }
.tn-catpop__label { display: block; text-align: center; }
.tn-catpop__link:active { background: #faf7f2; }

@media screen and (min-width: 960px) {
	.tn-catpop { display: none; }
}

/* ============================================================
   3. SPドロワー（左スライド・全幅。旧SWELL p-spMenu -left の代替）
   ============================================================ */
/*
 *   構成＝見出し（固定）／項目リスト（伸縮）／下端のCTA枠（固定）の縦3段。
 *   高さは 100dvh ＝ 端末のブラウザUIを除いた実際の1画面。項目が全部見える状態を保ち、
 *   余った分は最下段のCTA枠の側に寄せる（用語の受付導線などを後から載せるため）。
 */
.tn-drawer {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	height: 100dvh;
	background: #fff;
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform 0.3s ease, visibility 0.3s ease;
	overflow: hidden;
}
.tn-drawer.is-open {
	transform: none;
	visibility: visible;
}
body.tn-drawer-open { overflow: hidden; }

.tn-drawer__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border-bottom: 1px solid #ece7df;
}
.tn-drawer__title {
	margin: 0;
	font-family: "Shippori Mincho", "Yu Mincho", serif;
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.04em;
	line-height: 0;
}
.tn-drawer__title a {
	display: inline-block;
	line-height: 0;
}
.tn-drawer__title img {
	width: auto;
	height: 34px; /* 横長ロゴ（6.44:1）で幅219px。閉じるボタン40pxと左右余白を差し引いても収まる高さ */
	max-width: 100%;
}
.tn-menu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-right: -8px;
	padding: 0;
	background: none;
	border: none;
	color: #5b5550;
	cursor: pointer;
}

/* 項目リスト：ここが伸びる。入り切らない端末では、この中だけがスクロールする */
.tn-drawer__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.tn-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tn-drawer__list li {
	margin: 0;
	list-style: none;
}
.tn-drawer__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	padding: 6px 20px;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.45;
	border-bottom: 1px solid #f1ece4;
}
.tn-drawer__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: #a89d96;
	transition: fill 0.2s ease;
}
/* カテゴリー項目はポップアップ（§2 .nav-item-*）と同じカテゴリー別カラー。
   用語集・お問い合わせ等の機能ページは無彩のまま＝ジャンル導線との区別 */
.tn-drawer__icon--tourism { fill: #2a83a2; }
.tn-drawer__icon--event { fill: #8b5cf6; }
.tn-drawer__icon--food { fill: #e59a05; }
.tn-drawer__icon--shrine { fill: #b91c1c; }
.tn-drawer__icon--shop { fill: #00a693; }
.tn-drawer__icon--life { fill: #0ea5e9; }
.tn-drawer__label {
	flex: 1 1 auto;
	min-width: 0;
}
.tn-drawer__list a:active {
	background: #faf7f2;
}
/* 今見ているページを朱色で示す（現在地の手掛かり） */
.tn-drawer__list .current-menu-item > a,
.tn-drawer__list .current-menu-parent > a,
.tn-drawer__list .current-menu-ancestor > a {
	color: #b8242b;
}
.tn-drawer__list .current-menu-item > a .tn-drawer__icon,
.tn-drawer__list .current-menu-parent > a .tn-drawer__icon,
.tn-drawer__list .current-menu-ancestor > a .tn-drawer__icon {
	fill: #b8242b;
}

/* 下端：今後のCTA（用語の受付・お問い合わせ等）を載せる枠。空の間は余白として効く */
.tn-drawer__foot {
	flex: 0 0 auto;
	min-height: 132px;
	padding: 20px;
	box-sizing: border-box;
}
.tn-drawer__foot:empty {
	padding: 0;
}

@media screen and (min-width: 960px) {
	.tn-drawer { display: none; }
}

/* ============================================================
   4. フッター（2026-07-26 作り直し・template-parts/footer.php とセット）
      2メニューが白地に別々に並ぶ旧構成を、墨地1枚＋法務帯の2階層へ統合。
      上段=サイト名・横断検索・「コンテンツ」「カテゴリー・エリア」の列（通常サイズ）
      下段=法務リンク＋権利表記（特商法表記のイメージで小さく）
   ============================================================ */
.site-footer.tn-footer {
	/*
	 * フッター自身は上マージンを持たない（2026-07-26 UI期第4回）。
	 * トップ最下部の地図帯（.tn-band--map）とフッターの間に白帯が出ていた原因がこの56pxだったため。
	 * 記事・一覧側の下余白は .site-main の padding-block（PC40px / SP20px）が受け持つ。
	 */
	margin-top: 0;
	border-top: none;
	background: #292320; /* 墨（純黒は使わない） */
	color: #e9e2d6;
}
.tn-footer__inner {
	max-width: 1100px;
	margin-inline: auto;
	padding: 36px 20px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 30px 64px;
}
.tn-footer__brand {
	flex: 1 1 300px;
	max-width: 420px;
}
/* サイト名＝正方形ロゴの白文字版（テーマ同梱 assets/img/logo-footer-white.png・503x480） */
.tn-footer__sitename {
	margin: 0 0 20px;
	line-height: 0;
}
.tn-footer__sitename a {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.tn-footer__sitename a:hover { opacity: 0.78; }
.tn-footer__sitename img {
	display: block;
	width: auto;
	height: 124px;
	max-width: 100%;
}
.tn-footer__nav {
	flex: 2 1 440px;
	display: flex;
	flex-wrap: wrap;
	gap: 26px 56px;
}
.tn-footer__col { min-width: 150px; }
.tn-footer__coltitle {
	margin: 0 0 14px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #a3968a;
}
.tn-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tn-footer__list li { margin: 0 0 10px; }
.tn-footer__list a {
	color: #ddd5c8;
	font-size: 0.9rem;
	line-height: 1.6;
	text-decoration: none;
	transition: color 0.2s ease;
}
.tn-footer__list a:hover { color: #fff; }
/* カテゴリー・エリア（10項目）は2列に流す */
.tn-footer__col--cats .tn-footer__list {
	columns: 2;
	column-gap: 40px;
}
.tn-footer__col--cats .tn-footer__list li { break-inside: avoid; }

/* --- 下段: 法務帯（プライバシーポリシー・運営会社情報・お問い合わせ＋権利表記） --- */
.tn-footer__legal {
	border-top: 1px solid rgba(233, 226, 214, 0.14);
}
.tn-footer__legal-inner {
	max-width: 1100px;
	margin-inline: auto;
	padding: 14px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
}
.tn-footer__list--legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}
.tn-footer__list--legal li { margin: 0; }
.tn-footer__list--legal a {
	font-size: 0.78rem;
	color: #a89c8e;
}
.tn-footer__list--legal a:hover { color: #ddd5c8; }
.site-footer.tn-footer .site-footer__copy {
	margin: 0;
	font-size: 0.75rem;
	color: #9a8f82;
	letter-spacing: 0.02em;
}

@media screen and (max-width: 767px) {
	.tn-footer__inner { padding: 30px 20px 26px; gap: 24px 40px; }
	.tn-footer__sitename img { height: 104px; }
	.tn-footer__nav { gap: 22px 40px; }
	.tn-footer__legal-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 16px 20px;
	}
}

/* ============================================================
   5. 帯レイアウト（tn-band）＝旧 swell-block-fullWide の代替
      本番実測: 標準 上下34px(SP 23px)・tall(用語集帯) 68px(SP 19px)・map帯 SPのみ0
   ============================================================ */
.tn-band {
	width: 100%;
	padding-block: 34px;
}
.tn-band--p0 { padding-block: 0; }
.tn-band--tall { padding-block: 68px; }
/* 地図帯は自身が赤い地色を全面に敷くので、帯としての余白は持たない（フッターまで赤を繋げる） */
.tn-band--map { padding-block: 0; }

@media screen and (max-width: 768px) {
	.tn-band { padding-block: 23px; }
	.tn-band--p0 { padding-block: 0; }
	.tn-band--tall { padding-block: 19px; }
	.tn-band--map { padding-block: 0; } /* 同じ詳細度の .tn-band が後に来るため、SP側でも明示する */
}

/* トップ(front-page.php)は main の余白を持たない(KVがヘッダーに接する) */
.tn-front .site-main { padding-block: 0; }

/* ============================================================
   6. 新着記事グリッド（tn-news-list）＝旧 loos/post-list の代替
      本番実測: PC3列/ガター17px・サムネ16:9 角丸4px・白カテゴリラベル・
      明朝タイトル15.7px/1.6・日付11.5px #9a9a9a・ホバーでタイトル茜/画像1.04倍
   ============================================================ */
.tn-news-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 17px;
	margin-top: 4px;
}
.tn-news-item { margin: 0; }
.tn-news-item__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.tn-news-item__thumb {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
	background: #f3f3f3;
}
.tn-news-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tn-news-item__link:hover .tn-news-item__thumb img { transform: scale(1.04); }
.tn-news-item__noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: #efe9e4;
}
.tn-news-item__cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.94);
	color: #1a1a1a;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 2px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.tn-news-item__title {
	font-family: "Shippori Mincho", "Yu Mincho", serif;
	font-size: 0.98rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.6;
	letter-spacing: 0.01em;
	margin: 12px 0 0;
}
.tn-news-item__link:hover .tn-news-item__title { color: #b8242b; }
.tn-news-item__date {
	display: block;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.72rem;
	color: #9a9a9a;
	letter-spacing: 0.02em;
	margin-top: 6px;
}
@media screen and (max-width: 768px) {
	.tn-news-list--sp2 {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 15px;
	}
	.tn-news-item__title { font-size: 0.9rem; line-height: 1.55; }
}

/* ============================================================
   7. もっと見るボタン（tn-more-btn）＝旧 is-style-more_btn の代替
      本番実測: 幅717px中央・白地・hairline(box-shadow 1px #dcdcdc)・#666・右端シェブロン
   ============================================================ */
.tn-more-btn {
	text-align: center;
	margin-top: 10px;
}
.tn-more-btn a {
	position: relative;
	display: block;
	max-width: 717px;
	margin-inline: auto;
	background: #fff;
	color: #666;
	box-shadow: 0 0 0 1px #dcdcdc;
	padding: 12px 46px;
	font-size: 0.96rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}
.tn-more-btn a:hover { background: #f7f4f2; }
.tn-more-btn a::after {
	content: '';
	position: absolute;
	right: 16px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid #aaa;
	border-right: 2px solid #aaa;
	transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   8. P3: 旧SWELLタームメタ/記事メタ/部品の受け皿（2026-07-26）
   ============================================================ */
:root { --tn-sp-header-h: 72px; } /* SP追従ヘッダーの実高(2026-07-26改修後の1行バー。バー90px+帯65pxの155pxは廃止)。用語集の追従ツールバー等が参照 */

/* 一覧非表示ターム(旧 swell_term_meta_show_list=0・term 262) */
.tn-archive-nolist .post-grid,
.tn-archive-nolist .navigation.pagination { display: none; }

/* サムネ非表示記事(旧 swell_meta_show_thumb=hide) */
.tn-hide-thumb .entry-thumbnail { display: none; }

/* 記事下カテゴリー遷移グリッド(部品8033)・アーカイブ冒頭ヒーロー部品の外枠 */
.tn-single-bottom { margin-top: 48px; }
.tn-archive-hero { margin-bottom: 28px; }

/* --- アーカイブ冒頭ヒーロー部品の本体（tn-hub-header・部品7914〜7958の10個が使用） ---
   旧SWELLカスタマイザー追加CSS(退避=docs/site_snapshot/custom_css_post7912.css)だけが
   この見た目を担っていて新テーマに未回収だった＝アイコンSVGが原寸で巨大表示されるバグの根本原因。
   部品HTML(DB)は変えず、CSSだけで受ける。意匠は旧の複製ではなく新テーマの言語で置き直し */
.tn-hub-header {
	background: #fff;
	border: 1px solid #e7e2da;
}
.tn-hub-header__inner {
	display: flex;
	align-items: stretch;
}
.tn-hub-header__img {
	flex: 0 0 40%;
	min-height: 264px;
	overflow: hidden;
}
.tn-hub-header__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tn-hub-header__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 32px;
}
.tn-hub-header h2.tn-hub-header__title {
	margin: 0 0 12px;
	font-family: "Shippori Mincho", "Yu Mincho", serif;
	font-size: 1.32rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.45;
	letter-spacing: 0.04em;
}
.tn-hub-header__desc {
	margin: 0 0 20px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.93rem;
	line-height: 1.9;
	color: #5b5550;
}
.tn-hub-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: auto;
}
.tn-hub-feature-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
}
.tn-hub-feature-icon-box {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #f9f7f3;
}
.tn-hub-feature-icon {
	width: 16px;
	height: 16px;
	display: block;
}
/* 特徴タグの色（部品HTML側の tag-* クラスに対応。朱はサイト基調色に揃える） */
.tag-akane .tn-hub-feature-icon { fill: #b8242b; }
.tag-ruri .tn-hub-feature-icon { fill: #1e3a8a; }
.tag-yamabuki .tn-hub-feature-icon { fill: #d97706; }
.tag-matcha .tn-hub-feature-icon { fill: #4d7c0f; }
.tag-fuji .tn-hub-feature-icon { fill: #6d28d9; }
.tag-miko .tn-hub-feature-icon { fill: #b91c1c; }
.tag-ogon .tn-hub-feature-icon { fill: #b8860b; }
/* 神社・パワースポット専用（部品7930）: 見出しだけ朱。飾りは足さない */
.tn-hub-header.is-shrine h2.tn-hub-header__title { color: #b91c1c; }

@media screen and (max-width: 767px) {
	.tn-hub-header__inner { flex-direction: column; }
	.tn-hub-header__img {
		flex: 0 0 auto;
		width: 100%;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.tn-hub-header__content { padding: 20px 16px 22px; }
	.tn-hub-header h2.tn-hub-header__title { font-size: 1.12rem; }
	.tn-hub-header__desc { margin-bottom: 16px; font-size: 0.9rem; line-height: 1.85; }
	.tn-hub-features { gap: 8px 20px; }
}

/* ============================================================
   9. 記事まわり（目次 / タグ / 関連記事）
      旧SWELLにあって脱SWELLで失われた導線を、テーマ側で置き直したもの（2026-07-26）
      ============================================================ */

/* --- 目次（inc/site-toc.php がサーバー側で組む） --- */
.tn-toc {
	margin: 28px 0;
	padding: 18px 22px;
	border: 1px solid #e7e2da;
	border-radius: 4px;
	background: #f9f7f3;
}
.tn-toc__title {
	font-family: "Shippori Mincho", "Yu Mincho", serif;
	font-size: 1.02rem;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.04em;
	cursor: pointer;
	list-style-position: inside;
}
.tn-toc[open] .tn-toc__title { margin-bottom: 12px; }
.tn-toc__list {
	margin: 0;
	padding-left: 1.4em;
	counter-reset: none;
}
.tn-toc__list,
.tn-toc__sub {
	list-style-type: decimal;
}
.tn-toc__sub {
	margin: 6px 0 6px;
	padding-left: 1.3em;
	list-style-type: none;
}
.tn-toc__item {
	margin: 0 0 7px;
	color: #5b5550;
	font-size: 0.93rem;
	line-height: 1.65;
}
.tn-toc__item:last-child { margin-bottom: 0; }
.tn-toc__item a {
	color: #1a1a1a;
	text-decoration: none;
}
.tn-toc__item a:hover { color: #b8242b; }
.tn-toc__item--sub {
	font-size: 0.88rem;
}
.tn-toc__item--sub a { color: #5b5550; }

/* --- タグ（single.php・本文直後） --- */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}
.entry-tags__item {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid #e0d9cf;
	background: #fff;
	color: #5b5550;
	font-size: 0.84rem;
	line-height: 1.5;
	text-decoration: none;
}
.entry-tags__item:hover {
	border-color: #b8242b;
	color: #b8242b;
}

/* --- 更新日（公開日と違う日のときだけ出る） --- */
.entry-updated {
	color: #8a8a8a;
}

/* --- 関連記事（inc/site-related.php） --- */
.tn-related {
	margin-top: 52px;
}
.tn-related__title {
	margin: 0 0 18px;
	font-family: "Shippori Mincho", "Yu Mincho", serif;
	font-size: 1.22rem;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.04em;
}

@media screen and (max-width: 767px) {
	.tn-toc {
		margin: 22px 0;
		padding: 16px 18px;
	}
	.tn-related { margin-top: 40px; }
	.tn-related__title { font-size: 1.1rem; }
}

/* --- フッターの横断検索（1カラム化でサイドバー検索が無くなった分の置き直し。§4のブランド列に置く） --- */
.tn-footer-search {
	max-width: 420px;
	margin: 0;
}
/* 候補ドロップダウンをフッター後続要素より前面へ（search.css の .tn-hsearch-wrap と同じ理由） */
.tn-footer-search .tn-hero-search { margin: 0; position: relative; z-index: 40; }

/* 記事本文の .entry-content a{underline}(0,1,1) に勝たせる。カードのタイトルに下線は要らない */
.tn-related .tn-news-item__link,
.tn-related .tn-news-item__link:hover {
	text-decoration: none;
}
