@charset "UTF-8";

/* =========================================
   トラック情報社 電子版 - メインスタイルシート
   モックアップ work_260417-v1 準拠
   ========================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* overflow-x: clip は overflow:hidden と違い「内側のスクロールコンテナ」を邪魔しない
   （iOS Safari で .tj-pdfviewer__canvas-area の横スクロールが切り詰められる問題の対処）
   未対応ブラウザは hidden にフォールバック */
html, body { min-height: 100%; max-width: 100%; }
html, body { overflow-x: hidden; }
html, body { overflow-x: clip; }

/* ハンバーガーメニュー展開中：背景スクロールを停止
   - html と body 両方に overflow:hidden を適用（iOS Safari 含む主要ブラウザで有効）
   - touch-action:none でタッチによるスクロール操作も無効化（iOS の慣性スクロール対策）
   - overscroll-behavior:contain で親要素へのスクロールチェイン防止 */
html.nav-open,
body.nav-open {
	overflow: hidden !important;
	touch-action: none;
	overscroll-behavior: contain;
}
html.nav-open { height: 100%; }
body {
	font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	color: #1A1A1A;
	background: #F5F5F5;
	font-size: 16px;
	line-height: 1.8;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: 0.02em;

	/* Sticky footer */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
p { font-size: 16px; line-height: 1.85; }
/* ヘッダー・フッター以外のコンテンツがスペースを埋める */
body > main,
body > .hero,
body > .page-heading,
body > .login-page,
body > [id="tj-main"],
body > div.section,
body > section,
body > article {
	flex-shrink: 0;
}
body > .site-header,
body > .login-header,
body > .tj-admin-preview-bar { flex-shrink: 0; }
body > .site-footer,
body > .login-footer { flex-shrink: 0; margin-top: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== COLOR VARIABLES ===== */
:root {
	--navy: #0D1B3E;
	--navy-light: #162B5B;
	--red: #B8232A;
	--red-hover: #9A1D23;
	--steel: #4A5568;
	--bg-white: #FFFFFF;
	--bg-light: #F5F5F5;
	--text-main: #1A1A1A;
	--text-sub: #6B7280;
	--border: #E5E7EB;

	/* legacy aliases (旧コード互換) */
	--tj-color-primary: var(--navy);
	--tj-color-primary-light: var(--navy-light);
	--tj-color-accent: var(--red);
	--tj-color-accent-dark: var(--red-hover);
	--tj-color-sub: var(--steel);
	--tj-color-text: var(--text-main);
	--tj-color-text-sub: var(--text-sub);
	--tj-color-bg: var(--bg-white);
	--tj-color-bg-light: var(--bg-light);
	--tj-color-border: var(--border);
	--tj-radius: 6px;
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
.tj-skip-link:focus {
	position: fixed; top: 8px; left: 8px;
	padding: 8px 12px;
	background: var(--navy); color: #fff;
	z-index: 99999;
	clip: auto; width: auto; height: auto;
}

/* ===== HEADER ===== */
.site-header {
	background: var(--navy);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.site-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	position: relative;
}
.site-header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
}
.site-header__logo-icon {
	width: 44px; height: 44px;
	background: var(--red);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 22px;
	color: #fff;
	letter-spacing: -1px;
	box-shadow: 0 2px 6px rgba(184, 35, 42, 0.3);
}
.site-header__logo-text {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.15;
}
.site-header__logo-sub {
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	display: block;
	letter-spacing: 0.18em;
	margin-top: 3px;
	font-weight: 500;
}

/* Site Nav */
.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0; padding: 0;
}
.site-nav li { margin: 0; padding: 0; }
.site-nav a {
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 5px;
	transition: background .2s, color .2s;
	letter-spacing: 0.05em;
	display: inline-block;
}
.site-nav a:hover,
.site-nav a.active,
.site-nav a.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}
.site-nav__external {
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	margin-left: 8px;
}
.site-nav__external:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}
.site-nav__logout {
	background: rgba(184, 35, 42, 0.25) !important;
	border: 1px solid rgba(184, 35, 42, 0.5) !important;
	color: #fff !important;
}
.site-nav__logout:hover {
	background: var(--red) !important;
	border-color: var(--red) !important;
}

