/* guide.css - BASE初心者ガイド */

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

html {
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	padding: 0;
	background-color: #f6f6f7;
	color: #1a1a1a;
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "YuGothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #2c6ecb;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ヘッダー */
.guide-header {
	background-color: #fff;
	border-bottom: 1px solid #e1e3e5;
	padding: 0 24px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 100;
}

.guide-header-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 600;
}

.guide-header-logo:hover {
	text-decoration: none;
}

.guide-header-logo img {
	height: 24px;
}

.guide-header-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.guide-header-nav a {
	color: #616161;
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 6px;
	transition: background-color 0.15s;
}

.guide-header-nav a:hover {
	background-color: #f1f1f1;
	text-decoration: none;
	color: #1a1a1a;
}

/* ヒーローセクション */
.guide-hero {
	background: linear-gradient(135deg, #1a3a5c 0%, #2c6ecb 100%);
	color: #fff;
	text-align: center;
	padding: 64px 24px 72px;
}

.guide-hero h1 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.guide-hero p {
	font-size: 17px;
	margin: 0;
	opacity: 0.88;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* メインコンテンツ */
.guide-main {
	max-width: 960px;
	margin: -40px auto 0;
	padding: 0 24px 60px;
	position: relative;
	z-index: 10;
}

/* カードグリッド */
.guide-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}

.guide-card {
	background: #fff;
	border: 1px solid #e1e3e5;
	border-radius: 12px;
	padding: 28px 24px;
	transition: box-shadow 0.2s, border-color 0.2s;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.guide-card:hover {
	border-color: #c9cccf;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
}

.guide-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-size: 22px;
}

.guide-card-icon.color-blue { background: #e8f0fe; color: #2c6ecb; }
.guide-card-icon.color-green { background: #e3f5e8; color: #2e7d32; }
.guide-card-icon.color-purple { background: #ede7f6; color: #6a1b9a; }
.guide-card-icon.color-orange { background: #fff3e0; color: #e65100; }
.guide-card-icon.color-teal { background: #e0f7fa; color: #00838f; }
.guide-card-icon.color-red { background: #fce4ec; color: #c62828; }

.guide-card h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
}

.guide-card p {
	font-size: 14px;
	color: #616161;
	margin: 0;
	line-height: 1.6;
}

/* セクション */
.guide-section {
	background: #fff;
	border: 1px solid #e1e3e5;
	border-radius: 12px;
	padding: 40px 36px;
	margin-bottom: 32px;
}

.guide-section-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.guide-section-title i {
	font-size: 24px;
	color: #2c6ecb;
}

.guide-section-lead {
	font-size: 15px;
	color: #616161;
	margin: 0 0 28px;
}

/* ステップ */
.guide-steps {
	counter-reset: step-counter;
	list-style: none;
	margin: 0;
	padding: 0;
}

.guide-steps li {
	counter-increment: step-counter;
	position: relative;
	padding: 0 0 28px 56px;
	border-left: 2px solid #e1e3e5;
	margin-left: 17px;
}

.guide-steps li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.guide-steps li::before {
	content: counter(step-counter);
	position: absolute;
	left: -18px;
	top: 0;
	width: 34px;
	height: 34px;
	background: #2c6ecb;
	color: #fff;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.guide-step-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	padding-top: 4px;
}

.guide-step-desc {
	font-size: 14px;
	color: #4a4a4a;
	margin: 0;
	line-height: 1.7;
}

/* テーブル */
.guide-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 16px;
	font-size: 14px;
}

.guide-table th,
.guide-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid #e1e3e5;
}

.guide-table th {
	background: #f6f6f7;
	font-weight: 600;
	font-size: 13px;
	color: #616161;
	white-space: nowrap;
}

.guide-table td {
	color: #333;
}

.guide-table tr:last-child td {
	border-bottom: none;
}

/* ヒント・注意ボックス */
.guide-tip {
	display: flex;
	gap: 12px;
	background: #e8f0fe;
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 20px;
	font-size: 14px;
	color: #1a3a5c;
	line-height: 1.6;
}

.guide-tip i {
	font-size: 20px;
	color: #2c6ecb;
	flex-shrink: 0;
	margin-top: 1px;
}

/* 用語リスト */
.guide-terms {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 20px;
}

.guide-term-item {
	background: #f9fafb;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	padding: 16px 20px;
}

.guide-term-item dt {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.guide-term-item dt i {
	font-size: 18px;
	color: #2c6ecb;
}

.guide-term-item dd {
	margin: 0;
	font-size: 14px;
	color: #616161;
	line-height: 1.6;
}

/* フッター */
.guide-footer {
	text-align: center;
	padding: 32px 24px;
	font-size: 12px;
	color: #8c9196;
	border-top: 1px solid #e1e3e5;
	background: #fff;
}

.guide-footer a {
	color: #8c9196;
}

/* スクロールターゲット */
.guide-section[id] {
	scroll-margin-top: 72px;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.guide-hero {
		padding: 40px 20px 52px;
	}

	.guide-hero h1 {
		font-size: 24px;
	}

	.guide-hero p {
		font-size: 15px;
	}

	.guide-main {
		padding: 0 16px 40px;
		margin-top: -28px;
	}

	.guide-cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.guide-section {
		padding: 28px 20px;
	}

	.guide-terms {
		grid-template-columns: 1fr;
	}

	.guide-header-nav {
		display: none;
	}
}

@media (max-width: 480px) {
	.guide-hero h1 {
		font-size: 20px;
	}

	.guide-section-title {
		font-size: 18px;
	}
}
