/*
Theme Name: Original Theme
Author: Yuka
Description: Jisaku HTML base theme
Version: 1.0
*/


/* ===============================
カラーバリエーション
================================ */
:root {
	--main-bg: #f6f6f6;
	--main-color: #009999;   /* 見出しや強調 */
	--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;
}

a {
	color: #487d8b;
}

a:hover {
	color: #a07c5c;	
}

img {
	margin: 2rem 0;
}


/* ===============================
ヘッダー
================================ */
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;
}

.title--hidden h1 {
	visibility: hidden;
}

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);
}

.summary-header {
	position: relative;
	background: var(--accent);
	color: #fff;
	font-size: 1.3rem;
	font-weight: bold;
	padding: 0.8em 1.2em;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	margin: 2em 0 1em;
}

.summary-header::before {
	content: "✦";
	margin-right: 0.5em;
}

/* ===============================
フッター
================================ */
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 {
	margin-right: 1rem;
	font-size: 1.2rem;
	transition: transform 0.3s, color 0.3s;
}

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

.footer-social svg path:hover {
	transform: translateY(-2px);
	fill: #6fc3df !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: #009999;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.3s, transform 0.2s;
}

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

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

.footer-other-sites {
	margin-top: 1rem;
	font-size: 0.85rem;
}

.footer-other-sites .other-sites-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #ccc;
}

.footer-other-sites ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-other-sites li {
	margin-bottom: 0.4rem;
}

.footer-other-sites a {
	color: #ccc;
	text-decoration: none;
	line-height: 1.4;
}

.footer-other-sites a:hover {
	text-decoration: none;
	color: #6fc3df;
}

/* ===============================
サイドバー
================================ */
/* オーバーレイ */
#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 .sidebar-inner {
	padding: 1.5em 0 2em 0;
	overflow-y: auto;
	flex: 1;
}

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;
	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;
}

#sidebar-progress a {
	text-decoration: none;
	font-weight: normal;
}

/* スクロールバー */
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; }

#sidebar-progress .signin-btn,
#sidebar-progress .dashboard-btn {
	display: block;
	width: 100%;
	padding: 0.6rem 1rem;
	font-size: 1rem;
	border: none;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	margin-bottom: 1em;
}

#sidebar-progress .signin-btn:hover,
#sidebar-progress .dashboard-btn:hover {
	opacity: 0.85;
}

/* ===============================
見出しデザイン
================================ */
.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;
}

/* ===============================
ボタン
================================ */
.btn-group {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.btn.sub {
	background: #f9f9f9;
	border: 1.5px solid #ccc;
	color: #555;
	box-shadow: none;
}

.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;
}

@media screen and (max-width: 768px) {

	.btn-group {
		flex-direction: column;
		gap: 0.6rem;
	}

	.btn {
		width: 100%;
		padding: 12px 0;
	}

	.btn.sub {
		padding: 10px 0;
	}
}

/* ===============================
導入部
================================ */
.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,
.hljs-operator,
.hljs-tag {
	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 {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	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 {
	border: 1px solid #ddd;
	padding: 0.8rem;
	text-align: center;
}

.wp-block-table thead {
	border-bottom: none !important;
}

.wp-block-table tbody {
	border-top: none !important;
}

/* スマホの横スクロール完全禁止 */
@media screen and (max-width: 768px) {

	/* 親で横スクロールを消す */
	.wp-block-table,
	.wp-block-table table,
	.wp-block-table-wrapper {
		overflow-x: hidden !important;
		font-size: 11px;
	}

	/* テーブルを絶対にはみ出させない */
	.wp-block-table table,
	.wp-block-table {
		max-width: 100% !important;
		width: 100% !important;
		font-size: 11px;
	}

	/* セルの中身で崩れないように */
	.wp-block-table th,
	.wp-block-table td {
		white-space: normal !important;
	}
}

/* ===============================
アコーディオン
================================ */
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::before {
	content: "" !important;
}

#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.2rem; }
	h2 { font-size: 1.05rem; }
	h3 { font-size: 0.95rem; }
	h4 { font-size: 0.9rem; }
	h5 { font-size: 0.85rem; }
	h6 { font-size: 0.8rem; }
	.hero {
		padding-top: 7rem;
		padding-bottom: 6rem;
		left: 0;
	}
	.news {
		padding-top: 6rem;
		padding-bottom: 5rem;
		left: 0;
	}
	.hero h1, .news h2, .diagnosis h2, .languages h2, .features h2 {
		font-size: 1.15rem;
	}
	.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;
	}

	#start p {
		font-size: 16px;
	}
}

