/* ==========================================================
   夜開（よるびらき）｜ナイトビジネス開業ガイド
   DESIGN SYSTEM : Midnight Navy × Champagne Gold
   ========================================================== */

/* ----------------------------------------------------------
   01. デザイントークン
   ---------------------------------------------------------- */

:root {
  --bg: #0d111b;
  --bg-deep: #090c13;
  --surface: #151b28;
  --surface-hover: #1c2433;
  --surface-light: #202938;

  --gold: #cbb17d;
  --gold-light: #e5d3ab;
  --gold-dark: #9c8251;
  --gold-muted: rgba(203, 177, 125, 0.12);

  --text: #e4e6ec;
  --text-heading: #f5f2eb;
  --text-secondary: #b1b8c5;
  --text-muted: #929cad;

  --border: #2c3442;
  --border-gold: rgba(203, 177, 125, 0.35);

  --paper: #f6f5f1;
  --paper-alt: #eeece6;
  --paper-text: #30343b;
  --paper-heading: #17202e;
  --paper-muted: #656a73;
  --paper-border: #d8d6d0;
  --paper-link: #785b29;

  --point-bg: #f0e9d9;
  --point-border: #b59a64;
  --point-text: #695027;

  --warn-bg: #f4e7e6;
  --warn-border: #ad7470;
  --warn-text: #863f3d;

  --note-bg: #e9ebee;
  --note-border: #929ba8;
  --note-text: #505b6c;

  --font-body: "Noto Sans JP", sans-serif;
  --font-heading: "Noto Serif JP", serif;

  --container-width: 1200px;
  --article-width: 820px;
  --sidebar-width: 290px;

  --radius: 2px;
  --transition: 180ms ease;
}


/* ----------------------------------------------------------
   02. リセット・基本設定
   ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.025em;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img,
picture,
video,
svg,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
  border-radius: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea,
.card {
  border-radius: var(--radius);
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}


/* ----------------------------------------------------------
   03. アクセシビリティ
   ---------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 20px;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: 0;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--bg-deep);
}


/* ----------------------------------------------------------
   04. コンテナ
   ---------------------------------------------------------- */

.container {
  width: min(100% - 64px, var(--container-width));
  min-width: 0;
  margin-inline: auto;
}


/* ----------------------------------------------------------
   05. ヘッダー・ロゴ
   ---------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-gold);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 64px, var(--container-width));
  min-width: 0;
  min-height: 92px;
  margin-inline: auto;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  color: var(--gold);
  line-height: 1.3;
}

.site-logo-mark {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-logo-sub {
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-logo:hover {
  color: var(--gold-light);
}


/* ----------------------------------------------------------
   06. グローバルナビゲーション
   ---------------------------------------------------------- */

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  list-style: none;
}

.site-nav li {
  flex-shrink: 0;
}

.site-nav li > a {
  position: relative;
  display: block;
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav li > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav li > a:hover,
.site-nav li > a[aria-current="page"] {
  color: var(--gold-light);
}

.site-nav li > a:hover::after,
.site-nav li > a[aria-current="page"]::after {
  transform: scaleX(1);
}


/* ----------------------------------------------------------
   07. ヒーロー
   ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 108px 0 112px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(203, 177, 125, 0.09),
      transparent 52%
    ),
    linear-gradient(
      125deg,
      #090d16 0%,
      #141d30 65%,
      #101621 100%
    );
  border-bottom: 1px solid var(--border-gold);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 30px;
  right: -100px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(203, 177, 125, 0.07);
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    transparent
  );
  content: "";
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero-eyebrow::before {
  flex-shrink: 0;
  width: 36px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero-title {
  max-width: 900px;
  color: var(--text-heading);
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.045em;
  line-break: strict;
}

.hero-title em,
.hero-title strong {
  color: var(--gold-light);
  font-style: normal;
}

.hero-lead {
  max-width: 680px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 2.1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}


/* ----------------------------------------------------------
   08. ボタン
   ---------------------------------------------------------- */

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  max-width: 100%;
  padding: 13px 28px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
}

