/* =========================
   通知文用CSS（.doc内限定）
   ========================= */

/* ベースレイアウト */
.doc {
	margin: 0 auto;
	line-height: 1.9;
	font-size: 16px;
}
.doc p {
	margin: 0.6em 0;
}
.doc a {
	color: var(--main);
	text-decoration: underline;
}
.doc .first-indent {
	text-indent: 1em;
}
.doc .hang {
	padding-left: 0em;
	text-indent: 0;
}
.doc .note {
	font-size: 0.95em;
	opacity: 0.9;
}

/* -------------------------
   見出し + 連番
   ------------------------- */
.doc {
	counter-reset: sec;
} /* h2は必ず1から */
.doc h2 {
	counter-increment: sec;
	margin: 2.2em 0 0.6em;
	border-bottom: 1px solid;
}
.doc h2::before {
	content: counter(sec) '. ';
	font-weight: 700;
}
.doc h3 {
	margin: 2em 0 0.8em;
	font-size: 1.15em;
}
.doc h4 {
	margin: 1.6em 0 0.4em;
}

/* -------------------------
   箇条書き（階層）
   ------------------------- */
.doc ol,
.doc ul {
	margin: 0.4em 0 0.8em 1.2em;
	padding: 0;
}
.doc .disc {
	list-style: circle;
	padding-left: 1em;
}

/* (1)(2)… */
.doc .paren-num {
	list-style: none;
	counter-reset: par;
	margin-left: 1.2em;
}
.doc .paren-num > li {
	counter-increment: par;
	margin: 0.6em 0;
}
.doc .paren-num > li::before {
	content: '（' counter(par) '）';
	margin-right: 0.4em;
	font-feature-settings: 'palt';
}

/* ア・イ・ウ… */
@counter-style doc-kana {
	system: fixed;
	symbols: 'ア' 'イ' 'ウ' 'エ' 'オ' 'カ' 'キ' 'ク' 'ケ' 'コ' 'サ' 'シ' 'ス' 'セ' 'ソ' 'タ' 'チ' 'ツ' 'テ' 'ト' 'ナ' 'ニ' 'ヌ' 'ネ' 'ノ' 'ハ' 'ヒ' 'フ' 'ヘ' 'ホ' 'マ' 'ミ' 'ム' 'メ' 'モ' 'ヤ' 'ユ' 'ヨ' 'ラ' 'リ' 'ル' 'レ' 'ロ' 'ワ';
	suffix: '　';
}
.doc .kana {
	list-style: none;
	counter-reset: kana;
	margin-left: 1.6em;
}
.doc .kana > li {
	counter-increment: kana;
	margin: 0.4em 0;
}
.doc .kana > li::before {
	content: counter(kana, doc-kana);
}

/* 箇条書き中に入るイレギュラー小見出し（≪代理人による申請の場合≫） */
.doc .kana > li.break {
	counter-increment: none;
	list-style: none;
	margin: 1em 0 0.4em;
	padding: 0.3em 0.6em;
	background: var(--main);
	border-left: 2px solid var(--sub);
	font-weight: 700;
	color: white;
}
.doc .kana > li.break::before,
.doc .kana > li.break::after {
	content: '';
}
.doc .kana > li.break::before {
	content: '≪';
	margin-right: 0.25em;
}
.doc .kana > li.break::after {
	content: '≫';
	margin-left: 0.25em;
}

/* -------------------------
   備考（＊付き注釈など）
   ------------------------- */
.doc .notes {
	margin: 1em 0 0 1.2em;
}
.doc .notes li {
	padding-left: 1em;
	text-indent: -1em;
	line-height: 1.8;
}

/* -------------------------
   料金表などのテーブル
   ------------------------- */
.doc .table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.doc table.rate {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
}
.doc table.rate th,
.doc table.rate td {
	border: 1px solid #bfc3c7;
	padding: 0.6em 0.8em;
	vertical-align: middle;
}
.doc table.rate thead th {
	background: var(--main);
	font-weight: 700;
	color: white;
}
.doc table.rate tbody th[scope='row'] {
	background: #e5e5e5;
	font-weight: 600;
	width: 9em;
}
.doc table.rate td small {
	opacity: 0.85;
	display: inline-block;
}
.doc .t-right {
	text-align: right;
}
.doc .num {
	font-feature-settings: 'lnum', 'pnum', 'tnum';
}

/* アクセシビリティ用の非表示キャプション */
.doc .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------
   チェックリスト（飾りのチェック欄）
   ------------------------- */
.doc .checklist {
	list-style: none;
	padding: 0;
	margin: 0.6em 0 1em;
}
.doc .checklist li {
	position: relative;
	padding-left: 1.6em;
	margin: 0.4em 0;
}
.doc .checklist li::before {
	content: '☐';
	position: absolute;
	left: 0;
	color: #333;
}

/* -------------------------
   印刷用
   ------------------------- */
@media print {
	.doc a {
		color: #000;
		text-decoration: none;
	}
	.doc .table-wrap {
		overflow: visible;
	}
}

/* 料金テーブル用 */
/* 横スクロール（スマホ） */
.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* テーブル本体 */
.matrix {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed; /* 均等レイアウト */
	font-size: 16px;
	color: #333;
}

/* 罫線・余白 */
.matrix th,
.matrix td {
	border: 1px solid #bfc3c7;
	padding: 18px 20px;
	vertical-align: middle;
}

/* 見出し行 */
.matrix thead th {
	background: var(--main);
	color: #fff;
	font-weight: 700;
	text-align: center;
}

/* 左列（種類）は太字・左寄せ */
.matrix tbody th[scope='row'] {
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

/* 料金セル（中央寄せ・強調） */
.matrix .fee {
	text-align: center;
	font-size: 1.5em;
	color: #555;
}
.matrix .fee span {
	display: inline-block;
	line-height: 1.4;
}
.matrix .fee strong {
	font-weight: 800;
	font-size: 1.6em; /* 400 をドンと */
}

/* 期間セル（読みやすく大きめ） */
.matrix .time {
	font-size: 1.35em;
	color: #666;
}
.matrix .lead {
	/* 画像に近い余白感を出す */
	padding-top: 28px;
	padding-bottom: 28px;
}

/* 小さめ画面の微調整 */
@media (max-width: 560px) {
	.matrix th,
	.matrix td {
		padding: 14px 16px;
	}
	.matrix .fee {
		font-size: 1.25em;
	}
	.matrix .fee strong {
		font-size: 1.5em;
	}
	.matrix .time {
		font-size: 1.15em;
	}
}