/* Mobile Toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	position: relative;
	width: 44px;
	height: 44px;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 5px auto;
	transition: transform .25s ease, opacity .2s ease;
	transform-origin: center;
}
/* 開いた状態：3本線 → ✕ */
.nav-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO / KEY VISUAL ===== */
.hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1E3A6A 100%);
	padding: 64px 20px;
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
	pointer-events: none;
}
.hero__inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 48px;
}
.hero__text { flex: 1; }
.hero__badge {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 16px;
	border-radius: 999px;
	letter-spacing: 0.15em;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(184, 35, 42, 0.35);
}
.hero__title-en {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.25em;
	margin-bottom: 8px;
	font-weight: 500;
}
.hero__title {
	color: #fff;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
	line-height: 1.3;
}
.hero__sub {
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	letter-spacing: 0.06em;
	font-weight: 500;
}
.hero__breadcrumb {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	margin-top: 18px;
	font-weight: 500;
}
.hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s;
	font-weight: 500;
}
.hero__breadcrumb a:hover { color: #fff; }
.hero__breadcrumb span { margin: 0 10px; opacity: 0.5; }

/* Hero Cover (会員TOPの最新号カバー) */
.hero__cover { width: 240px; flex-shrink: 0; }
.hero__cover-img {
	width: 240px;
	aspect-ratio: 4/3;
	height: auto;
	background: linear-gradient(145deg, #2a4a7f, #0D1B3E);
	border-radius: 4px;
	box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	padding: 20px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
}
.hero__cover-img--photo {
	padding: 0;
	background: #1a2645;
}
.hero__cover-img--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.hero__cover-label {
	background: var(--red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 3px;
	margin-bottom: 12px;
	letter-spacing: 1px;
}
.hero__cover-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.hero__cover-vol { font-size: 11px; color: rgba(255, 255, 255, 0.6); letter-spacing: 1px; }
.hero__cover-date { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: auto; }

/* ===== PAGE HEADING (シンプルなヒーロー) ===== */
.page-heading {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1E3A6A 100%);
	padding: 40px 20px;
	position: relative;
	overflow: hidden;
}
.page-heading::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
	pointer-events: none;
}
.page-heading__inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	text-align: center;
}
.page-heading__title {
	color: #fff;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: 0.1em;
	margin-bottom: 8px;
	line-height: 1.3;
}
.page-heading__sub {
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	letter-spacing: 0.06em;
	font-weight: 500;
}

/* ===== SECTION COMMON ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.section__label {
	color: var(--red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.25em;
	margin-bottom: 6px;
	display: inline-block;
	position: relative;
	padding-left: 32px;
}
.section__label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 24px;
	height: 2px;
	background: var(--red);
	transform: translateY(-50%);
}
.section__heading {
	font-size: 28px;
	font-weight: 900;
	color: var(--navy);
	padding-bottom: 16px;
	margin-bottom: 32px;
	border-bottom: 3px solid var(--navy);
	position: relative;
	line-height: 1.35;
	letter-spacing: 0.04em;
}
.section__heading::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 96px;
	height: 3px;
	background: var(--red);
}

/* ===== BUTTONS ===== */
.btn-primary,
.tj-btn--primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--navy);
	color: #fff;
	padding: 14px 36px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: all .2s;
	border: none;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(13, 27, 62, 0.18);
}
.btn-primary:hover,
.tj-btn--primary:hover {
	background: var(--navy-light); color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(13, 27, 62, 0.28);
}

.btn-accent,
.tj-btn--accent {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--red);
	color: #fff;
	padding: 14px 36px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: all .2s;
	border: none;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(184, 35, 42, 0.28);
}
.btn-accent:hover,
.tj-btn--accent:hover {
	background: var(--red-hover); color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(184, 35, 42, 0.4);
}

.btn-outline,
.tj-btn--outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid var(--navy);
	color: var(--navy);
	padding: 12px 36px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: all .2s;
	background: transparent;
	cursor: pointer;
	text-decoration: none;
}
.btn-outline:hover,
.tj-btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

.btn .arrow,
.btn-primary .arrow,
.btn-outline .arrow,
.btn-accent .arrow { font-size: 12px; }

/* ===== 会員TOP「最新号ハイライト」セクション =====
   構造：<section.latest-section> > <div.section> > 見出し ＋ <div.members-layout>
   .section が幅（max-width 1100px ＋ 左右 padding 20px）を担当 → バックナンバーと同じ 1060px インナー
   .members-layout はその中の本文＋広告を並べるグリッドのみ */
