@charset "utf-8";
/* lgbtq.tokyo 共通スタイル
   ・情報サイト。装飾より可読性を優先する。
   ・レインボーはブランドバーの細い1本だけに留める（全面に使うと本文が読めなくなる）。
   ・CSSを触ったら layout.js の CSS_VERSION を上げること。 */

:root {
    --bg: #16161a;
    --bg-sub: #1e1e24;
    --bg-box: #1b1b21;
    --fg: #ececf1;
    --fg-sub: #b8b8c2;
    --fg-mute: #92929c;
    --line: #32323c;
    --accent: #a68bf0;
    --accent-fg: #16161a;
    --accent-soft: #262036;
    --warn-bg: #2a2415;
    --warn-line: #5c4f22;
  --maxw: 760px;
  --radius: 14px;
  color-scheme: dark;
}



* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.brand-bar {
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e04a4a 0%, #e0913f 20%, #d8c33c 40%, #4fa85e 60%, #4a7fd0 80%, #8a56c4 100%);
  flex: none;
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: .93rem;
}
.nav a { color: var(--fg-sub); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 24px;
}
.breadcrumbs {
  margin: 0 0 10px;
  font-size: .85rem;
  color: var(--fg-mute);
}
.breadcrumbs a { color: var(--fg-mute); }
.breadcrumbs span { margin: 0 6px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.45;
  letter-spacing: .01em;
}
.hero-lead {
  margin: 0;
  color: var(--fg-sub);
  max-width: 62ch;
}
.updated {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--fg-mute);
}

/* トップのヒーロー */
.hero-top .hero-inner { padding: 44px 20px 38px; }
.hero-top h1 { font-size: 2rem; margin-bottom: 16px; }
.hero-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fg-sub);
  margin-top: 6px;
}
.hero-top .hero-lead { font-size: 1.05rem; }

/* ---------- レイアウト ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
}
.main { min-width: 0; }

.side-left, .side-right { font-size: .9rem; }
.side-left h2, .side-right h2 {
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--fg-mute);
  margin: 0 0 10px;
  font-weight: 700;
}
.side-sec {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--fg-mute);
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.side-left nav { display: flex; flex-direction: column; gap: 2px; }
.side-left nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-sub);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.side-left nav a:hover { background: var(--bg-sub); color: var(--accent); }
.side-left nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}
.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--bg-box);
}
.side-links, .source-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin: 0 0 8px; }
.source-links li { margin: 0 0 10px; line-height: 1.5; }
.source-links span { display: block; font-size: .8rem; color: var(--fg-mute); }
.side-note { font-size: .78rem; color: var(--fg-mute); margin: 10px 0 0; line-height: 1.6; }

/* ---------- 本文 ---------- */
.main section { margin: 0 0 40px; }
.main h2 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.main h3 {
  font-size: 1.05rem;
  margin: 26px 0 10px;
  color: var(--fg);
}
.main p { margin: 0 0 16px; }
.main ul, .main ol { margin: 0 0 18px; padding-left: 1.4em; }
.main li { margin: 0 0 8px; }
.main strong { font-weight: 700; }

.lead {
  font-size: 1.02rem;
  color: var(--fg-sub);
}

/* 要点ボックス（記事冒頭） */
.keypoints {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
}
.keypoints .note-title { margin: 0 0 8px; color: var(--accent); }
.keypoints ul { margin: 0; padding-left: 1.3em; }
.keypoints li { margin: 0 0 6px; }
.keypoints li:last-child { margin-bottom: 0; }

/* 用語辞典 */
.term-dl { margin: 0 0 22px; }
.term-dl dt {
  font-weight: 700;
  margin: 16px 0 4px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.term-dl dt:first-child { margin-top: 0; }
.term-dl dd { margin: 0; color: var(--fg-sub); }

/* チェックリスト */
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* トップの事実カード・レインボー線 */
.cards-fact b { font-size: 1.05rem; color: var(--fg); }
.cards-fact a:hover b { color: var(--accent); }
.rainbow-line {
  height: 3px;
  background: linear-gradient(90deg, #e04a4a, #e0913f, #d8c33c, #4fa85e, #4a7fd0, #8a56c4);
}
.hero-top { border-bottom: none; }

/* 免責・注記 */
.footnote {
  font-size: .84rem;
  color: var(--fg-mute);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 28px;
}

.caution .note-title { margin-bottom: 8px; }
.caution ul { margin: 10px 0 12px; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: .94rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--bg-sub);
  font-weight: 700;
  white-space: nowrap;
}
caption {
  caption-side: bottom;
  font-size: .8rem;
  color: var(--fg-mute);
  text-align: left;
  padding-top: 8px;
}

/* 補足ボックス */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-box);
  padding: 14px 18px;
  margin: 0 0 22px;
}
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin: 0 0 8px; }

