/*
 * 不動産豆知識 — デザインシステム「資産台帳 × モダンエディトリアル」
 *
 * 共通コンポーネント一覧（T2移植用）
 * - 基盤: .container / .content-width / .section-heading / .section-heading-row
 * - 共有領域: .pr-notice / .site-header / .global-nav / .site-footer / .footer-nav
 * - カード・分類: .card / .article-list / .card-visual / .badge / .tag
 * - 記事: .article-header / .article-kicker / .article-title / .meta / .article-body / .eyecatch
 * - イラスト: .hero-art / .editorial-illustration / .spot-illustration / .article-header--utility
 * - 記事内UI: .note / .point / .steps / .table-wrap / .toc
 * - アクション: .btn-cta（定義のみ。トップページでは未使用）
 */

:root {
  color-scheme: light;

  /* Brand */
  --color-forest-950: #0b2a20;
  --color-forest-900: #12382b;
  --color-forest-800: #194936;
  --color-forest-700: #246047;
  --color-forest-100: #dce9e1;
  --color-forest-050: #edf4ef;
  --color-gold-700: #7b5c17;
  --color-gold-600: #967124;
  --color-gold-400: #c7a451;
  --color-gold-300: #d9bb70;
  --color-gold-100: #eee1be;

  /* Neutrals */
  --color-paper: #f5f1e7;
  --color-paper-deep: #ece6d8;
  --color-surface: #fffdf8;
  --color-ink: #17231e;
  --color-muted: #56615b;
  --color-line: #d7d0c0;
  --color-line-dark: #b7ae9b;
  --color-white: #ffffff;

  /* Compatibility aliases */
  --paper: var(--color-paper);
  --ink: var(--color-ink);
  --indigo: var(--color-forest-900);
  --indigo-light: var(--color-forest-700);
  --accent: var(--color-gold-600);
  --line: var(--color-line);
  --muted: var(--color-muted);
  --card: var(--color-surface);

  /* Typography */
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "HGS明朝E", Georgia, serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.05rem, 1.4vw, 1.16rem);
  --text-xl: clamp(1.45rem, 2.4vw, 2rem);
  --text-2xl: clamp(2.15rem, 5.5vw, 4.55rem);
  --leading-body: 1.9;
  --tracking-label: 0.08em;

  /* Layout */
  --layout-wide: 74rem;
  --layout-content: 42em;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4.5rem, 9vw, 7.5rem);

  /* Shape & depth */
  --radius-sm: 0.35rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 0.6rem 1.8rem rgba(11, 42, 32, 0.08);
  --shadow-lg: 0 1.4rem 3.8rem rgba(11, 42, 32, 0.15);
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 164, 81, 0.09), transparent 24rem),
    var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.site-title {
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.5;
}

a {
  color: var(--color-forest-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition), opacity var(--transition);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold-300);
  outline-offset: 4px;
}

::selection {
  background: var(--color-gold-100);
  color: var(--color-forest-950);
}

.container,
.header-inner,
.home-main,
.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--layout-wide));
  margin-inline: auto;
}

.content-width,
.article-body {
  width: min(100%, var(--layout-content));
  margin-inline: auto;
}

/* PR表記バー */
.pr-notice {
  position: relative;
  z-index: 20;
  padding: 0.38rem var(--gutter);
  border-bottom: 1px solid var(--color-line-dark);
  background: var(--color-paper-deep);
  color: #4b554f;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-align: center;
}

/* 共有ヘッダー + トップヒーロー */
.site-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5.25rem),
    linear-gradient(25deg, transparent 0 74%, rgba(217, 187, 112, 0.06) 74% 74.2%, transparent 74.2%),
    var(--color-forest-950);
  color: rgba(255, 255, 255, 0.88);
}

.site-header::before {
  position: absolute;
  inset: auto -10rem -16rem auto;
  z-index: -1;
  width: 36rem;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 187, 112, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(217, 187, 112, 0.025), 0 0 0 10rem rgba(217, 187, 112, 0.02);
  content: "";
}

