@charset "UTF-8";

/* ========================================
   テーマ切り替え対応(変数使用)
======================================== */

/* ヘッダー */
header {
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.header-content h1 {
	margin: 0 0 20px 0;
}

/* ナビゲーション（横並び） */
.navul{
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: nowrap;
	padding: 10px 0;
	list-style: none;
}

.navul li {
	margin: 0;
}

.navul a {
	display: inline-block;
	padding: 12px 24px;
	font-size: 1.1em;
	background-color: var(--card-color);
	border: 2px solid var(--accent-color);
	border-radius: 8px;
	color: var(--text-color);
	text-decoration: none;
	transition: 0.25s;
	white-space: nowrap;
}

.navul a:hover {
	background-color: var(--accent-color);
	border-color: var(--accent-dark);
	transform: translateY(-2px);
}

/* 横並びナビゲーション */
.navbtn{
	display: flex;
	justify-content: center;
	gap: 15px;
	max-width: 100%;
	flex-wrap: wrap;
	padding: 15px 0;
}

.navbtn li {
	margin: 0;
	flex: 0 1 auto;
}

.navbtn a {
	padding: 12px 20px;
	font-size: 1.1em;
	white-space: nowrap;
	background-color: var(--card-color);
	border: 2px solid var(--accent-color);
	border-radius: 8px;
	color: var(--text-color);
	text-decoration: none;
	transition: 0.25s;
}

.navbtn a:hover {
	background-color: var(--accent-color);
	border-color: var(--accent-dark);
	transform: translateY(-2px);
}


/* ========================================
   各セクションをカード風に
======================================== */
.card {
	background-color: var(--card-color);
	border: 2px solid var(--border-color);
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ========================================
   見出しを目立たせる
======================================== */
section h2 {
	font-size: 2em;
	color: var(--accent-dark);
	margin: 0 0 10px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--accent-color);
}

section h3 {
	font-size: 1.6em;
	color: var(--text-color);
	margin: 15px 0 20px 0;
	font-weight: bold;
}

section h4 {
	font-size: 1.3em;
	color: var(--accent-dark);
	margin: 25px 0 12px 0;
	padding-left: 12px;
	border-left: 4px solid var(--accent-color);
	font-weight: bold;
}

/* ========================================
   余白を調整・読みやすく
======================================== */
section p {
	line-height: 1.8;
	margin: 10px 0;
	font-size: 1.05em;
}

/* セクション内のリストも調整 */
section ul, section ol {
	line-height: 1.8;
	margin: 12px 0;
	padding-left: 25px;
}

section li {
	margin: 8px 0;
}

/* ========================================
   リンクを見やすく(ボタン風)
======================================== */
section a {
	color: var(--accent-dark);
	text-decoration: none;
	font-weight: bold;
	padding: 2px 8px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

section a:hover {
	background-color: var(--accent-color);
	color: var(--text-color);
}

/* 外部リンク(target="_blank")は特別なスタイル */
section a[target="_blank"] {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 8px 16px;
	border-radius: 8px;
	margin: 5px 0;
	text-decoration: none;
	font-weight: bold;
	transition: 0.25s;
}

section a[target="_blank"]:hover {
	background-color: var(--accent-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

	/*
	パスワード先.htmlで使用するテーブルのスタイル
	*/
	table {
            width: 100%;
            border-collapse: collapse;
            margin: 1em 0;
        }
        table td {
            padding: 0.5em;
            border-bottom: 1px solid #ddd;
        }
        table td:first-child {
            font-weight: bold;
            width: 150px;
        }
        hr {
            margin: 2em 0;
            border: none;
            border-top: 2px solid #ddd;
        }

/* ========================================
   スマホ最適化
======================================== */
@media (max-width: 600px) {
	/* 横並びナビもスマホでは縦に戻す */
	.nav-horizontal nav ul {
		flex-direction: column;
		align-items: center;
	}

	.nav-horizontal nav li {
		width: 100%;
		max-width: 400px;
	}

	/* セクションの余白を調整 */
	section {
		padding: 20px;
		margin-bottom: 20px;
	}

	/* 見出しのサイズを調整 */
	section h2 {
		font-size: 1.6em;
	}

	section h3 {
		font-size: 1.4em;
	}

	section h4 {
		font-size: 1.2em;
		padding-left: 10px;
	}

	/* 文字サイズを調整 */
	section p {
		font-size: 1em;
		line-height: 1.7;
	}
	
}