/* タブレット用 (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;
}

.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;
}

.intro-text {
	text-align: center;
}

/* ----------------------------
お問い合わせ
----------------------------- */
/* ラベル */
.forminator-label {
	display: block;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #487d8b;
	margin-bottom: 8px;
	text-transform: uppercase;
	font-weight: 600;
	transition: color 0.3s ease;
}

/* 入力欄 */
.forminator-input,
.forminator-textarea {
	width: 100%;
	border: 1px solid #d9dee3;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.75);
	padding: 14px 18px;
	font-size: 15px;
	color: #252a65;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.forminator-input:hover,
.forminator-textarea:hover {
	border-color: #a1beb0;
	background: rgba(255, 255, 255, 0.95);
}

.forminator-input:focus,
.forminator-textarea:focus {
	border-color: #487d8b;
	box-shadow: 0 0 0 4px rgba(72, 125, 139, 0.2);
	outline: none;
	background: #fff;
	transform: translateY(-1px);
}

/* ラジオボタン */
.forminator-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.forminator-radio input[type="radio"] {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 1.8px solid #b8c9c0;
	border-radius: 50%;
	background: #fff;
	position: relative;
	transition: all 0.25s ease;
	outline: none;
}

.forminator-radio input[type="radio"]:checked {
	border-color: #487d8b;
	background: radial-gradient(circle at center, #487d8b 45%, transparent 46%);
	box-shadow: 0 0 0 3px rgba(72, 125, 139, 0.15);
}

.forminator-radio:hover input[type="radio"] {
	border-color: #487d8b;
}

.forminator-radio-label {
	font-size: 15px;
	color: #252a65;
	transition: color 0.25s ease;
}

.forminator-radio:hover .forminator-radio-label {
	color: #487d8b;
}

/* 送信ボタン */
.forminator-button-submit {
	display: inline-block;
	background: #487d8b;
	border: 2px solid #487d8b;
	border-radius: 50px;
	box-shadow:
		3px 3px 6px rgba(72, 125, 139, 0.15),
		-3px -3px 6px rgba(255, 255, 255, 0.9);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 40px;
	text-align: center;
	position: relative;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
}

.forminator-button-submit:hover {
	background: #fff;
	color: #487d8b;
	box-shadow:
		inset 2px 2px 5px rgba(72, 125, 139, 0.1),
		inset -2px -2px 5px rgba(255, 255, 255, 0.6),
		0 0 12px rgba(72, 125, 139, 0.2);
	transform: translateY(-2px);
}

.forminator-button-submit:active {
	transform: translateY(1px);
	box-shadow:
		inset 3px 3px 6px rgba(72, 125, 139, 0.25),
		inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}
/* 必須マーク */
.forminator-required {
	color: #e05b5b;
	font-weight: bold;
}

/* メッセージエリア */
.forminator-response-message {
	background: rgba(72, 125, 139, 0.1);
	border: 1px solid rgba(72, 125, 139, 0.25);
	border-radius: 10px;
	padding: 12px 24px;
	font-size: 14px;
	margin-bottom: 25px;
	color: #252a65;
}

/* レスポンシブ */
@media (max-width: 768px) {
	form.forminator-custom-form {
		padding: 35px 25px;
	}
}

/* ----------------------------
サインイン
----------------------------- */
.auth-wrapper {
	min-height: 70vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.auth-card {
	width: 100%;
	max-width: 380px;
	min-height: 420px;
	padding: 2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	text-align: center;
	display: flex;
	flex-direction: column;
}

.auth-body {
	flex: 1;
}

/* tabs */

.auth-tabs {
	display: flex;
	margin-bottom: 1.5rem;
	background: #eef3f3;
	border-radius: 999px;
	padding: 0.3rem;
}

.auth-tabs .tab {
	flex: 1;
	padding: 0.6rem;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 0.9rem;
	border-radius: 999px;
	color: var(--main-color);
	transition: background 0.2s, color 0.2s;
}

.auth-tabs .tab.active {
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}

/* forms */

.auth-form {
	display: none;
}

.auth-form.active {
	display: block;
}

.auth-footer {
	margin-top: auto;
	padding-top: 1.2rem;
	border-top: 1px solid #eee;
}

.auth-submit {
	width: 100%;
	padding: 0.9rem;
	border-radius: 999px;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	background: var(--accent);
	color: #fff;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.auth-submit:hover {
	background: var(--sub-accent);
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.auth-submit:active {
	transform: translateY(1px);
}

.auth-card[data-mode="register"] .login-btn {
	display: none;
}

.auth-card[data-mode="register"] .register-btn {
	display: block;
}

.auth-footer .register-btn {
	display: none;
}

/* inputs */

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
	width: 100%;
	padding: 0.75rem 0.9rem;
	margin-bottom: 1rem;
	border-radius: 10px;
	border: 1px solid #ddd;
	background: #fafafa;
	font-size: 0.95rem;
	color: var(--text-color);
	box-sizing: border-box;
	transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-card input::placeholder {
	color: #aaa;
}

.auth-card input:focus {
	outline: none;
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(68,110,114,0.15);
}

/* hint */

.auth-hint {
	min-height: 1.2em;
	font-size: 0.8rem;
	color: #777;
	margin-bottom: 1rem;
	text-align: left;
}

/* button */

.auth-card button {
	width: 100%;
	padding: 0.85rem;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.auth-card button:hover {
	background: var(--sub-accent);
}

.auth-card button:active {
	transform: translateY(1px);
}

/* error */

.auth-error {
	color: #d63638;
	font-size: 0.85rem;
	margin-bottom: 1rem;
	text-align: left;
}

/* ログイン済みメッセージ */
.login-message-card {
	max-width: 360px;
	margin: 2rem auto;
	padding: 2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
	text-align: center;
}

.login-message-card p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	color: #333;
}

.login-message-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.login-message-actions a {
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	text-decoration: none;
	color: #fff;
	background: var(--accent);
	transition: background 0.2s, transform 0.1s;
}

.login-message-actions a:hover {
	background: var(--sub-accent);
	transform: translateY(-1px);
}

/* ===============================
User Dashboard (シンプル版)
================================ */
#user-dashboard {
	max-width: 100%;
	margin: 2rem auto;
	font-family: 'Noto Sans JP', sans-serif;
	color: var(--text-color);
	padding: 0 1rem; /* 画面左右に余白を追加 */
}

.greeting {
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--main-color);
	margin-bottom: 2rem;
	text-align: center;
}

#toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #111;
	color: #fff;
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	font-size: 0.85rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s, transform .3s;
	z-index: 9999;
}

#toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-6px);
}