.latest-section {
	background: var(--bg-light);
	padding: 80px 0 100px;
}
/* .latest-section の縦余白は .latest-section 側で管理し、内側 .section の上下padは0にする */
.latest-section > .section { padding-top: 0; padding-bottom: 0; }

/* PC：本文（最新号ハイライトの中身）75% ／ 広告 25% の2カラム */
.members-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.members-main { min-width: 0; }
.members-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

/* タブレット〜PC手前（≤1024px）
   - .members-layout：1カラム
   - .members-main：100%（＝バックナンバーと同幅）
   - .members-sidebar：最大500px・中央寄せ
*/
@media ( max-width: 1024px ) {
	.members-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.members-main { width: 100%; max-width: none; }

	.members-sidebar {
		width: 100%;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* 中型タブレット域（601〜1024px）：広告2件以上は500px内で2カラム */
@media ( min-width: 601px ) and ( max-width: 1024px ) {
	.members-sidebar:has( .sidebar-ad:nth-child(2) ) {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 14px;
	}
	.members-sidebar:has( .sidebar-ad:nth-child(2) ) > .sidebar-ad { width: 100%; margin: 0; }
	.members-sidebar:not(:has( .sidebar-ad:nth-child(2) )) { display: block; }
	.members-sidebar:not(:has( .sidebar-ad:nth-child(2) )) > .sidebar-ad { display: block; width: 100%; margin: 0; }
}

/* スマホ域（≤600px）：広告は全件1カラム縦並び */
@media ( max-width: 600px ) {
	.members-layout {
		gap: 32px;
	}
	.members-sidebar {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
	.members-sidebar > .sidebar-ad { width: 100%; margin: 0; }
}

/* ===== LATEST ISSUE LAYOUT (旧用・互換性のため残す) ===== */
.latest { display: flex; gap: 56px; align-items: flex-start; }
.latest__left { flex: 1; min-width: 0; }
.latest__toc { list-style: none; margin: 0; padding: 0; }
.latest__toc li {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: baseline;
	gap: 14px;
	transition: padding-left 0.2s ease, background-color 0.2s ease;
}
.latest__toc li:hover {
	padding-left: 8px;
	background: rgba(184, 35, 42, 0.03);
}
.latest__toc li::before {
	content: '▶';
	color: var(--red);
	font-size: 12px;
	flex-shrink: 0;
}
.latest__toc-title { font-size: 16px; font-weight: 600; color: var(--text-main); flex: 1; line-height: 1.6; }
.latest__toc-author { font-size: 13px; color: var(--text-sub); margin-left: auto; white-space: nowrap; }
.latest__btn-wrap { margin-top: 24px; }

.latest__right { width: 200px; flex-shrink: 0; }
.latest__ad,
.sidebar-ad {
	background: var(--bg-light);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 36px 16px;
	text-align: center;
	color: var(--text-sub);
	font-size: 14px;
	margin-bottom: 14px;
	line-height: 1.7;
	display: block;
	transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-ad { padding: 44px 18px; }
/* 会員TOPの latest__right 内ではよりコンパクトに（旧用） */
.latest__right .sidebar-ad,
.latest__right .latest__ad { padding: 28px 14px; font-size: 13px; }

/* 会員TOPの専用サイドバー（members-sidebar）配下 */
.members-sidebar .sidebar-ad { padding: 36px 16px; }
.members-sidebar .sidebar-ad--banner { padding: 0; }
.latest__ad-label,
.sidebar-ad__label {
	font-size: 12px;
	font-weight: 700;
	color: var(--steel);
	letter-spacing: 0.2em;
	margin-bottom: 10px;
}

/* 実バナー広告（画像入り）の場合 */
.sidebar-ad--banner {
	padding: 0;
	background: transparent;
	border: 1px solid var(--border);
	overflow: hidden;
	text-decoration: none;
}
a.sidebar-ad--banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	border-color: var(--navy);
	opacity: 1;
}
.sidebar-ad__img {
	width: 100%;
	height: auto;
	display: block;
}

/* プレースホルダー（広告未設定時） */
.sidebar-ad--placeholder {
	background: var(--bg-light);
	border: 1px dashed var(--border);
}

/* 広告掲載募集 CTA（登録広告0件時のみ表示）：控えめだが別要素と分かる薄い背景 */
.sidebar-ad--recruit {
	background: #F4F7FB; /* ほんのり青みがかった白（ページ背景の薄グレーと差別化） */
	border: 1px solid #E0E6F0;
	border-left: 3px solid var(--red);
	border-radius: 8px;
	padding: 20px 16px;
	text-align: center;
	color: var(--text-main);
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}
/* 旧 latest__right 配下では更にコンパクト（互換性のため残す） */
.latest__right .sidebar-ad--recruit { padding: 16px 14px; }
/* 会員TOP専用サイドバー（members-sidebar）配下では通常サイズで表示 */
.members-sidebar .sidebar-ad--recruit { padding: 24px 20px; }
.sidebar-ad--recruit:hover {
	background: #fff;
	border-color: var(--navy);
	border-left-color: var(--red);
	opacity: 1;
}
.sidebar-ad__recruit-label {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	color: var(--red);
	letter-spacing: 0.18em;
	margin: 0 auto 2px;
}
.sidebar-ad__recruit-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.04em;
	margin-bottom: 2px;
	line-height: 1.5;
}
.sidebar-ad__recruit-text {
	font-size: 11px;
	color: var(--text-sub);
	line-height: 1.65;
	margin-bottom: 4px;
}
/* 旧 latest__right 配下では本文を非表示（互換性のため残す） */
.latest__right .sidebar-ad__recruit-text { display: none; }
/* 会員TOP専用サイドバー（members-sidebar）では本文を表示 */
.members-sidebar .sidebar-ad__recruit-text { display: block; font-size: 12px; }
.members-sidebar .sidebar-ad__recruit-title { font-size: 14px; }
.members-sidebar .sidebar-ad__recruit-label { font-size: 11px; }
.sidebar-ad__recruit-cta {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--red);
	letter-spacing: 0.04em;
	text-decoration: underline;
	align-self: center;
}
.sidebar-ad--recruit:hover .sidebar-ad__recruit-cta {
	color: var(--red-hover);
}

/* ===== BACK NUMBER GRID ===== */
.backnumber-section {
	background: var(--bg-white);
	padding: 80px 0 100px;
	/* バックナンバー以降〜フッターまでの空白も白背景で埋める */
	flex: 1 0 auto;
}

.backnumber-grid,
.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 24px;
}
.backnumber-card,
.archive-card {
	text-align: center;
	transition: transform .2s;
	color: inherit;
	display: block;
}
.backnumber-card:hover,
.archive-card:hover { transform: translateY(-4px); }
.backnumber-card__cover,
.archive-card__cover {
	width: 100%;
	aspect-ratio: 4/3;
	background: linear-gradient(145deg, #2a4a7f, #0D1B3E);
	border-radius: 4px;
	box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
}
/* 写真サムネイル時は上部を表示 */
.backnumber-card__cover--photo img,
.archive-card__cover--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.backnumber-card__cover--photo,
.archive-card__cover--photo {
	padding: 0;
	background: #1a2645;
}
.backnumber-card__cover--photo img,
.archive-card__cover--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.archive-card__cover::after {
	content: '';
	position: absolute;
	top: 0; right: 0;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}
.backnumber-card__title,
.archive-card__title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.backnumber-card__vol,
.archive-card__date { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 6px; letter-spacing: 0.04em; }
.archive-card__label {
	background: var(--red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
	letter-spacing: 0.1em;
	display: inline-block;
}
.backnumber-card__info,
.archive-card__info {
	font-size: 15px;
	color: var(--navy);
	font-weight: 700;
	margin-bottom: 4px;
	line-height: 1.4;
	letter-spacing: 0.03em;
}
.archive-card__sub {
	font-size: 13px;
	color: var(--text-sub);
	font-weight: 500;
}
.backnumber-more { text-align: center; margin-top: 32px; }

/* ===== ARCHIVE LAYOUT ===== */
/* PC（≥1101px）：左 archive-main（伸縮）／ 右 archive-sidebar 260px */
.archive-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}
.archive-main { flex: 1; min-width: 0; }
.archive-sidebar { width: 260px; flex-shrink: 0; }

/* ≤1100px：archive-layout を縦並び化、広告（archive-sidebar）はページネーションの下に
   さらに広告ブロック自体は最大500pxで中央寄せ（バナーが大きく見えすぎないように） */
@media ( max-width: 1100px ) {
	.archive-layout {
		flex-direction: column;
		gap: 40px;
		align-items: stretch;
	}
	.archive-main { width: 100%; }
	.archive-sidebar {
		width: 100%;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		order: 2; /* archive-main（=ページネーション含む）より下に配置 */
		flex-shrink: 1;
	}
}

/* ≤1100px〜601px：広告2件以上は500pxの枠内で2カラム並列 */
@media ( min-width: 601px ) and ( max-width: 1100px ) {
	.archive-sidebar:has( .sidebar-ad:nth-child(2) ) {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 14px;
	}
	.archive-sidebar:has( .sidebar-ad:nth-child(2) ) > .sidebar-ad { width: 100%; margin: 0; }
	.archive-sidebar:not(:has( .sidebar-ad:nth-child(2) )) { display: block; }
	.archive-sidebar:not(:has( .sidebar-ad:nth-child(2) )) > .sidebar-ad { display: block; width: 100%; margin: 0; }
}

/* ≤600px：広告は1カラム縦並び */
@media ( max-width: 600px ) {
	.archive-sidebar {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
	.archive-sidebar > .sidebar-ad { width: 100%; margin: 0; }
}

.year-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}
.year-filter__btn {
	background: transparent;
	border: 1.5px solid var(--border);
	color: var(--steel);
	padding: 8px 22px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	transition: all .2s;
	letter-spacing: 0.05em;
	font-family: inherit;
	text-decoration: none;
}
.year-filter__btn:hover { border-color: var(--navy); color: var(--navy); }
.year-filter__btn.is-active,
.year-filter__btn.active {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

/* 号閲覧ページの「バックナンバー一覧に戻る」ボタン周りの余白 */
.back-to-archive-wrap {
	text-align: center;
	margin-top: 64px;
	margin-bottom: 56px;
}
@media ( max-width: 768px ) {
	.back-to-archive-wrap {
		margin-top: 48px;
		margin-bottom: 40px;
	}
}

/* ===== ISSUE PAGE LAYOUT ===== */
/* PC（≥1101px）：左 main-content（伸縮）／ 右 sidebar 260px */
.main-layout {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px 48px;
	display: flex;
	gap: 32px;
	align-items: flex-start;
	/* min-width: 0 を明示することで、内側の canvas（固定幅）に引きずられて
	   main-layout 自身がビューポートより広くなる現象を防ぐ */
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}
.main-content { flex: 1; min-width: 0; max-width: 100%; }
.sidebar { width: 260px; flex-shrink: 0; }

/* ≤1100px：main-layout を縦並び化、広告（sidebar）を「バックナンバー一覧に戻る」ボタンの下に配置
   さらに広告ブロック自体は最大500px・中央寄せ */
@media ( max-width: 1100px ) {
	.main-layout {
		flex-direction: column;
		gap: 32px;
		align-items: stretch;
	}
	.main-content { width: 100%; }
	.sidebar {
		width: 100%;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
		order: 2; /* main-content（戻るボタン含む）より下に配置 */
		flex-shrink: 1;
	}
}

/* ≤1100px〜601px：広告2件以上は500pxの枠内で2カラム並列 */
@media ( min-width: 601px ) and ( max-width: 1100px ) {
	.sidebar:has( .sidebar-ad:nth-child(2) ) {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 14px;
	}
	.sidebar:has( .sidebar-ad:nth-child(2) ) > .sidebar-ad { width: 100%; margin: 0; }
	.sidebar:not(:has( .sidebar-ad:nth-child(2) )) { display: block; }
	.sidebar:not(:has( .sidebar-ad:nth-child(2) )) > .sidebar-ad { display: block; width: 100%; margin: 0; }
}

/* ≤600px：広告は1カラム縦並び */
@media ( max-width: 600px ) {
	.sidebar {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}
	.sidebar > .sidebar-ad { width: 100%; margin: 0; }
}

/* Issue info box */
.issue-info {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.issue-info__cover {
	width: 180px;
	aspect-ratio: 4/3;
	height: auto;
	flex-shrink: 0;
	background: linear-gradient(145deg, #2a4a7f, #0D1B3E);
	border-radius: 4px;
	box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	padding: 12px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}
.issue-info__cover--photo {
	padding: 0;
}
.issue-info__cover--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.issue-info__cover-label {
	background: var(--red);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
	letter-spacing: 0.1em;
}
.issue-info__cover-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.issue-info__cover-vol { font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-top: 4px; }
.issue-info__details { flex: 1; min-width: 0; }
.issue-info__title {
	font-size: 24px;
	font-weight: 900;
	color: var(--navy);
	margin-bottom: 14px;
	line-height: 1.35;
	letter-spacing: 0.04em;
}
.issue-info__meta { list-style: none; font-size: 15px; color: var(--text-main); }
.issue-info__meta li { padding: 6px 0; display: flex; gap: 12px; }
.issue-info__meta-label { color: var(--steel); font-weight: 700; min-width: 80px; font-size: 13px; }

/* ===== MYPAGE ===== */
.mypage-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}
.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 28px 32px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.card__heading {
	font-size: 22px;
	font-weight: 900;
	color: var(--navy);
	padding-bottom: 14px;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--navy);
	position: relative;
	line-height: 1.4;
	letter-spacing: 0.04em;
}
.card__heading::after {
	content: '';
	position: absolute;
	bottom: -2px; left: 0;
	width: 72px;
	height: 2px;
	background: var(--red);
}
.card__row {
	display: flex;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
	gap: 20px;
	align-items: center;
}
.card__row:last-child { border-bottom: none; }
.card__row-label {
	min-width: 140px;
	color: var(--steel);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
}
.card__row-value {
	flex: 1;
	color: var(--text-main);
	font-size: 16px;
	word-break: break-all;
	line-height: 1.7;
}

/* ===== LOGIN PAGE ===== */
.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg-light);
}
.login-header {
	background: var(--navy);
	padding: 16px 0;
}
.login-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.login-header__logo { display: flex; align-items: center; gap: 12px; }
.login-header__logo-icon {
	width: 44px; height: 44px;
	background: var(--red);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 20px;
	color: #fff;
	letter-spacing: -1px;
}
.login-header__logo-text { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.15; }
.login-header__logo-sub { color: rgba(255, 255, 255, 0.65); font-size: 12px; display: block; letter-spacing: 0.18em; margin-top: 3px; font-weight: 500; }