.header-inner {
  position: relative;
  min-width: 0;
}

.global-nav {
  display: flex;
  min-height: 4.65rem;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(238, 225, 190, 0.2);
}

.global-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.9rem, 2.4vw, 2.15rem);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 2px;
  background: var(--color-gold-300);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity var(--transition), transform var(--transition);
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--color-white);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: clamp(36rem, 64vw, 44rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 10vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.site-title {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: clamp(0.05em, 0.9vw, 0.12em);
}

.site-title a {
  display: block;
  max-width: 100%;
  color: var(--color-white);
  text-decoration: none;
}

.site-title::after {
  display: block;
  width: clamp(3.5rem, 9vw, 7rem);
  height: 3px;
  margin-top: 1.3rem;
  background: var(--color-gold-300);
  content: "";
}

.site-tagline {
  width: 100%;
  min-width: 0;
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: var(--color-gold-300);
  font-size: clamp(0.84rem, 1.5vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.045em;
}

.lead {
  width: 100%;
  min-width: 0;
  max-width: 43em;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-lg);
  line-height: 2.05;
}

.lead strong {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(217, 187, 112, 0.74);
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.23em;
}

.hero-art {
  position: relative;
  width: min(100%, 27.5rem);
  justify-self: end;
  opacity: 0.94;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.16));
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-art-ring,
.hero-art-line,
.hero-art-building,
.hero-art-mark {
  fill: none;
  stroke: var(--color-gold-300);
  vector-effect: non-scaling-stroke;
}

.hero-art-ring {
  stroke-width: 1;
  opacity: 0.22;
}

.hero-art-ring--inner {
  stroke-dasharray: 4 11;
  opacity: 0.32;
}

.hero-art-line,
.hero-art-building {
  stroke-width: 2;
}

.hero-art-mark {
  stroke-width: 1.5;
  opacity: 0.65;
}

