/**
 * コーポレート「プライバシーポリシー」ページのスタイル（骨組み）。
 * スケール係数（--pc/--sp）・キャンバス幅（--mt-canvas）は common.css / base.css の :root で定義済み。
 */

/* ---- 大枠コンテナ ---- */
.mtpp {
	width: var(--mt-canvas);
	max-width: 100%;
	margin-inline: auto;
	overflow-x: clip;
	color: var(--mt-navy);
	background: #fff;
	font-family: "zen-kaku-gothic-new", sans-serif;
	line-height: 1.6;
}

.mtpp img {
	display: block;
}

/* ==================== パンくずリスト ====================
 * 会社案内・公司信息と共通のデザイン・数値。<main>末尾・フッター直前に配置し、
 * フッターの上20px・左80pxの位置に左寄せ。 */
.mtpp-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	margin: 0;
	padding-left: calc(80 * var(--pc));
	/* フッターとの間隔は.mt-footer自体のpadding-top(30px)に任せる（二重にしない）。 */
}

.mtpp-breadcrumb__link {
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-weight: 500;
	font-size: calc(14 * var(--pc));
	line-height: calc(14 * var(--pc));
	letter-spacing: 0.06em;
	color: rgba(51, 51, 51, 0.4);
	text-decoration: none;
}

.mtpp-breadcrumb__divider {
	display: block;
	flex: none;
	/* 親の align-items:center に任せ、文字の縦中央に線の回転軸を置く。
	 * Figmaの座標は「回転後の見た目のバウンディングボックス」の位置を示しており、
	 * CSSの「回転前の位置を基準に回転する」挙動とは基準点が異なるため、
	 * Figmaの数値をそのまま上端からのオフセットとして使うと合わない。 */
	width: calc(12 * var(--pc));
	height: 0;
	margin: 0 calc(9 * var(--pc)) 0 calc(15 * var(--pc));
	border-top: 1px solid #333;
	transform: rotate(120deg);
}

.mtpp-breadcrumb__current {
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-weight: 500;
	font-size: calc(14 * var(--pc));
	line-height: calc(14 * var(--pc));
	letter-spacing: 0.06em;
	text-decoration-line: underline;
	color: #333;
}

/* ==================== タイトルバー ====================
 * 会社案内（.mtco-titlebar）と共通のデザイン・数値。ベージュのパネルを原点にして、
 * 中の要素は px の絶対配置で置いていく。
 */
.mtpp-titlebar {
	position: relative; /* 中の要素を px で絶対配置するときの原点 */
	width: calc(1380 * var(--pc));
	height: calc(140 * var(--pc));
	/* Figmaのtop:150はヘッダー込みのページ絶対座標。ヘッダー（高さ90px）は <main> の外で
	 * 既に描画されているため、実際に空けるべき上マージンは 150-90=60px。 */
	margin: calc(60 * var(--pc)) auto 0; /* 左右中央（＝ページ左右から30px）／ヘッダー下から60px */
	background: #f7f5eb;
	border-radius: calc(15 * var(--pc));
}

.mtpp-titlebar__title {
	position: absolute;
	left: calc(70 * var(--pc));
	top: calc(50 * var(--pc));
	width: calc(454 * var(--pc));
	height: calc(40 * var(--pc));
	margin: 0;
	white-space: nowrap;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: calc(40 * var(--pc));
	line-height: calc(40 * var(--pc));
	letter-spacing: 0.15em;
	color: #0d3061;
}

.mtpp-titlebar__smile {
	position: absolute;
	left: calc(1219 * var(--pc));
	top: calc(53 * var(--pc));
	width: calc(91 * var(--pc));
	height: calc(34 * var(--pc));
	animation:
		mtppSmileRock 1.2s ease-in-out,
		mtppSmilePivot 1.2s linear;
	animation-play-state: paused;
}

.mtpp-titlebar__smile.is-loaded {
	animation-play-state: running;
}

@keyframes mtppSmileRock {
	0%, 50%, 100% { rotate: 0deg; }
	25%           { rotate: -6deg; }
	75%           { rotate: 6deg; }
}

@keyframes mtppSmilePivot {
	0%, 49.9%  { transform-origin: bottom left; }
	50%, 100%  { transform-origin: bottom right; }
}

/* ==================== 個人情報保護方針 ====================
 * 900px幅の中央寄せカラム（左右270pxずつ余白）。図形要素が無く縦積みのテキストのみのため、
 * 絶対配置ではなく通常フロー＋marginで組む。タイトルバー下端(290)からの間隔は標準の150px。 */
