@charset "UTF-8";

:root {
	--ta-green: #008238;
	--ta-lime: #a8e063;
	--ta-light-bg: #f7f7f7;
	--ta-orange: #f39800;
}

body {
	margin: 0;
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
	color: #333;
	line-height: 1.8;
	background-color: #fff;
}

.inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

/* --- ヘッダー：ロゴの左寄せ修正 --- */
.site-header {
	padding: 24px 0;
	background: #fff;
	position: relative;
	z-index: 10;
	border-bottom: 1px solid #eee;
}

.logo img {
	height: 32px;
	width: auto;
	display: block;
	margin-left: 0;
	margin-right: 0;
}

/* --- 講座紹介セクション (hd-page) --- */
.hd-page {
	position: relative;
	background: linear-gradient(135deg, var(--ta-green) 0%, var(--ta-lime) 100%);
	background-image:
		repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 20%, transparent 20%, transparent 40%),
		linear-gradient(135deg, var(--ta-green) 0%, var(--ta-lime) 100%);
	color: #fff;
	padding: 60px 0 160px;
	/* 文字下の背景を広く確保 */
	overflow: hidden;
}

.hd-page::after {
	content: "";
	position: absolute;
	bottom: -70px;
	left: 50%;
	width: 150%;
	height: 150px;
	background-color: #fff;
	border-radius: 50% 50% 0 0;
	transform: translateX(-50%);
	z-index: 1;
}

.hd-page__title--parent {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	line-height: 1.2;
}

.hd-page__title--self {
	font-size: clamp(32px, 5vw, 48px);
	margin: 0;
	font-weight: 800;
	text-shadow: none;
	line-height: 1.2;
	letter-spacing: 0.05em;
}

.content-main {
	padding-top: 40px;
}

/* --- 見出しスタイル7 --- */
.is-style-hd-style7 {
	background-color: #3C9522 !important;
	color: #ffffff !important;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	text-align: center;
	padding: 15px 20px;
	margin: 0 0 40px;
	font-weight: 700;
	line-height: 1.25;
	font-size: clamp(18px, 3.5vw, 24px);
	box-sizing: border-box;
	display: block;
}

.intro-description {
	text-align: left;
	margin: 40px 0 60px;
	font-size: 1rem;
	line-height: 1.9;
}

/* --- 教材グリッド --- */
.textbook-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin-bottom: 80px;
}

.textbook-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.textbook-img {
	width: 100%;
	max-width: 260px;
	/* A5/B5共通の比率「1 : 1.414」に固定 */
	aspect-ratio: 1 / 1.414;

	margin: 0 auto 25px;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.textbook-img img {
	width: 100%;
	height: 100%;
	/* 左右の余白を消すための重要設定：
       coverにすることで、数ピクセルの余白の差を無視して枠を埋め尽くします
    */
	object-fit: cover;

	box-shadow: none !important;
	margin-bottom: 0 !important;
}

.textbook-detail h3 {
	display: block;
	text-align: center;
	color: var(--ta-green);
	margin-bottom: 15px;
	font-size: 1.25rem;
	line-height: 1.6;
}

.textbook-detail p {
	text-align: left;
	font-size: 0.95rem;
	margin-bottom: 25px;
}

.btn-retail {
	display: inline-block;
	background: var(--ta-orange);
	color: #fff;
	padding: 12px 40px;
	text-decoration: none;
	border-radius: 30px;
	font-weight: bold;
	transition: 0.3s;
}

.label-category {
	display: inline-block;
	vertical-align: middle;
	font-size: 0.75rem;
	font-weight: bold;
	line-height: 1;
	padding: 3px 6px;
	margin-right: 8px;
	color: #fff;
	border-radius: 2px;
	white-space: nowrap;
}

.label-daisotsu {
	background-color: #00a0e9;
}

.label-kosotsu {
	background-color: #9b7cb6;
}

/* 準備中専用のスタイル */
.btn-retail.is-preparing {
	background-color: #ccc;
	/* グレーアウト */
	cursor: not-allowed;
	/* マウスカーソルを禁止マークに */
	pointer-events: none;
	/* クリックイベントを完全に無効化 */
	opacity: 0.7;
}

/* --- フッター --- */
.site-footer {
	background-color: #d9e4df;
	color: #333;
	text-align: center;
	padding: 40px 0;
}

.footer-logo img {
	height: 32px;
	width: auto;
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 12px;
	color: #666;
}

/* --- 上に戻るボタン --- */
.page-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
}

