/* 利用規約: /guide/ の一覧（vacan-cms）と、WordPress の規約ページ（テーマ vacan の page-terms.php）が読む（2026-10-20）
   トークン（--u・--a-k など）は common/lists/fx.css にある。こちらは fx.css の後に読む */

/* 縦線（.section-inner の左の罫線）とインデントを外し、本文を見出しの左端に揃える。間隔は見出しの下の余白（.lfx-hd）に任せる */
.section--guide .section-inner,
.section--terms .section-inner { border-left: 0; padding-left: 0; margin-top: 0; }

/* /guide/ の一覧の行: トップの「よくある質問」（.a-faq）と同じ型。
   上に 1px の罫線（最後の行は下にも）・左に番号（01・02…）・題・右端に矢印。行の上下は 32u。題は載せた時に下線 */
.section--guide .list--support-link { counter-reset: lst; margin: 0; padding: 0; list-style: none; }
.section--guide .list--support-link > li { position: relative; margin: 0; padding: 0; counter-increment: lst; }
.section--guide .list--support-link > li::before,
.section--guide .list--support-link > li:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(0,0,0,.08); pointer-events: none; }
.section--guide .list--support-link > li:last-child::after { top: auto; bottom: 0; }
.section--guide .list--support-link a { display: grid; grid-template-columns: calc(64 * var(--u)) 1fr 24px; align-items: baseline; padding: calc(32 * var(--u)) 0; color: var(--a-k); text-decoration: none; }
.section--guide .list--support-link a::before { content: counter(lst, decimal-leading-zero); font-family: var(--a-mono); font-size: 12px; color: var(--a-g500); font-variant-numeric: tabular-nums; }
.section--guide .list--support-link .lst-t { font-family: var(--a-jp); font-weight: 400; font-size: max(15px, calc(18 * var(--u))); line-height: 1.6; word-break: auto-phrase; }
/* 右端の矢印（よくある質問の＋と同じ 1px の線・14px の升） */
.section--guide .list--support-link a::after { content: ""; justify-self: end; align-self: center; width: 8px; height: 8px; margin-right: 3px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; }
@media (hover: hover) {
  .section--guide .list--support-link a:hover .lst-t { text-decoration: underline; }
}
@media (max-width: 1100px) {
  .section--guide .list--support-link a { grid-template-columns: 48px 1fr 20px; }
}
@media (max-width: 767px) {
  .section--guide .list--support-link a { grid-template-columns: 40px 1fr 20px; }
}

/* terms-noline（VACAN Noline 利用者向け利用規約）第2条の定義表（2026-11-06 静的 HTML の <style> から移す。WordPress の本文には <style> を保存できないため。JS は使わない） */
/* 第2条の定義表。block-library.min.css の既定は罫が currentColor（ほぼ黒）で、
   thead に 3px の太い罫が入るため、このページ内だけ淡くする。
   セル内は折り返さず、はみ出す分は figure(.wp-block-table) 側で横スクロールさせる。 */
#terms-noline .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* border-collapse: collapse のままだと、固定した列の背景が畳まれた罫の分だけ
   足りず、左端に下の列が 1〜2px 透ける。separate にして各セルに罫を持たせる。 */
#terms-noline .wp-block-table table {
	width: max-content;
	min-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
#terms-noline .wp-block-table thead { border-bottom: 0; }
#terms-noline .wp-block-table th,
#terms-noline .wp-block-table td {
	border: 0;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
	white-space: nowrap;
}
#terms-noline .wp-block-table tr > *:first-child { border-left: 1px solid #ddd; }
#terms-noline .wp-block-table thead tr > * { border-top: 1px solid #ddd; }
#terms-noline .wp-block-table th { font-weight: 700; text-align: left; }
#terms-noline .wp-block-table thead th,
#terms-noline .wp-block-table tbody td:first-child { background: #eff1f5; }

/* 一番左の列（用語）は横スクロールしても残す。背景を上で不透明にしてあるので
   下の列は透けない。 */
#terms-noline .wp-block-table th:first-child,
#terms-noline .wp-block-table td:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

/* 2列目以降の見出しは、その列が見えている間だけ左端に貼り付いて追従する。
   sticky の位置は「固定した1列目の右端」＝ --term-col。sticky は自分のセルの
   中でしか動けないので、列が流れ去れば見出しも一緒に消え、次の列の見出しが
   入れ替わりで貼り付く。--term-col は 1列目の幅＝一番長い用語「本サービス」5 字（5em）
   ＋左右の padding（.5em ずつ）＋左右の罫線（1px ずつ）。em は見出しのセルの 14px で解決される。
   1列目にこれより長い用語を足したら、ここを直す（前は JS で実寸を測っていた。2026-11-09 CSS だけに） */
#terms-noline .wp-block-table { --term-col: calc(6em + 2px); }
#terms-noline .wp-block-table thead th:not(:first-child) .th-label {
	position: sticky;
	/* セルの左 padding (.5em) を足しておかないと、スクロール開始の瞬間に
	   見出しが padding 分だけ左へ飛ぶ。 */
	left: calc(var(--term-col) + .5em);
	display: inline-block;
}
