/* File2u.link — Column / Article CSS
   一覧ページ(.col-*) と 記事ページ(.article-*) の共通スタイル
*/

:root {
	--primary: #1e3a8a;
	--primary-light: #2563eb;
	--primary-bg: #eff6ff;
	--accent: #d97706;
	--cta-bg: #92400e;
	--text: #111827;
	--text-mid: #374151;
	--text-light: #6b7280;
	--white: #fff;
	--border: #e5e7eb;
	--gray-bg: #f9fafb;
}

* { padding: 0; margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	color: var(--text);
	background: var(--white);
	font-size: 15px;
	line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
p { margin: 0; }

/* ===== Nav（LP共通） ===== */
.lp-nav {
	position: sticky; top: 0; z-index: 1000;
	background: var(--white); border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 10px rgba(30,58,138,0.07);
}
.lp-nav-inner {
	max-width: 1200px; margin: 0 auto; padding: 0 32px;
	height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.lp-logo img { height: 30px; }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a { font-size: 14px; font-weight: 700; color: var(--text); }
.lp-nav-links a:hover { color: var(--primary-light); }
.btn-nav {
	background: var(--accent); color: var(--white) !important;
	padding: 8px 20px; border-radius: 6px; font-weight: 700; transition: background 0.2s;
}
.btn-nav:hover { background: var(--cta-bg) !important; }

/* ===== Footer（LP共通） ===== */
footer { background: #040a14; color: rgba(255,255,255,0.75); }
.site-footer { padding: 64px 32px 40px; max-width: 1100px; margin: 0 auto; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-column h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 9px; }
.footer-column a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-column a:hover { color: var(--white); }
.copyright { display: block; text-align: center; padding: 20px 32px; font-size: 13px; color: rgba(255,255,255,0.35); border-top: 1px solid rgba(255,255,255,0.08); }

/* ===========================
   一覧ページ
   =========================== */

/* ヒーロー */
.col-index-hero {
	background: var(--primary-bg);
	border-bottom: 1px solid var(--border);
	padding: 64px 32px 56px;
	text-align: center;
}
.col-index-hero h1 {
	font-size: 36px; font-weight: 900; color: var(--primary);
	margin-bottom: 14px; line-height: 1.35;
}
.col-index-hero p {
	font-size: 15px; color: var(--text-light); line-height: 1.85; max-width: 600px; margin: 0 auto;
}

/* グリッド */
.col-grid-section {
	max-width: 1100px; margin: 0 auto; padding: 64px 32px 88px;
}
.col-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

/* カード */
.col-card {
	background: var(--white); border: 1px solid var(--border);
	border-radius: 14px; padding: 28px 24px;
	display: flex; flex-direction: column; gap: 12px;
	transition: box-shadow 0.2s, transform 0.2s;
}
.col-card:hover { box-shadow: 0 8px 28px rgba(30,58,138,0.12); transform: translateY(-3px); }

.col-card-tag {
	display: inline-block; font-size: 11px; font-weight: 700;
	background: var(--primary-bg); color: var(--primary);
	padding: 4px 12px; border-radius: 20px; border: 1px solid #bfdbfe;
	letter-spacing: 0.5px;
}

.col-card-title {
	font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.55;
}

.col-card-desc {
	font-size: 13px; color: var(--text-light); line-height: 1.75; flex: 1;
}

.col-card-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700; color: var(--primary-light);
	margin-top: 4px;
	transition: gap 0.2s;
}
.col-card-link::after { content: '→'; }
.col-card-link:hover { gap: 10px; }

/* ===========================
   記事ページ
   =========================== */

/* ヒーロー */
.article-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	color: var(--white);
	padding: 56px 32px 52px;
	position: relative; overflow: hidden;
}
.article-hero::after {
	content: ''; position: absolute; bottom: -60px; right: -60px;
	width: 300px; height: 300px;
	background: rgba(255,255,255,0.05); border-radius: 50%;
	pointer-events: none;
}

/* パンくず */
.article-breadcrumb {
	font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 20px;
	position: relative; z-index: 1;
}
.article-breadcrumb a { color: rgba(255,255,255,0.75); }
.article-breadcrumb a:hover { color: var(--white); }

/* カテゴリタグ */
.article-tag {
	display: inline-block; font-size: 11px; font-weight: 700;
	background: rgba(255,255,255,0.18); color: var(--white);
	padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
	letter-spacing: 0.5px; margin-bottom: 16px;
	position: relative; z-index: 1;
}

.article-hero h1 {
	font-size: 32px; font-weight: 900; line-height: 1.4;
	margin-bottom: 12px; max-width: 800px;
	position: relative; z-index: 1;
}

.article-meta {
	font-size: 13px; color: rgba(255,255,255,0.6);
	position: relative; z-index: 1;
}

/* 本文エリア */
.article-body {
	max-width: 820px; margin: 0 auto; padding: 56px 32px 88px;
}

/* 導入文 */
.article-lead {
	font-size: 17px; color: var(--text-mid); line-height: 1.9;
	margin-bottom: 48px;
	padding: 24px 28px;
	background: var(--primary-bg); border-radius: 10px;
	border-left: 4px solid var(--primary);
}

/* h2 */
.article-h2,
.article-body h2 {
	font-size: 22px; font-weight: 900; color: var(--primary);
	border-left: 5px solid var(--accent);
	padding: 4px 0 4px 16px; margin: 48px 0 20px; line-height: 1.4;
}

/* 本文段落 */
.article-body p {
	font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 20px;
}
.article-body ul {
	margin: 0 0 20px 1.4em; color: var(--text-mid); font-size: 15px; line-height: 1.85;
}
.article-body li { margin-bottom: 6px; }

/* 比較表 */
.article-table {
	width: 100%; border-collapse: collapse; margin: 24px 0 36px; font-size: 14px;
	border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.article-table thead th {
	background: var(--primary); color: var(--white); font-weight: 700;
	padding: 12px 16px; text-align: left; font-size: 13px;
}
.article-table tbody td {
	padding: 11px 16px; border-top: 1px solid var(--border);
	vertical-align: top; line-height: 1.65;
}
.article-table tbody td:first-child { font-weight: 700; color: var(--text); background: var(--gray-bg); }
.article-table tbody tr:nth-child(even) td { background: #f5f8ff; }
.article-table tbody tr:nth-child(even) td:first-child { background: #eef2fa; }
.article-table tbody tr:hover td { background: var(--primary-bg); }
.article-table tbody tr:hover td:first-child { background: #dbeafe; }

/* FAQ */
.faq-section {
	margin: 48px 0 0; padding: 40px 0 0; border-top: 2px solid var(--border);
}
.faq-section > h2 {
	font-size: 22px; font-weight: 900; color: var(--primary);
	border-left: 5px solid var(--accent);
	padding: 4px 0 4px 16px; margin-bottom: 28px; line-height: 1.4;
}
.faq-list { }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
	width: 100%; padding: 20px 4px; display: flex; justify-content: space-between;
	align-items: center; background: none; border: none; cursor: pointer;
	text-align: left; font-size: 15px; font-weight: 700; color: var(--text);
	font-family: inherit; gap: 16px; transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-question-text { flex: 1; }
.faq-toggle {
	width: 28px; height: 28px; background: var(--primary); color: var(--white);
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; position: relative;
	font-size: 0; /* テキスト +/- は JS 互換のため残し、表示は疑似要素 */
	transition: background 0.2s;
}
.faq-toggle::before,
.faq-toggle::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: currentColor;
	border-radius: 1px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.faq-toggle::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}
.faq-toggle::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
}
.faq-item.open .faq-toggle {
	background: var(--accent);
}
.faq-item.open .faq-toggle::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}
.faq-answer { display: none; padding: 0 4px 20px; font-size: 14px; color: var(--text-light); line-height: 1.85; }
.faq-answer.open { display: block; }
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* CTA */
.article-cta {
	margin: 56px 0 0;
	background: var(--primary); border-radius: 16px;
	padding: 40px 40px 44px; text-align: center; color: var(--white);
}
.article-cta h2 {
	font-size: 22px; font-weight: 900; margin-bottom: 14px; line-height: 1.4;
	color: var(--white); border: none; padding: 0; margin-top: 0;
}
.article-cta p {
	font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.85;
	margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.article-cta-btn {
	display: inline-block; background: var(--accent); color: var(--white) !important;
	padding: 16px 44px; border-radius: 8px; font-weight: 700; font-size: 16px;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 4px 18px rgba(217,119,6,0.4);
}
.article-cta-btn:hover { background: var(--cta-bg); transform: translateY(-1px); }

/* 複数CTAリンク */
.article-cta-links { margin-top: 8px; }
.article-cta-links ul {
	list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
	justify-content: center; margin: 0; padding: 0;
}
.article-cta-links li { }
.article-cta-links a {
	display: inline-block;
	background: rgba(255,255,255,0.12); color: var(--white) !important;
	padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 700;
	border: 1px solid rgba(255,255,255,0.25);
	transition: background 0.2s, transform 0.15s;
}
.article-cta-links a:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
	.col-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.col-index-hero { padding: 44px 20px 36px; }
	.col-index-hero h1 { font-size: 26px; }
	.col-grid-section { padding: 44px 20px 64px; }
	.col-grid { grid-template-columns: 1fr; }
	.article-hero { padding: 40px 20px 36px; }
	.article-hero h1 { font-size: 22px; }
	.article-body { padding: 40px 20px 64px; }
	.article-lead { font-size: 15px; padding: 18px 20px; }
	.article-body h2,
	.article-h2 { font-size: 19px; }
	.article-cta { padding: 32px 24px 36px; }
	.article-cta h2 { font-size: 18px; }
	.lp-nav-links a:not(.btn-nav) { display: none; }
	.footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
	.article-cta-links ul { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
	.col-index-hero h1 { font-size: 22px; }
	.footer-columns { grid-template-columns: 1fr; }
	.article-table { font-size: 13px; }
	.article-table thead th,
	.article-table tbody td { padding: 9px 12px; }
}
