/* ===== Yui-結 ポートフォリオ デザイントークン ===== */
:root {
  /* Brand & Accent */
  --primary: #4a6fa5;
  --primary-active: #2d5282;
  --primary-disabled: #c5d0e0;
  --accent-teal: #5db8a6;
  --accent-teal-soft: #eaf3f5;
  --accent-teal-ink: #2c7466;
  --accent-terra: #c47a5a;
  --accent-terra-soft: #f9ede8;
  --accent-terra-ink: #8a4a30;
  --accent-amber: #e8a55a;
  --accent-amber-soft: #fdf0e8;
  --accent-amber-ink: #8a5a1a;
  --brand-red: #c43c3c; /* ロゴの水引 — 装飾アクセント極限定 */
  --cta: #c64545; /* CTAボタン背景（旧 inline rgb(198,69,69) を一元化） */
  --cta-active: #a83737;

  /* Surfaces */
  --canvas: #f8f7f3;
  --surface-soft: #f2f3f7;
  --surface-card: #eaecf4;
  --surface-cream: #e8e0d2;
  --surface-dark: #181c28;
  --primary-soft: #eef2f8;

  /* Hairlines */
  --hairline: #dce0ea;
  --hairline-soft: #e6e9f0;

  /* Text */
  --ink: #141820;
  --body-strong: #222530;
  --body: #3a3d45;
  --muted: #626570;
  --muted-soft: #8a8d96;
  --on-primary: #ffffff;
  --on-dark: #f8f7f3;
  --on-dark-soft: #8a90a8;

  /* Semantic */
  --success: #5db872;
  --warning: #d4a017;
  --error: #c64545;

  /* Typography */
  --font-display: 'Noto Serif JP', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Spacing (4px base → rem) */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-section: 5rem;

  /* Radius */
  --r-xs: 0.25rem;
  --r-sm: 0.375rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-pill: 9999px;
  --r-full: 50%;

  /* Container */
  --container: 1100px;

  /* Shadow */
  --shadow-subtle: 0 0.0625rem 0.1875rem rgba(20,20,28,0.08);
  --shadow-card: 0 0.5rem 1.5rem -0.75rem rgba(20,20,28,0.12);
}

* { box-sizing: border-box; }
html { font-size: 1rem; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-active); }

/* ===== Typography classes ===== */
.t-display-xl { font-family: var(--font-display); font-weight: 500; font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.t-display-lg { font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.t-display-md { font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.t-display-sm { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); }
.t-title-lg { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.t-title-md { font-family: var(--font-body); font-weight: 500; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.t-title-sm { font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.t-body-md { font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; line-height: 1.75; color: var(--body); }
.t-body-sm { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; line-height: 1.7; color: var(--body); }
.t-caption { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.t-eyebrow { font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.t-mono { font-family: var(--font-mono); font-weight: 400; font-size: 0.8125rem; line-height: 1.6; }

.text-ink { color: var(--ink); }
.text-body { color: var(--body); }
.text-body-strong { color: var(--body-strong); }
.text-muted { color: var(--muted); }
.text-muted-soft { color: var(--muted-soft); }
.text-primary { color: var(--primary); }
.text-on-dark { color: var(--on-dark); }
.text-on-dark-soft { color: var(--on-dark-soft); }

/* ===== Layout primitives ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--space-section) 0; }
.section--soft { background: var(--surface-soft); }
.section--cream { background: var(--surface-cream); }
.section--dark { background: var(--surface-dark); color: var(--on-dark); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.grid { display: grid; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.375rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.875rem;
  border-radius: var(--r-md); border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-lg { height: 3.25rem; padding: 0 1.75rem; font-size: 0.9375rem; }
.btn-primary { background: var(--cta); color: var(--on-primary); }
.btn-primary:hover { background: var(--cta-active); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-outline-on-dark { background: transparent; color: var(--on-dark); border-color: rgba(248,247,243,0.4); }
.btn-outline-on-dark:hover { background: rgba(248,247,243,0.08); border-color: rgba(248,247,243,0.7); }
.btn-ghost { background: var(--surface-soft); color: var(--body-strong); }
.btn-ghost:hover { background: var(--surface-card); }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.375rem; color: var(--primary);
  font-weight: 500; font-size: 0.875rem; background: transparent; border: 0; padding: 0;
}
.btn-link:hover { color: var(--primary-active); text-decoration: underline; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  background: var(--surface-card); color: var(--ink);
}
.badge--blue { background: var(--primary-soft); color: var(--primary-active); }
.badge--teal { background: var(--accent-teal-soft); color: var(--accent-teal-ink); }
.badge--terra { background: var(--accent-terra-soft); color: var(--accent-terra-ink); }
.badge--amber { background: var(--accent-amber-soft); color: var(--accent-amber-ink); }
.badge--on-dark { background: rgba(248,247,243,0.1); color: var(--on-dark); }
.badge--dot::before {
  content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: currentColor; opacity: 0.7;
}

/* ===== Cards ===== */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.card--surface { background: var(--surface-card); border-color: transparent; }
.card--filled-blue { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.card--dark { background: var(--surface-dark); color: var(--on-dark); border-color: transparent; }

/* ===== Hairline divider ===== */
.hr { height: 1px; background: var(--hairline-soft); border: 0; margin: 0; }

/* ===== Eyebrow row ===== */
.eyebrow-row { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow-row::before {
  content: ""; width: 2rem; height: 1px; background: var(--primary); opacity: 0.6;
}
.eyebrow-row.on-dark::before { background: var(--on-dark-soft); }

/* ===== Section header ===== */
.section-header { max-width: 45rem; margin: 0 auto 3.5rem; text-align: center; }
.section-header .lede { margin-top: 1rem; color: var(--body); font-size: 1rem; line-height: 1.8; }
.section-header--left { text-align: left; margin-left: 0; margin-right: 0; }

/* ===== Eyebrow heading ===== */
.eyebrow-stack { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.eyebrow-stack--left { align-items: flex-start; }
.eyebrow-mark {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-mark .dash { width: 1.75rem; height: 1px; background: var(--primary); opacity: 0.7; }
.section--dark .eyebrow-mark { color: var(--on-dark-soft); }
.section--dark .eyebrow-mark .dash { background: var(--on-dark-soft); }

/* ===== 1110px以下：html基準サイズをvwでスケール（rem値は変更不要） ===== */
@media (max-width: 1110px) {
  html { font-size: calc(16 / 1110 * 100vw); }
}
