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


/* ===============================
カラーバリエーション（Sky風）
================================ */
:root {
	--main-bg: #f6faff;
	--main-color: #1f3c88;          /* 濃いめのブルーグレー */
	--text-color: #2d3854;          /* 自然な読みやすいテキストカラー */
	--accent: #62b4ff;              /* 透明感ある空色 */
	--sub-accent: #b4d8ff;          /* 明るめ補助トーン */
	--gold: #f5e6b3;
	--white: #ffffff;
	--shadow-light: rgba(0, 0, 0, 0.05);
	--shadow-medium: rgba(0, 0, 0, 0.1);
}

/* ===============================
全体・ベース設定
================================ */
* { 
	color: var(--text-color); 
	padding-left: 0;
	font-size: 16px;
	line-height: 1.8;
}

body {
	background: linear-gradient(180deg, #edf5ff 0%, #e8f1ff 100%);
	color: var(--text-color);
	line-height: 1.8;
	margin: 0;
	padding: 1rem 0 0 0;
}

.wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	max-width: 1500px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	gap: 2rem;
	box-sizing: border-box;
}

/* メインコンテンツ */
main {
	flex: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	padding: 2.5rem;
	min-height: 80vh;
}

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

/* ===============================
ヘッダー
================================ */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 10px var(--shadow-light);
	box-sizing: border-box;
	z-index: 1000;
}

header h1 {
	font-size: 1.6rem;
	color: var(--main-color);
	margin: 0;
	letter-spacing: 0.03em;
}

header a {
	color: var(--main-color);
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.3s ease;
}

header a:hover {
	opacity: 0.7;
}

header #sidebar-toggle {
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	padding: 0 1em;
	transition: background 0.3s;
}

header #sidebar-toggle:hover {
	background: rgba(255,255,255,0.15);
}

/* ===============================
リンク・ボタン
================================ */
a.btn, .btn {
	background: var(--accent);
	color: var(--white);
	border-radius: 50px;
	padding: 10px 24px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 4px 12px var(--shadow-light);
	transition: all 0.3s ease;
}

a.btn:hover, .btn:hover {
	background: #7bc4ff;
	transform: translateY(-2px);
}

/* ===============================
フッター
================================ */
footer {
	background: linear-gradient(180deg, #1f3c88, #0d1c45);
	color: #fff;
	text-align: center;
	padding: 3rem 2rem;
	box-shadow: inset 0 8px 20px rgba(0,0,0,0.2);
}

footer .copyright {
	font-size: 0.85rem;
	color: #cbd9ff;
	margin-top: 2rem;
}

/* ===============================
サイドバー
================================ */
aside#sidebar-progress {
	width: 280px;
	background: #f9fbff;
	border: 1px solid #d9e7ff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	padding: 1.5rem;
	overflow: hidden;
	flex-shrink: 0;
}

/* サイドバー見出し */
aside#sidebar-progress h4 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 1rem;
	border-bottom: 2px solid rgba(98, 180, 255, 0.4);
	padding-bottom: 0.4rem;
}

aside#sidebar-progress ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

aside#sidebar-progress li {
	background: #fff;
	border: 1px solid #e0ebff;
	border-radius: 8px;
	margin-bottom: 0.8rem;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

aside#sidebar-progress li a {
	display: block;
	padding: 0.8rem 0 !important;
	color: inherit;
	text-decoration: none;
	width: 100%;
	height: 100%;
	transition: all 0.2s ease;
}

aside#sidebar-progress ul li::before {
	content: none;
}

/* --- スクロールバー控えめ --- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-thumb {
	background-color: var(--accent);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-track {
	background-color: #e0e8f5;
	border-radius: 10px;
}

/* --- サイドバー開閉用 --- */
#sidebar-toggle {
	display: none;
	font-size: 1.8rem;
	cursor: pointer;
	color: var(--accent) !important;
	background: transparent;
	border: none;
}

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

/* --- h1 --- */
h1 {
	color: var(--main-color);
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.04em;
	margin-bottom: 2rem;
	text-shadow: 0 2px 6px rgba(255,255,255,0.6);
}

