/* ============================================================
   いろどりデザイン事務所 — メインスタイルシート
   構成: トークン → ベース/リセット → タイポ → レイアウト →
         コンポーネント → 各セクション → ユーティリティ →
         メディアクエリ → reduced-motion
   ============================================================ */

/* ============================================================
   1. カラートークン & CSS変数
   ============================================================ */
:root {
  /* ---- base colors ---- */
  --bg:        #FBF9F5;
  --surface:   #FFFFFF;
  --ink:       #1C1A17;
  --ink-2:     #4A453E;
  --muted:     #6B655C; /* bg(#FBF9F5)上で約5.5:1（AA準拠） */
  --line:      #ECE6DC;
  --line-2:    #E0D8CB;

  /* ---- 彩り（irodori）スペクトラム ---- */
  --c-shu:     #FF5A4D;
  --c-yamabuki:#FFB020;
  --c-seiji:   #18B79C;
  --c-ai:      #3A5BD9;
  --c-kobai:   #C04B96;

  /* ---- 役割 ---- */
  --accent:    var(--c-shu);
  --accent-ink:#E5483C;
  --on-accent: #FFFFFF;

  /* ---- スペクトラムグラデーション ---- */
  --grad-irodori: linear-gradient(100deg,
     #FF5A4D 0%, #FFB020 27%, #18B79C 52%, #3A5BD9 76%, #C04B96 100%);

  /* ---- 影 ---- */
  --shadow: 0 1px 2px rgba(28,26,23,.04), 0 12px 32px -12px rgba(28,26,23,.12);

  /* ---- タイポグラフィスケール ---- */
  --fs-hero:  clamp(2.6rem, 6vw, 5rem);
  --fs-h2:    clamp(1.8rem, 3.4vw, 2.8rem);
  --fs-h3:    clamp(1.2rem, 1.8vw, 1.4rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body:  1rem;
  --fs-label: 0.8rem;

  /* ---- レイアウト ---- */
  --container-max:  1140px;
  --container-px:   clamp(20px, 5vw, 40px);
  --section-py:     clamp(72px, 11vw, 140px);
  --radius-card:    20px;
  --radius-sm:      12px;
  --radius-pill:    999px;

  /* ---- ヘッダー高さ ---- */
  --header-h: 68px;
}

/* ============================================================
   2. ベース / リセット
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', system-ui, -apple-system,
               'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* フォーカスリング（仕様書4）*/
:focus-visible {
  outline: 2px solid var(--c-ai);
  outline-offset: 3px;
  border-radius: 3px;
}

/* スキップリンク：通常は隠し、フォーカス時のみ表示 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background-color: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ============================================================
   3. タイポグラフィ
   ============================================================ */
.font-outfit {
  font-family: 'Outfit', 'Zen Kaku Gothic New', system-ui, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Zen Kaku Gothic New', system-ui, -apple-system,
               'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-feature-settings: "palt" 1;
}

.text-hero {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-size: var(--fs-h2);
}

.text-h3 {
  font-size: var(--fs-h3);
}

.text-lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
}

.text-label {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   4. レイアウト
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--surface);
}

/* グリッド */
.grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
}

/* ============================================================
   5. コンポーネント
   ============================================================ */

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background-color: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

