/* ============================================================
   legal.css — お知らせ一覧（news.html）と規約3ページ
   （privacy.html / terms.html / tokushoho.html）で共用
   下層共通の css/page.css ができたら、次の単位で統合する
   ・ページの頭 ………… .page-head / .crumbs / .page-title / .page-meta / .page-lead
   ・読む面の本文 ……… .doc / .doc-grid / .prose / .doc-note / .doc-table
   ・ページ内の目次 …… .toc
   ・お知らせの一覧 …… .info-list / .info-date / .info-tag（top.css と同じ値）/ .news-filter
   ============================================================ */

/* ================= ページの頭（夜の面） ================= */
/* 入口の幕と同じ赤いサテンを暗く沈めて敷く。文字は左に寄せ、下層でも「幕の裏側」にいる感じを残す */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--night);
  padding: calc(76px + var(--s5)) 0 var(--s5); }
.page-head-bg { position: absolute; inset: 0; z-index: -1; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: brightness(.3); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-3); letter-spacing: .06em; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 .7em; color: var(--text-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); transition: color var(--t-state); }
.crumbs a:hover { color: var(--text); }

.page-title { margin-top: var(--s1); font-size: clamp(28px, 3.8vw, 48px); font-weight: 900; line-height: 1.25; letter-spacing: .02em; }
.page-meta { margin-top: var(--s2); font-size: 14px; color: var(--text-2); }
.page-lead { margin-top: var(--s2); max-width: 40em; font-size: 15px; line-height: 1.9; color: var(--text-2); }

@media (max-width: 1080px) {
  .page-head { padding-top: calc(60px + var(--s4)); }
}
@media (max-width: 767px) {
  .page-head { padding-bottom: var(--s4); }
  .page-title { font-size: 28px; }
}

/* ================= 読む面（規約の本文） ================= */
.doc { background: var(--paper); color: var(--ink); padding: var(--s5) 0 var(--s6); }
.doc ::selection { background: var(--ink); color: var(--paper); }
.doc :focus-visible { outline-color: var(--ink); }

/* 本文は左（見出しと同じ線に揃える）、目次は右で追従 */
.doc-grid { display: grid; grid-template-columns: minmax(0, 41em) 232px; column-gap: clamp(48px, 7vw, 112px); align-items: start; }
.doc-grid > .doc-body { grid-column: 1; grid-row: 1; }
.doc-grid > .toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
.doc-grid--single { grid-template-columns: minmax(0, 41em); }

/* 本文の文字組み：16px・行間1.8・1行は全角40字前後まで（41em ≒ 字間込みで39.8字） */
.prose { max-width: 41em; font-size: 16px; line-height: 1.8; letter-spacing: .03em; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose > h2 { margin-top: var(--s5); font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; scroll-margin-top: 96px; }
.prose > h2 + * { margin-top: 12px; }
.prose ul > li { position: relative; padding-left: 1em; }
.prose ul > li::before { content: "・"; position: absolute; left: 0; top: 0; color: var(--ink-3); }
.prose ul > li + li { margin-top: .5em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: var(--ink-3); transition: text-decoration-color var(--t-state); }
.prose a:hover { text-decoration-color: var(--ink); }

/* 注記：面の色差だけで分ける（枠線・片側の帯は使わない） */
.doc-note { padding: 20px 24px; background: var(--paper-2); border-radius: var(--r-m); font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.prose > .doc-note { margin-top: var(--s5); }
.prose > .doc-note:first-child { margin-top: 0; }

/* 表：PCは項目名｜内容の2列、スマホは項目名→内容の縦積み */
.doc-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-ink); }
.prose > .doc-table { margin-top: var(--s4); }
.doc-table tr { border-bottom: 1px solid var(--line-ink); }
.doc-table th, .doc-table td { padding: 20px 0; text-align: left; vertical-align: top; }
.doc-table th { width: 9.5em; padding-right: var(--s3); font-weight: 700; white-space: nowrap; }
.doc-table td { overflow-wrap: anywhere; }

/* ================= ページ内の目次 ================= */
.toc-h { margin-bottom: var(--s1); padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .1em; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r-s);
  font-size: 14px; line-height: 1.6; color: var(--ink-2); transition: background-color var(--t-state), color var(--t-state); }
.toc a:hover { background: rgba(26, 21, 18, .05); color: var(--ink); }
/* 読んでいる条項：面の塗りで示す（左の縦棒・下線は使わない） */
.toc a[aria-current="location"] { background: var(--paper-2); color: var(--ink); }