/* --- h2 --- */
h2.wp-block-heading {
	font-size: 1.7rem;
	color: #fff;
	margin: 2.8rem 0 1.8rem;
	position: relative;
	padding: 0.9em 1em 0.9em 2.4em;
	background: linear-gradient(90deg, var(--accent), #5aa6ff);
	border-radius: 8px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

h2.wp-block-heading::before {
	content: '✦';
	position: absolute;
	left: 1em;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.2em;
	line-height: 1;
}

/* --- h3 --- */
h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--main-color);
	margin: 2.4rem 0 1.2rem;
	position: relative;
	padding-left: 1rem;
	border-left: 4px solid var(--accent);
}

/* --- h4 --- */
h4.wp-block-heading {
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--accent);
	margin: 1.8rem 0 0.8rem;
	padding-left: 0.5em;
	border-bottom: 2px dashed var(--accent);
	opacity: 0.95;
}

/* --- h5 --- */
h5 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--accent);
	margin: 1.5rem 0 0.8rem;
	padding-left: 0.4em;
	border-left: 3px solid rgba(98, 180, 255, 0.4);
}

/* --- h6 --- */
h6.wp-block-heading {
	font-size: 0.95rem;
	color: var(--accent);
	font-weight: 500;
	margin: 1rem 0 0.5rem;
	opacity: 0.7;
}

/* --- article-summary 専用 --- */
.article-summary h5 {
	color: var(--main-color);
	border: none !important;
	padding: 0 !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;
}

/* ===============================
リスト装飾
================================ */
ul {
	list-style-type: disc;
}

ul li {
	list-style-type: none;
	position: relative;
	padding-left: 1rem;
}

ul li::before {
	content: '◦';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-size: 1em;
}

/* ナンバリングリスト */
.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;
}

/* ===============================
ニュースセクション
================================ */
.news { 
	margin-top: 3rem;
	margin-bottom: 0;
	max-width: 100%;
	color: white;
	background: var(--accent);
	background-size: 400% 400%;
	animation: gradientShift 12s ease infinite;	
}

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

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

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

.title--hidden {
	display: none;
}

.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: var(--white);
	border-radius: 18px;
	padding: 2rem;
	box-shadow: 0 6px 16px var(--shadow-light);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px var(--shadow-medium);
}

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

/* ===============================
テーブル
================================ */
.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: 15px 0;
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	background-color: var(--white);
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

details[open] {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* summary部分 */
details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.8em 1.2em;
	font-weight: 600;
	cursor: pointer;
	background-color: var(--main-bg);
	border-bottom: 1px solid rgba(0,0,0,0.05);
	transition: background-color 0.2s;
}

details summary:hover {
	background-color: var(--sub-accent);
}

/* 矢印 */
details summary::after {
	content: '▸';
	transition: transform 0.3s ease, color 0.3s ease;
	color: var(--accent);
	font-size: 0.9em;
}

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

details {
	margin: 1rem !important;
}

/* 展開部分 */
details p {
	margin: 0;
	padding: 0.8em 1.2em;
	background-color: var(--main-bg);
	color: var(--text-color);
	font-weight: 500;
	line-height: 1.5;
	transition: opacity 0.3s, transform 0.3s;
	transform: translateY(-5px);
}

details[open] p {
	transform: translateY(0);
}

/* もしカードっぽくしたいなら */
details summary, details p {
	border-radius: 12px;
}

/* ===============================
コメント
================================ */
.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;
}

/* ===============================
レスポンシブ調整
================================ */
/* スマホ用 (最大768pxまで) */
@media screen and (max-width: 768px) {
	h1 { font-size: 1.2rem; }
	h2.wp-block-heading { font-size: 1.05rem; padding: 0.9em 1em 0.9em 52px; }
	h2.wp-block-heading::before { left: 20px; font-size: 1.1em; }
	h3 { font-size: 0.95rem; }
	h4 { font-size: 0.9rem; }
	h5 { font-size: 0.85rem; }
	h6 { font-size: 0.8rem; }
	.hero, .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;
	}
}

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

/* ----------------------------
お問い合わせ
----------------------------- */
/* ラベル */
.forminator-label {
	display: block;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--main-color);
	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: var(--main-color);
	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: var(--main-color);
	transition: color 0.25s ease;
}

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

