/*
Theme Name: Original Theme
Author: Yuka
Description: 自作HTMLベースのテーマ
Version: 1.0
*/


/* ===============================
カラーバリエーション
================================ */
:root {
	--main-bg: #f9f9f9;
	--main-color: #252a65;   /* 見出しや強調 */
	--text-color: #2B2721;      /* 本文 */
	--accent: #446E72;       /* ボタン・リンク */
	--sub-accent: #6FA8A9;
}

/* ===============================
全体・ベース設定
================================ */
* { 
	color: var(--text-color); 
}

body { 
	font-family: 'Noto Sans JP', 'Inter', sans-serif;
	background: var(--main-bg); 
	line-height: 1.9;
	line-height: 1.7;
	margin: 0;
	padding: 0;
}

.wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	box-sizing: border-box;
}

/* メインコンテンツ */
main {
	padding: 70px 0 2rem;
	width: 100%;
}

section {
	margin: 2rem auto;
	max-width: 1200px;
	padding: 0 1.5rem;
	box-sizing: border-box;
}

/* スクロールバー */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-thumb {
	background-color: #006d9c;
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-track {
	background-color: #333;
	border-radius: 10px;
}

/* ===============================
ヘッダー
================================ */
header {
	position: fixed;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2em; /* 上下左右余白 */
	background: #3b3b3b;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	flex-wrap: wrap;
	height: 70px;
	box-sizing: border-box;
	z-index: 1000;
}

header h1 {
	font-size: 1.8rem;
	color: #fff;
	margin: 0;
	line-height: 70px;
}

header a { text-decoration: none; }

header #sidebar-toggle {
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	padding: 0 1em;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	height: 100%;
}

/* 選択されたときの背景色 */
header #sidebar-toggle:hover {
	background-color: rgba(255,255,255,0.2);
}

/* ===============================
フッター
================================ */
footer {
	background: linear-gradient(135deg, #2b2b2b, #363838);
	color: #fff;
	padding: 3rem 2rem;
	font-family: 'Noto Sans JP', sans-serif;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between; /* 左中右に分散 */
	max-width: 1200px;
	margin: 0 auto;
	gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
	flex: 1 1 300px;
}

.footer-center h3,
.footer-right h3 {
	color: #fff;
	margin-bottom: 0.8rem;
}

.footer-logo a {
	font-size: 1.8rem;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	letter-spacing: 1px;
}

.footer-desc {
	color: #ccc;
	margin: 0.8rem 0 1.2rem 0;
	line-height: 1.5;
}

.footer-social a {
	color: #ccc;
	margin-right: 1rem;
	font-size: 1.2rem;
	transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
	color: #6fc3df;
	transform: translateY(-2px);
}

.footer-social svg path {
	fill: #ccc !important;
}

.footer-nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.footer-nav a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-nav a:hover {
	color: #6fc3df;
}

.footer-right p {
	color: #ccc;
	margin-bottom: 0.5rem;
}

.contact-btn {
	display: inline-block;
	padding: 0.5em 1.5em;
	font-size: 0.95rem;
	font-weight: bold;
	color: #fff;
	background: #446E72;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
	background: #5c888c;
	transform: translateY(-1px);
}

footer .copyright {
	text-align: center;
	margin-top: 2rem;
	font-size: 0.8rem;
	color: #bbb;
}

/* ===============================
サイドバー
================================ */
/* オーバーレイ */
#sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 999;
}

#sidebar-overlay.active { display: block; }

/* スライドサイドバー本体 */ 
aside#sidebar-progress {
	position: fixed; 
	top: 0; 
	right: -450px; 
	width: 280px; 
	height: 100%; 
	background: #f7f7f7; 
	padding: 1.5em; 
	box-shadow: -4px 0 12px rgba(0,0,0,0.1);
	border-radius: 12px 0 0 12px;
	transition: right 0.3s ease; z-index: 1000; overflow-y: auto; 
} 

aside#sidebar-progress.open { right: 0; }

/* サイドバーヘッダー */
aside#sidebar-progress h3 {
	display: flex;
	align-items: center;
	font-size: 1.2em;
	margin-bottom: 1em;
	color: #006d9c;
	background: #f7f7f7;
	padding: 0.5em 0;
}

/* カテゴリリスト */
aside#sidebar-progress ul {
	list-style: none;
	padding: 0 0 2em 0;
	margin: 0;
}

aside#sidebar-progress li {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 0.8em;
	padding: 0.8em 1em;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	transition: all 0.2s;
}

