@charset "utf-8";
/* ============================================================
   規約などとエラーの新しいページ (2026-10-30。 templates5/guest/legal.tpl・error.tpl)
   本文は今のページと同じ HTML (dl の dt = 条の見出し、 dd の中は ul・li・p・br) なので、 その形に当てる
   色・文字は quorea-lp.css の :root を使う (このファイルは quorea-lp.css の後に読む)
   ============================================================ */

/* 見出しの帯は白地に、 右上から朱のやわらかい光 (トップの最初の画面と同じ色味。 灰色の帯にはしない) */
.doc-head {
	position: relative; overflow: hidden;
	padding: 72px 0 52px;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}
.doc-head::before {
	content: ""; position: absolute; right: -6%; top: -170%;
	width: 820px; height: 820px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(232,138,74,0.26), rgba(224,86,42,0.09) 55%, transparent 72%);
	pointer-events: none;
}
.doc-head .wrap { z-index: 1; }
/* 区分の名前は日本語なので、 等幅の英字用の書体ではなく本文の書体で少し大きく */
.doc-head .eyebrow { margin-bottom: 12px; font-family: var(--font); font-size: 13px; letter-spacing: 0.1em; }
.doc-title { max-width: 820px; font-size: 34px; line-height: 1.42; letter-spacing: -0.5px; }
.doc-title .ib { display: inline; } /* 区切り (GuestPage::TITLE_PHRASES) はスマホだけで効かせる */

.doc-sec { padding: 56px 0 112px; }
.doc-grid {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	grid-template-areas: "nav doc";
	gap: 72px;
	align-items: start;
}

/* ── 本文 ── */
.doc { grid-area: doc; max-width: 760px; font-size: 15px; line-height: 2; color: var(--text); }
.doc p { margin: 0 0 16px; }
.doc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc ul, .doc ol { list-style: none; margin: 0 0 16px; padding: 0; }
.doc li { margin: 0 0 10px; }
.doc li p { margin: 6px 0 0; }
.doc dl { margin: 0 0 16px; }
.doc dt {
	margin: 48px 0 14px; padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--heading);
}
.doc > dl:first-child > dt:first-child { margin-top: 0; }
.doc dd { margin: 0; }
.doc b, .doc strong { font-weight: 500; color: var(--heading); }
/* 本文の中の記号 (【】・■・「」) は、 新しいページでは形で見せるので隠す (今のページでは出る) */
.doc .q { display: none; }

/* 番号付きの項。 番号を左にぶら下げ、 2 行目以降を文の頭にそろえる (1. → li.n、 (1) → .item) */
.doc li.n { position: relative; padding-left: 2.1em; }
.doc li.n > .no { position: absolute; left: 0; top: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--heading); }
.doc .item { position: relative; margin: 6px 0 0; padding-left: 2.7em; }
.doc .item > .no { position: absolute; left: 0; top: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--label); }
/* 項の並びの後の文は、 並びから少し離す */
.doc .after-items { margin-top: 16px; }

/* 料金 (自動売買利用規約 第 3 条)。 プランごとのカードに、 条件と金額の行 (トップの料金欄と同じ作り) */
.doc .plan {
	margin: 20px 0; padding: 22px 26px 12px;
	background: var(--white); border: 1px solid var(--border); border-radius: 10px;
	box-shadow: var(--shadow-soft);
}
.doc .plan-name { margin: 0 0 6px; font-size: 17px; font-weight: 500; color: var(--heading); }
.doc .fee-rows {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	margin: 16px 0 14px; border-top: 1px solid var(--border);
}
.doc .fee-rows dt,
.doc .fee-rows dd { margin: 0; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--border); }
.doc .fee-rows dt { padding-right: 24px; font-size: 13.5px; font-weight: 400; line-height: 1.75; color: var(--label); }
.doc .fee-rows dd { font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--heading); }
.doc .note { margin: 0 0 6px; font-size: 13px; line-height: 1.8; color: var(--body); }
.doc .plan > p:last-child { margin-bottom: 10px; }

