/* こはる 公式サイト（法務・サポート）
   温かい白地に濃い焦げ茶の文字。橙（こはるの色）は飾りと強調にだけ使い、
   本文の文字やリンクには、地の色との差が十分にある濃い色を使う。 */

:root {
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --tint: #FDF0E3;          /* 橙を薄くした面（注意書き・要点） */
  --line: #EADFD4;
  --text: #2A2420;
  --muted: #6B5F57;
  --accent: #F2994A;        /* こはるの色。文字には使わない（白地での差が足りない） */
  --link: #A84F16;          /* 橙を濃くしたリンクの色 */
  --violet: #4B32A8;
  --violet-soft: #E4DCF3;
  --danger: #B03A36;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", var(--font);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #7F3A0F; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--text); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(100% - 40px, 880px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */

.site-header {
  background: rgba(251, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px 16px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-round); font-weight: 800; font-size: 20px;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav .lang { color: var(--link); }

/* ---------- トップページ ---------- */

.hero { padding: 56px 0 24px; text-align: center; }
.hero img { width: 112px; height: 112px; }
.hero h1 {
  margin: 12px 0 0; font-family: var(--font-round);
  font-size: clamp(40px, 9vw, 60px); line-height: 1.15; letter-spacing: 0.04em;
}
.tagline { margin: 8px 0 0; font-size: clamp(18px, 3.6vw, 22px); font-weight: 700; }
.lead { margin: 16px auto 0; max-width: 34em; color: var(--muted); }
.cta { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--text); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { color: #fff; background: #43392F; }
.button.secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--line); }
.button.secondary:hover { background: var(--tint); color: var(--text); }
.pill {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1.5px dashed var(--accent); color: var(--muted); font-weight: 700;
}

section { padding: 36px 0; }
section > h2, .page h1 {
  margin: 0 0 12px; font-family: var(--font-round);
  font-size: clamp(25px, 5vw, 32px); line-height: 1.35;
}
.section-lead { margin: 0 0 20px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.facts strong { display: block; font-size: 18px; margin-bottom: 4px; }
.facts strong::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 2px;
}
.facts span, .card p { color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.5; }
.card p { margin: 0; }

.statement {
  background: var(--violet-soft); border-radius: var(--radius); padding: 24px;
}
.statement h2 { margin: 0 0 8px; font-family: var(--font-round); font-size: 22px; color: var(--violet); }
.statement ul { margin: 0; padding-left: 1.3em; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700;
}
.link-list a::after { content: "›"; color: var(--link); font-size: 22px; line-height: 1; }
.link-list a:hover { background: var(--tint); }

/* ---------- 文章のページ ---------- */

.page { padding: 40px 0 16px; }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.page h2 { font-family: var(--font-round); font-size: 21px; line-height: 1.45; margin: 40px 0 8px; }
.page h3 { font-size: 18px; margin: 24px 0 4px; }
.page ul, .page ol { padding-left: 1.4em; }
.page li + li { margin-top: 4px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px 20px;
}
.summary {
  background: var(--tint); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px;
}
.summary h2 { margin: 0 0 6px; font-size: 19px; }
.summary ul { margin: 0; }
.note {
  margin: 16px 0; padding: 14px 18px; border-left: 4px solid var(--accent);
  background: var(--tint); border-radius: 0 12px 12px 0;
}
.note.danger { border-left-color: var(--danger); background: #FBEDEC; }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }
.toc { font-size: 15px; columns: 2; column-gap: 24px; margin: 0 0 8px; }
.toc li { break-inside: avoid; }

/* 表は狭い画面で横に送れるようにする（文字を詰めて読めなくしない） */
.table-scroll { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.page table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { background: var(--bg); white-space: nowrap; }

/* 相談窓口: 番号を大きく、そのまま電話をかけられるようにする */
.hotlines { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.hotlines li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 0;
}
.hotlines .name { display: block; font-weight: 700; }
.hotlines .tel { font-size: 22px; font-weight: 800; letter-spacing: 0.03em; color: var(--text); }
.hotlines .hours { display: block; color: var(--muted); font-size: 15px; }
.hotlines li.urgent { border-color: var(--danger); }
.hotlines li.urgent .tel { color: var(--danger); }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 14px; }
.faq details > div p { margin: 0 0 8px; }
.faq h2 { margin-top: 36px; }

.contact {
  margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--tint);
}
.contact h2 { margin-top: 0; }
.contact p { margin: 0 0 6px; }

.cite { font-size: 15px; color: var(--muted); }

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px;
  color: var(--muted); font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 4px 0 0; }

/* ---------- 小さい画面 ---------- */

@media (max-width: 720px) {
  .facts, .cards { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
@media (max-width: 600px) {
  /* 狭い画面では表を 1 行ずつのカードにして、横に送らなくても全部の列が読めるようにする */
  .table-scroll { overflow-x: visible; }
  .page table { min-width: 0; }
  .page thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .page td { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 3px 0; border: 0; }
  .page td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
  .page td:first-child { display: block; font-weight: 700; padding-bottom: 6px; }
  .page td:first-child::before { content: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 880px); }
  .panel { padding: 4px 16px 16px; }
  .hero { padding-top: 36px; }
  .brand { font-size: 18px; }
  .site-nav { gap: 0 12px; font-size: 14px; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; }
}

/* 見出しへのリンクで飛んだとき、固定のヘッダーに隠れないようにする */
[id] { scroll-margin-top: 76px; }