aside#sidebar-progress li:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* カテゴリ名とパーセンテージ */
aside#sidebar-progress li {
	margin-bottom: 0.8em;
	padding: 0.8em 1em;
}

aside#sidebar-progress li:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

aside#sidebar-progress li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	margin-right: 0.6em;
	vertical-align: middle;
}

aside#sidebar-progress li span.progress {
	display: block;
	height: 6px;
	background: #e0e0e0;
	border-radius: 4px;
	margin-top: 0.5em;
	overflow: hidden;
}

aside#sidebar-progress li span.progress > span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--accent);
	border-radius: 4px;
	transition: width 0.4s ease;
}

/* スクロールバー */
aside#sidebar-progress::-webkit-scrollbar { width: 6px; }
aside#sidebar-progress::-webkit-scrollbar-thumb {
	background: var(--accent);
	border-radius: 3px;
}
aside#sidebar-progress::-webkit-scrollbar-track { background: transparent; }

/* ===============================
見出しデザイン
================================ */
.wp-block-heading { font-weight: bold; color: var(--main-color); }

h1 {
	color: var(--main-color)
}

h2.wp-block-heading {
	font-weight: 700;
	color: #fff;
	background-color: var(--accent);
	padding: 0.6em 1em;
	margin: 3rem 0 1.5rem;
	box-shadow: 0 3px 8px rgba(0,0,0,0.1);
	position: relative;
}

h2.wp-block-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 6px;
	height: 100%;
	background: var(--sub-accent);
}

section h2 {
	text-align: center;
	margin-bottom: 2.5rem;
	position: relative;
	color: var(--accent);
}

section h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--sub-accent);
	margin: 0.8rem auto 0;
	border-radius: 3px;
}

/* --- h3 見出し --- */
h3 {
	padding:0 .4em .2em;
	border-bottom: 3px dotted var(--accent);
}

/* --- h4 サブ小見出し --- */
h4.wp-block-heading {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--accent);
	margin: 1.6rem 0 0.6rem;
	background-color: #f0f4f4; /* 薄めのアクセント背景 */
	border-radius: 6px;
	padding: 0.4em 0.8em;
}

/* --- h5 見出し --- */
h5 {
	position: relative;
	padding: .5em .7em .4em;
	border-bottom: 3px solid var(--accent);
}

h5::before,
h5::after {
	position: absolute;
	left: 30px;
	bottom: -15px;
	width: 30px;
	height: 15px;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	content: '';
}

h5::before {
	background-color: var(--accent);
}

h5::after {
	bottom: -11px;
	background-color: var(--main-bg);
}

/* --- h6 見出し --- */
h6.wp-block-heading {
	font-size: 1rem;
	font-weight: 500;
	color: var(--accent);
	margin: 1.5rem 0 0.5rem;
	background-color: #e6f0f0; /* さらに薄め */
	border-radius: 4px;
	padding: 0.3em 0.6em;
}

/* --- article-summary --- */
.article-summary h5 {
	color: var(--accent);
	border: none !important;
	padding: 0 !important;
}

.article-summary h5::before,
.article-summary h5::after {
	display: none !important;
}

.article-summary ul {
	list-style: disc;
	padding-left: 1.5em;
	margin-top: 0.5em;
	margin-bottom: 1em;
}

/* ===============================
STEP 見出し
================================ */
.step-heading {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 2rem 0 1rem;
	padding: 0.6rem 1rem;
	background: var(--accent);
	color: #fff;
	border-radius: 8px;
	position: relative;
}

.step-heading::before {
	content: "STEP ";
	font-weight: 800;
	margin-right: 0.4rem;
	color: #f0f0f0;
	opacity: 0.8;
}

/* ===============================
アドバイスボックス
================================ */
.advice-box {
	background: #f9f9f9;
	border-left: 4px solid #446E72;
	padding: 1.2em;
	font-style: italic;
	margin: 2em 0;
	border-radius: 6px;
	color: #555;
}

/* ===============================
区切りライン
================================ */
.fancy-divider {
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--accent), transparent);
	margin: 3em 0;
}

/* ===============================
リスト装飾
================================ */
/* ナンバリングリスト */
.numbered-list {
	counter-reset: number;
	list-style: none;
	padding-left: 0;
}
.numbered-list li {
	counter-increment: number;
	margin: 0.6em 0;
	padding-left: 2em;
	position: relative;
}
.numbered-list li::before {
	content: counter(number) ".";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: bold;
}