.page-top__link {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	background-color: rgba(0, 130, 56, 0.7);
	border-radius: 50%;
	transition: 0.3s;
}

.arrow-up {
	display: block;
	width: 12px;
	height: 12px;
	border-top: 3px solid #fff;
	border-left: 3px solid #fff;
	transform: rotate(45deg);
	margin-top: 5px;
}

/* --- レスポンシブ設定 --- */
@media (max-width: 900px) {
	.site-header {
		padding: 16px 0;
	}

	.logo img,
	.footer-logo img {
		height: 26px;
	}

	.hd-page {
		padding: 40px 0 80px;
	}

	.hd-page::after {
		height: 80px;
		bottom: -40px;
	}

	.hd-page__title--parent {
		font-size: 14px;
	}

	.hd-page__title--self {
		font-size: 28px;
	}

	.textbook-grid {
		grid-template-columns: 1fr;
	}
}

@media print {

	/* 1. ボタンとフッターの間の余白を確保 */
	.content-main::after {
		content: "";
		display: block;
		height: 50px;
	}

	/* 2. もしボタンが途中で切れるのを防ぎたい場合はこれも追加 */
	.textbook-card {
		break-inside: avoid;
	}
}

/* --- コンテンツリスト・テーブルの共通設定 --- */
.content-main h3 {
	border-left: 5px solid var(--ta-green);
	padding: 5px 15px;
	margin: 40px 0 20px;
	font-size: 1.5rem;
	color: var(--ta-green);
	background: #f0f9f4;
}

/* --- 特集セクションのボックスデザイン --- */
.feature-item {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	transition: transform 0.2s ease;
}

.feature-item:hover {
	border-color: var(--ta-green);
	box-shadow: 0 4px 12px rgba(0, 130, 56, 0.08);
}

/* 特集タイトルの装飾 */
.feature-item h4 {
	color: var(--ta-green);
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
}

/* 「特集1」などの数字部分を強調するバッジ */
.feature-item h4::before {
	content: none;
	/* 前回の丸ポチを消す */
}

.feature-number {
	background: var(--ta-green);
	color: #fff;
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 10px;
	letter-spacing: 0.05em;
}

/* 説明文の調整 */
.feature-item p {
	font-size: 0.95rem;
	color: #555;
	margin: 0;
	line-height: 1.7;
}

/* --- テーブルのモダンデザイン --- */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 20px 0 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

table th,
table td {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
}

table th {
	background-color: #f8fbf9;
	color: var(--ta-green);
	font-weight: bold;
	text-align: left;
	width: 30%;
	vertical-align: middle;
}

table tr:last-child th,
table tr:last-child td {
	border-bottom: none;
}

table td a {
	display: inline-block;
	color: #0070cc;
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 4px;
	transition: 0.2s;
}

table td a:hover {
	background-color: #e6f2ff;
	text-decoration: underline;
}

/* --- 次回予告・注意書きセクション --- */
.notice-box {
	background-color: #fff9eb;
	border: 1px solid #ffeeba;
	padding: 20px;
	border-radius: 8px;
	margin: 40px 0;
}

/* --- 注意書きのぶら下げインデント設定 --- */
.list-caution {
	list-style: none;
	/* デフォルトの点を消す */
	padding: 0;
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

.list-caution li {
	position: relative;
	padding-left: 1.2em;
	/* 記号分の余白を作る */
	text-indent: -1.2em;
	/* 1行目だけ左に戻して記号を配置 */
	line-height: 1.6;
	margin-bottom: 5px;
}

.list-caution li::before {
	content: "※";
	display: inline-block;
	width: 1.2em;
	/* padding-leftと同じ値に設定 */
	text-align: center;
}

/* --- 配信予定セクション --- */
.schedule-info {
	background: #fdfdfd;
	border: 2px solid #eee;
	border-radius: 12px;
	padding: 30px;
	margin: 40px 0;
}

.schedule-info h3 {
	margin-top: 0;
	/* ボックス内なので上余白をリセット */
}

/* 配信内容のリストをカード風に */
.content-preview {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 20px 0;
	height: 100%;
	/* 親要素（行）の高さに合わせる */
}

.content-preview li {
	background: #fff;
	border: 1px solid var(--ta-green);
	border-left: 8px solid var(--ta-green);
	padding: 15px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.caption-small {
	font-size: 0.85rem;
	color: #888;
	margin-top: 10px;
}

/* --- 正誤情報のリンクボタン --- */
.seigo-links {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 20px;
	margin: 40px 0;
	flex-wrap: wrap;
}

.seigo-links li {
	flex: 1;
	min-width: 280px;
}

.seigo-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 2px solid #eee;
	color: #444;
	text-decoration: none;
	padding: 15px 20px;
	border-radius: 8px;
	font-weight: bold;
	transition: 0.3s;
	text-align: center;
}

.seigo-links a:hover {
	background: var(--ta-green);
	color: #fff;
	border-color: var(--ta-green);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 130, 56, 0.2);
}