/* してはいけない表示 (アフィリエイトプログラム利用規約 第 6 条 (11)・(12))。 ①〜⑥ をカードに、 表示例は札で */
.doc .rules { margin: 12px 0 18px 2.7em; }
.doc .rule {
	margin: 0 0 12px; padding: 16px 20px 10px;
	background: var(--white); border: 1px solid var(--border); border-radius: 8px;
}
.doc .rule-name { position: relative; margin: 0 0 6px; padding-left: 1.6em; font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--heading); }
.doc .rule-name > .no { position: absolute; left: 0; top: 0; color: var(--ember); }
.doc .ex-label { margin: 10px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.doc .ex { position: relative; margin: 0 0 6px; padding-left: 1.1em; font-size: 14px; line-height: 1.85; }
.doc .ex::before {
	content: ""; position: absolute; left: 0.15em; top: 0.8em;
	width: 5px; height: 5px; border-radius: 50%; background: var(--ember-light);
}
.doc .ex.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 0; }
.doc .ex.chips::before { display: none; }
.doc .chip {
	display: inline-block; padding: 1px 10px;
	border: 1px solid var(--ember-soft); border-radius: 999px; background: var(--ember-tint);
	font-size: 13px; line-height: 1.75; color: var(--ember-deep);
}
.doc .sep { display: none; }
.doc .rest { flex-basis: 100%; font-size: 13.5px; color: var(--body); }

/* ほかの規約・リスクの説明への案内 (ご利用上のリスク)。 線で区切った一覧に、 朱の小さな四角の印 */
.doc .links { margin: 14px 0 6px; border-top: 1px solid var(--border); }
.doc .link-row { position: relative; margin: 0; padding: 11px 0 11px 18px; border-bottom: 1px solid var(--border); }
.doc .link-row > p { margin: 0; }
.doc .link-row::before {
	content: ""; position: absolute; left: 2px; top: 1.45em;
	width: 6px; height: 6px; border-radius: 1.5px; background: var(--ember);
}
.doc .note-box { margin: 8px 0 2px; padding: 10px 14px 4px; border-radius: 6px; background: var(--tint); }
.doc .note-title { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--label); }
.doc .note-box .ex { font-size: 13px; }

/* 項の中の小見出し付きのまとまり (ご利用上のリスクの利用料) */
.doc .sub-block { margin: 12px 0 0; padding: 12px 16px 2px; border-left: 2px solid var(--ember-light); }
.doc .sub-name { margin: 0 0 4px; font-weight: 500; color: var(--heading); }
.doc .sub-block p { margin-bottom: 10px; }

/* 末尾の改定日・制定日 */
.doc > p:last-child { margin: 56px 0 0; font-size: 13px; color: var(--muted); }

/* 連絡先などの見出しと値の一覧 (<dl class="kv">)。 トップの料金欄と同じく、 白いカードに左の見出し・右の値の行を線で区切って並べる */
.doc dl.kv {
	display: grid; grid-template-columns: 150px minmax(0, 1fr);
	margin: 4px 0 20px; padding: 0 24px;
	background: var(--white); border: 1px solid var(--border); border-radius: 8px;
	box-shadow: var(--shadow-soft);
}
.doc dl.kv dt,
.doc dl.kv dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 0; line-height: 1.8; }
.doc dl.kv dt:first-of-type,
.doc dl.kv dt:first-of-type + dd { border-top: 0; }
.doc dl.kv dt { padding-right: 20px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--label); }
.doc dl.kv dd { font-size: 15px; color: var(--heading); }

/* 見出しと値の 2 列の表 (特定商取引法に基づく表記・会社情報) */
.doc-table dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); border-top: 1px solid var(--border); }
.doc-table dt,
.doc-table dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.doc-table dt { padding-right: 24px; font-size: 14px; font-weight: 500; line-height: 1.9; color: var(--label); }
.doc-table dd { font-size: 15px; color: var(--heading); }

/* ── ほかの規約などへの案内 ── */
.doc-nav { grid-area: nav; position: sticky; top: 100px; font-size: 13.5px; }
.doc-nav-group + .doc-nav-group { margin-top: 28px; }
.doc-nav h2 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav a {
	display: block; padding: 6px 0 6px 14px;
	border-left: 2px solid var(--border);
	line-height: 1.55; color: var(--label);
}
.doc-nav a:hover { color: var(--ember); border-left-color: var(--ember-light); }
.doc-nav a[aria-current="page"] { color: var(--ember); border-left-color: var(--ember); font-weight: 500; }