.btn {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
}

.btn-ghost:hover {
  background: var(--gold-muted);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn:disabled,
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ----------------------------------------------------------
   09. セクション・見出し
   ---------------------------------------------------------- */

.section {
  padding: 76px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 20px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.06em;
}

.section-title span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.section-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.list-head .section-title {
  margin-bottom: 0;
}

.list-head > a {
  padding: 8px 0;
  color: var(--gold);
  font-size: 13px;
}

.list-head > a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* ----------------------------------------------------------
   10. 業種別カテゴリーカード
   ---------------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.cat-card {
  min-width: 0;
}

.cat-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 28px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dark);
  border-radius: 0;
  color: var(--text);
}

.cat-card > a:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  color: var(--text);
}

.cat-card-num {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.cat-card-title {
  display: block;
  margin-bottom: 12px;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
}

.cat-card-desc {
  display: block;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
}

.cat-card-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--gold);
  font-size: 12px;
}

.cat-card-count::after {
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
  content: "→";
}


/* ----------------------------------------------------------
   11. 記事一覧
   ---------------------------------------------------------- */

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.article-card {
  min-width: 0;
}

.article-card > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
}

.article-card > a:hover {
  background: var(--surface-hover);
  border-color: var(--gold-dark);
  color: var(--text);
}

.article-card h3 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.75;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
}

.article-card > a:hover h3 {
  color: var(--gold-light);
}

.article-list.compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.article-list.compact .article-card > a {
  gap: 8px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.article-list.compact .article-card > a:hover {
  background: var(--surface);
}

.article-list.compact .article-card h3 {
  font-size: 16px;
  line-height: 1.7;
}

.article-list.compact .article-card p {
  font-size: 12px;
}


/* ----------------------------------------------------------
   12. バッジ
   ---------------------------------------------------------- */

.badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 10px;
  background: var(--gold-muted);
  border: 1px solid var(--border-gold);
  border-radius: 0;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.045em;
  vertical-align: middle;
}


/* ----------------------------------------------------------
   13. パンくずリスト
   ---------------------------------------------------------- */

.breadcrumb {
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline;
  min-width: 0;
}

.breadcrumb li + li::before {
  display: inline-block;
  margin: 0 12px;
  color: var(--gold-dark);
  content: "/";
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.breadcrumb li:last-child {
  color: var(--gold);
}


/* ----------------------------------------------------------
   14. 記事ページヘッダー
   ---------------------------------------------------------- */

.page-head {
  margin-bottom: 36px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border-gold);
}

.page-head h1 {
  max-width: 1000px;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.65;
  letter-spacing: 0.035em;
  line-break: strict;
}

.page-head .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.page-head .badge {
  margin-bottom: 16px;
}

.page-head .meta .badge {
  margin-bottom: 0;
}


/* ----------------------------------------------------------
   15. 本文・サイドバーのレイアウト
   ---------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, var(--sidebar-width));
  align-items: start;
  gap: 32px;
  padding-bottom: 80px;
}

.layout > * {
  min-width: 0;
}


/* ----------------------------------------------------------
   16. 記事本文
   長時間の閲覧を考慮した温かみのある明色背景
   ---------------------------------------------------------- */

.article {
  min-width: 0;
  padding: 48px 44px;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  border-top: 3px solid var(--gold);
  border-radius: 0;
  color: var(--paper-text);
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  line-break: strict;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.article > :first-child {
  margin-top: 0;
}

.article > :last-child {
  margin-bottom: 0;
}

.article h2,
.article h3,
.article h4 {
  color: var(--paper-heading);
  font-family: var(--font-heading);
}

.article h2 {
  margin: 56px 0 24px;
  padding: 12px 0 12px 19px;
  border-left: 4px solid var(--gold-dark);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.035em;
}

.article h3 {
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-border);
  font-size: 20px;
  line-height: 1.7;
}