.login-hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1E3A6A 100%);
	padding: 60px 20px 50px;
	text-align: center;
	position: relative;
	overflow: hidden;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.login-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
	pointer-events: none;
}
.login-hero__content {
	position: relative;
	z-index: 1;
	max-width: 480px;
	width: 100%;
}
.login-hero__title { color: #fff; font-size: 36px; font-weight: 900; letter-spacing: 0.15em; margin-bottom: 8px; line-height: 1.35; }
.login-hero__title-en { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.login-hero__subtitle { color: rgba(255, 255, 255, 0.85); font-size: 16px; margin-bottom: 40px; letter-spacing: 0.06em; font-weight: 500; }
.login-hero__badge {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 18px;
	border-radius: 999px;
	letter-spacing: 0.18em;
	margin-bottom: 18px;
	box-shadow: 0 2px 8px rgba(184, 35, 42, 0.4);
}

.login-card {
	background: var(--bg-white);
	border-radius: 12px;
	padding: 40px 36px 36px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	text-align: left;
}
.login-card__heading {
	font-size: 22px;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 28px;
	text-align: center;
	position: relative;
	padding-bottom: 14px;
	letter-spacing: 0.06em;
}
.login-card__heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	background: var(--red);
	border-radius: 2px;
}
.login-card__notice {
	font-size: 14px;
	color: var(--text-sub);
	line-height: 1.85;
	text-align: center;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}
.login-card__notice a { color: var(--red); text-decoration: underline; font-weight: 600; }
.login-card__notice a:hover { color: var(--red-hover); }
.form-group { margin-bottom: 22px; }
.form-group label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--steel);
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"],
.card input[type="text"],
.card input[type="email"],
.card input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	transition: border-color .2s;
	background: var(--bg-light);
}
.form-group input:focus,
.login-card input:focus,
.card input:focus {
	outline: none;
	border-color: var(--navy);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.06);
}
.login-btn,
.login-card input[type="submit"],
.login-card button[type="submit"] {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--red);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 2px;
	transition: background .2s;
	margin-top: 8px;
}
.login-btn:hover,
.login-card input[type="submit"]:hover,
.login-card button[type="submit"]:hover { background: var(--red-hover); }

