/* 1. 基本レイアウト（既存デザイン維持） */
html {
	height: 100%;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
	font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.8;
	color: #111;
	font-size: 15px;
	background-color: #f5f5f5;
	text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
main {
	flex: 1;
}
.container {
	max-width: 700px;
	margin: 0 auto;
	padding: 20px;
}
header {
	background-color: #333;
	color: #fff;
	text-align: center;
}
header h1 {
	margin: 0;
	font-size: 1.6rem;
	letter-spacing: 0.05em;
}
.subtitle {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-top: 5px;
}





/* 2. 各種セクション・ボックス */
.info-section {
	padding: 30px 0;
}
h2 {
	border-bottom: 2px solid #333;
	padding-bottom: 10px;
	margin-bottom: 30px;
	font-size: 1.4rem;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* h3の設定（CM通信） */
h3 {
	font-size: 1.2rem;
	color: #F15A24;
	margin-top: 20px;
	/* 上の余白を明示的に指定 */
	margin-bottom: 10px;
	/* 下の余白を明示的に指定 */
	padding: 0;
	/* 念のため内側の余白もリセット */
}
/* h4の設定（ビデオ通信） */
h4 {
	font-size: 1.2rem;
	/* h3と同じサイズ */
	color: #0071BC;
	margin-top: 20px;
	/* h3と数値を完全に合わせる */
	margin-bottom: 10px;
	/* h3と数値を完全に合わせる */
	padding: 0;
	font-weight: bold;
	/* 太さもh3に合わせるなら追加 */
}
.monotone h3, .monotone h4 {
	color: #111;
}
/* モノトーンの色に変更 */


.news-box {
	margin: 45px 0;
	padding: 12px 20px 20px;
	border: 1px solid #666;
	border-radius: 10px;
	background-color: #eee;
}
.news-box h2 {
	font-size: 1.1rem;
	margin-bottom: 15px;
	border-bottom: none;
	padding-bottom: 0;
}
.news-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.news-box li {
	font-size: 0.95rem;
	padding: 8px 0;
	border-bottom: 1px dashed #eee;
}
.news-box li:last-child {
	border-bottom: none;
}
.service-box {
	background: #ddd;
	border: 1px solid #999;
	padding: 0 20px 20px;
	margin-top: 25px;
	border-radius: 8px;
}
.small-text {
	font-size: 0.9rem;
	color: #333;
	background: #e5e5e5;
	padding: 15px;
	border-radius: 5px;
}
hr {
	border: 0;
	border-top: 1px solid #eee;
}





/* 3. テーブル・フォーム */
.simple-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 50px;
}
.simple-table th, .simple-table td {
	padding: 12px;
	border-bottom: 1px solid #999;
	text-align: left;
}
.simple-table th {
	width: 30%;
	font-weight: bold;
	color: #333;
}
.simple-form {
	margin-top: 20px;
}
.form-item {
	margin-bottom: 20px;
}
.form-item label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
}
.req {
	color: #d32f2f;
	font-size: 0.7rem;
	margin-left: 5px;
}
.form-item input, .form-item textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #333;
	border-radius: 4px;
	font-size: 1rem;
	background-color: #fdfdfd;
	box-sizing: border-box;
}
.submit-btn {
	width: 100%;
	padding: 20px;
	margin-bottom: 50px;
	background-color: #333;
	color: #ddd;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: 0.3s;
}
.submit-btn:hover {
	background-color: #000;
}


/* ex リンク */
.link-section {
	display: flex;
	gap: 21px;
	justify-content: center;
	margin: 40px 0;
}
.link-banner img {
	width: 150px;
	height: 42px;
	display: block;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
} 

/* 4. フッター・リンク */
footer {
	background-color: #333;
	color: #ddd;
	padding: 0;
	text-align: center;
	border-top: 1px solid #eee;
	width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
@media (hover: hover) {
	a:hover {
		opacity: 0.7;
	}
}





/* 5. Web版TOP（ボタンデザイン） */
.web-link-container {
	display: flex;
	gap: 20px;
	margin: 60px 0;
}
.web-button {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	transition: opacity 0.3s ease;
}
.web-button.cm {
	background-color: #F15A24;
}
.web-button.video {
	background-color: #0071BC;
}
.web-button .label, .web-button .sub-label {
	color: #ffffff !important;
}
.web-button .label {
	font-size: 1.4rem;
	font-weight: bold;
	margin-bottom: 8px;
}





/* 6. Web版 各誌（記事リスト） */
.cm-theme header {
	border-bottom: 4px solid #F15A24;
}
.video-theme header {
	border-bottom: 4px solid #0071BC;
}
.issue-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 30px;
}

/* 共通の記事ボタン */
.issue-item {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	background: #fff;
	border: 2px solid #333;
	border-radius: 8px;
	color: #222;
	text-decoration: none;
	position: relative;
	width: 100%;
	/* 枠の横幅を100%に戻します */
	box-sizing: border-box;
	/* パディングを含めて100%に計算 */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* 日付を常に右寄せにする */
.issue-date {
	margin-left: auto;
	order: 2;
	/* 常に右側に配置 */
}

/* 最新号の強調設定 */
.issue-list .issue-item:first-child {
	padding: 25px;
	border-width: 3px;
	margin-top: 25px;
	margin-bottom: 30px;
}

/* 最新号のラベル(NEW) */
.issue-list .issue-item:first-child::before {
	content: "NEW";
	font-weight: bold;
	position: absolute;
	top: -30px;
	left: 5px;
	color: inherit;
}

/* テーマカラー反映 */
.cm-theme .issue-list .issue-item:first-child {
	border-color: #F15A24;
	color: #F15A24;
}
.video-theme .issue-list .issue-item:first-child {
	border-color: #0071BC;
	color: #0071BC;
}
.issue-list .issue-item:first-child .issue-date {
	font-size: 1.3rem;
	font-weight: bold;
}

/* バックナンバー見出し */
.issue-list .issue-item:nth-child(2) {
	margin-top: 35px;
}
.issue-list .issue-item:nth-child(2)::before {
	content: "BACK NUMBER";
	font-size: 0.8rem;
	font-weight: bold;
	position: absolute;
	top: -25px;
	left: 5px;
	color: #666;
}

/* 読むボタン（最新号のみ表示・左側に配置） */
.view-btn {
	display: none;
}
.issue-item:first-child .view-btn {
	display: inline-block;
	padding: 8px 15px;
	background-color: #f5f5f5;
	color: #111 !important;
	border: 2px solid #333;
	border-radius: 5px;
	font-size: 0.85rem;
	order: 1;
	/* 日付(order:2)より左に配置 */

}

/* ガイドライン */
.guideline-list {
	padding-left: 1rem;
	list-style-type: disc;
}
.guideline-list li {
	font-size: 0.75rem;
	line-height: 1.3;
	color: #333;
}





/* 7. スマホ対応 */

@media (max-width: 600px) {
	.web-link-container {
		flex-direction: column;
	}
	.simple-table th, .simple-table td {
		display: block;
		width: 100%;
	}
	.simple-table th {
		background: #e5e5e5;
		border-bottom: none;
	}
	.issue-list .issue-item:first-child .issue-date {
		font-size: 1.1rem;
	}
}