/* イメージ画像の設定（大きさを抑えて中央寄せ） */
.main-visual-img {
	width: 90%;
	/* 基本は少し余裕を持たせる */
	max-width: 500px;
	/* ★ここでお好みの最大サイズに制限（400〜600pxがおすすめ） */
	display: block;
	margin: 40px auto;
	/* 上下の余白を確保しつつ中央寄せ */
	border-radius: 8px;
	/* 柔らかい印象に */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	/* 軽く浮かせて質感を出す */
}

/* --- タイトル内の更新日スタイル --- */
.hd-page__title--self {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	/* テキストの下端を揃える */
	gap: 15px;
	/* タイトルと日付の間の余白 */
}

.update-date {
	font-size: clamp(14px, 1.5vw, 18px);
	/* タイトルより大幅に小さく設定 */
	font-weight: 500;
	/* 少し細めにして存在感を抑える */
	opacity: 0.9;
	/* わずかに透過させて馴染ませる */
	letter-spacing: 0;
	/* 日付は見やすさ優先で字間を詰めない */
}

/* スマホ等でタイトルが長い場合に日付を改行させる設定 */
@media (max-width: 600px) {
	.hd-page__title--self {
		flex-direction: column;
		gap: 5px;
	}

	.update-date {
		margin-left: 0;
	}
}

@media (max-width: 768px) {

	/* テーブルをブロック要素に変更して縦並びにする */
	table,
	tbody,
	tr,
	th,
	td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}

	table {
		border: none;
		/* 外枠を消してスッキリさせる */
	}

	tr {
		margin-bottom: 20px;
		/* 特集ごとの隙間 */
		border: 1px solid #ddd;
		border-radius: 8px;
		overflow: hidden;
		background: #fff;
	}

	th {
		background-color: var(--ta-green) !important;
		/* スマホではヘッダー色を濃くして区切りを明確に */
		color: #fff !important;
		padding: 10px 15px;
		font-size: 0.9rem;
	}

	th br {
		display: none;
		/* スマホでは改行を消して一行に */
	}

	td {
		padding: 10px;
	}

	/* リンクをボタンのように大きくしてタップしやすくする */
	table td a {
		display: block;
		width: 100%;
		margin-bottom: 8px;
		padding: 12px 10px;
		background: #f9f9f9;
		border: 1px solid #eee;
		border-radius: 5px;
		font-size: 0.9rem;
		line-height: 1.4;
	}

	table td a:last-child {
		margin-bottom: 0;
	}

	/* 「①」「②」などの数字付きリンクの先頭を揃える */
	table td br {
		display: none;
		/* 余計な改行を消す */
	}
}

/* --- 余白の調整 --- */

/* 1. Contents見出し下の余白を抑える */
.content-main h3 {
	margin: 40px 0 15px;
	/* 下余白を20pxから15pxに微減 */
	/* 他のスタイルはそのまま */
}

/* 2. 導入文(intro-description)と特集(feature-item)の間隔を調整 */
.intro-description {
	margin-bottom: 25px;
	/* ここで特集1との間を調整 */
}

/* 3. 特集(feature-item)とテーブルの間隔を確保 */
.feature-item:last-of-type {
	margin-bottom: 40px;
	/* 最後の特集とテーブルの間をしっかり開ける */
}

/* 4. テーブル自体の上の余白を念のためリセット/再設定 */
table {
	margin-top: 0;
	/* 特集側で余白を制御するため0に */
	margin-bottom: 40px;
	/* 他のスタイルはそのまま */
}

/* 全ての画像から枠線とシャドウを削除 */
img,
.main-visual-img,
.banner,
.sample-img img {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}