.caution {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 22px;
}
.caution p:last-child { margin-bottom: 0; }

/* 手順 */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 42px;
  margin: 0 0 20px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 1rem; }
.steps p { margin: 0 0 6px; }

/* Q&A */
.qa { border-top: 1px solid var(--line); }
.qa > div { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  padding-left: 26px;
  position: relative;
}
.qa h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.qa p { margin: 0; padding-left: 26px; position: relative; color: var(--fg-sub); }
.qa p::before {
  content: "A";
  position: absolute;
  left: 0;
  color: var(--fg-mute);
  font-weight: 700;
}

/* カード（トップ用） */
.cards {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.cards li { margin: 0; }
.cards a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg-box);
  transition: border-color .15s, transform .15s;
}
.cards a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cards b { display: block; margin: 0 0 6px; font-size: 1rem; color: var(--accent); }
.cards span { display: block; font-size: .88rem; color: var(--fg-sub); line-height: 1.7; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sub);
  margin-top: 20px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px 28px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-nav h3 {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--fg-mute);
  margin: 0 0 10px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.footer-nav li { margin: 0 0 7px; }
.footer-nav a { color: var(--fg-sub); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; }
.footer-disclaimer {
  font-size: .8rem;
  color: var(--fg-mute);
  line-height: 1.75;
  margin: 0 0 10px;
}
.footer-copy { font-size: .8rem; color: var(--fg-mute); margin: 14px 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr) 240px; }
  .side-left { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px 16px 40px; }
  .side-right { order: 2; }
  .hero h1 { font-size: 1.4rem; }
  .hero-top h1 { font-size: 1.55rem; }
  .hero-inner { padding: 20px 16px 18px; }
  .hero-top .hero-inner { padding: 28px 16px 24px; }
  .footer-inner { padding: 26px 16px 22px; }

  /* ★ヘッダー。ナビを6項目にしたとき、折り返しで133pxを固定占有していた（812pxの16%）。
     (1) sticky をやめる … 全ページ共通のリンクはフッターに全部あるので、追従の必要がない
     (2) 1行の横スクロールにする … 折り返さないので高さが一定
     (3) タップ領域を26px→46pxに広げる */
  .site-header { position: static; }
  .header-inner { gap: 10px; padding: 6px 16px; flex-wrap: nowrap; align-items: center; }
  .brand { font-size: 1.05rem; }
  .nav {
    margin-left: auto;
    width: auto;
  }
  /* タッチ端末なのでタップ領域を広げる（28px→48px） */
  .nav a { padding: 10px 0; display: inline-block; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0 0; }
  .brand { padding: 0 16px; }
  .nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 18px;
    padding: 0 16px;
    font-size: .9rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    white-space: nowrap;
    padding: 10px 0;
    display: inline-block;
  }
}

/* ====== 2026-11-08 デザイン直し：スマホ1列・パソコンも同じ1列を真ん中に ====== */
.shell, .shell-top { display: block; max-width: var(--maxw); padding: 24px 16px 48px; }
.shell > * + * { margin-top: 28px; }
.side-left { display: block !important; }
.side-right { order: 0; }
.header-inner { max-width: 960px; }
.hero-inner { max-width: var(--maxw); }