/* カード共通 */
.summary-card, .category-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
	color: inherit;
	padding: 1rem 1.2rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	overflow: hidden; /* はみ出さないように調整 */
}

.summary-card {
	margin-bottom: 1.5rem;
}

.summary-card canvas {
	height: 220px !important; /* グラフサイズを調整 */
}

.summary-card:hover, .category-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-title {
	font-weight: 600;
	color: var(--main-color);
	font-size: 1rem;
	margin-bottom: 0.5rem;
	text-decoration: none;
}

/* カテゴリグリッド (レスポンシブ対応) */
.dashboard-grid.category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem; /* カード間の余白を調整 */
	margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
	.dashboard-grid.category-grid {
		grid-template-columns: 1fr; /* カテゴリカードを1列表示 */
		gap: 0.8rem; /* スマホ時にカード間隔を狭く */
	}

	.overview-graphs {
		grid-template-columns: 1fr;
	}

	.summary-card {
		margin-bottom: 1rem;
	}

	.dashboard-tabs {
		flex-direction: column; /* タブを縦並び */
		gap: 0.5rem;
	}

	.dashboard-tab {
		width: 100%; /* タブをフル幅に */
		padding: 0.8rem;
		text-align: center;
	}
}

/* 進捗バー */
.progress-bar {
	position: relative;
	height: 12px;
	background: #f0f0f0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-bar span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--accent);
	border-radius: 6px;
	transition: width 0.6s ease;
}