/* チェックリスト風（✔マーク付き） */
.checklist {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.checklist li {
	position: relative;
	margin: 0.6rem 0;
	padding-left: 2rem;
}

.checklist li::before {
	content: "✔";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: bold;
}

/* ===============================
ヒーロー・ニュースセクション
================================ */
.hero, .news { 
	margin-top: 0;
	max-width: 100%;
	color: white;
	background: linear-gradient(135deg, var(--accent), var(--sub-accent), var(--accent), var(--sub-accent));
	background-size: 400% 400%;
	animation: gradientShift 12s ease infinite;	
}

@keyframes gradientShift {
	0% { background-position: 0% 0%; }
	25% { background-position: 100% 0%; }
	50% { background-position: 100% 100%; }
	75% { background-position: 0% 100%; }
	100% { background-position: 0% 0%; }
}

.scroll-icon {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 2rem;
	color: #fff;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.scroll-icon svg path {
	fill: #fff !important;
}

/* ホバー時だけバウンス */
.scroll-icon:hover {
	animation: bounce 2s infinite;
	transform: translateX(-50%) translateY(0);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(8px); }
	60% { transform: translateX(-50%) translateY(4px); }
}

.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
}

.hero p { color: #f0f0f0; }

.hero h1, h1.hero,
.news h2 {
	color: #f0f0f0;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.08em;
	margin-bottom: 2rem;
	line-height: 1.2;
	position: relative;
}

.hero h1::after,
.news h2::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -20px;
	transform: translateX(-50%);
	width: 120px; /* 固定幅 */
	height: 3px;
	border-radius: 3px;
	background: #f0f0f0;
}

/* アニメーション */
.features .sub-text {
	font-size: 0.9rem;
	color: #555;
	margin-top: -0.5rem;
	margin-bottom: 2rem;
	text-align: center;
}

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 1s forwards;
}

.fade-in.delay { animation-delay: 0.5s; }

@keyframes fadeInUp {
	to { opacity: 1; transform: translateY(0); }
}

.slide-up {
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.8s ease-out;
}

.slide-up.visible {
	opacity: 1;
	transform: translateY(0);
}

.feature-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.feature-cards .card {
	flex: 1 1 280px;
	text-align: center;
}

.icon-circle {
	width: 80px;
	height: 80px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	background: linear-gradient(135deg, var(--accent), var(--sub-accent));
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.icon-circle svg path {
	fill: #fff !important;
}


/* ===== ニュースセクション専用 ===== */
.news {
	background: var(--accent);
	margin-bottom: 0;
	margin-top: 3rem;
}

.news-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 1200px;
}

.news-item {
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 8px;
	margin-bottom: 1rem;
	transition: background 0.3s ease, border-color 0.3s ease;
	background: rgba(255,255,255,0.05);
	margin: 1rem;
}

.news-item a {
	display: flex;
	align-items: center;
	padding: 0.8rem 1rem;
	text-decoration: none;
	color: inherit;
}

.news-item:hover {
	background: rgba(255,255,255,0.2);
	border-color: #fff;
}

.news-date {
	margin-right: 2rem;
	min-width: 50px;
	text-align: right;
	font-size: 0.85rem;
	color: #fff;
}

.news-title {
	font-size: 1rem;
	font-weight: 500;
	color: #fff;
}

.news-page .news-item a {
	display: flex;
	align-items: center;
	padding: 0.8rem 1rem;
	text-decoration: none;
}

.news-page .news-date,
.news-page .news-title {
	color: var(--text-color);
}