.article h4 {
  margin: 28px 0 14px;
  font-size: 17px;
  line-height: 1.7;
}

.article p {
  margin-bottom: 1.5em;
}

.article ul,
.article ol {
  margin: 20px 0 28px;
  padding-left: 1.7em;
}

.article li {
  margin-bottom: 0.65em;
  padding-left: 0.15em;
}

.article li:last-child {
  margin-bottom: 0;
}

.article li::marker {
  color: var(--gold-dark);
  font-weight: 600;
}

.article li > ul,
.article li > ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

.article a {
  color: var(--paper-link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article a:hover {
  color: var(--paper-heading);
  text-decoration-thickness: 2px;
}

.article strong {
  color: var(--paper-heading);
  font-weight: 700;
}

.article blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--paper-alt);
  border-left: 3px solid var(--gold-dark);
  color: var(--paper-muted);
  font-size: 15px;
  line-height: 1.9;
}

.article blockquote p:last-child {
  margin-bottom: 0;
}

.article hr {
  height: 1px;
  margin: 42px 0;
  background: var(--paper-border);
  border: 0;
}

.article img {
  margin: 24px 0;
  border-radius: 0;
}

.article figcaption {
  margin-top: 8px;
  color: var(--paper-muted);
  font-size: 12px;
  text-align: center;
}

.article pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  background: var(--paper-alt);
  font-size: 13px;
  line-height: 1.7;
}

.article .badge {
  background: var(--point-bg);
  border-color: var(--point-border);
  color: var(--point-text);
}


/* ----------------------------------------------------------
   17. 記事リード文
   ---------------------------------------------------------- */

.article .lead {
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--paper-border);
  color: var(--paper-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
}


/* ----------------------------------------------------------
   18. 目次
   ---------------------------------------------------------- */

.toc {
  margin: 32px 0 42px;
  padding: 26px 28px;
  background: var(--paper-alt);
  border: 1px solid var(--paper-border);
  border-top: 2px solid var(--gold-dark);
  border-radius: 0;
}

.toc-title {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--paper-border);
  color: var(--paper-heading);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
  color: var(--paper-text);
  font-size: 14px;
  line-height: 1.85;
}

.toc li {
  margin-bottom: 10px;
}

.toc li:last-child {
  margin-bottom: 0;
}

.toc li::marker {
  color: var(--gold-dark);
  font-weight: 600;
}

.toc a,
.article .toc a {
  color: var(--paper-text);
  font-weight: 400;
  text-decoration: none;
}

.toc a:hover,
.article .toc a:hover {
  color: var(--paper-link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toc ol ol {
  margin-top: 10px;
  font-size: 13px;
}


/* ----------------------------------------------------------
   19. 開業手順・ステップ
   ---------------------------------------------------------- */

ol.steps {
  --step-marker-bg: var(--bg);
  --step-line: var(--border-gold);

  position: relative;
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.article ol.steps {
  --step-marker-bg: var(--paper);
  --step-line: var(--point-border);

  margin: 32px 0;
  padding: 0;
}

ol.steps > li {
  position: relative;
  min-height: 76px;
  margin: 0;
  padding: 2px 0 32px 66px;
  list-style: none;
  counter-increment: step;
}

ol.steps > li::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--step-marker-bg);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  content: counter(step, decimal-leading-zero);
}

.article ol.steps > li::before {
  color: var(--paper-link);
}

ol.steps > li::after {
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 21px;
  width: 1px;
  background: var(--step-line);
  content: "";
}

ol.steps > li:last-child {
  min-height: 44px;
  padding-bottom: 0;
}

ol.steps > li:last-child::after {
  display: none;
}

ol.steps > li > h3,
ol.steps > li > h4 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1.7;
}

ol.steps > li > p {
  margin-bottom: 12px;
}