.progress-bar .progress-text {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
}

/* ユーザー情報 */
.account-card {
	max-width: 720px;
	margin: 0 auto; 
	padding: 0 0.5rem;   
}

.account-row {
	display: grid;
	grid-template-columns: 160px 1fr;
	align-items: center;
	padding: 0.6rem 0;
}

.account-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #666;
}

.account-value {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.account-value input {
	width: 320px;
	padding: 0.6rem 0.8rem;
	border-radius: 8px;
	border: 1px solid #ddd;
}

#save-email-btn,
#save-display-name-btn {
	width: auto;             /* 入力欄の幅に依存しない */
	padding: 0.55rem 1rem;   /* ボタン内余白 */
	white-space: nowrap;     /* 改行防止 */
	flex-shrink: 0;          /* 縮まらないように */
}

.account-edit {
	font-size: 0.85rem;
	color: var(--accent);
	text-decoration: none;
	font-weight: 600;
}

.account-edit:hover {
	text-decoration: underline;
}

.account-divider {
	margin: 1.2rem 0;
	border: none;
	border-top: 1px solid #eee;
}

.account-actions {
	margin-left: 160px;
	margin-top: 0.8rem;
}

#change-password-btn {
	width: 100%;
	max-width: 320px;
	padding: 0.65rem 1rem;
	border-radius: 10px;
	background: #f6f7f9;
	color: var(--accent);
	font-weight: 600;
	border: 1px solid #d8dbe2;
	box-shadow: none;
	transition: background .15s, color .15s, border-color .15s;
}

#change-password-btn:hover {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.text-btn {
	padding: 0.55rem 1rem;
	border-radius: 10px;
	background: #f6f7f9;
	color: var(--accent);
	font-weight: 600;
	border: 1px solid #d8dbe2;
	cursor: pointer;
	transition: .15s;
}