/* ===============================
カード
================================ */
.card {
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin: 2rem 0;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card p {
	margin: 0 0 1rem;
	line-height: 1.7;
}

.card h3 {
	display: flex;
	align-items: center;
	margin-right: 2rem;
	color: #009999;
}

.card h3 i {
	font-size: 25px; /* アイコンサイズ */
	margin-right: 1rem;
}


/* ===============================
ブログカード
================================ */
.my-blogcard,
.blogcard, 
.wp-block-shortcode,
.news-page .news-item {
	text-decoration: none;
	display: block;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
	box-shadow: 0 3px 8px rgba(0,0,0,0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blogcard:hover,
.news-page .news-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* ===============================
ボタン
================================ */
.btn {
	background: #009999;
	border: 2px solid #009999;
	border-radius: 50px;
	box-shadow: 2.8px 2.8px 5px rgba(100, 100, 100, 0.1),
		-2.8px -2.8px 5px rgba(255, 255, 255, 1.0);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 10px 20px;
	display: inline-block;
	text-align: center;
	position: relative;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.btn:hover {
	background: #fff;
	color: #009999;
}

/* ===============================
導入部
================================ */
.article-summary {
	background: #fff;
	border-left: 5px solid #446E72;
	padding: 1em 1.5em;
	margin: 2em 0;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* ===============================
プログラムコード
================================ */
.hcb_wrap.hcb_wrap > pre {
	background-color: #282c34;
	border: 1px solid #444;
	padding: 1em;
	border-radius: 12px;
	overflow-x: auto;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
pre code.hljs {
	color: inherit; /* デフォルトを消す */
}

.pre::-webkit-scrollbar-thumb:hover {
	background-color: #c2790a;    /* ホバー時ちょっと濃く */
}

.hcb_wrap.hcb_wrap > pre,
.hcb_wrap.hcb_wrap > pre > code {
	font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
	background-color: #282c34;
	font-size: 14px;
	line-height: 1.5;
	display: block;
	padding: 0;
	text-shadow: none;
	color: #abb2bf;
	padding: .5em;
}

/* 選択範囲の色 */
pre::selection,
code::selection {
	background: #555;
}
/* ===============================
テーブル
================================ */
.wp-block-table {
	border-collapse: collapse;
	margin: 2rem 0;
	width: 100%;
	font-size: 0.95rem;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.wp-block-table th {
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	padding: 0.8rem;
}

.wp-block-table td {
	padding: 0.8rem;
	border: 1px solid #ddd;
	text-align: center;
}

/* ===============================
アコーディオン
================================ */
main details {
	max-width: 100%;
	margin: 20px 0;
	border-radius: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	background-color: #666666;
}

details summary {
	display: block;
	text-align: center;
	background-color: #666666;
	color: white;
	border: none;
	border-radius: 25px;
	padding: 1em 2em;
	font-weight: bold;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s ease;
}

details summary:hover {
	background-color: #666666;
}

details summary::after {
	display: none;
}

details[open] summary::after {
	transform: rotate(225deg);
}

details p {
	transform: translateY(-10px);
	margin: 0;
	padding: .3em 2em 1.5em;
	transition: transform .5s, opacity .5s;
	color: white;
	margin-top: 15px;
	font-weight: bold;
}

.accordion {
	cursor: pointer;
	padding: 1em;
	background: #eee;
	border: none;
	text-align: left;
	transition: background 0.3s;
}

.accordion:hover {
	background: #ddd;
}

.panel {
	display: none;
	padding: 1em;
	background: #fafafa;
	border-left: 4px solid #cc6699;
}

/* ===============================
コメント
================================ */
.comment-form-field textarea {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 16px;
	resize: vertical;
	box-sizing: border-box;
	transition: 0.3s;
}

.comment-form-field textarea:focus {
	border-color: #666;
	outline: none;
	box-shadow: 0 0 5px rgba(100,100,100,0.2);
}

.form-submit input[type="submit"] {
	background: #333;
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	transition: 0.3s;
}

.form-submit input[type="submit"]:hover {
	background: #555;
}

/* ===============================
目次
================================ */
#toc-wrapper {
	max-width: 90%;
	margin: 1em auto 3em auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,0.1);
	background: linear-gradient(145deg, #ffffff, #f0f0f3);
	font-family: 'Helvetica Neue', sans-serif;
}

#toc-container {
	padding: 0.8em 1em;
	background-color: var(--accent);
	color: #fff;
	font-weight: bold;
	font-size: 1em;
	cursor: pointer;
	user-select: none;
	transition: background 0.3s;
	text-align: center;
}

#toc-container:hover {
	background-color: #36595c;
}

#toc-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	background-color: #fff;
	padding: 0 1em;
}

#toc-panel.open {
	padding: 0.5em 1em;
	max-height: 1000px;
}

#toc-panel ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

#toc-panel li {
	padding: 0.4em 0;
	border-bottom: 1px solid #eee;
}

#toc-panel li:last-child {
	border-bottom: none;
}

#toc-panel li a {
	text-decoration: none;
	color: #006d9c;
	transition: color 0.2s;
}

#toc-panel li a:hover {
	color: #ff7f50;
}

#toc-panel li a.active {
	color: #fff;
	background: #006d9c;
	border-radius: 4px;
	padding: 2px 6px;
}

/* ===============================
進捗バー
================================ */
#lesson-progress {
	margin: 2em 0;
	padding: 1em;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#progress-bar-wrapper {
	width: 100%;
	background: #eee;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1em;
	height: 20px;
}