ol.steps > li > :last-child {
  margin-bottom: 0;
}


/* ----------------------------------------------------------
   20. ポイント・注意・補足ボックス
   ---------------------------------------------------------- */

.box-point,
.box-warn,
.box-note {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.9;
}

.box-point {
  background: var(--point-bg);
  border-color: var(--point-border);
  color: var(--point-text);
}

.box-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.box-note {
  background: var(--note-bg);
  border-color: var(--note-border);
  color: var(--note-text);
}

.box-title,
.article .box-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.box-point .box-title::before {
  font-size: 13px;
  content: "◆";
}

.box-warn .box-title::before {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  content: "!";
}

.box-note .box-title::before {
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  content: "i";
}

.box-point p:last-child,
.box-warn p:last-child,
.box-note p:last-child {
  margin-bottom: 0;
}

.box-point ul:last-child,
.box-warn ul:last-child,
.box-note ul:last-child,
.box-point ol:last-child,
.box-warn ol:last-child,
.box-note ol:last-child {
  margin-bottom: 0;
}

.box-point strong,
.box-warn strong,
.box-note strong,
.article .box-point strong,
.article .box-warn strong,
.article .box-note strong {
  color: inherit;
}


/* ----------------------------------------------------------
   21. チェックリスト
   ---------------------------------------------------------- */

ul.checklist,
.article ul.checklist {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

ul.checklist > li {
  position: relative;
  margin: 0;
  padding: 13px 0 13px 35px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}

.article ul.checklist > li {
  border-color: var(--paper-border);
}

ul.checklist > li::before {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--gold-dark);
  border-radius: 0;
  content: "";
}

ul.checklist > li:has(input[type="checkbox"])::before {
  display: none;
}

ul.checklist input[type="checkbox"] {
  position: absolute;
  top: 20px;
  left: 2px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}

ul.checklist label {
  cursor: pointer;
}


/* ----------------------------------------------------------
   22. テーブル
   ---------------------------------------------------------- */

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 28px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--paper-alt);
  -webkit-overflow-scrolling: touch;
}

.article table {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--paper-text);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article table th,
.article table td {
  padding: 14px 16px;
  border: 1px solid var(--paper-border);
  text-align: left;
  vertical-align: top;
}

.article table th {
  background: var(--paper-alt);
  color: var(--paper-heading);
  font-weight: 600;
}

.article table thead th {
  background: var(--surface-light);
  border-color: var(--border);
  color: var(--gold-light);
}

.article table tbody tr:nth-child(even) td {
  background: #efeee9;
}

.article table caption {
  margin-bottom: 10px;
  color: var(--paper-muted);
  font-size: 13px;
  text-align: left;
}

table.spec {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
  line-height: 1.8;
}

.table-wrap table,
.article .table-wrap table {
  width: 100%;
  max-width: none;
  min-width: 560px;
  margin: 0;
  table-layout: auto;
}

table.spec th,
table.spec td {
  padding: 15px 18px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.spec th {
  width: 30%;
  background: var(--surface-light);
  color: var(--gold-light);
  font-weight: 600;
}

table.spec td {
  background: var(--surface);
  color: var(--text);
}

.article table.spec th {
  background: var(--paper-alt);
  color: var(--paper-heading);
}

.article table.spec td {
  background: var(--paper);
  color: var(--paper-text);
}

.article table.spec th,
.article table.spec td {
  border-color: var(--paper-border);
}

.article table.spec thead th {
  background: var(--surface-light);
  border-color: var(--border);
  color: var(--gold-light);
}

.article table.spec thead th {
  width: auto;
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}

.table-wrap::-webkit-scrollbar-track {
  background: var(--paper-alt);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 0;
}


/* ----------------------------------------------------------
   23. 注釈・出典
   ---------------------------------------------------------- */

.note-small {
  display: block;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

.article .note-small {
  color: var(--paper-muted);
}


/* ----------------------------------------------------------
   24. サイドバー
   ---------------------------------------------------------- */

.sidebar {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 24px;
  min-width: 0;
}

.side-box {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dark);
  border-radius: 0;
}

.side-title {
  display: block;
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.side-box ul,
.side-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-box li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.75;
}

.side-box li:first-child {
  padding-top: 0;
}

.side-box li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.side-box a {
  color: var(--text-secondary);
}

.side-box a:hover,
.side-box a[aria-current="page"],
.side-box a[aria-current="location"] {
  color: var(--gold-light);
}

.side-box p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
}