.text-btn:hover {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.text-btn.success {
	background: #22c55e;
	color: #fff;
	border-color: #22c55e;
}

.account-danger {
	display: flex;
	justify-content: center;
	margin-left: 0;
	margin-top: 1.5rem;
}

.logout-btn {
	background: none;
	border: none;
	padding: 0;
	color: #999;
	font-size: 0.85rem;
	cursor: pointer;
}

.logout-btn:hover {
	color: #e54848;
	text-decoration: underline;
}

/* グラフ */
.summary-card {
	padding: 1.2rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;      /* ← 横中央 */
	justify-content: flex-start;
}

.card-title {
	font-weight: 600;
	font-size: 1rem;
	color: var(--main-color);
}

.overview-graphs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

@media (max-width: 768px) {
	.overview-graphs {
		grid-template-columns: 1fr;
	}

	.summary-card {
		margin-bottom: 1rem;
	}
}

/* タブ表示 */
.dashboard-tabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.dashboard-tab {
	padding: .6rem 1.2rem;
	border-radius: 999px;
	cursor: pointer;
	background: #eee;
	font-weight: 600;
}

.dashboard-tab.active {
	background: var(--accent);
	color: #fff;
}

.tab-content { 
	display: none; 
}

.tab-content.active { 
	display: block; 
}

/* KPIカード */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.kpi-grid a {
	text-decoration: none;
}

.kpi-card {
	background:#fff;
	border-radius:14px;
	padding:1rem;
	box-shadow:0 6px 20px rgba(0,0,0,.06);
	text-align:center;
}

.kpi-value {
	font-size:1.6rem;
	font-weight:700;
	color:var(--accent);
}

/* フォーム共通 */
.form-row {
	display:flex;
	align-items:center;
	gap:1rem;
	margin-bottom:1rem;
}

.form-row label {
	width:120px;
	font-weight:600;
}

.form-row input {
	flex:1;
	padding:.5rem .7rem;
	border-radius:8px;
	border:1px solid #ccc;
}

.form-row button {
	padding:.5rem 1.2rem;
	border:none;
	border-radius:8px;
	background:var(--accent);
	color:#fff;
	cursor:pointer;
}

/* カレンダー */
#learningCalendar {
	margin-top: 1rem;
	padding: 1rem;
	min-height: 420px;
	background: #f9f9f9;
	border-radius: 8px;
}

.fc-daygrid-event {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin: auto;
}

.fc-event-title {
	display: none;
}

/* 最近学習リスト */
.recent-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.recent-list li {
	font-size: 0.9rem;
	margin-bottom: 0.5rem; /* アイテム間の余白を増やして見やすく */
}

.recent-list li a {
	color: var(--text-color);
	text-decoration: none;
}

.recent-list li a:hover {
	color: var(--accent);
}

@media (max-width: 768px) {

	/* 全体余白 */
	#user-dashboard {
		margin: 1rem auto;
		padding: 0 0.8rem;
	}

	.greeting {
		font-size: 1.4rem;
		margin-bottom: 1.2rem;
	}

	/* ===== タブ ===== */
	.dashboard-tabs {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		background: #f3f3f3;
		padding: 0.4rem;
		border-radius: 999px;
		gap: 0.4rem;
	}

	.dashboard-tab {
		padding: 0.8rem 0;
		border-radius: 999px;
		font-size: 0.95rem;
		text-align: center;
		background: transparent;
	}

	.dashboard-tab.active {
		background: var(--accent);
		color: #fff;
		box-shadow: 0 4px 10px rgba(0,0,0,.15);
	}

	/* ===== 最近学習したレッスン ===== */
	.recent-cards li {
		background:#f9fafb;
		border-radius:10px;
		padding:0.8rem 1rem;
		margin-bottom:0.6rem;
	}

	.recent-cards li a {
		display:block;
		font-size:0.95rem;
		line-height:1.4;
	}

	/* ===== KPI ===== */
	.kpi-grid {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.kpi-card {
		padding: 0.9rem;
	}

	.kpi-value {
		font-size: 1.4rem;
	}

	/* ===== グラフ ===== */
	.overview-graphs {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.summary-card canvas {
		height: 180px !important;
	}

	/* ===== カテゴリ ===== */
	.dashboard-grid.category-grid {
		grid-template-columns: 1fr;
	}

	/* ===== アカウント情報 ===== */
	.account-row {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.account-label {
		font-size: 0.8rem;
		color: #777;
	}

	.account-card-value input[type="email"] {
		width: 100%;
		background: #f6f7f8;
		border: none;
		font-size: 0.95rem;
		color: #555;
	}

	.account-value {
		width: 100%;
	}

	.account-value input {
		width: 100%;
		max-width: 100%;
		white-space: nowrap;
		text-align: center;
		box-sizing: border-box;
	}

	.account-card-value button {
		width: 100%;
		margin-top: 0.4rem;
		background: #e5e5e5;
		color: #333;
		font-weight: 600;
	}

	/* パスワード変更ボタン */
	.account-actions {
		display: flex;          /* ← 必須 */
		justify-content: center;
		margin-left: 0;         /* ← これが超重要 */
	}

	#tab-learning .summary-card {
		align-items: stretch;
	}

	.recent-list li {
		background: #f9fafb;
		border-radius: 12px;
		padding: 0.9rem 1rem;
		margin-bottom: 0.6rem;
	}

	.recent-list li a {
		display: block;
		font-size: 0.95rem;
		line-height: 1.45;
	}

	.logout-btn {
		text-align: center;
	}

	/* ===== 最近学習 ===== */
	.recent-list li {
		font-size: 0.95rem;
		line-height: 1.4;
	}
}

.extra-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
	gap: 15px;
	margin-top: 15px;
}