@media (max-width: 1023px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .doc-grid > .doc-body, .doc-grid > .toc { grid-column: auto; grid-row: auto; }
  .doc-grid > .toc { position: static; max-width: 41em; padding: 20px; background: var(--paper-2); border-radius: var(--r-m); }
  .toc a { min-height: 44px; }
  .toc a:hover, .toc a[aria-current="location"] { background: rgba(26, 21, 18, .06); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s2); }
}
@media (max-width: 767px) {
  .doc { padding: var(--s4) 0 72px; }
  .prose > h2 { margin-top: var(--s4); font-size: 18px; }
  .prose > .doc-note { margin-top: var(--s4); }
  .doc-note { padding: 16px 18px; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: auto; }
  .doc-table tr { padding: 16px 0; }
  .doc-table th { padding: 0 0 4px; font-size: 14px; color: var(--ink-2); white-space: normal; }
  .doc-table td { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.doc-grid .toc) { scroll-behavior: smooth; }
}

/* ================= お知らせ一覧 ================= */
/* 面・日付・札の色分けはトップのお知らせ（top.css の .info-*）と同じ値で書き写す */
.news-body { background: var(--night-2); padding: var(--s5) 0 var(--s6); }

/* 種類で絞り込む（JSが無いときは出さず、全件をそのまま見せる） */
.news-filter { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.js .news-filter { display: flex; }
.news-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-s); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text-2);
  transition: background-color var(--t-state) ease-out, color var(--t-state) ease-out, border-color var(--t-state) ease-out; }
.news-filter button:hover { background: rgba(244, 238, 234, .08); border-color: var(--text-2); color: var(--text); }
.news-filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.news-filter .num { font-weight: 500; color: var(--text-3); }
.news-filter button[aria-pressed="true"] .num { color: var(--ink-3); }

/* 一覧の行（top.css と同じ値） */
.info-list { display: grid; gap: 8px; }
.info-list li { display: grid; grid-template-columns: 96px auto minmax(0, 1fr); gap: 6px 24px; align-items: center; padding: 20px 24px;
  border-radius: var(--r-s); background: rgba(244, 238, 234, .035); font-size: 15px; line-height: 1.7; }
.info-list li[hidden] { display: none; }
.info-date { display: grid; line-height: 1.1; color: var(--text); }
.info-date b { font-size: 24px; font-weight: 900; letter-spacing: .02em; }
.info-date small { margin-top: 4px; font-size: 12px; color: var(--text-3); letter-spacing: .1em; }
.info-tag { justify-self: start; padding: 3px 12px; border-radius: 9999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.info-tag--new { background: var(--red); color: #fff; }
.info-tag--renew { background: rgba(201, 168, 106, .16); color: #e2c68f; box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .45); }
.info-tag--recruit { background: rgba(127, 214, 255, .12); color: #a8e1ff; box-shadow: inset 0 0 0 1px rgba(127, 214, 255, .4); }
/* 一覧で増えた分類：店舗の新しいビジュアル（news.json）。ほかの3色とぶつからない生成りの面 */
.info-tag--visual { background: rgba(244, 238, 234, .1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(244, 238, 234, .34); }
.info-more { margin-top: 40px; text-align: center; }
.info-more .btn { min-width: 260px; }

/* 一覧ページだけ：札の列幅をそろえて、タイトルの書き出しを縦一列にする */
@media (min-width: 768px) {
  .info-list--page li { grid-template-columns: 96px 104px minmax(0, 1fr); }
}
/* 外部リンクのある行は行全体を押せるようにする */
.info-list--page li { position: relative; }
.info-link { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line-2); transition: text-decoration-color var(--t-state); }
.info-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-s); }
.info-link:hover { text-decoration-color: var(--text); }
.info-link .ext { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; color: var(--text-3); }
.info-list--page li:has(.info-link:hover) { background: rgba(244, 238, 234, .07); }
/* 共通の出現（base.css の .rv）に、ホバーの面の切り替えだけ足す */
.info-list--page li.rv { transition: opacity .9s var(--ease-soft), transform 1.1s var(--ease-out), background-color var(--t-state) ease-out;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }

@media (max-width: 767px) {
  .news-body { padding: var(--s4) 0 72px; }
  .news-filter { margin-bottom: var(--s3); }
  .info-list li { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 16px; font-size: 14px; }
  .info-date { grid-row: 1 / span 2; }
  .info-date b { font-size: 20px; }
  .info-list p { grid-column: 2; }
  .info-more .btn { width: 100%; }
}

/* ---------- 追加（本番の作り）: 見本に無かった記事の種類の色。イベント＝赤い枠、取材＝新ビジュアルと同じ薄い枠、お知らせ＝灰色の枠 ---------- */
.info-tag--event { background: rgba(230, 0, 18, .16); color: #ff8a94; box-shadow: inset 0 0 0 1px rgba(230, 0, 18, .55); }
.info-tag--press { background: rgba(244, 238, 234, .1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(244, 238, 234, .34); }
.info-tag--info { background: rgba(244, 238, 234, .06); color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(244, 238, 234, .22); }