/* ── エラー (400・403・404・500) ── */
.err {
	position: relative; overflow: hidden;
	display: flex; align-items: center;
	min-height: calc(100vh - 69px); min-height: calc(100svh - 69px);
	padding: 96px 0 120px;
	background: var(--white);
}
/* 朱のやわらかい光 (トップの最初の画面と同じ色味) */
.err::before {
	content: ""; position: absolute; right: -12%; top: -30%;
	width: 62vw; height: 62vw; max-width: 820px; max-height: 820px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(232,138,74,0.28), rgba(224,86,42,0.10) 55%, transparent 72%);
	pointer-events: none;
}
/* 真ん中に幅を決めた区画を置き、 中は全部左寄せ (左端の線を 1 本にそろえる。 説明の文を中央そろえにすると行の頭がそろわず読みにくい) */
.err-box { z-index: 1; width: 100%; max-width: calc(560px + var(--gutter) * 2); }
.err-code { display: flex; align-items: baseline; gap: 16px; margin: 0 0 22px; }
.err-code .grad-text { font-family: var(--font); font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.err-name { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--ember); }
.err-title { font-size: 34px; line-height: 1.42; letter-spacing: -0.5px; }
.err-lead { margin-top: 18px; font-size: 16px; line-height: 1.95; color: var(--text); }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* お知らせ (templates5/guest/news.tpl): 年ごとに、 日付と見出しの行を押すと本文が開く */
.nw { max-width: 880px; }
.nw-empty { margin: 0; font-size: 15px; color: var(--body); }
.nw-year + .nw-year { margin-top: 48px; }
.nw-year-h { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--ember); }
.nw-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.nw-list > li { border-bottom: 1px solid var(--border); }
.nw-item summary { display: grid; grid-template-columns: 150px minmax(0, 1fr) 14px; align-items: baseline; gap: 18px; padding: 18px 4px; cursor: pointer; list-style: none; }
.nw-item summary::-webkit-details-marker { display: none; }
.nw-item summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
.nw-item time { font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-title { font-size: 15.5px; line-height: 1.7; color: var(--heading); transition: color .15s; }
.nw-item summary:hover .nw-title { color: var(--ember); }
.nw-ic { align-self: center; justify-self: end; width: 8px; height: 8px; margin-top: -4px; border-right: 1.5px solid var(--label); border-bottom: 1.5px solid var(--label); transform: rotate(45deg); transition: transform .15s; }
.nw-item[open] .nw-ic { margin-top: 4px; transform: rotate(-135deg); }
.nw-body { padding: 0 32px 24px 172px; font-size: 14.5px; line-height: 1.95; color: var(--text); overflow-wrap: anywhere; }
.nw-body p { margin: 0 0 12px; }
.nw-body p:last-child { margin-bottom: 0; }
.nw-body a { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.nw-body img { max-width: 100%; height: auto; }

@media (max-width: 860px) {
	.err { min-height: auto; padding: 64px 0 88px; }
	.err::before { width: 120vw; height: 120vw; right: -50%; top: -20%; }
	.err-code .grad-text { font-size: 52px; }
	.err-title { font-size: 25px; letter-spacing: -0.3px; }
	.err-lead { font-size: 15px; }
	.err-actions .btn { flex: 1 1 100%; }
	/* お知らせは、 日付を上・見出しを下に */
	.nw-item summary { grid-template-columns: minmax(0, 1fr) 14px; gap: 2px 14px; padding: 16px 2px; }
	.nw-item time { grid-column: 1; grid-row: 1; }
	.nw-title { grid-column: 1; grid-row: 2; font-size: 15px; }
	.nw-ic { grid-column: 2; grid-row: 1 / 3; }
	.nw-body { padding: 0 2px 20px; font-size: 14px; }
	.doc-head { padding: 44px 0 32px; }
	.doc-head::before { width: 520px; height: 520px; right: -45%; top: -120%; }
	.doc-title { font-size: 25px; letter-spacing: -0.3px; }
	.doc-title .ib { display: inline-block; }
	.doc-sec { padding: 36px 0 72px; }
	/* スマホは本文を先に、 案内は下に */
	.doc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "doc" "nav"; gap: 56px; }
	.doc { font-size: 15px; line-height: 1.95; }
	.doc dt { margin-top: 40px; font-size: 16px; }
	.doc-nav { position: static; padding-top: 36px; border-top: 1px solid var(--border); }
	.doc .plan { padding: 18px 18px 8px; }
	.doc .fee-rows { grid-template-columns: minmax(0, 1fr); }
	.doc .fee-rows dt { padding: 14px 0 2px; border-bottom: 0; }
	.doc .fee-rows dd { padding: 0 0 14px; }
	.doc .item { padding-left: 2.4em; }
	.doc .rules { margin-left: 0; }
	.doc .rule { padding: 14px 16px 8px; }
	.doc dl.kv { grid-template-columns: minmax(0, 1fr); padding: 0 18px; }
	.doc dl.kv dt { padding: 14px 0 0; }
	.doc dl.kv dd { padding: 2px 0 14px; border-top: 0; }
	.doc-table dl { grid-template-columns: minmax(0, 1fr); }
	.doc-table dt { padding: 16px 0 0; border-bottom: 0; }
	.doc-table dd { padding: 2px 0 16px; }
}