/* ---- セクションラベル ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.section-label__dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.section-label__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-label__dot--shu     { background-color: var(--c-shu); }
.section-label__dot--yamabuki{ background-color: var(--c-yamabuki); }
.section-label__dot--seiji   { background-color: var(--c-seiji); }
.section-label__dot--ai      { background-color: var(--c-ai); }
.section-label__dot--kobai   { background-color: var(--c-kobai); }

/* ---- カード ---- */
.card {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ---- スペクトラムライン（セクション区切り・フッター上端用） ---- */
.spectrum-line {
  height: 3px;
  background: var(--grad-irodori);
  border: none;
}

/* ============================================================
   6. ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ---- ロゴ ---- */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  gap: 2px;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__main {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.site-logo__spectrum {
  display: flex;
  gap: 2px;
}

.site-logo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.site-logo__sub {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ---- デスクトップナビ ---- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__list {
  display: flex;
  gap: 1.75rem;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.2s;
}

.site-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav__link:hover::after {
  width: 100%;
}

/* ---- ハンバーガー ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.hamburger:hover {
  background-color: var(--line);
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- モバイルメニュー ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden; /* 閉時はキーボードフォーカス/SRからも除外 */
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mobile-menu__link {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* メニュー内CTAボタン：mobile-menu__link の色/サイズ指定を上書きし、
   暗背景に明テキストを保証（dark-on-dark を防止） */
.mobile-menu .btn--primary {
  color: var(--bg);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.mobile-menu .btn--primary:hover {
  color: var(--on-accent);
}

.mobile-menu__close {
  position: absolute;
  top: 1.25rem;
  right: var(--container-px);
}

/* ============================================================
   7. Hero セクション
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(60px, 10vw, 120px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
}

.hero__content {
  max-width: 640px;
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero__heading {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero__heading em {
  font-style: normal;
  background: var(--grad-irodori);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 2.25rem;
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---- ヒーロー アートワーク（彩りブロブ） ---- */
.hero__artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ブロブコンテナ：filter:blurをここにかけることでGPU合成レイヤーを1枚に */
.blob-scene {
  position: absolute;
  inset: -10%;
  /* GPUレイヤー昇格 */
  will-change: transform;
}

.blob {
  position: absolute;
  border-radius: 50%;
  /* opacity と transform のみアニメーション（GPU最適化）*/
  will-change: transform, opacity;
}

/* 個別ブロブ：色・サイズ・初期位置 */
.blob--shu {
  width: clamp(300px, 45vw, 580px);
  height: clamp(300px, 45vw, 580px);
  background: radial-gradient(circle at 40% 40%, #FF5A4D 0%, rgba(255,90,77,0) 70%);
  top: -5%;
  right: -5%;
  opacity: 0.35;
  animation: blob-drift-1 28s ease-in-out infinite;
}

.blob--yamabuki {
  width: clamp(240px, 38vw, 460px);
  height: clamp(240px, 38vw, 460px);
  background: radial-gradient(circle at 60% 35%, #FFB020 0%, rgba(255,176,32,0) 70%);
  top: 20%;
  right: 10%;
  opacity: 0.28;
  animation: blob-drift-2 34s ease-in-out infinite;
}

.blob--seiji {
  width: clamp(280px, 40vw, 500px);
  height: clamp(280px, 40vw, 500px);
  background: radial-gradient(circle at 50% 50%, #18B79C 0%, rgba(24,183,156,0) 70%);
  bottom: 0%;
  right: 5%;
  opacity: 0.25;
  animation: blob-drift-3 38s ease-in-out infinite;
}

.blob--ai {
  width: clamp(220px, 32vw, 420px);
  height: clamp(220px, 32vw, 420px);
  background: radial-gradient(circle at 45% 55%, #3A5BD9 0%, rgba(58,91,217,0) 70%);
  top: 40%;
  right: 25%;
  opacity: 0.20;
  animation: blob-drift-4 32s ease-in-out infinite;
}

.blob--kobai {
  width: clamp(200px, 30vw, 380px);
  height: clamp(200px, 30vw, 380px);
  background: radial-gradient(circle at 55% 45%, #C04B96 0%, rgba(192,75,150,0) 70%);
  bottom: 10%;
  right: 20%;
  opacity: 0.22;
  animation: blob-drift-5 26s ease-in-out infinite;
}

/* ブロブ全体にブラーをかけるオーバーレイフィルター */
.blob-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  /* ブラーはpseudo elementでかける（paints separately→コスト低）*/
  backdrop-filter: none;
}

/* ブロブにblurをかけるためのラッパー */
.blob-filter {
  position: absolute;
  inset: 0;
  filter: blur(60px) saturate(1.1);
}

/* ---- ブロブアニメーション ---- */
@keyframes blob-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-40px, 30px) scale(1.06); }
  66%  { transform: translate(25px, -35px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(35px, -45px) scale(1.08); }
  70%  { transform: translate(-20px, 25px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(-30px, -40px) scale(1.05); }
  65%  { transform: translate(40px, 20px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-4 {
  0%   { transform: translate(0, 0) scale(1); }
  45%  { transform: translate(25px, 35px) scale(1.07); }
  75%  { transform: translate(-35px, -20px) scale(0.93); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-5 {
  0%   { transform: translate(0, 0) scale(1); }
  35%  { transform: translate(-45px, 25px) scale(1.04); }
  68%  { transform: translate(30px, -38px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ヒーロー背景オーバーレイ（テキスト可読性確保）*/
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(251,249,245,0.88) 0%,
    rgba(251,249,245,0.70) 50%,
    rgba(251,249,245,0.10) 100%);
  z-index: 1;
}

/* ============================================================
   8. Manifesto セクション
   ============================================================ */
.manifesto {
  background-color: var(--ink);
  color: var(--bg);
  text-align: center;
  padding-block: clamp(56px, 9vw, 112px);
}

.manifesto__text {
  font-size: var(--fs-lead);
  line-height: 2;
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(251,249,245,0.88);
}

.manifesto__text strong {
  color: var(--bg);
  font-weight: 700;
}

/* ============================================================
   9. Services セクション
   ============================================================ */
.services__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(28,26,23,.05), 0 20px 48px -12px rgba(28,26,23,.16);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-card__icon--shu      { background-color: rgba(255,90,77,.1); }
.service-card__icon--yamabuki { background-color: rgba(255,176,32,.1); }
.service-card__icon--seiji    { background-color: rgba(24,183,156,.1); }
.service-card__icon--ai       { background-color: rgba(58,91,217,.1); }

.service-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--ink-2);
  line-height: 1.9;
}

/* ============================================================
   10. Approach セクション
   ============================================================ */
.approach {
  background-color: var(--surface);
}

.approach__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.approach-step {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.approach-step__number {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--line-2);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.approach-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.approach-step__desc {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ============================================================
   11. Strengths セクション
   ============================================================ */
.strengths__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.strength-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  align-items: flex-start;
}

.strength-item__badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strength-item__badge--shu   { background-color: rgba(255,90,77,.1); }
.strength-item__badge--seiji { background-color: rgba(24,183,156,.1); }
.strength-item__badge--ai    { background-color: rgba(58,91,217,.1); }

.strength-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.strength-item__desc {
  color: var(--ink-2);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ============================================================
   12. Works セクション
   ============================================================ */
.works {
  background-color: var(--surface);
}

.works__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  background-color: var(--bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(28,26,23,.05), 0 20px 48px -12px rgba(28,26,23,.16);
}

.work-card__thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

/* サムネイル：CSSグラデーションで代用 */
.work-card__thumb--1 {
  background: linear-gradient(135deg, #FF5A4D22 0%, #FFB02033 50%, #FF5A4D18 100%);
}
.work-card__thumb--2 {
  background: linear-gradient(135deg, #18B79C22 0%, #3A5BD933 50%, #18B79C18 100%);
}
.work-card__thumb--3 {
  background: linear-gradient(135deg, #C04B9622 0%, #3A5BD933 50%, #C04B9618 100%);
}

.work-card__thumb-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  background-color: rgba(251,249,245,0.88);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.work-card__body {
  padding: 1.5rem;
}

.work-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.work-card__desc {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.8;
}

/* Works：今後掲載予定パネル */
.works__coming {
  margin-top: 3rem;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-card);
  background-color: var(--bg);
}

.works__coming-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.works__coming-dots .section-label__dot {
  width: 8px;
  height: 8px;
}

.works__coming-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.works__coming-text {
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 46ch;
  margin: 0 auto 1.85rem;
}

/* ============================================================
   13. About セクション
   ============================================================ */
.about__inner {
  display: grid;
  gap: 3rem;
}

.about__lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 52ch;
}

.about__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.about__table th,
.about__table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.75;
}

.about__table th {
  font-weight: 600;
  color: var(--ink-2);
  width: 9rem;
  white-space: nowrap;
}

.about__table td {
  color: var(--ink);
}

.about__table tr:last-child th,
.about__table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   14. Contact / CTA セクション
   ============================================================ */
.contact {
  background-color: var(--ink);
  color: var(--bg);
  text-align: center;
}

.contact__heading {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--bg);
}

.contact__heading em {
  font-style: normal;
  background: var(--grad-irodori);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact__sub {
  font-size: var(--fs-lead);
  color: rgba(251,249,245,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.contact__note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(251,249,245,0.55);
}

.contact .btn--primary {
  background-color: var(--bg);
  color: var(--ink);
}

.contact .btn--primary:hover {
  background-color: var(--accent);
  color: var(--on-accent);
}

/* ============================================================
   15. フッター
   ============================================================ */
.site-footer {
  background-color: var(--ink);
  color: rgba(251,249,245,0.55);
  padding-block: 3rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__logo .site-logo__main {
  color: var(--bg);
}

.site-footer__logo .site-logo__sub {
  color: rgba(251,249,245,0.45);
}

.site-footer__logo .site-logo__dot {
  opacity: 0.8;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__nav-link {
  font-size: 0.85rem;
  color: rgba(251,249,245,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav-link:hover {
  color: var(--bg);
  text-decoration: none;
}

.site-footer__email {
  font-size: 0.85rem;
  color: rgba(251,249,245,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__email:hover {
  color: var(--bg);
  text-decoration: underline;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(251,249,245,0.35);
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: 0.04em;
}

/* ============================================================
   16. ユーティリティ
   ============================================================ */

/* reveal: IntersectionObserver によるフェードイン
   .js クラスが <html> に付与されたときのみ非表示にする
   （JSなし・ヘッドレス環境でもコンテンツが見える）*/
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スタッガー */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* SR-only（スクリーンリーダー専用）*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   17. メディアクエリ（モバイルファースト）
   ============================================================ */

/* ---- 640px以上 ---- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: repeat(2, 1fr); }
  .strengths__grid { grid-template-columns: repeat(1, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ---- 900px以上 ---- */
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: repeat(4, 1fr); }
  .strengths__grid { grid-template-columns: repeat(3, 1fr); }
  .works__grid { grid-template-columns: repeat(3, 1fr); }

  .about__inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

/* ---- 1100px以上 ---- */
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- モバイル（900px未満）---- */
@media (max-width: 899px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }

  /* モバイルメニューはJSで制御 */
  .mobile-menu {
    display: flex;
  }

  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(251,249,245,0.92) 0%,
      rgba(251,249,245,0.80) 60%,
      rgba(251,249,245,0.20) 100%);
  }

  .strength-item {
    flex-direction: column;
  }
}

/* ---- 360px最小幅保護 ---- */
@media (max-width: 400px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   18. prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* ブロブアニメーション停止 */
  .blob {
    animation: none !important;
  }

  /* スクロールアニメーション無効 */
  html {
    scroll-behavior: auto;
  }

  /* reveal：即表示（.js クラスの有無に関わらず） */
  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* ボタン・カードのトランジション抑制 */
  .btn,
  .service-card,
  .work-card {
    transition: none;
  }
}