.mtpp-policy {
	box-sizing: border-box;
	width: calc(900 * var(--pc));
	margin: calc(150 * var(--pc)) auto 0;
}

.mtpp-policy__title {
	margin: 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: calc(22 * var(--pc));
	line-height: calc(33 * var(--pc));
	letter-spacing: 0.06em;
	color: #0d3061;
}

.mtpp-policy__intro {
	margin: calc(40 * var(--pc)) 0 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-policy__body {
	margin: calc(40 * var(--pc)) 0 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-policy__signature {
	margin: calc(40 * var(--pc)) 0 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-policy__divider {
	margin: calc(80 * var(--pc)) 0 0;
	border: none;
	border-top: 1px solid #e9e9e9;
}

/* ==================== 個人情報の取り扱いに関して ====================
 * 見出し・リード文は前セクションと同じ900px幅カラム。薄グレーパネル（#f9f9f9、
 * 上下左右60pxパディング、コンテンツ幅780px）の中に項目1〜7を縦に並べる。
 * 項目1・2内の白カードはさらに左右60pxパディング（コンテンツ幅660px）。
 * 前セクション（個人情報保護方針の区切り線）との間隔は80px。 */
.mtpp-handling {
	box-sizing: border-box;
	width: calc(900 * var(--pc));
	margin: calc(80 * var(--pc)) auto 0;
}

.mtpp-handling__title {
	margin: 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: calc(22 * var(--pc));
	line-height: calc(33 * var(--pc));
	letter-spacing: 0.06em;
	color: #0d3061;
}

.mtpp-handling__lead {
	margin: calc(20 * var(--pc)) 0 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-handling__panel {
	box-sizing: border-box;
	width: 100%;
	margin-top: calc(40 * var(--pc));
	padding: calc(60 * var(--pc));
	background: #f9f9f9;
	border-radius: calc(30 * var(--pc));
}

.mtpp-handling__section + .mtpp-handling__section {
	margin-top: calc(60 * var(--pc));
}

.mtpp-handling__section + .mtpp-handling__section.mtpp-handling__section--gap-lg {
	margin-top: calc(60 * var(--pc));
	padding-top: calc(60 * var(--pc));
	border-top: 1px solid #e9e9e9;
}

.mtpp-handling__section-title {
	margin: 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #0d3061;
}

.mtpp-handling__text {
	margin: calc(20 * var(--pc)) 0 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-handling__card {
	box-sizing: border-box;
	width: 100%;
	margin-top: calc(40 * var(--pc));
	padding: calc(60 * var(--pc));
	background: #fff;
	border-radius: calc(15 * var(--pc));
}

.mtpp-handling__card + .mtpp-handling__text {
	margin-top: calc(40 * var(--pc));
}

.mtpp-handling__group + .mtpp-handling__group {
	margin-top: calc(40 * var(--pc));
}

.mtpp-handling__group-title {
	margin: 0;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #0d3061;
}

.mtpp-handling__group-title + .mtpp-handling__text,
.mtpp-handling__group-title + .mtpp-handling__list {
	margin-top: calc(10 * var(--pc));
}

/* 小見出し直後の単文（採用の可否を選考し...等）にも箇条書きと同じ「・」を付ける。 */
.mtpp-handling__group-title + .mtpp-handling__text {
	padding-left: 1em;
	text-indent: -1em;
}

.mtpp-handling__group-title + .mtpp-handling__text::before {
	content: "・";
}

.mtpp-handling__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtpp-handling__list li {
	margin: 0;
	/* 「・」は::beforeで生成し、折り返し時は2行目以降が「・」の位置まで戻らないよう
	 * ぶら下げインデントにする（text-indentで先頭行だけ左に戻す）。 */
	padding-left: 1em;
	text-indent: -1em;
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

.mtpp-handling__list li::before {
	content: "・";
}

.mtpp-handling__divider {
	margin-top: calc(60 * var(--pc));
	border: none;
	border-top: 1px solid #e9e9e9;
}

.mtpp-handling__divider--outer {
	margin-top: calc(80 * var(--pc));
}

/* ==================== 個人情報の開示等請求手続きのご案内 ====================
 * 「個人情報の取り扱いに関して」と同じ.mtpp-handling__*を再利用するための追加モディファイア。 */
.mtpp-handling__text--bold {
	font-weight: 700;
}

.mtpp-handling__text--small {
	font-size: calc(12 * var(--pc));
	line-height: calc(24 * var(--pc));
}

.mtpp-handling__text--small + .mtpp-handling__text--small {
	margin-top: calc(10 * var(--pc));
}

.mtpp-handling__group + .mtpp-handling__text {
	margin-top: calc(40 * var(--pc));
}

/* ①②③のような黒字の小見出し（【】の紺色見出しと違い装飾記号なし）。 */
.mtpp-handling__group-title--plain {
	color: #333;
}

/* 「・」は::beforeで生成し、折り返し時は2行目以降が「・」の位置まで戻らないよう
 * ぶら下げインデントにする（company-zh.cssの.mtcz-history__text-lineと同じ技法）。 */
.mtpp-handling__text-line {
	display: block;
	padding-left: 1em;
	text-indent: -1em;
}

.mtpp-handling__text-line::before {
	content: "・";
}

/* ==================== 末尾の署名ブロック ====================
 * 900px幅の中央寄せカラム。前セクション（パネル下端）との間隔は80px、
 * 区切り線→署名文の間隔も80px。 */
.mtpp-closing {
	box-sizing: border-box;
	width: calc(900 * var(--pc));
	margin: calc(80 * var(--pc)) auto 0;
}

.mtpp-closing__divider {
	margin: 0;
	border: none;
	border-top: 1px solid #e9e9e9;
}

.mtpp-closing__text {
	margin: calc(80 * var(--pc)) 0 calc(150 * var(--pc));
	font-family: "zen-kaku-gothic-new", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: calc(16 * var(--pc));
	line-height: calc(32 * var(--pc));
	letter-spacing: 0.06em;
	color: #333;
}

/* ============================================================
 * SP（〜767px）
 * Figma SP は 750px 幅。各値は calc(Figmaのpx * var(--sp))。
 * スケール係数 --sp は common.css の :root（@media 内）で定義済み。
 * ============================================================ */
@media (max-width: 767px) {

	/* ==================== パンくずリスト ====================
	 * 会社案内・公司信息のSP実装と同じく<main>末尾・フッター直前に配置。左20pxの位置に左寄せ。
	 * フッターとの間隔は.mt-footer自体のpadding-top(30px)に任せる（二重にしない）。 */
	.mtpp-breadcrumb {
		padding-left: calc(40 * var(--sp));
	}

	.mtpp-breadcrumb__link,
	.mtpp-breadcrumb__current {
		font-size: calc(22 * var(--sp));
		line-height: calc(22 * var(--sp));
	}

	.mtpp-breadcrumb__divider {
		width: calc(20 * var(--sp));
		/* PCは1pxだが、SPはFigma指定で2px（線の太さは--spでスケールしない）。 */
		border-top-width: 2px;
		margin: 0 calc(20 * var(--sp)) 0 calc(20 * var(--sp));
	}

	/* ==================== タイトルバー ====================
	 * PCと同じ考え方（left:30/width:690→margin auto+width、ヘッダー高120pxを差し引く）。
	 * 会社案内・公司信息のSP実装と同じ数値（スマイルアイコン等は共通要素）。 */
	.mtpp-titlebar {
		width: calc(690 * var(--sp));
		height: calc(140 * var(--sp));
		margin: calc(60 * var(--sp)) auto 0; /* Figma top:180 - SPヘッダー高120 */
		border-radius: calc(30 * var(--sp));
	}

	.mtpp-titlebar__title {
		left: calc(50 * var(--sp));
		top: calc(50 * var(--sp));
		width: calc(454 * var(--sp)); /* SP側の実寸未受領のため、フォントサイズが同じ40pxである前提でPCと同じ数値を流用 */
		height: calc(40 * var(--sp));
		font-size: calc(40 * var(--sp));
		line-height: calc(40 * var(--sp));
	}

	.mtpp-titlebar__smile {
		left: calc(559 * var(--sp));
		top: calc(55 * var(--sp));
		width: calc(81 * var(--sp));
		height: calc(30 * var(--sp));
	}

	/* ==================== 個人情報保護方針（SP） ====================
	 * 650px幅の中央寄せカラム（左右50pxずつ余白）。タイトルバー下端(320)からの間隔は120px。 */
	.mtpp-policy {
		width: calc(650 * var(--sp));
		margin: calc(120 * var(--sp)) auto 0;
	}

	.mtpp-policy__title {
		font-size: calc(32 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-policy__intro {
		margin-top: calc(60 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-policy__body {
		margin-top: calc(60 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-policy__signature {
		margin-top: calc(60 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-policy__divider {
		margin-top: calc(100 * var(--sp));
		border-top-width: calc(2 * var(--sp));
	}

	/* ==================== 個人情報の取り扱いに関して（SP） ====================
	 * 650px幅の中央寄せカラム。パネル内余白は上下80px・左右40px（コンテンツ幅610px）。
	 * PCと違い、区切り線は項目1〜6の間全て（1→2,2→3,3→4,4→5,5→6）に入る（前後80pxずつ）。
	 * カード内余白は上下60px・左右40px（コンテンツ幅530px）、カード内の小見出し・本文は
	 * 26px/44pxとひとまわり小さいフォントを使う。 */
	.mtpp-handling {
		width: calc(650 * var(--sp));
		margin: calc(100 * var(--sp)) auto 0;
	}

	.mtpp-handling__title {
		font-size: calc(32 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-handling__lead {
		margin-top: calc(40 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	/* パネル幅690pxは親.mtpp-handling（650px幅）より20px広い（left:30の全体インセットに対し、
	 * 見出し・リード文はleft:50の650px幅カラムのため）。左右に-20pxのマージンではみ出させる。 */
	.mtpp-handling__panel {
		width: calc(690 * var(--sp));
		margin-top: calc(80 * var(--sp));
		margin-left: calc(-20 * var(--sp));
		margin-right: calc(-20 * var(--sp));
		padding: calc(80 * var(--sp)) calc(40 * var(--sp));
		border-radius: calc(30 * var(--sp));
	}

	/* 項目1→2、2→3は<hr class="mtpp-handling__divider">が既に区切り線を担っているため、
	 * ここではmargin-topのみ調整する（borderを重ねて二重線にしない）。
	 * 項目3→4,4→5,5→6はPCでは区切り線なしだったが、SPは区切り線ありに変わるため、
	 * --gap-lg側でborder-topとpadding-topを追加する。 */
	.mtpp-handling__section + .mtpp-handling__section {
		margin-top: calc(80 * var(--sp));
	}

	.mtpp-handling__section + .mtpp-handling__section.mtpp-handling__section--gap-lg {
		margin-top: calc(80 * var(--sp));
		padding-top: calc(80 * var(--sp));
		border-top-width: calc(2 * var(--sp));
	}

	.mtpp-handling__section-title {
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-handling__text {
		margin-top: calc(40 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}

	.mtpp-handling__card {
		margin-top: calc(60 * var(--sp));
		padding: calc(60 * var(--sp)) calc(40 * var(--sp));
		border-radius: calc(15 * var(--sp));
	}

	.mtpp-handling__card + .mtpp-handling__text {
		margin-top: calc(60 * var(--sp));
	}

	.mtpp-handling__group + .mtpp-handling__group {
		margin-top: calc(60 * var(--sp));
	}

	.mtpp-handling__group-title {
		font-size: calc(26 * var(--sp));
		line-height: calc(44 * var(--sp));
	}

	.mtpp-handling__group-title + .mtpp-handling__text,
	.mtpp-handling__group-title + .mtpp-handling__list {
		margin-top: calc(20 * var(--sp));
	}

	.mtpp-handling__list li {
		font-size: calc(26 * var(--sp));
		line-height: calc(44 * var(--sp));
	}

	/* カード内の小見出し直後の単文（採用の可否を選考し...等）もカードと同じ26px/44pxに揃える。 */
	.mtpp-handling__group-title + .mtpp-handling__text {
		font-size: calc(26 * var(--sp));
		line-height: calc(44 * var(--sp));
	}

	.mtpp-handling__divider {
		margin-top: calc(80 * var(--sp));
		border-top-width: calc(2 * var(--sp));
	}

	.mtpp-handling__divider--outer {
		margin-top: calc(100 * var(--sp));
	}

	/* ==================== 末尾の署名ブロック（SP） ====================
	 * 650px幅の中央寄せカラム。前セクションとの間隔・区切り線→署名文の間隔は共に100px。 */
	.mtpp-closing {
		width: calc(650 * var(--sp));
		margin: calc(100 * var(--sp)) auto 0;
	}

	.mtpp-closing__divider {
		border-top-width: calc(2 * var(--sp));
	}

	.mtpp-closing__text {
		margin-top: calc(100 * var(--sp));
		font-size: calc(28 * var(--sp));
		line-height: calc(48 * var(--sp));
	}
}