#progress-bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #006d9c, #00bcd4);
	transition: width 0.4s ease;
}

/* チェックリスト全体 */
#lesson-checklist {
	list-style: none;
	padding-left: 0;
	margin: 1em 0;
}

/* 個々の項目 */
#lesson-checklist li {
	margin: 0.6em 0;
}

/* ラベル自体をカード風に */
#lesson-checklist label {
	display: flex;
	align-items: center;
	padding: 0.8em 1em;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #fefefe;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.95em;
}

/* ホバー時の効果 */
#lesson-checklist label:hover {
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	background-color: #f7f7f7;
}

/* チェックボックス */
#lesson-checklist input[type="checkbox"] {
	margin-right: 0.8em;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* チェック済みのスタイル */
#lesson-checklist input[type="checkbox"]:checked + span {
	text-decoration: line-through;
	color: #888;
}

/* 文字の装飾を入れる場合は span を追加 */
#lesson-checklist li label span {
	flex: 1;
	transition: color 0.2s, text-decoration 0.2s;
}

/* ===============================
レスポンシブ調整
================================ */
/* スマホ用 (最大768pxまで) */
@media screen and (max-width: 768px) {
	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.25rem; }
	h3 { font-size: 1.1rem; }
	h4 { font-size: 1rem; }
	h5 { font-size: 0.95em; }
	h6 { font-size: 0.85rem; }
	.hero, .news {
		padding-top: 7rem;
		padding-bottom: 6rem;
		left: 0;
	}
	.hero h1, .news h2, .diagnosis h2, .languages h2, .features h2 {
		font-size: 1.5rem;
	}
	.no-wrapper p { font-size: 14px; }

	aside#sidebar-progress {
		width: 220px;
		right: -280px;
	}

	.select-wrap .select {
		width: 100% !important;
		box-sizing: border-box;
		padding: 12px !important;
		margin-left: 0 !important;
		margin: 6px 0;
	}

	.tool-btn.next-btn {
		width: 100%;
		box-sizing: border-box;
		padding: 12px !important;
	}
}

/* タブレット用 (769px〜1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.25rem; }
	h3 { font-size: 1.1rem; }
	h4 { font-size: 1rem; }
	h5 { font-size: 0.95em; }
	h6 { font-size: 0.85rem; }
	body { font-size: 16px; }
	header h1 { font-size: 1.6rem; }
	.hero h1, .news h2, .diagnosis h2, .languages h2, .features h2 { font-size: 2.2rem; }
	.hero, .news { padding-top: 8rem; padding-bottom: 8rem; }
	aside#sidebar-progress { width: 260px; right: -320px; }
}

/* デスクトップ用 (1025px以上) */
@media screen and (min-width: 1025px) {
	h1 { font-size: 2.4rem; font-weight: 800; }
	h2 { font-size: 1.8rem; font-weight: 700; }
	h3 { font-size: 1.4rem; font-weight: 600; }
	p, li { font-size: 1rem; line-height: 1.8; color: var(--text-color); }
	small { font-size: 0.85rem; color: #666; }
	body { font-size: 18px; }
	header h1 { font-size: 1.8rem; }
	.hero h1 { font-size: 3rem; }
	.hero, .news { padding-top: 10rem; padding-bottom: 10rem; }
	aside#sidebar-progress { width: 280px; right: -450px; }
}
/* ----------------------------
スタート画面タイトル
----------------------------- */
#start h3,
#question-box h3,
#result-box h3 {
	margin-bottom: 1.5rem;
	font-weight: bold;
	color: #2B2721;
}

/* ----------------------------
共通ボタン
----------------------------- */
.tool-btn {
	background: #009999;
	border: 2px solid #009999;
	border-radius: 50px;
	box-shadow: 2.8px 2.8px 5px rgba(100, 100, 100, 0.1),
		-2.8px -2.8px 5px rgba(255, 255, 255, 1.0);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 20px 50px 20px 20px; /* 右に矢印分のスペースを確保 */
	display: inline-block;
	text-align: center;
	position: relative;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* 無効状態 */
.tool-btn.is-inactive {
	background: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
	pointer-events: none; 
}
.tool-btn.is-inactive::after {
	border-color: transparent transparent transparent #eee;
}

/* ボタン右矢印 */
.tool-btn::after {
	content: "";
	border-style: solid;
	border-width: 7px 0 7px 10px;
	border-color: transparent transparent transparent #fff;
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	transition: border-color 0.2s ease-in-out;
}

/* ホバー時 */
@media screen and (min-width:761px) {
	.tool-btn:hover {
		background: #fff;
		color: #009999;
	}
	.tool-btn:hover::after {
		border-color: transparent transparent transparent #009999;
	}
}

/* ボタンラップ */
.btn-wrap {
	margin-top: 50px;
	text-align: center;
}

/* ----------------------------
質問ボックス
----------------------------- */
#question-box h3 {
	display: flex;
	flex-direction: column; /* 横並びじゃなくて縦に */
}
#question-box h3 .num {
	font-weight: bold;
	color: #009999;
}
#question-box h3 .small {
	font-weight: bold;
	color: #2B2721;
}