/* 送信ボタン */
.forminator-button-submit {
	display: inline-block;
	background: var(--accent);
	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-color: #3D91DE;
	color: var(--sub-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 10px rgba(90,77,65,0.2);
}

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

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

/* ===============================
スマホ・タブレット向けレスポンシブ
================================ */
@media (max-width: 900px) {
	.wrapper {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1rem;
		gap: 1.5rem;
	}

	main {
		width: 100%;
		padding: 1.5rem;
		box-sizing: border-box;
	}

	section {
		max-width: 100%;
		padding: 0 0.5rem;
	}

	#sidebar-toggle {
		display: block;
	}

	/* サイドバーを画面外に隠す */
	aside#sidebar-progress {
		position: fixed;
		top: 70px; /* ヘッダーの下に配置 */
		right: -100%;
		width: 80%;
		height: calc(100% - 70px);
		background: #fff;
		box-shadow: -4px 0 12px rgba(0,0,0,0.15);
		overflow-y: auto;
		padding: 1.5rem;
		border-radius: 0;
		transition: right 0.3s ease;
		z-index: 999;
	}

	/* 開いた状態 */
	body.sidebar-open aside#sidebar-progress {
		right: 0;
	}

	/* 背景の暗幕 */
	body.sidebar-open::after {
		content: '';
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 998;
	}

	body.sidebar-open aside#sidebar-progress {
		top: 15px !important; 
		bottom: 15px !important;
		height: auto !important;
		border-radius: 12px;
		overflow-y: auto;
	}

	body.sidebar-open::after {
		top: 0 !important;
	}
}

/* 1200px以下：メイン幅を自然に縮める */
@media (max-width: 1200px) {
	.wrapper {
		padding: 2rem 1rem;
		gap: 1.5rem;
	}

	main {
		padding: 2rem;
	}
}

/* 900px以下：1カラム化（サイドバーはすでにトグル対応なのでOK） */
@media (max-width: 900px) {
	.wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	main {
		width: 100%;
		min-height: auto;
		padding: 1.5rem;
	}

	section {
		padding: 0 1rem;
	}

	header h1 {
		font-size: 1.1rem;
	}
}

/* 700px以下：文字サイズやカード幅の最適化 */
@media (max-width: 700px) {
	body {
		line-height: 1.7;
	}
	
	/* ブログカードを縦並びにする */
	.my-blogcard {
		flex-direction: column;
		text-align: left;
	}

	.my-blogcard .card-img {
		width: 100%;
		height: 160px;
		margin: 0 0 1rem 0;
	}

	/* ニュースページのリンクが詰まらないよう調整 */
	.news-item a {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.news-date {
		min-width: auto;
		margin-right: 0;
	}
}

/* 500px以下：スマホ最適化 */
@media (max-width: 500px) {
	/* ボタン大きすぎ対策 */
	.btn {
		font-size: 16px;
		padding: 8px 18px;
	}

	/* テーブル横スクロール許可 */
	.wp-block-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	/* STEP 見出し縮小 */
	.step-heading {
		font-size: 1.2rem;
		padding: 0.5rem 0.8rem;
	}
}

/* ----------------------------
アプリリンク
----------------------------- */
.appreach {
	text-align: left;
	padding: 15px;
	margin: 15px 0 50px 0;
	border: 1px solid #7C7C7C;
	overflow: hidden;
}
.appreach:after {
	content: "";
	display: block;
	clear: both;
}
.appreach p {
	margin: 0;
}
.appreach a:after {
	display: none;
}
.appreach__icon {
	float: left;
	border-radius: 10%;
	overflow: hidden;
	margin: 0 3% 0 0 !important;
	width: 25% !important;
	height: auto !important;
	max-width: 120px !important;
}
.appreach__detail {
	display: inline-block;
	font-size: 20px;
	line-height: 1.5;
	width: 72%;
	max-width: 72%;
}
.appreach__detail:after {
	content: "";
	display: block;
	clear: both;
}
.appreach__name {
	font-size: 16px;
	line-height: 1.5em !important;
	max-height: 3em;
	overflow: hidden;
}
.appreach__info {
	font-size: 12px !important;
}
.appreach__developper, .appreach__price {
	margin-right: 0.5em;
}
.appreach__posted a {
	margin-left: 0.5em;
}
.appreach__links {
	float: left;
	height: 40px;
	margin-top: 8px;
	white-space: nowrap;
}
.appreach__aslink img {
	margin-right: 10px;
	height: 40px;
	width: 135px;
}
.appreach__gplink img {
	height: 40px;
	width: 134.5px;
}
.appreach__star {
	position: relative;
	font-size: 14px !important;
	height: 1.5em;
	width: 5em;
}
.appreach__star__base {
	position: absolute;
	color: #737373;
}
.appreach__star__evaluate {
	position: absolute;
	color: #ffc107;
	overflow: hidden;
	white-space: nowrap;
}
