/*!
 * UNIVERSE REPORT Data — /data/・/data/archive/ のスタイル（プラグイン）
 * H1・パンくず・ページ構造は SWELL 標準（ここでは本文 760px との左端揃えと H1→本文の余白だけ指定）
 * すべて .urd 配下に限定（グローバルなセレクタは使わない）。
 * SWELL の .post_content 装飾（見出し・表）を打ち消すため、主要要素は .urd 起点で指定する。
 */

.urd {
  /* 色は colors.css の共通変数（--ur-*）。単体で使う場合のためフォールバック値を併記 */
  --urd-ink: var(--ur-text, #333333);   /* 文字はすべてこの1色 */
  /* 罫線はサイト共通の2系統（TOP と同じ値） */
  --urd-line: var(--ur-border, #E6E6E6);               /* 弱めの境界線：表の行・タブ下・リンク区切り・カード枠 */
  --urd-line-strong: var(--ur-border-strong, #CCCCCC);  /* 強めの区切り線：表ヘッダー下 */
  --urd-fill: var(--ur-surface-subtle, #F5F5F5);         /* 表の見出し行・合計行 */
  --urd-focus: var(--ur-focus, #1760D2);                 /* focus-visible 専用 */

  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  color: var(--urd-ink);
  font-family: inherit;         /* サイト（SWELL）の基本書体 Noto Sans JP を継承（TOP と共通） */
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
  line-break: strict;          /* 句読点・小書き文字の行頭禁則 */
  word-break: normal;
  overflow-wrap: break-word;   /* 長い英数字のみ最終手段で折る */
}
/* 文節単位の折り返し：対応ブラウザ（Chrome 119+ 等）は自動、非対応ブラウザは .urd-wb の区切りで折り返す */
.urd .urd-lead, .urd .urd-note, .urd .urd-link-title {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.urd .urd-wb { display: inline-block; }

/* /data/ 系ページのみ：SWELL のページタイトル（H1）を本文（760px・中央）と同じ左端に揃える
 * .urd-page は wp-integration.php が body_class で付与（SWELL は body_class を #body_wrap に出力するため body 限定にしない）。
 * タブレット・スマホでは本文と同じ幅になるため見た目は変わらない */
.urd-page .c-pageTitle {
  box-sizing: border-box;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
/* /data/ 系ページのみ：ページタイトル（H1）の下線から本文1行目の文字までの距離を
 * PC（600px〜）約40px・SP（〜599px）約36px にする。H1 自体（.c-pageTitle）には触れず、
 * SWELL 標準の「H1→本文」余白（.l-mainContent__inner > .post_content の margin-top: 4em）だけを上書きする。
 * 本文1行目は行間の上半分（PC 約2px・SP 約1px）だけ文字が下がるため、その分を差し引いた値 */
.urd-page .l-mainContent__inner > .post_content { margin-top: 38px; }
@media (max-width: 599px) {
  .urd-page .l-mainContent__inner > .post_content { margin-top: 35px; }
}
.urd *, .urd *::before, .urd *::after { box-sizing: inherit; }

/* SWELL の .post_content 見出し装飾をパネル見出しで打ち消す */
.urd .urd-panel-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--urd-ink);
  font-family: inherit;
  letter-spacing: .02em;
}
.urd .urd-panel-title::before, .urd .urd-panel-title::after { content: none; display: none; }

/* ---------- head ---------- */
.urd .urd-head { margin: 0 0 28px; }
.urd .urd-lead {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--urd-ink);
}
.urd .urd-meta {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--urd-ink);
}
.urd .urd-note {
  margin: -12px 0 24px;
  font-size: 14px;
  color: var(--urd-ink);
}
.urd .urd-note a { color: var(--urd-ink); }

/* ---------- tabs ---------- */
.urd .urd-tabs { display: none; }
.urd.is-enhanced .urd-tabs {
  display: flex;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid var(--urd-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.urd .urd-tabs::-webkit-scrollbar { display: none; }

.urd .urd-tab {
  flex: 1 1 0;              /* 4タブを均等幅で横幅いっぱいに配置 */
  min-width: max-content;   /* 文字が収まらない極小幅でのみ横スクロールへ */
  position: relative;
  margin: 0;
  padding: 12px 8px 13px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--urd-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;   /* 未選択タブ。選択中は 700（Noto Sans JP は 400・700 のみ読み込み） */
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.urd .urd-tab:hover { color: var(--urd-ink); }
.urd .urd-tab[aria-selected="true"] {
  color: var(--urd-ink);
  font-weight: 700;
}
/* 選択状態は色ではなく下線（#333）＋太字で示す */
.urd .urd-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--urd-ink);
}
.urd .urd-tab:focus { outline: none; }
.urd .urd-tab:focus-visible { outline: 2px solid var(--urd-focus); outline-offset: -4px; }

/* ---------- panel ---------- */
.urd .urd-panel { margin: 0 0 28px; }   /* 表の下端〜下部リンクの文字：PC 約48px（リンク内の上パディング 18px を含む） */
.urd.is-enhanced .urd-panel[hidden] { display: none; }
.urd .urd-panel:focus { outline: none; }
.urd .urd-panel:focus-visible { outline: 2px solid var(--urd-focus); outline-offset: 6px; }

.urd .urd-panel-title {
  margin-bottom: 16px;   /* 見出し→表（SP 14px） */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- table ---------- */
.urd .urd-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: none;
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.urd .urd-col-label { width: auto; }
.urd .urd-col-num { width: 32%; }
.urd .urd-col-pct { width: 24%; }

.urd .urd-table th,
.urd .urd-table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--urd-line);
  background: none;
  color: var(--urd-ink);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.urd .urd-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--urd-fill);
  border-bottom-color: var(--urd-line-strong);
  color: var(--urd-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.urd .urd-table tfoot th,
.urd .urd-table tfoot td {
  background: var(--urd-fill);
  border-bottom: 0;
  font-weight: 700;
}
.urd .urd-table .urd-num { text-align: right; white-space: nowrap; }
/* 項目名「A（お食事デート）」：狭い画面では「A」と「（名称）」の間で折り返す */
.urd .urd-item-name { display: inline-block; }

/* ---------- 表の直下の注記（区分不明の人数がある軸だけ出力。例：交際タイプを確認できなかった人数） ---------- */
.urd .urd-table-note { margin: 12px 0 0; padding: 0; font-size: 13px; line-height: 1.7; color: var(--urd-ink); }

/* ---------- 表の下の「交際タイプについて」（控えめなテキストリンク。JS 有効時のみ表示） ---------- */
.urd .urd-notes-open-wrap { display: none; margin: 16px 0 0; padding: 0; line-height: 1.7; }
.urd.is-enhanced .urd-notes-open-wrap { display: block; }
.urd .urd-notes-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--urd-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.urd .urd-notes-open:hover { text-decoration-thickness: 2px; }
.urd .urd-notes-open:focus { outline: none; }
.urd .urd-notes-open:focus-visible { outline: 2px solid var(--urd-focus); outline-offset: 2px; }

/* ---------- 説明モーダル（ネイティブ <dialog>。白背景・#333・控えめな角丸と影） ---------- */
.urd .urd-dialog {
  box-sizing: border-box;
  width: calc(100% - 32px);   /* SP は左右 16px の余白 */
  max-width: 560px;
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ur-bg, #FFFFFF);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  color: var(--urd-ink);
  font-size: 15px;
  line-height: 1.7;
  overflow: hidden;
}
.urd .urd-dialog[open] { display: flex; flex-direction: column; }
.urd .urd-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.urd .urd-dialog-inner { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.urd .urd-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 20px 16px 12px 28px;
}
.urd .urd-dialog-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--urd-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}
.urd .urd-dialog-title::before, .urd .urd-dialog-title::after { content: none; display: none; }
.urd .urd-dialog-close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none;
  color: var(--urd-ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.urd .urd-dialog-close::before,
.urd .urd-dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.urd .urd-dialog-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.urd .urd-dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.urd .urd-dialog-close:hover { background: var(--urd-fill); }
.urd .urd-dialog-close:focus { outline: none; }
.urd .urd-dialog-close:focus-visible { outline: 2px solid var(--urd-focus); outline-offset: 0; }
.urd .urd-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 28px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 導入部（会員数の直下）の「データについて」：会員数と同じ間隔・文字サイズ */
.urd .urd-notes-open-wrap--head { margin-top: 6px; }

/* モーダル内の文章（「データについて」） */
.urd .urd-dialog-text { color: var(--urd-ink); font-size: 15px; line-height: 1.7; }
.urd .urd-dialog-text p { margin: 0; padding: 0; color: var(--urd-ink); font-size: inherit; line-height: inherit; }
.urd .urd-dialog-text p + p { margin-top: 12px; }

/* モーダル内の説明（項目名 700・説明 400） */
.urd .urd-notes { margin: 0; padding: 0; border: 0; background: none; color: var(--urd-ink); font-size: 15px; line-height: 1.7; }
.urd .urd-notes-item { margin: 0; padding: 0; }
.urd .urd-notes-item + .urd-notes-item { margin-top: 18px; }
.urd .urd-notes-term,
.urd .urd-notes-desc {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--urd-ink);
  font-size: inherit;
  line-height: inherit;
}
.urd .urd-notes-term { font-weight: 700; }
.urd .urd-notes-desc { font-weight: 400; }
.urd .urd-notes-term::before, .urd .urd-notes-term::after,
.urd .urd-notes-desc::before, .urd .urd-notes-desc::after { content: none; }

/* モーダル表示中は背面ページをスクロールさせない（urd.js が html に付与） */
html.urd-dialog-open { overflow: hidden; }

/* ---------- links（/data/ → 過去の会員データ、/data/archive/ → 現在の会員データ。1リンク） ----------
 * 区切り線は使わず、余白だけで配置する。直前の表（.urd-panel）・一覧（.urd-list）の下マージン＋リンク内の上パディングで
 * 表・一覧の下端〜リンクの文字を PC 約48px・SP 約40px にする */
.urd .urd-links { margin: 0; border: 0; }
.urd .urd-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.urd .urd-links-item { margin: 0; padding: 0; list-style: none; line-height: 1.7; }   /* SWELL の .post_content li（行間 1.5）を打ち消す */
.urd .urd-links-item::before { content: none; }
.urd .urd-link {
  display: block;
  height: 100%;
  padding: 18px 0;
  color: var(--urd-ink);
  text-decoration: none;
}
.urd .urd-link-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.urd .urd-link:hover .urd-link-title { text-decoration: underline; text-underline-offset: 3px; }
.urd .urd-link-arrow {
  /* TOP の「もっと見る」と同じ →（文字色に追従） */
  flex: 0 0 auto;
  width: 15px;
  height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M0 4.5h14M10 1l3.8 3.5L10 8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M0 4.5h14M10 1l3.8 3.5L10 8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
}
.urd .urd-link:hover .urd-link-arrow,
.urd .urd-link:focus-visible .urd-link-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .urd .urd-link-arrow { transition: none; } }
.urd .urd-link:focus-visible { outline: 2px solid var(--urd-focus); outline-offset: 2px; }

/* ---------- archive list ---------- */
.urd .urd-list { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--urd-line); }
.urd .urd-list-item { margin: 0; padding: 0; border-bottom: 1px solid var(--urd-line); list-style: none; line-height: 1.7; }
.urd .urd-list-item::before { content: none; }
.urd .urd-list-link { display: block; padding: 16px 0; color: var(--urd-ink); text-decoration: none; }
.urd a.urd-list-link:hover .urd-list-title { text-decoration: underline; text-underline-offset: 3px; }
.urd .urd-list-title { display: block; font-weight: 700; }
.urd .urd-list-meta { display: block; font-size: 13px; color: var(--urd-ink); }
/* 会員数・基準日（/data/ の .urd-meta、一覧の .urd-list-meta 共通）：数値・日付も含めて全体を #333 */
.urd .urd-members * { color: inherit; font-weight: inherit; }

/* ---------- utility ---------- */
.urd .urd-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- smartphone ---------- */
@media (max-width: 599px) {
  .urd { font-size: 14px; }
  .urd .urd-head { margin-bottom: 20px; }
  .urd .urd-lead { margin-top: 8px; font-size: 14px; }
  .urd .urd-meta { font-size: 13px; }

  .urd.is-enhanced .urd-tabs { margin-bottom: 22px; }
  .urd .urd-tab {
    padding: 11px 4px 12px;
    font-size: 14px;
  }

  .urd .urd-panel,
  .urd .urd-list { margin-bottom: 22px; }   /* 表・一覧の下端〜下部リンクの文字：SP 約40px */
  .urd .urd-panel-title { font-size: 17px; }
  .urd .urd-panel-title { margin-bottom: 14px; }

  .urd .urd-table { font-size: 14px; }
  .urd .urd-col-num { width: 30%; }
  .urd .urd-col-pct { width: 23%; }
  .urd .urd-table th,
  .urd .urd-table td { padding: 10px 8px; }
  .urd .urd-table thead th { font-size: 12px; }
  .urd .urd-unit { display: none; }

  .urd .urd-table-note { margin-top: 10px; font-size: 12px; }
  .urd .urd-notes-open-wrap { margin-top: 14px; }
  .urd .urd-notes-open-wrap--head { margin-top: 6px; }
  .urd .urd-dialog-text { font-size: 14px; }
  .urd .urd-dialog-text p + p { margin-top: 10px; }
  .urd .urd-notes-open { font-size: 12px; }
  .urd .urd-dialog-head { padding: 16px 8px 8px 20px; }
  .urd .urd-dialog-title { font-size: 17px; }
  .urd .urd-dialog-body { padding: 4px 20px 24px; }
  .urd .urd-notes { font-size: 14px; }
  .urd .urd-notes-item + .urd-notes-item { margin-top: 14px; }

  .urd .urd-link { padding: 16px 0; }
  }

/* 小型スマートフォン（〜360px） */
@media (max-width: 360px) {
  .urd .urd-tab { padding-left: 2px; padding-right: 2px; font-size: 13px; letter-spacing: 0; }
  .urd .urd-table { font-size: 13px; }
  .urd .urd-col-num { width: 27%; }
  .urd .urd-col-pct { width: 22%; }
  .urd .urd-table th,
  .urd .urd-table td { padding: 10px 6px; }
}
