/* ════════════════════════════════════════
   common.css — 全ページ共通スタイル
   variables, reset, header, nav, footer, buttons
════════════════════════════════════════ */

  :root {
    --ink: #0f0f0f;
    --paper: #f5f2ed;
    --accent: #1a4fff;
    --accent-light: #e8eeff;
    --muted: #6b6b6b;
    --line: #e0ddd8;
    --white: #ffffff;
  }

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

  html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  /* ─── HEADER ─── */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(245,242,237,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
  }
  .logo img {
    height: 36px;
    width: auto;
    display: block;
  }
  .logo span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    display: block;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-top: -2px;
  }

  nav { display: flex; align-items: center; gap: 36px; }
  nav a {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--ink); }

  .nav-cta {
    background: var(--ink);
    color: var(--white) !important;
    padding: 10px 22px;
    font-size: 12px !important;
    letter-spacing: 0.1em;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--accent) !important; }


  
/* ─── FOOTER ─── */
  footer {
    background: #080808;
    padding: 64px 48px 32px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
  }

  .footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 12px;
  }

  .footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
    max-width: 280px;
  }

  .footer-col h4 {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    font-family: 'Space Mono', monospace;
    margin-bottom: 20px;
  }

  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-col ul li a:hover { color: var(--white); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
  }

  
/* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--paper); }
  ::-webkit-scrollbar-thumb { background: var(--ink); }

  /* ════════════════════════════════════════
     DESIGN ENHANCEMENTS
  ════════════════════════════════════════ */

  /* ── グレインオーバーレイ ── */
  .grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: grainShift 3s steps(5) infinite;
  }
  @keyframes grainShift {
    0%   { background-position: 0 0; }
    20%  { background-position: -40px -60px; }
    40%  { background-position: 30px -30px; }
    60%  { background-position: -20px 50px; }
    80%  { background-position: 60px 10px; }
    100% { background-position: 0 0; }
  }

  /* ── スクロールリビール ── */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
  [data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }
  [data-reveal][data-reveal-delay="300"] { transition-delay: 0.3s; }
  [data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── ヒーロー h1 拡大 ── */
  .hero h1 {
    font-size: clamp(52px, 6.5vw, 84px);
    letter-spacing: -0.02em;
    line-height: 1.08;
  }

  /* ── サービスカード hover 改善 ── */
  .service-card {
    transition: background 0.3s ease;
  }
  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .service-card:hover {
    background: var(--paper);
  }
  .service-card:hover::after {
    transform: scaleX(1);
  }
  .service-card:hover .service-num {
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  /* ── Aboutビジュアルパネル 斜線テクスチャ ── */
  .about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.025) 18px,
      rgba(255, 255, 255, 0.025) 19px
    );
    pointer-events: none;
  }
  .about-quote {
    font-size: 32px;
  }
  .about-quote-mark {
    font-size: 160px;
    color: rgba(26, 79, 255, 0.2);
  }

  /* ── 事例カード hover リフト ── */
  .case-card {
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .case-card:hover {
    background: #141414;
    border-color: rgba(122, 157, 255, 0.28);
    transform: translateY(-5px);
  }
  .case-result {
    font-size: 32px !important;
    color: #7a9dff;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
  }
  .case-card:hover .case-result {
    transform: scale(1.06);
  }

  /* ── プロセスステップ アクセント ── */
  .process-step:first-child .process-dot {
    border-color: var(--accent);
    color: var(--accent);
  }
  .process-steps::before {
    background: linear-gradient(90deg, var(--accent), var(--line) 40%);
  }

  /* ── セクションタグ 洗練 ── */
  .section-tag {
    font-size: 11px;
    letter-spacing: 0.28em;
  }

  /* ── ボタン 洗練 ── */
  .btn-primary {
    letter-spacing: 0.12em;
    font-size: 12px;
    padding: 16px 36px;
  }

  /* ── フォームラベル英語テキスト 修正 ── */
  .label-en {
    color: var(--muted) !important;
    opacity: 0.55;
  }

  /* ── ヒーライトカード ボーダー洗練 ── */
  .wwd-card {
    border-left: 2px solid transparent;
    transition: background 0.25s, border-color 0.25s, border-left-color 0.25s;
  }
  .wwd-card:hover {
    border-left-color: var(--accent);
  }

  /* ── フッター ロゴ サイズ ── */
  .footer-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 12px;
  }

  
/* ════════════════════════════════════════
     DESIGN ENHANCEMENTS
  ════════════════════════════════════════ */

  /* ── グレインオーバーレイ ── */
  .grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: grainShift 3s steps(5) infinite;
  }
  @keyframes grainShift {
    0%   { background-position: 0 0; }
    20%  { background-position: -40px -60px; }
    40%  { background-position: 30px -30px; }
    60%  { background-position: -20px 50px; }
    80%  { background-position: 60px 10px; }
    100% { background-position: 0 0; }
  }

  /* ── スクロールリビール ── */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
  [data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }
  [data-reveal][data-reveal-delay="300"] { transition-delay: 0.3s; }
  [data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
  }

  