.hero-art-fill {
  fill: rgba(217, 187, 112, 0.1);
  stroke: var(--color-gold-300);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.hero-art-fill--solid {
  fill: var(--color-gold-300);
  stroke: none;
}

.hero-art-fill--dim {
  fill: rgba(237, 244, 239, 0.08);
  stroke: var(--color-gold-300);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero-art-ground {
  fill: rgba(11, 42, 32, 0.5);
  stroke: var(--color-gold-300);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero-art-glow {
  fill: var(--color-gold-300);
  opacity: 0.82;
}

.hero-art-plant {
  fill: rgba(217, 187, 112, 0.17);
  stroke: var(--color-gold-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* セクション見出し */
.section-heading-row {
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading {
  margin: 0;
  color: var(--color-forest-900);
  font-size: var(--text-xl);
  letter-spacing: 0.06em;
}

.section-heading::before {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  background: var(--color-gold-600);
  content: "";
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold-400), var(--color-line) 22%, transparent);
}

/* トップページ */
.home-main {
  padding-block: var(--section-space);
}

.articles-section {
  margin-bottom: var(--section-space);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list > li,
.card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 0 0 rgba(11, 42, 32, 0);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.article-list > li::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--color-gold-400);
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity var(--transition), transform var(--transition);
}

.article-list > li:hover,
.article-list > li:focus-within,
.card:hover {
  border-color: var(--color-gold-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.35rem);
}

.article-list > li:hover::before,
.article-list > li:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.card-visual {
  position: relative;
  display: block;
  margin: clamp(-2.25rem, -3vw, -1.5rem) clamp(-2.25rem, -3vw, -1.5rem) 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  background: var(--color-paper);
}

.card-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(11, 42, 32, 0.08));
  content: "";
  pointer-events: none;
}

.card-visual svg,
.eyecatch svg,
.spot-illustration svg {
  width: 100%;
  height: auto;
}

.card-visual svg {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.article-list > li:hover .card-visual svg,
.article-list > li:focus-within .card-visual svg {
  transform: scale(1.025);
}

/* インラインSVG共通パレット */
.editorial-illustration .ill-paper,
.spot-illustration .ill-paper {
  fill: #f5f1e7;
}

.editorial-illustration .ill-forest,
.spot-illustration .ill-forest {
  fill: #12382b;
}

.editorial-illustration .ill-forest-mid,
.spot-illustration .ill-forest-mid {
  fill: #246047;
}

.editorial-illustration .ill-gold,
.spot-illustration .ill-gold {
  fill: #c7a451;
}

.editorial-illustration .ill-gold-light,
.spot-illustration .ill-gold-light {
  fill: #eee1be;
}

.editorial-illustration .ill-line,
.spot-illustration .ill-line {
  fill: none;
  stroke: #12382b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.editorial-illustration .ill-line--gold,
.spot-illustration .ill-line--gold {
  stroke: #c7a451;
}

.editorial-illustration .ill-line--fine,
.spot-illustration .ill-line--fine {
  stroke-width: 2;
}

.badge,
.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--color-forest-100);
  border-radius: 999px;
  background: var(--color-forest-050);
  color: var(--color-forest-800);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
}

.badge--gold,
.tag.review {
  border-color: var(--color-gold-100);
  background: #f8f0dc;
  color: var(--color-gold-700);
}

.article-list .title {
  margin: 1.15rem 0 0;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  font-weight: 600;
  line-height: 1.75;
}

.article-list .title a {
  color: inherit;
  text-decoration: none;
}

.article-list .title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.article-list > li:focus-within {
  outline: 3px solid var(--color-gold-300);
  outline-offset: 4px;
}

.article-list .title a:focus-visible {
  outline: none;
}

.article-list .desc {
  margin: 0.95rem 0 1.65rem;
  color: var(--color-muted);
  font-size: 0.91rem;
  line-height: 1.85;
}

.article-arrow {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: auto;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-forest-800);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.article-arrow svg {
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.article-list > li:hover .article-arrow,
.article-list > li:focus-within .article-arrow {
  background: var(--color-forest-900);
  color: var(--color-white);
  transform: translateX(0.2rem);
}

/* 注意・要点ボックス */
.note,
.point {
  position: relative;
  margin-block: 2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-line-dark);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 0.95rem;
  line-height: 1.9;
}

.note {
  background: #f2eee4;
}

.point {
  border-color: #b8cdbf;
  border-left-color: var(--color-forest-700);
  background: var(--color-forest-050);
}

.note .label,
.point .label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.promise-panel {
  display: grid;
  max-width: 64rem;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border: 1px solid rgba(217, 187, 112, 0.42);
  border-left: 1px solid rgba(217, 187, 112, 0.42);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(217, 187, 112, 0.08), transparent 38%),
    var(--color-forest-900);
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.93rem, 1.5vw, 1rem);
}

.promise-panel .label {
  margin-bottom: 0.55rem;
  color: var(--color-gold-300);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: 0.06em;
}

.promise-panel a {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-weight: 700;
  text-decoration-color: var(--color-gold-300);
}

.promise-panel a:hover {
  color: var(--color-gold-300);
}

.promise-icon {
  display: grid;
  width: clamp(3.6rem, 7vw, 5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 187, 112, 0.46);
  border-radius: 50%;
  background: rgba(217, 187, 112, 0.08);
  color: var(--color-gold-300);
}

.promise-icon svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.2;
}

/* 記事ヘッダー（T2共通） */
.article-header {
  position: relative;
  min-width: 0;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.article-header::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: 7rem;
  height: 0.35rem;
  background: var(--color-gold-400);
  content: "";
}

.eyecatch {
  position: relative;
  min-width: 0;
  margin: clamp(1.75rem, 4vw, 2.75rem) clamp(-4rem, -5vw, -2rem) clamp(-4rem, -5vw, -2rem);
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  background: var(--color-paper);
}