.login-forgot { text-align: center; margin-top: 16px; }
.login-forgot a {
	font-size: 13px;
	color: var(--text-sub);
	text-decoration: underline;
}
.login-forgot a:hover { color: var(--red); }

.login-footer { background: var(--navy); padding: 20px; text-align: center; }
.login-footer__text { color: rgba(255, 255, 255, 0.45); font-size: 12px; letter-spacing: 1px; }
.login-footer__link { color: rgba(255, 255, 255, 0.6); text-decoration: underline; margin-left: 12px; }
.login-footer__link:hover { color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
	background: var(--navy);
	padding: 36px 20px 20px;
	margin-top: auto;
}
.site-footer__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.site-footer__logo { display: flex; align-items: center; gap: 10px; }
.site-footer__logo-icon {
	width: 32px; height: 32px;
	background: var(--red);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 14px;
	color: #fff;
}
.site-footer__logo-text { color: rgba(255, 255, 255, 0.85); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; }
.site-footer__nav {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0; padding: 0;
	flex-wrap: wrap;
}
.site-footer__nav li { margin: 0; padding: 0; }
.site-footer__nav a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: color .2s;
}
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy {
	width: 100%;
	text-align: center;
	color: rgba(255, 255, 255, 0.45);
	font-size: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	letter-spacing: 0.05em;
}
.site-footer__btns { display: flex; gap: 8px; }
.footer-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.8);
	transition: .2s;
	cursor: pointer;
	background: transparent;
	font-family: inherit;
	letter-spacing: 0.04em;
}
.footer-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ===== PAGINATION ===== */
.tj-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 48px 0 8px;
	padding: 0;
}
.tj-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	transition: all .18s ease;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 1px 2px rgba(13, 27, 62, 0.04);
}
.tj-pagination a.page-numbers:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(13, 27, 62, 0.15);
}
.tj-pagination .page-numbers.current {
	background: var(--red);
	color: #fff;
	border-color: var(--red);
	box-shadow: 0 2px 6px rgba(184, 35, 42, 0.3);
}
.tj-pagination .page-numbers.dots {
	border: none;
	box-shadow: none;
	background: transparent;
	color: var(--text-sub);
	cursor: default;
}
.tj-pagination .page-numbers.dots:hover {
	background: transparent;
	color: var(--text-sub);
	transform: none;
	box-shadow: none;
}
.tj-pagination .prev,
.tj-pagination .next {
	padding: 0 16px;
	gap: 6px;
	color: var(--navy);
	background: #fff;
}
.tj-pagination .prev:hover,
.tj-pagination .next:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}
.tj-pagination__arrow {
	font-size: 16px;
	font-weight: 700;
	display: inline-block;
	line-height: 1;
}
.tj-pagination__label {
	font-size: 13px;
	letter-spacing: 0.05em;
}
.tj-pagination__info {
	text-align: center;
	font-size: 12px;
	color: var(--text-sub);
	letter-spacing: 0.05em;
	margin: 8px 0 24px;
	font-variant-numeric: tabular-nums;
}