.extra-card {
	display: block;
	padding: 18px;
	background: #fff;
	border-radius: 10px;
	text-decoration: none;
	color: #111;
	font-size: 14px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: 0.2s ease;
}

.extra-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


/* ===============================
バッジ
================================ */
.badge-grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
	gap:1.2rem;
	margin-top:1.5rem;
}

.badge-card{
	border-radius:16px;
	padding:1rem .8rem;
	text-align:center;
	box-shadow:0 6px 18px rgba(0,0,0,.08);
	transition:.2s;
}

.badge-card:hover{
	transform:translateY(-4px);
	box-shadow:0 10px 26px rgba(0,0,0,.12);
}

.badge-icon{font-size:2.3rem;margin-bottom:.3rem;}
.badge-name{font-size:.85rem;font-weight:600;}

.badge-condition{
	margin-top:.4rem;
	font-size:.7rem;
	color:#555;
}

.is-locked{
	opacity:.4;
	filter:grayscale(1);
}

.badge-type-count{background:linear-gradient(135deg,#fff7e6,#ffe3a3);}
.badge-type-language{background:linear-gradient(135deg,#e8f4ff,#cce5ff);}
.badge-type-tag{background:linear-gradient(135deg,#f3e8ff,#e0cfff);}

.badge-title{
	font-size:1.5rem;
	font-weight:700;
	text-align:center;
	margin-bottom:0.4rem;
	color:#333;
}

.badge-summary{
	text-align:center;
	font-size:0.9rem;
	color:#555;
	margin-bottom:1rem;
}

.badge-summary .badge-count{
	font-weight:700;
	color:#2a9d8f;
}

.badge-summary .badge-total{
	font-weight:600;
	color:#888;
}

.checkout-shell {
	display: flex;
	justify-content: center;
	padding: 80px 20px;
	background: #f7f8fa;
}

.checkout-box {
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	padding: 40px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.checkout-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.checkout-header h2 {
	font-size: 20px;
	font-weight: 600;
}

.price {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 1px;
}

.divider {
	height: 1px;
	background: #eee;
	margin: 25px 0;
}

.row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
	font-size: 14px;
	color: #555;
}

.main-btn {
	margin-top: 30px;
	width: 100%;
	padding: 15px;
	font-size: 15px;
	font-weight: 600;
	background: #009999;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.15s ease;
}

.main-btn:hover {
	opacity: 0.85;
}

a.main-btn {
	text-decoration: none;
}

a.main-btn:hover {
	color: white;
}

.note {
	text-align: center;
	margin-top: 15px;
	font-size: 12px;
	color: #999;
}
.complete-shell {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 100px 20px;
	background: #f7f8fa;
}

.complete-card {
	background: #fff;
	padding: 50px 40px;
	border-radius: 16px;
	text-align: center;
	max-width: 460px;
	width: 100%;
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
	animation: fadeUp 0.6s ease;
}

.complete-desc {
	margin: 20px 0 30px;
	color: #555;
	line-height: 1.6;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.checkmark-circle {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #009999;
	margin: 0 auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: pop 0.4s ease;
}

.checkmark {
	width: 18px;
	height: 32px;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: rotate(45deg);
}

@keyframes pop {
	from { transform: scale(0.7); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}