/* ヒーロー枠：画像が無くてもグラデーションで成立する */
.hero { position: relative; overflow: hidden; border-bottom: 0; background: linear-gradient(135deg, #23183d 0%, #14213f 55%, #1a1230 100%); isolation: isolate; }
.hero[data-sec="play"] { background: linear-gradient(135deg, #2c1636 0%, #1c1a45 60%, #14213f 100%); }
.hero[data-sec="safe"] { background: linear-gradient(135deg, #10303a 0%, #16254a 60%, #1c1638 100%); }
.hero[data-sec="know"] { background: linear-gradient(135deg, #2f2414 0%, #2a1a3a 60%, #151f3f 100%); }
.hero[data-sec="law"]  { background: linear-gradient(135deg, #14283f 0%, #1d1c45 60%, #251540 100%); }
.hero[data-sec="life"] { background: linear-gradient(135deg, #123222 0%, #17254a 60%, #2a1740 100%); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,20,.35) 0%, rgba(14,14,20,.82) 100%); }
.hero-inner { padding: 56px 16px 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-top .hero-inner { min-height: 340px; padding: 80px 16px 30px; }
.hero h1 { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-lead, .hero .breadcrumbs, .hero .breadcrumbs a, .hero .updated { color: #d6d6e0; }
.hero-sub { color: #e2e2ec; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #e04a4a, #e0913f, #d8c33c, #4fa85e, #4a7fd0, #8a56c4); }
.rainbow-line { display: none; }

/* ボタン */
.btn, .btn-row a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.btn:hover, .btn-row a:hover { background: var(--accent); color: var(--accent-fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 入口タイル */
.entry { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.entry a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 92px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-box); color: var(--fg); text-decoration: none; font-weight: 700; border-top: 3px solid var(--c, var(--accent)); }
.entry a:hover { background: var(--accent-soft); }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); color: var(--c, var(--accent)); flex: none; }
.ico svg { width: 22px; height: 22px; }

/* 入口カード：小さな絵つき */
.cards { grid-template-columns: 1fr; gap: 12px; }
.cards a { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; border-left: 3px solid var(--c, var(--accent)); }
.cards a .ico { grid-row: 1 / span 2; }
.cards a:not(:has(.ico)) { display: block; }
.cards b { color: var(--fg); }

/* 状況から探す */
.sit-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.sit-list li { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-box); }
.sit-q { margin: 0 0 10px !important; font-weight: 700; }
.sit-list .btn-row a { min-height: 44px; padding: 8px 14px; font-size: .88rem; }

/* ページ一覧（旧左メニュー）を本文の下へ */
.side-left { border-top: 1px solid var(--line); padding-top: 22px; }
.side-left h2 { font-size: 1rem; color: var(--fg); }
.side-left nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.side-left nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; min-height: 40px; border-left-width: 1px; background: var(--bg-box); }
.side-left nav a[aria-current="page"] { border-color: var(--accent); }

@media (min-width: 821px) {
  .entry { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero h1 { font-size: 1.9rem; }
  .hero-top h1 { font-size: 2.3rem; }
}
@media (max-width: 820px) {
  .shell, .shell-top { padding: 22px 16px 40px; }
  .hero-inner, .hero-top .hero-inner { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cards a, .btn { transition: none; } }
.main .entry, .main .sit-list, .main .cards { padding-left: 0; }
.entry a { min-height: 76px; }

/* 状況から探す：4区分・2列の小カード */
.sit-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px !important; font-size: 1rem !important; }
.sit-h .ico { width: 32px; height: 32px; border-radius: 10px; }
.sit-h .ico svg { width: 18px; height: 18px; }
.main .sit-grid { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.sit-card { position: relative; margin: 0 !important; padding: 12px 12px 10px; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--radius); background: var(--bg-box); display: flex; flex-direction: column; gap: 8px; }
.sit-card:hover { background: var(--accent-soft); }
.sit-main { color: var(--fg); text-decoration: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sit-main::after { content: ""; position: absolute; inset: 0; }
.sit-card .sit-q { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.5; }
.sit-go { font-size: .82rem; color: var(--c); font-weight: 700; }
.sit-sub { position: relative; z-index: 1; font-size: .78rem; color: var(--fg-sub); align-self: flex-start; padding: 6px 0; min-height: 32px; }

/* 奥の面：開閉式FAQ・次に読む・手順・表 */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-box); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 40px 14px 16px; font-weight: 700; min-height: 48px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 16px 14px; color: var(--fg-sub); }
.qa { border-top: 0; }
.read-next h2 { display: flex; align-items: center; gap: 10px; border-bottom: 0; }
.read-next .ico { width: 32px; height: 32px; border-radius: 10px; }
.read-next .ico svg { width: 18px; height: 18px; }
.main .next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.next-grid li { margin: 0; }
.next-grid a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--radius); background: var(--bg-box); color: var(--fg); text-decoration: none; font-weight: 700; }
.next-grid a:hover { background: var(--accent-soft); }
.main .steps h3 { font-size: 1rem; }
@media (min-width: 821px) { .main .next-grid { grid-template-columns: repeat(3, 1fr); } }
table:not(:has(td:nth-child(3), th:nth-child(3))) { min-width: 0; table-layout: fixed; }
table:not(:has(td:nth-child(3), th:nth-child(3))) th { white-space: normal; width: 38%; }
.qa .faq p { padding: 0 16px 14px; }
.qa .faq p::before { content: none; }