/* モバイルでは prev/next のラベル隠して矢印だけ */
@media ( max-width: 480px ) {
	.tj-pagination { gap: 4px; }
	.tj-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 13px;
	}
	.tj-pagination .prev,
	.tj-pagination .next {
		padding: 0 10px;
	}
	.tj-pagination__label {
		display: none; /* モバイルでは矢印のみ */
	}
}

/* ===== ADMIN PREVIEW BAR ===== */
.tj-admin-preview-bar {
	background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
	color: #2c1f00;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 500;
	border-bottom: 2px solid #B8232A;
}
.tj-admin-preview-bar > div {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.tj-admin-preview-bar__label {
	display: inline-block;
	background: #2c1f00;
	color: #FFC107;
	padding: 3px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 12px;
	white-space: nowrap;
}
.tj-admin-preview-bar__text { line-height: 1.4; }

/* ===== 404 ===== */
.tj-error-box { text-align: center; max-width: 560px; margin: 100px auto; padding: 0 20px; }
.tj-error-code {
	font-size: 120px;
	color: var(--red);
	margin: 0;
	line-height: 1;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-shadow: 0 4px 16px rgba(184, 35, 42, 0.2);
}
.tj-error-title {
	font-size: 28px;
	margin: 24px 0 20px;
	color: var(--navy);
	font-weight: 900;
	letter-spacing: 0.06em;
}
.tj-error-text {
	color: var(--text-sub);
	margin-bottom: 36px;
	font-size: 16px;
	line-height: 1.85;
}

/* ===== LEGACY 互換クラス（旧テンプレートが使うもの） ===== */
.tj-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.tj-main { width: 100%; }
.tj-placeholder {
	padding: 40px;
	background: var(--bg-light);
	border: 1px dashed var(--border);
	border-radius: 6px;
	color: var(--text-sub);
	text-align: center;
	font-size: 15px;
	line-height: 1.8;
}
.tj-section-title {
	font-size: 20px;
	color: var(--navy);
	border-left: 4px solid var(--red);
	padding-left: 14px;
	margin: 0 0 20px;
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media ( max-width: 768px ) {
	.site-nav {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--navy);
		flex-direction: column;
		padding: 24px 20px 32px;
		gap: 12px;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
		z-index: 99;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	.site-nav.open { display: flex; }
	.nav-toggle { display: block; }

	/* メニュー項目をボタン風にして暗背景でも識別しやすく */
	.site-nav a {
		display: block;
		text-align: center;
		font-size: 16px;
		padding: 14px 20px;
		background: rgba(255, 255, 255, 0.10);
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 8px;
		color: #fff;
		letter-spacing: 0.06em;
	}
	.site-nav a:hover,
	.site-nav a.is-active,
	.site-nav a.active {
		background: rgba(255, 255, 255, 0.20);
		border-color: rgba(255, 255, 255, 0.55);
		color: #fff;
	}
	/* ログアウト／管理画面に戻る：赤系で他と区別 */
	.site-nav__logout {
		background: rgba(184, 35, 42, 0.40) !important;
		border-color: rgba(255, 120, 120, 0.55) !important;
	}
	.site-nav__logout:hover {
		background: var(--red) !important;
		border-color: #fff !important;
	}
	/* 外部リンク：白寄りボーダーで目立たせる */
	.site-nav__external {
		background: rgba(255, 255, 255, 0.16) !important;
		border-color: rgba(255, 255, 255, 0.5) !important;
		margin-left: 0 !important;
	}
	.site-nav__external:hover {
		background: rgba(255, 255, 255, 0.30) !important;
	}

	.hero { padding: 40px 20px; }
	.hero__inner { flex-direction: column; text-align: center; gap: 24px; }
	.hero__cover { width: 100%; max-width: 320px; }
	.hero__cover-img { width: 100%; aspect-ratio: 4/3; height: auto; }
	.hero__title { font-size: 22px; }

	.latest { flex-direction: column; }
	.latest__right { width: 100%; }

	/* members-layout の縦並び化と広告の挙動はそれぞれ
	   `(min-width:601px) and (max-width:1024px)` ／ `(max-width:600px)` ブロックで管理 */

	/* archive-layout の縦並び・広告下配置は (max-width:1100px) ブロックで管理済み */
	.archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.backnumber-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }

	/* main-layout の縦並び・広告下配置は (max-width:1100px) ブロックで管理済み。
	   ここではスマホ寄り用に padding/gap だけ調整 */
	.main-layout { padding: 24px 16px; gap: 24px; }

	.issue-info { flex-direction: column; align-items: center; text-align: center; }
	.issue-info__details { width: 100%; }
	.issue-info__meta li { justify-content: center; flex-wrap: wrap; }

	.site-footer__inner { flex-direction: column; text-align: center; }
	.site-footer__nav { flex-wrap: wrap; justify-content: center; }

	.login-hero { padding: 40px 16px 36px; }
	.login-card { padding: 28px 20px 24px; }
	.login-hero__title { font-size: 22px; letter-spacing: 2px; }
	.login-header__logo-text { font-size: 15px; }

	.card { padding: 20px; }
	.card__row { flex-direction: column; gap: 4px; }
	.card__row-label { min-width: 0; font-size: 12px; }
}

@media ( min-width: 769px ) and ( max-width: 1024px ) {
	.archive-grid { grid-template-columns: repeat(3, 1fr); }
}