.sidebar .article-list {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar .article-card > a {
  padding-inline: 0;
}

.sidebar .article-list.compact .article-card h3 {
  font-size: 14px;
}

.toc-side {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--surface);
}

.toc-side ol {
  padding-left: 1.4em;
  list-style: decimal;
}

.toc-side ol li::marker {
  color: var(--gold);
  font-size: 12px;
}

.toc-side ol ol {
  margin-top: 10px;
  padding-left: 1.3em;
}

.toc-side ol ol li {
  font-size: 12px;
}


/* ----------------------------------------------------------
   25. 関連記事
   ---------------------------------------------------------- */

.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-gold);
}

.related-title {
  position: relative;
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.6;
}

.related .article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related .article-list.compact {
  grid-template-columns: minmax(0, 1fr);
}

.article .related {
  border-color: var(--paper-border);
}

.article .related-title {
  margin-top: 0;
  color: var(--paper-heading);
}

.article .related .article-list {
  padding: 0;
  list-style: none;
}

.article .related .article-card {
  margin: 0;
  padding: 0;
}

.article .related .article-card > a {
  background: var(--paper-alt);
  border-color: var(--paper-border);
  color: var(--paper-text);
  text-decoration: none;
}

.article .related .article-card > a:hover {
  background: var(--point-bg);
  border-color: var(--gold-dark);
}

.article .related .article-card h3 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--paper-heading);
  font-size: 16px;
}

.article .related .article-card p {
  margin: 0;
  color: var(--paper-muted);
}


/* ----------------------------------------------------------
   26. 免責事項
   ---------------------------------------------------------- */

.disclaimer {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.9;
}

.disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

.article .disclaimer {
  background: var(--paper-alt);
  border-color: var(--paper-border);
  border-left-color: var(--gold-dark);
  color: var(--paper-muted);
}

.article .disclaimer strong {
  color: var(--paper-heading);
}


/* ----------------------------------------------------------
   27. フッター
   ---------------------------------------------------------- */