.article-header--utility {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 18vw, 10rem);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: clamp(10rem, 22vw, 14rem);
}

.article-header--utility > .article-title {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-bottom: 0;
}

.article-header--utility > .meta {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.spot-illustration {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.spot-illustration::before {
  position: absolute;
  inset: 4% 2% 2% 10%;
  z-index: -1;
  border: 1px solid var(--color-gold-100);
  border-radius: 50%;
  background: var(--color-paper);
  content: "";
}

.article-kicker {
  margin-bottom: 0.8rem;
  color: var(--color-gold-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-title,
article h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0 0 1rem;
  color: var(--color-forest-900);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.55;
}

.meta {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* 記事本文（T2共通） */
article {
  width: min(100%, var(--layout-content));
  min-width: 0;
  margin-inline: auto;
}

article h2 {
  position: relative;
  margin: 3.5rem 0 1.25rem;
  padding: 0 0 0.75rem 1.1rem;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-forest-900);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

article h2::before {
  position: absolute;
  top: 0.15em;
  bottom: 0.85rem;
  left: 0;
  width: 4px;
  background: var(--color-gold-600);
  content: "";
}

article h3 {
  margin: 2rem 0 0.75rem;
  color: var(--color-forest-900);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

article p {
  margin: 0 0 1.25rem;
}

article ul,
article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.55em;
}

article li {
  margin-bottom: 0.45rem;
}

/* 目次（T2共通） */
.toc {
  margin: 2rem 0 3rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-top: 3px solid var(--color-forest-800);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.toc .label,
.toc-title {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.toc .label::before,
.toc-title::before {
  width: 1.5rem;
  height: 2px;
  background: var(--color-gold-600);
  content: "";
}

.toc ol,
.toc ul {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li + li {
  margin-top: 0.35rem;
}

.toc a {
  color: var(--color-forest-800);
  font-weight: 600;
}

/* 手順ステップ（T2共通） */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.steps > li {
  counter-increment: step;
  position: relative;
  min-height: 4.8rem;
  margin: 0;
  padding: 1.15rem 1.25rem 1.15rem 4.6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.steps > li::before {
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--color-gold-300);
  border-radius: 50%;
  background: var(--color-forest-900);
  color: var(--color-white);
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
}

.steps b,
.steps strong {
  color: var(--color-forest-800);
}

/* テーブル（T2共通） */
.table-wrap {
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.92rem;
}

.table-wrap table {
  min-width: 36rem;
  margin: 0;
}

th,
td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-forest-050);
  color: var(--color-forest-900);
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  border-left: 0;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  border-right: 0;
}

.table-wrap tr:first-child th {
  border-top: 0;
}

.table-wrap tr:last-child td,
.table-wrap tr:last-child th {
  border-bottom: 0;
}

/* CTAボタン（T2共通・トップでは未使用） */
.btn-cta {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--color-forest-900);
  border-radius: 999px;
  background: var(--color-forest-900);
  box-shadow: 0 0.55rem 1.4rem rgba(11, 42, 32, 0.16);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}

.btn-cta:hover {
  border-color: var(--color-gold-600);
  background: var(--color-gold-600);
  box-shadow: 0 0.75rem 1.8rem rgba(123, 92, 23, 0.2);
  color: var(--color-white);
  transform: translateY(-0.15rem);
}

/* 共有フッター */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 2rem;
  border-top: 4px solid var(--color-gold-400);
  background: var(--color-forest-950);
  color: rgba(255, 255, 255, 0.66);
}

.site-footer::after {
  position: absolute;
  right: -5rem;
  bottom: -10rem;
  width: 23rem;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 187, 112, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(217, 187, 112, 0.025), 0 0 0 6rem rgba(217, 187, 112, 0.02);
  content: "";
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-mark {
  display: grid;
  width: clamp(4.2rem, 8vw, 5.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 187, 112, 0.34);
  color: var(--color-gold-300);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-mark:hover {
  border-color: var(--color-gold-300);
  background: rgba(217, 187, 112, 0.07);
  transform: translateY(-0.2rem);
}

.footer-mark svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.footer-nav {
  justify-self: end;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: 0.75rem clamp(2rem, 5vw, 5rem);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a::before {
  width: 1.15rem;
  height: 1px;
  margin-right: 0.65rem;
  background: var(--color-gold-400);
  content: "";
  transition: width var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-nav a:hover::before {
  width: 1.8rem;
}

.footer-disclaimer {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 225, 190, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  line-height: 1.75;
}

/* 既存下層ページの移行期間用レイアウト */
main:not(.home-main) {
  width: min(100% - (var(--gutter) * 2), var(--layout-wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.site-header > .header-inner:not(:has(.hero)) {
  padding-top: 1.5rem;
}

.site-header > .header-inner:not(:has(.hero)) .site-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.site-header > .header-inner:not(:has(.hero)) .site-tagline {
  margin-bottom: 1.25rem;
}

.site-header > .global-nav {
  width: min(100% - (var(--gutter) * 2), var(--layout-wide));
  margin-inline: auto;
}

.site-footer > .footer-inner > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.site-footer > .footer-inner > ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-footer > .footer-inner > ul a:hover {
  color: var(--color-white);
}

.site-footer > .footer-inner > p:not(.footer-disclaimer) {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 225, 190, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.48fr);
    gap: 1.25rem;
  }

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

  .article-list > li:first-child {
    grid-column: 1 / -1;
  }

  .article-list > li:first-child .desc {
    max-width: 62em;
  }

  .article-list > li:first-child .card-visual {
    max-height: 20rem;
  }

  .article-list > li:first-child .card-visual svg {
    transform: translateY(-7%);
  }

  .article-list > li:first-child:hover .card-visual svg,
  .article-list > li:first-child:focus-within .card-visual svg {
    transform: translateY(-7%) scale(1.025);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.15rem;
  }

  html {
    font-size: 15.5px;
  }

  .global-nav {
    min-height: auto;
    padding-block: 0.6rem;
  }

  .global-nav ul {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.8rem;
  }

  .global-nav li:first-child {
    grid-column: 1 / -1;
  }

  .global-nav a {
    min-height: 2.45rem;
    font-size: 0.78rem;
  }

  .global-nav a::after {
    right: auto;
    width: 1.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding-block: 3.5rem 4.5rem;
  }

  .site-title {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3.25rem);
    overflow-wrap: anywhere;
  }

  .site-tagline {
    max-width: 100%;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .lead {
    max-width: 100%;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 19rem);
    max-width: 100%;
    margin-top: 0.75rem;
    justify-self: center;
    opacity: 0.78;
  }

  .section-heading-row {
    grid-template-columns: auto minmax(2rem, 1fr);
  }

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

  .article-list > li:first-child {
    grid-column: auto;
  }

  .article-list > li:first-child .card-visual {
    max-height: none;
  }

  .article-list > li:first-child .card-visual svg,
  .article-list > li:first-child:hover .card-visual svg,
  .article-list > li:first-child:focus-within .card-visual svg {
    transform: none;
  }

  .article-header--utility {
    grid-template-columns: minmax(0, 1fr) 6rem;
    gap: 0.8rem;
  }

  .eyecatch {
    margin-inline: clamp(-4rem, -5vw, -2rem);
  }

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

  .promise-icon {
    width: 3.6rem;
  }

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

  .footer-nav {
    justify-self: stretch;
  }

  .footer-nav ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  table:not(.table-wrap table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .site-title::after,
  .section-heading::before,
  .section-rule,
  .footer-nav a::before {
    background: CanvasText;
  }

  .article-list > li,
  .card,
  .note,
  .point,
  .toc,
  .article-header,
  .btn-cta {
    border: 1px solid CanvasText;
  }
}