/* 選択肢 */
.select-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.select-wrap .select {
	border: none;
	border-radius: 50px;
	font-weight: bold;
	padding: 20px;
	margin-left: 12px;
	width: calc((100% - 40px)/3);
	background: #f4f4f4;
	color: #2B2721;
	box-shadow: 2.8px 2.8px 5px rgba(100, 100, 100, 0.1),
		-2.8px -2.8px 5px rgba(255, 255, 255, 1.0);
	cursor: pointer;
	transition: all 0.2s ease;
}
.select-wrap .select:hover,
.select-wrap .select.selected {
	box-shadow: inset 2.8px 2.8px 5px rgba(0, 0, 0, 0.2),
		inset -2.8px -2.8px 5px rgba(255, 255, 255, 1.0);
	background: #f4f4f4;
	color: #2B2721;
}

/* ----------------------------
結果タイトル
----------------------------- */
#result-box,
#question-box,
#start {
	margin-top: 2rem;
	padding: 2rem;
	background: #f4f4f4;
	border-radius: 20px;
	box-shadow: inset 2.8px 2.8px 5px rgba(100, 100, 100, 0.1),
		inset -2.8px -2.8px 5px rgba(255, 255, 255, 1.0);
	font-size: 1.3rem;
	color: #2B2721;
	text-align: center;
	animation: fadeIn 0.6s ease;}

#result-box h3 {
	margin-bottom: 1rem;
	color: #009999;
}

#question-box h3 {
	display: flex;
	flex-direction: row; /* 横並びに */
	align-items: center; /* 縦位置を揃える */
}
#question-box h3 .num {
	font-weight: bold;
	color: #009999;
}
#question-box h3 .small {
	font-weight: bold;
	color: #2B2721;
}

/* FAQ項目（カード風） */
.faq-item {
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	margin-bottom: 1em;
	padding: 1em 1.2em;
	transition: box-shadow 0.3s;
}

.faq-item:hover {
	box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* 質問部分 */
.faq-question {
	font-size: 1.1rem;
	font-weight: bold;
	color: #2B2721;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6em;
	position: relative;
	transition: color 0.3s;
	line-height: 1.5; /* 高さを揃える */
}

/* Qのバッジ */
.faq-question::before {
	content: "Q";
	display: inline-block;
	background: var(--accent);  /* アクセントカラーを使用 */
	color: #fff;
	font-weight: bold;
	border-radius: 6px;
	padding: 0.25em 0.6em;
	font-size: 0.85rem;
	flex-shrink: 0;
	line-height: 1.2;
}

/* 質問アイコン */
.faq-question::after {
	content: "＋";
	position: absolute;
	right: 0;
	font-size: 1.2rem;
	transition: transform 0.3s;
	color: var(--accent);
}

.faq-item.active .faq-question::after {
	content: "－";
	transform: rotate(180deg);
}

/* 回答部分 */
.faq-answer {
	display: none;
	margin-top: 0.8em;
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
	align-items: flex-start;
	gap: 0.6em;
	animation: fadeIn 0.4s ease;
}

/* アニメーション */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}
/* アニメーション */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.diagnosis {
	text-align: center;          /* 全体を中央寄せ */
	margin-bottom: 3rem;
}

.diagnosis-link {
	text-align: center;
	margin-bottom: 2rem;
}

.diagnosis-link h2 {
	font-size: 1.8rem;
	color: #446e72;
	margin-bottom: 1rem;
}

.diagnosis-link .btn {
	display: inline-block;
	background: #009999;
	color: #fff;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: bold;
	text-decoration: none;
	transition: 0.2s;
}

.diagnosis-link .btn:hover {
	background: #fff;
	color: #009999;
	border: 2px solid #009999;
}