.site-footer {
  padding: 64px 0 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 48px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

.footer-desc {
  max-width: 320px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 2;
}

.footer-head {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  padding: 22px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
}


/* ----------------------------------------------------------
   28. レスポンシブ：小型PC・タブレット
   ---------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 250px;
  }

  .site-header-inner {
    gap: 20px;
  }

  .site-nav ul {
    gap: 17px;
  }

  .site-nav li > a {
    font-size: 12px;
  }

  .layout {
    gap: 24px;
  }

  .article {
    padding: 38px 32px;
  }

  .cat-grid {
    gap: 16px;
  }

  .cat-card > a {
    padding: 24px 20px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: auto;
    width: 100%;
    padding: 22px 24px 0;
  }

  .site-logo-mark {
    font-size: 30px;
  }

  .site-nav {
    width: calc(100% + 48px);
    max-width: none;
    margin: 20px -24px 0;
    padding-inline: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-top: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-deep);
    -webkit-overflow-scrolling: touch;
  }

  .site-nav ul {
    width: max-content;
    min-width: 100%;
    gap: 24px;
  }

  .site-nav li > a {
    padding: 16px 0;
    font-size: 13px;
  }

  .site-nav::-webkit-scrollbar {
    height: 3px;
  }

  .site-nav::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    gap: 20px;
  }

  .toc-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}


/* ----------------------------------------------------------
   29. レスポンシブ：スマートフォン
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  html {
    scroll-padding-top: 24px;
  }

  body {
    font-size: 16px;
    line-height: 1.9;
  }

  .container {
    width: calc(100% - 32px);
  }

  .site-header-inner {
    padding: 20px 16px 0;
  }

  .site-logo-mark {
    font-size: 29px;
  }

  .site-logo-sub {
    margin-top: 5px;
    font-size: 10px;
  }

  .site-nav {
    width: calc(100% + 32px);
    margin: 17px -16px 0;
    padding-inline: 16px;
  }

  .site-nav ul {
    gap: 22px;
  }

  .site-nav li > a {
    padding: 13px 0;
    font-size: 12px;
  }

  .hero {
    padding: 58px 0 60px;
  }

  .hero::before {
    top: 20px;
    right: -220px;
    width: 420px;
    height: 420px;
  }

  .hero-eyebrow {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-eyebrow::before {
    width: 22px;
  }

  .hero-title {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.6;
    letter-spacing: 0.015em;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-actions .btn,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .btn,
  .btn-ghost {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 13px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    margin-bottom: 24px;
    padding-bottom: 15px;
    font-size: 23px;
  }

  .section-title span {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .list-head {
    margin-bottom: 20px;
  }

  .cat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cat-card > a {
    min-height: auto;
    padding: 22px 20px;
  }

  .cat-card-num {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .cat-card-title {
    margin-bottom: 8px;
    font-size: 19px;
  }

  .cat-card-desc {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .cat-card-count {
    padding-top: 12px;
  }

  .article-list,
  .related .article-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .article-list.compact,
  .related .article-list.compact {
    gap: 0;
  }

  .article-card > a {
    gap: 9px;
    padding: 20px;
  }

  .article-card h3 {
    font-size: 17px;
  }

  .article-card p {
    font-size: 13px;
  }

  .breadcrumb {
    padding: 15px 0;
    font-size: 11px;
  }

  .breadcrumb li + li::before {
    margin-inline: 8px;
  }

  .page-head {
    margin-bottom: 24px;
    padding: 14px 0 24px;
  }

  .page-head h1 {
    font-size: 26px;
    line-height: 1.65;
    letter-spacing: 0.015em;
  }

  .page-head .meta {
    gap: 6px 14px;
    margin-top: 16px;
    font-size: 11px;
  }

  .layout {
    gap: 28px;
    padding-bottom: 44px;
  }

  .article {
    padding: 28px 20px;
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.01em;
    box-shadow: none;
  }

  .article .lead {
    margin-bottom: 24px;
    padding-bottom: 22px;
    font-size: 16px;
    line-height: 2;
  }

  .article h2 {
    margin: 40px 0 20px;
    padding: 8px 0 8px 13px;
    border-left-width: 3px;
    font-size: 22px;
    line-height: 1.6;
  }

  .article h3 {
    margin: 28px 0 16px;
    font-size: 18px;
  }

  .article h4 {
    font-size: 16px;
  }

  .article p {
    margin-bottom: 1.4em;
  }

  .article blockquote {
    padding: 16px 18px;
    font-size: 14px;
  }

  .toc {
    margin: 24px 0 32px;
    padding: 20px 18px;
  }

  .toc-title {
    font-size: 16px;
  }

  .toc ol {
    padding-left: 1.5em;
    font-size: 13px;
  }

  ol.steps > li {
    padding-left: 53px;
    padding-bottom: 26px;
  }

  ol.steps > li::before {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  ol.steps > li::after {
    top: 36px;
    left: 17px;
  }

  ol.steps > li > h3,
  ol.steps > li > h4 {
    font-size: 17px;
  }

  .box-point,
  .box-warn,
  .box-note {
    margin: 24px 0;
    padding: 18px 16px;
    border-left-width: 3px;
    font-size: 14px;
  }

  .box-title,
  .article .box-title {
    font-size: 14px;
  }

  ul.checklist > li {
    padding-left: 30px;
  }

  .table-wrap {
    margin: 24px 0;
  }

  table.spec {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .table-wrap table.spec {
    display: table;
    min-width: 520px;
    overflow: visible;
  }

  .article table {
    font-size: 13px;
  }

  .article table th,
  .article table td,
  table.spec th,
  table.spec td {
    padding: 11px 12px;
  }

  table.spec th,
  table.spec td {
    min-width: 130px;
  }

  .side-box {
    padding: 20px;
  }

  .related {
    margin-top: 32px;
    padding-top: 24px;
  }

  .related-title {
    margin-bottom: 18px;
    font-size: 20px;
  }

  .disclaimer {
    margin-top: 30px;
    padding: 17px 16px;
    font-size: 12px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
    padding-bottom: 30px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-logo {
    margin-bottom: 12px;
    font-size: 27px;
  }

  .footer-head {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .footer-links {
    gap: 8px;
  }

  .copyright {
    padding: 18px 12px;
    font-size: 10px;
  }
}


/* ----------------------------------------------------------
   30. 375px以下の画面への最適化
   ---------------------------------------------------------- */

@media (max-width: 375px) {
  .container {
    width: calc(100% - 24px);
  }

  .article {
    padding: 24px 16px;
  }

  .hero-title {
    font-size: 27px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .article h2 {
    font-size: 20px;
  }

  .article h3 {
    font-size: 18px;
  }

  .cat-card > a,
  .article-card > a {
    padding: 18px 16px;
  }

  .toc {
    padding: 18px 14px;
  }

  .box-point,
  .box-warn,
  .box-note {
    padding: 16px 13px;
  }

  .hero-eyebrow {
    letter-spacing: 0.08em;
  }
}


/* ----------------------------------------------------------
   31. モーション軽減
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ----------------------------------------------------------
   32. 印刷用スタイル
   行政手続き・開業チェックリストの印刷を想定
   ---------------------------------------------------------- */

@media print {
  :root {
    --paper: #ffffff;
    --paper-text: #222222;
    --paper-heading: #111111;
  }

  body {
    background: #ffffff;
    color: #222222;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .site-nav,
  .sidebar,
  .hero-actions,
  .skip-link,
  .breadcrumb,
  .related {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .page-head {
    padding: 0 0 20px;
    border-color: #cccccc;
  }

  .page-head h1,
  .page-head .meta {
    color: #222222;
  }

  .article {
    padding: 0;
    background: #ffffff;
    border: 0;
    box-shadow: none;
    font-size: 11pt;
  }

  .article h2,
  .article h3,
  .article h4 {
    break-after: avoid;
  }

  .article table,
  .article blockquote,
  .box-point,
  .box-warn,
  .box-note {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .article .table-wrap table {
    min-width: 0;
  }

  table.spec {
    display: table;
    overflow: visible;
  }

  .article a {
    color: #333333;
  }

  .article p {
    orphans: 3;
    widows: 3;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* ==========================================================
   サイト固有の補足（Claude Code 追記）
   ChatGPT 生成のデザインシステムに、テンプレート固有の要素を合わせる
   ========================================================== */

/* 記事内（明るい紙面）のタイトル部 */
.article .page-head {
  padding-top: 0;
  border-bottom-color: var(--paper-border);
}
.article .page-head h1 {
  color: var(--paper-heading);
}
.article .page-head .meta {
  color: var(--paper-muted);
}

/* カテゴリ一覧の見出し */
.cat-head {
  padding-top: 8px;
}
.cat-head .hero-eyebrow {
  margin-bottom: 8px;
}
.cat-head .meta {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 760px;
}

/* 本文ラッパー */
.article-body > :first-child {
  margin-top: 0;
}

/* 写真・画像は角丸なし */
img, picture, video {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}
