
  :root {
    --color-bg-base: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-subtle: #faf8f5;
    --color-text-main: #1a1a1a;
    --color-text-sub: #4d4d4d;
    --color-accent-gold: #8f6a17;
    --color-accent-hover: #6f5015;
    --title-svg-color: #8f6a17;
    --color-border: #d8d3c4;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Poppins', sans-serif;
    --shadow-subtle: 0 6px 24px rgba(0, 0, 0, 0.09);
    --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.16);
  }
  html[data-theme="dark"] {
    --color-bg-base: #15171a;
    --color-bg-card: #1f2227;
    --color-bg-subtle: #282b30;
    --color-text-main: #f2efe9;
    --color-text-sub: #b7b3aa;
    --color-accent-gold: #d4ac5c;
    --color-accent-hover: #e6c176;
    --title-svg-color: #f2efe9;
    --color-border: #3a3a38;
    --shadow-subtle: 0 6px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.45);
  }
  html[data-theme="dark"] .site-header { background-color: rgba(21,23,26,0.08); }
  html[data-theme="dark"] .hero-content .hero-heading { color: #f2efe9; text-shadow: none; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body {
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-jp);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.8;
  }
  /* Light mode: solid white background throughout. The animated gradient
     layer is disabled for light mode (kept for dark mode, per existing behavior). */
  html:not([data-theme="dark"]) body {
    background-color: #ffffff;
  }
  html:not([data-theme="dark"]) #flow,
  html:not([data-theme="dark"]) #flow ~ section {
    background-color: #ffffff;
    position: relative;
  }
  html:not([data-theme="dark"]) #flow::before,
  html:not([data-theme="dark"]) #flow ~ section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    pointer-events: none;
  }
  html:not([data-theme="dark"]) .bg-gradient-layer {
    display: none;
  }
  html:not([data-theme="dark"]) .wave-divider {
    background-color: #ffffff;
  }
  .bg-gradient-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -260px;
    right: -260px;
    z-index: -1;
    pointer-events: none;
    background-image:
      radial-gradient(ellipse 900px 650px at 8% 3%, rgba(22,80,168,0.16), transparent 60%),
      radial-gradient(ellipse 800px 650px at 95% 12%, rgba(201,74,31,0.14), transparent 60%),
      radial-gradient(ellipse 950px 750px at 4% 42%, rgba(11,128,88,0.08), transparent 60%),
      radial-gradient(ellipse 850px 700px at 96% 48%, rgba(114,56,181,0.08), transparent 60%),
      radial-gradient(ellipse 950px 750px at 10% 78%, rgba(143,106,23,0.09), transparent 60%),
      radial-gradient(ellipse 900px 700px at 92% 92%, rgba(44,79,104,0.08), transparent 60%);
    background-repeat: no-repeat;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    animation: bg-hue-cycle 26s linear infinite;
  }
  /* bg-gradient-layer is now shown in both light and dark mode, matching behavior */
  @keyframes bg-hue-cycle {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .bg-gradient-layer { animation: none; }
  }
  img { max-width: 100%; display: block; }

  a { color: inherit; }

  .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
  }

  section { padding: 72px 0; }
  @media (max-width: 600px) {
    section { padding: 40px 0; }
  }

  /* ===== HEADER / NAV ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid var(--color-border);
  }
  .header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-header img.logo { height: 36px; width: auto; }
  html[data-theme="dark"] .site-header img.logo { filter: brightness(0) invert(1); }
  /* Offset anchor-scroll targets so the sticky header doesn't cover the section title when a header/footer nav link jumps here */
  #Top, #service, #works { scroll-margin-top: 90px; }
  .main-nav { display: flex; gap: 32px; align-items: center; }
  .main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 4px;
    opacity: 0;
    animation: nav-fade-in 0.6s ease forwards;
  }
  .main-nav a:nth-child(1) { animation-delay: 0.05s; }
  .main-nav a:nth-child(2) { animation-delay: 0.1s; }
  .main-nav a:nth-child(3) { animation-delay: 0.15s; }
  .main-nav a:nth-child(4) { animation-delay: 0.2s; }
  .main-nav a:nth-child(5) { animation-delay: 0.25s; }
  .main-nav a:nth-child(6) { animation-delay: 0.3s; }
  @keyframes nav-fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .main-nav a { animation: none; opacity: 1; }
  }
  .main-nav a .nav-num {
    font-family: var(--font-en);
    color: var(--color-accent-gold);
    font-size: 0.75rem;
    margin-right: 4px;
  }
  .main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--color-accent-gold);
    transition: width 0.25s ease;
  }
  .main-nav a:hover::after { width: 100%; }
  .theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 20px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
  }
  .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-sub);
    cursor: pointer;
    opacity: 0.45;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }
  .theme-btn svg { width: 16px; height: 16px; }
  .theme-btn:hover { opacity: 0.8; }
  .theme-btn-light {
    background: var(--color-accent-gold);
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 0 10px rgba(143,106,23,0.55);
    transform: scale(1.06);
  }
  html[data-theme="dark"] .theme-btn-light {
    background: transparent;
    color: var(--color-text-sub);
    opacity: 0.4;
    box-shadow: none;
    transform: scale(1);
  }
  html[data-theme="dark"] .theme-btn-dark {
    background: #2a2d33;
    color: #ffd98a;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255,217,138,0.5);
    transform: scale(1.06);
  }
  .nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent-gold);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(143,106,23,0.45);
    transition: background 0.3s ease;
  }
  .main-nav .nav-cta {
    animation: cta-breathe 3.2s ease-in-out infinite, nav-fade-in 0.6s ease forwards;
    animation-delay: 0.3s, 0.3s;
    padding-bottom: 10px;
  }
  .nav-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
  }
  .nav-cta:hover::before { left: 130%; }
  @keyframes cta-breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(143,106,23,0.35); }
    50% { box-shadow: 0 0 0 6px rgba(143,106,23,0); }
  }
  .nav-cta::after { display: none; }
  .nav-cta:hover { background: var(--color-accent-hover); }
  @media (prefers-reduced-motion: reduce) {
    .nav-cta { animation: none; }
    .nav-cta::before { transition: none; left: -60%; }
  }
  .menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
  .theme-switch-mobile { display: none; }

  @media (max-width: 900px) {
    .main-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--color-bg-base);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      padding: 8px 24px 16px;
      border-bottom: 1px solid var(--color-border);
      box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 0; width: 100%; }
    .main-nav a::after { display: none; }
    .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }
    .menu-toggle { display: block; }
    .main-nav .theme-switch { display: none; }
    .theme-switch-mobile { display: inline-flex; }
  }

  /* ===== SECTION HEADER ===== */
  .section-header { text-align: center; margin-bottom: 60px; }
  .section-label {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
  }
  .section-title { font-size: 2rem; font-weight: 700; letter-spacing: 0.05em; }
  .title-svg { height: 44px; width: auto; max-width: 100%; display: block; margin: 0 auto; color: var(--title-svg-color); }
  @media (max-width: 600px) {
    .title-svg { height: 30px; }
  }
  .section-header .signature-rule { margin: 10px auto 0 auto; }
  .section-sub {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 16px auto 0 auto;
  }

  /* ===== 1. HERO ===== */
  .hero-tagline {
    text-align: center;
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: #b3492f;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
  }
  .hero-tagline-inside {
    position: absolute;
    top: 40px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 3;
    width: max-content;
    max-width: 90%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    font-family: var(--font-en);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  @media (min-width: 601px) {
    .hero-tagline-inside {
      top: 96px;
      bottom: auto;
      left: 120px;
      right: auto;
      transform: none;
      text-align: left;
      font-size: 0.9rem;
    }
  }
  .tagline-break { display: none; }
  @media (max-width: 600px) {
    .tagline-break { display: none; }
  }
  .signature-rule {
    width: 180px;
    height: 6px;
    max-width: 180px;
    margin: 0 auto 24px auto;
    background-image: radial-gradient(circle, var(--color-accent-gold) 2px, transparent 2.2px);
    background-size: 14px 6px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.55;
  }
  .hero-card {
    position: relative;
    overflow: hidden;
    min-height: 557px;
    opacity: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
    clip-path: circle(76px at center);
    transition: opacity 8s linear;
  }
  .hero-card.iris-open {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 0px);
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-card { opacity: 1; clip-path: none; transition: none; }
  }
  .hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.1) saturate(1.05);
  }
  html[data-theme="dark"] .hero-video { filter: brightness(1.05) saturate(1); }
  html[data-theme="dark"] .hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(rgba(21,23,26,0.4), rgba(21,23,26,0.4));
  }
  .hero-scrim {
    display: none;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 110px 60px 110px;
    max-width: 640px;
  }
  .hero-content .section-label { color: var(--color-accent-gold); }
  .hero-content .hero-heading { color: #5a5a62; text-shadow: 0 2px 12px rgba(255,255,255,0.85), 0 0 4px rgba(255,255,255,0.9); }
  .tech-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 14px 20px rgba(43,32,10,0.12));
  }
  .tech-mockup svg { width: 100%; height: auto; display: block; }
  .tech-mockup .mockup-float {
    animation: mockup-float 5s ease-in-out infinite;
  }
  @keyframes mockup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .ai-badge-float {
    animation: ai-badge-float 4s ease-in-out infinite;
    transform-origin: 48px 34px;
  }
  @keyframes ai-badge-float {
    0%, 100% { transform: translate(48px,34px) scale(1.2) translateY(0); }
    50% { transform: translate(48px,34px) scale(1.2) translateY(-5px); }
  }
  .ai-badge-spin {
    animation: ai-badge-spin 7s linear infinite;
    transform-origin: 0 0;
  }
  @keyframes ai-badge-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .ai-badge-pulse {
    animation: ai-badge-pulse 1.6s ease-in-out infinite;
    transform-origin: 0 0;
  }
  @keyframes ai-badge-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ai-badge-float, .ai-badge-spin, .ai-badge-pulse { animation: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .tech-mockup .mockup-float { animation: none; }
  }
  .flow-dot {
    animation: flow-pulse 2.4s ease-in-out infinite;
  }
  @keyframes flow-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .flow-dot { animation: none; opacity: 0.7; }
  }
  .landmark-light { opacity: 0; }
  html[data-theme="dark"] .landmark-light {
    animation: landmark-glow 2.6s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255,240,200,1)) drop-shadow(0 0 3px rgba(255,255,255,0.9));
  }
  html[data-theme="dark"] .landmark-lights-brick .landmark-light {
    filter: drop-shadow(0 0 5px rgba(224,120,80,1)) drop-shadow(0 0 3px rgba(230,160,130,0.9));
  }
  html[data-theme="dark"] .brick-warehouse-fill {
    color: #823a24;
    filter: drop-shadow(0 0 10px rgba(130,58,36,0.55));
  }
  html:not([data-theme="dark"]) .brick-warehouse-fill {
    color: #823a24;
  }
  @keyframes landmark-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }
  html[data-theme="dark"] .ship-windows rect { fill: #fff3d6; }
  html[data-theme="dark"] .ship-windows {
    filter: drop-shadow(0 0 2px rgba(255,240,200,0.9));
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] .landmark-light { animation: none; opacity: 0.75; }
  }
  .hero-heading-stack { position: relative; min-height: 6.5rem; margin-bottom: 24px; }
  .hero-heading {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
    opacity: 1;
    transition: opacity 0.4s ease;
    white-space: nowrap;
  }
  .hero-heading.is-changing { opacity: 0; }
  .hero-heading.video-paused { opacity: 0; }
  .hero-content .section-label,
  .hero-heading-stack {
    animation: hero-text-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 2.55s;
  }
  .hero-heading-stack { animation-delay: 2.7s; }
  .no-opening .hero-content .section-label { animation-delay: 0.45s; }
  .no-opening .hero-heading-stack { animation-delay: 0.6s; }
  @keyframes hero-text-in {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-heading { transition: none; }
    .hero-content .section-label,
    .hero-heading-stack { animation: none; }
  }

  /* ===== 2. SERVICES ===== */
  .service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; perspective: 1200px; }

  .tech-ticker {
    overflow: hidden;
    margin-top: 56px;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  }
  .tech-ticker-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: tech-ticker-scroll 32s linear infinite;
  }
  .tech-ticker:hover .tech-ticker-track { animation-play-state: paused; }
  @keyframes tech-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    white-space: nowrap;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-gold);
  }
  .tech-badge svg { width: 18px; height: 18px; color: var(--color-accent-gold); flex-shrink: 0; }
  @media (prefers-reduced-motion: reduce) {
    .tech-ticker-track { animation: none; }
  }
  @media (max-width: 600px) {
    .tech-ticker { margin-top: 40px; }
    .tech-badge { padding: 8px 16px; font-size: 0.78rem; }
    .tech-badge svg { width: 16px; height: 16px; }
  }
  .service-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143,106,23,0.14), transparent 70%);
  }
  .service-card:nth-child(1)::before { background: radial-gradient(circle, rgba(22,80,168,0.14), transparent 70%); }
  .service-card:nth-child(2)::before { background: radial-gradient(circle, rgba(11,128,88,0.14), transparent 70%); }
  .service-card:nth-child(3)::before { background: radial-gradient(circle, rgba(114,56,181,0.14), transparent 70%); }
  .service-card:nth-child(4)::before { background: radial-gradient(circle, rgba(201,74,31,0.14), transparent 70%); }
  .service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(240px circle at var(--mx) var(--my), rgba(143,106,23,0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  .service-card:nth-child(1)::after { background: radial-gradient(240px circle at var(--mx) var(--my), rgba(22,80,168,0.14), transparent 70%); }
  .service-card:nth-child(2)::after { background: radial-gradient(240px circle at var(--mx) var(--my), rgba(11,128,88,0.14), transparent 70%); }
  .service-card:nth-child(3)::after { background: radial-gradient(240px circle at var(--mx) var(--my), rgba(114,56,181,0.14), transparent 70%); }
  .service-card:nth-child(4)::after { background: radial-gradient(240px circle at var(--mx) var(--my), rgba(201,74,31,0.14), transparent 70%); }
  .service-card:hover::after { opacity: 1; }
  .service-card:nth-child(1) { --pop-rest-transform: rotateY(6deg) rotateZ(-2deg) translateY(4px); }
  .service-card:nth-child(2) { --pop-rest-transform: rotateY(-6deg) rotateZ(2deg) translateY(32px); }
  .service-card:nth-child(3) { --pop-rest-transform: rotateY(-5deg) rotateZ(-2.5deg) translateY(2px); }
  .service-card:nth-child(4) { --pop-rest-transform: rotateY(7deg) rotateZ(2.5deg) translateY(30px); }
  .card-pop.service-card.is-visible:hover {
    transform: rotateY(0deg) rotateZ(0deg) translateY(-10px) scale(1.05);
    box-shadow: 0 24px 44px rgba(0,0,0,0.2), 0 8px 18px rgba(0,0,0,0.12);
    z-index: 2;
  }
  @media (max-width: 900px) {
    .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3), .service-card:nth-child(4) {
      --pop-rest-transform: translateY(0) scale(1);
    }
    .card-pop.service-card.is-visible:hover { transform: translateY(-4px) scale(1); }
  }
  .service-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
  .service-icon {
    width: 52px; height: 52px;
    background: #f9f6f0;
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--color-accent-gold);
    font-weight: 700;
    font-family: var(--font-en);
  }
  .service-icon svg { width: 24px; height: 24px; flex-shrink: 0; }
  .service-icon .service-icon-num { font-size: 10px; font-weight: 700; line-height: 1; }
  .service-card:nth-child(1) .service-icon { background: #eaf1fb; color: #1650a8; }
  .service-card:nth-child(2) .service-icon { background: #e9f5f0; color: #0b8058; }
  .service-card:nth-child(3) .service-icon { background: #f6f1fa; color: #7238b5; }
  .service-card:nth-child(4) .service-icon { background: #faeee8; color: #c94a1f; }
  .service-card:nth-child(1) .service-box { border-left: 3px solid #1650a8; }
  .service-card:nth-child(2) .service-box { border-left: 3px solid #0b8058; }
  .service-card:nth-child(3) .service-box { border-left: 3px solid #7238b5; }
  .service-card:nth-child(4) .service-box { border-left: 3px solid #c94a1f; }
  .service-card:nth-child(1) .service-box-title { color: #1650a8; }
  .service-card:nth-child(2) .service-box-title { color: #0b8058; }
  .service-card:nth-child(3) .service-box-title { color: #7238b5; }
  .service-card:nth-child(4) .service-box-title { color: #c94a1f; }
  .service-title { font-size: 1.25rem; font-weight: 700; }
  .service-desc { color: var(--color-text-sub); font-size: 0.9rem; }
  .service-box { background: var(--color-bg-subtle); border-radius: 8px; padding: 16px; margin-top: 20px; font-size: 0.875rem; }
  .service-box-title { font-weight: 700; color: var(--color-accent-gold); margin-bottom: 4px; display: block; }

  /* ===== 3. FLOW ===== */
  .flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
  .flow-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    --mx: 50%;
    --my: 50%;
  }
  .flow-card:nth-child(2n) {
    transform: scale(1.08);
    box-shadow: 0 28px 56px rgba(0,0,0,0.22);
    z-index: 2;
  }
  @media (max-width: 900px) {
    .flow-card:nth-child(2n) { transform: none; box-shadow: var(--shadow-subtle); }
  }
  .flow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
  }
  .flow-card:hover::after { opacity: 1; }
  .flow-grid .flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .flow-grid .flow-card:nth-child(2n):hover { transform: scale(1.08) translateY(-4px); box-shadow: 0 32px 60px rgba(0,0,0,0.24); }
  .flow-card:nth-child(1)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(22,80,168,0.12), transparent 70%); }
  .flow-card:nth-child(2)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(11,128,88,0.12), transparent 70%); }
  .flow-card:nth-child(3)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(143,106,23,0.12), transparent 70%); }
  .flow-card:nth-child(4)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(114,56,181,0.12), transparent 70%); }
  .flow-card:nth-child(5)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(44,79,104,0.12), transparent 70%); }
  .flow-card:nth-child(6)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(201,74,31,0.12), transparent 70%); }
  .flow-step-num {
    font-family: var(--font-en);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    opacity: 0.14;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 1;
  }
  .flow-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    position: relative; z-index: 1;
  }
  .flow-icon svg { width: 20px; height: 20px; }
  .flow-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
  .flow-desc { font-size: 0.875rem; color: var(--color-text-sub); position: relative; z-index: 1; }
  .flow-note { text-align: center; margin-top: 32px; color: var(--color-text-sub); font-size: 0.85rem; }
  .flow-cta { text-align: center; margin-top: 40px; }
  .flow-card:nth-child(1) .flow-step-num { color: #1650a8; }
  .flow-card:nth-child(2) .flow-step-num { color: #0b8058; }
  .flow-card:nth-child(3) .flow-step-num { color: #8f6a17; }
  .flow-card:nth-child(4) .flow-step-num { color: #7238b5; }
  .flow-card:nth-child(5) .flow-step-num { color: #2c4f68; }
  .flow-card:nth-child(6) .flow-step-num { color: #c94a1f; }
  .flow-card:nth-child(1) .flow-icon { background: #eaf1fb; color: #1650a8; }
  .flow-card:nth-child(2) .flow-icon { background: #e9f5f0; color: #0b8058; }
  .flow-card:nth-child(3) .flow-icon { background: #f9f4e8; color: #8f6a17; }
  .flow-card:nth-child(4) .flow-icon { background: #f6f1fa; color: #7238b5; }
  .flow-card:nth-child(5) .flow-icon { background: #e8eef2; color: #2c4f68; }
  .flow-card:nth-child(6) .flow-icon { background: #faeee8; color: #c94a1f; }

  /* ===== 4. PROJECT / WORKS ===== */
  .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 72px; perspective: 1200px; }
  .case-card { background: var(--color-bg-card); border-radius: 12px; padding: 32px; border: 1px solid var(--color-border); box-shadow: var(--shadow-subtle); transition: transform 0.35s ease, box-shadow 0.35s ease; position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
  .case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx) var(--my), rgba(143,106,23,0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  .case-card:hover::after { opacity: 1; }
  .case-card:nth-child(1) { --pop-rest-transform: rotateY(8deg) rotateZ(-2.5deg) translateY(8px); }
  .case-card:nth-child(2) { --pop-rest-transform: rotateY(-5deg) rotateZ(2deg) translateY(-12px); }
  .case-card:nth-child(3) { --pop-rest-transform: rotateY(-8deg) rotateZ(3deg) translateY(6px); }
  .card-pop.case-card.is-visible:hover {
    transform: rotateY(0deg) rotateZ(0deg) translateY(-12px) scale(1.06);
    box-shadow: 0 24px 44px rgba(0,0,0,0.22), 0 8px 18px rgba(0,0,0,0.14);
    z-index: 2;
  }
  @media (max-width: 900px) {
    .case-card:nth-child(1), .case-card:nth-child(2), .case-card:nth-child(3) {
      --pop-rest-transform: translateY(0) scale(1);
    }
    .card-pop.case-card.is-visible:hover { transform: translateY(-4px) scale(1); }
  }
  .case-label { font-family: var(--font-en); font-size: 0.8rem; color: var(--color-accent-gold); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; display: block; }
  .case-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    position: relative; z-index: 1;
  }
  .case-icon svg { width: 20px; height: 20px; }
  .case-card:nth-child(1) .case-icon { background: #eaf1fb; color: #1650a8; }
  .case-card:nth-child(2) .case-icon { background: #e9f5f0; color: #0b8058; }
  .case-card:nth-child(3) .case-icon { background: #f6f1fa; color: #7238b5; }
  .case-card:nth-child(1) .case-label { color: #1650a8; }
  .case-card:nth-child(2) .case-label { color: #0b8058; }
  .case-card:nth-child(3) .case-label { color: #7238b5; }
  .case-card:nth-child(1)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(22,80,168,0.12), transparent 70%); }
  .case-card:nth-child(2)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(11,128,88,0.12), transparent 70%); }
  .case-card:nth-child(3)::after { background: radial-gradient(220px circle at var(--mx) var(--my), rgba(114,56,181,0.12), transparent 70%); }
  .case-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
  .case-block { font-size: 0.85rem; margin-bottom: 12px; }
  .case-block-title { font-weight: 700; color: var(--color-text-main); display: block; margin-bottom: 4px; }
  .case-block p { color: var(--color-text-sub); }

  .clients-title { text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--color-text-sub); letter-spacing: 0.1em; margin-bottom: 32px; text-transform: uppercase; font-family: var(--font-en); }
  .clients-marquee {
    position: relative;
    height: 220px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  }
  .clients-marquee::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-gold);
    opacity: 0.5;
    z-index: 2;
  }
  .client-logo {
    position: absolute;
    top: 14px;
    left: 2305px;
    width: 270px;
    height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.14));
    animation: clients-move 64s linear infinite, clients-bump 64s linear infinite;
    cursor: pointer;
  }
  .client-logo:hover {
    animation-play-state: paused;
  }
  .client-logo:hover svg {
    animation-play-state: paused;
  }
  .clients-marquee.is-popup-open .client-logo {
    animation-play-state: paused !important;
  }
  .clients-marquee.is-popup-open .client-logo svg {
    animation-play-state: paused !important;
  }
  .client-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 336px;
    height: 371px;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 2.5px solid var(--color-border);
    box-shadow: 0 24px 48px rgba(0,0,0,0.22), 0 8px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translate(-50%, -50%) scale(0.97);
    overflow: hidden;
  }
  .client-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(160px circle at 50% 30%, rgba(143,106,23,0.08), transparent 70%);
    pointer-events: none;
  }
  .client-popup-label {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-accent-gold);
  }
  .client-popup-detail {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px 24px;
    text-align: center;
  }
  .client-popup.is-detail .client-popup-label { display: none; }
  .client-popup.is-detail .client-popup-detail { display: flex; }
  .client-popup-company {
    font-family: var(--font-jp);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 4px;
  }
  .client-popup-project {
    font-family: var(--font-jp);
    font-size: 0.82rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
  }
  .client-popup-shots {
    display: flex;
    gap: 18px;
    justify-content: center;
    perspective: 900px;
    padding-top: 6px;
  }
  .shot-frame {
    width: 138px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 26px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .shot-frame:nth-child(1) { transform: rotateY(8deg) rotateZ(-2.5deg) translateY(5px); }
  .shot-frame:nth-child(2) { transform: rotateY(-8deg) rotateZ(2.5deg) translateY(-3px); }
  .shot-frame:hover {
    transform: rotateY(0deg) rotateZ(0deg) translateY(-4px) scale(1.05);
    box-shadow: 0 20px 36px rgba(0,0,0,0.24), 0 6px 14px rgba(0,0,0,0.12);
    z-index: 2;
  }
  .shot-frame-bar {
    height: 16px;
    background: #eef0f2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    border-bottom: 1px solid #e2e4e7;
  }
  .shot-frame-bar span { width: 5px; height: 5px; border-radius: 50%; display: block; }
  .shot-frame-bar span:nth-child(1) { background: #ff5f57; }
  .shot-frame-bar span:nth-child(2) { background: #febc2e; }
  .shot-frame-bar span:nth-child(3) { background: #28c840; }
  .shot-frame img {
    width: 100%;
    height: auto;
    display: block;
  }
  .client-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-sub);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    pointer-events: auto;
  }
  .client-popup-close:hover {
    background: rgba(0,0,0,0.06);
    color: var(--color-text-main);
  }
  .client-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  @keyframes clients-move {
    from { left: 3170px; }
    to { left: -290px; }
  }
  @keyframes clients-bump {
    0%, 67.7% { transform: translateY(0); }
    69.2% { transform: translateY(4px); }
    70.7% { transform: translateY(-2px); }
    72.2%, 78.53% { transform: translateY(0); }
    80.03% { transform: translateY(4px); }
    81.53% { transform: translateY(-2px); }
    83.03%, 89.37% { transform: translateY(0); }
    90.87% { transform: translateY(4px); }
    92.37% { transform: translateY(-2px); }
    93.87%, 100% { transform: translateY(0); }
  }
  .client-logo svg { width: 100%; height: 100%; display: block; animation: gondola-sway 4.6s ease-in-out infinite; transform-origin: 50% 4%; }
  @keyframes gondola-sway {
    0%, 100% { transform: rotate(-1.6deg); }
    50% { transform: rotate(1.6deg); }
  }
  @media (max-width: 600px) {
    .hero-section {
      padding-top: 16px !important;
      justify-content: flex-start !important;
    }
    .hero-card {
      min-height: 340px;
    }
    .hero-content {
      position: relative;
      padding: 65px 20px 24px 20px;
      max-width: 100%;
      text-align: center;
      background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 55%, rgba(255,255,255,0) 100%);
    }
    .hero-content .hero-heading { font-size: 1.05rem !important; white-space: nowrap; text-shadow: 0 0 10px rgba(255,255,255,0.95), 0 0 4px rgba(255,255,255,0.95), 0 1px 2px rgba(255,255,255,0.9); }
    .hero-heading-stack { min-height: 3.2rem; margin-bottom: 0; margin-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .client-logo { animation: none; left: 20%; }
    .client-logo svg { animation: none; }
  }
  @media (max-width: 600px) {
    .clients-marquee {
      height: 130px;
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }
    .client-logo {
      width: 162px;
      height: 107px;
      animation-name: clients-move;
      animation-duration: 64s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }
  }

  /* ===== 5. ABOUT ===== */
  .about-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 60px 48px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .about-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; overflow: hidden; }
  .about-visual .tech-mockup { max-width: 460px; }
  .about-content p { color: var(--color-text-sub); font-size: 0.95rem; margin-bottom: 16px; }
  .about-links { margin-top: 24px; display: flex; gap: 16px; }
  .btn-outline {
    position: relative;
    display: inline-block;
    background: var(--color-accent-gold);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.3s ease;
  }
  .btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
  }
  .btn-outline:hover { background: var(--color-accent-hover); color: #fff; }
  .btn-outline:hover::before { left: 130%; }

  /* ===== 6. CONTACT / CTA ===== */
  .cta-section {
    background: linear-gradient(rgba(31,36,33,0.75), rgba(31,36,33,0.75)), url('../images/contact-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
  }
  .cta-title { font-size: 1.8rem; margin-bottom: 24px; }
  .cta-list { list-style: none; max-width: 600px; margin: 0 auto 40px auto; text-align: left; display: grid; gap: 12px; }
  .cta-list li { font-size: 0.95rem; padding-left: 24px; position: relative; color: #d1d5db; }
  .cta-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent-gold); }
  .btn-primary {
    position: relative;
    display: inline-block;
    background: var(--color-accent-gold);
    color: #ffffff;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.3s ease;
  }
  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
  }
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-primary:hover::before { left: 130%; }

  /* ===== FOOTER ===== */
  .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
    z-index: 400;
  }
  .back-to-top svg { width: 22px; height: 22px; }
  .back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .back-to-top:hover { background: var(--color-accent-hover); box-shadow: 0 12px 26px rgba(0,0,0,0.24), 0 4px 10px rgba(0,0,0,0.14); transform: translateY(-3px); }
  @media (max-width: 700px) {
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .back-to-top svg { width: 20px; height: 20px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
  }
  .mobile-contact-fab {
    display: none;
  }
  @media (max-width: 700px) {
    .mobile-contact-fab {
      display: flex;
      position: fixed;
      left: 16px;
      bottom: 16px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--color-accent-gold);
      color: #ffffff;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
      z-index: 400;
      text-decoration: none;
      transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }
    .mobile-contact-fab svg { width: 20px; height: 20px; }
    .mobile-contact-fab:hover, .mobile-contact-fab:active { background: var(--color-accent-hover); transform: translateY(-2px); }
  }
  .site-footer { background: #000000; padding: 40px 0 32px 0; text-align: center; }
  .wave-divider { width: 100%; height: 64px; display: block; margin-bottom: -1px; }
  .wave-divider svg { width: 100%; height: 100%; display: block; }
  .wave-sparkle {
    fill: #ffffff;
    animation: sea-twinkle 3s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .wave-sparkle { animation: none; opacity: 0.4; }
  }
  .site-footer img.footer-mark { height: 36px; width: auto; margin: 0 auto 20px auto; filter: brightness(0) invert(1); opacity: 1; }
  html[data-theme="dark"] #seaStopTop { stop-color: #1c3d52; }
  html[data-theme="dark"] #seaStopBottom { stop-color: #0a1c2b; }
  html[data-theme="dark"] #waveStopTop { stop-color: #1c3d52; }
  html[data-theme="dark"] #waveStopBottom { stop-color: #0a1c2b; }
  html[data-theme="dark"] .flow-step-num { opacity: 0.4; }
  .footer-legal { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
  .footer-legal a { font-size: 0.75rem; font-weight: 700; text-decoration: none; color: #ffffff; }
  .footer-legal a:hover { color: var(--color-accent-gold); }
  .footer-copyright { font-family: var(--font-en); font-size: 0.75rem; font-weight: 700; color: #ffffff; letter-spacing: 0.05em; }
  @media (max-width: 600px) {
    .site-footer { padding: 32px 24px 24px; }
    .site-footer img.footer-mark { height: 30px; margin-bottom: 14px; }
    .footer-legal { gap: 16px; margin-bottom: 14px; }
    .footer-legal a { font-size: 0.72rem; }
    .footer-copyright { font-size: 0.7rem; }
  }

  @media (max-width: 900px) {
    .hero-card, .about-card { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
  }

  /* ===== SCROLL REVEAL ===== */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .card-pop {
    --pop-rest-transform: translateY(0) scale(1);
    opacity: 0;
    transform: translateY(64px) scale(0.88);
  }
  .card-pop.is-visible {
    animation: card-pop-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes card-pop-in {
    0% { opacity: 0; transform: translateY(64px) scale(0.88); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: var(--pop-rest-transform); }
  }
  /* case-card uses a transition instead of a keyframe animation for its entrance,
     so that :hover can properly override the transform afterwards (a finished
     keyframe animation with fill-mode:forwards otherwise keeps taking priority
     over normal :hover rules for the same property). */
  .card-pop.case-card {
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .card-pop.case-card.is-visible {
    animation: none;
    opacity: 1;
    transform: var(--pop-rest-transform);
  }
  .card-pop.service-card {
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .card-pop.service-card.is-visible {
    animation: none;
    opacity: 1;
    transform: var(--pop-rest-transform);
  }
  .service-card:nth-child(1) { transition-delay: 0s; }
  .service-card:nth-child(2) { transition-delay: 0.08s; }
  .service-card:nth-child(3) { transition-delay: 0.16s; }
  .service-card:nth-child(4) { transition-delay: 0.24s; }
  .flow-card:nth-child(1) { transition-delay: 0s; }
  .flow-card:nth-child(2) { transition-delay: 0.06s; }
  .flow-card:nth-child(3) { transition-delay: 0.12s; }
  .flow-card:nth-child(4) { transition-delay: 0.18s; }
  .flow-card:nth-child(5) { transition-delay: 0.24s; }
  .flow-card:nth-child(6) { transition-delay: 0.3s; }
  .case-card:nth-child(1) { transition-delay: 0s; }
  .case-card:nth-child(2) { transition-delay: 0.1s; }
  .case-card:nth-child(3) { transition-delay: 0.2s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .card-pop { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  }
  /* ===== YOKOHAMA SKYLINE BACKGROUND ===== */
  .yokohama-skyline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 32vh;
    min-height: 230px;
    max-height: 340px;
    color: var(--color-accent-gold);
    z-index: -1;
    pointer-events: none;
  }
  .yokohama-skyline svg { width: 100%; height: 100%; display: block; }
  .skyline-silhouette { opacity: 0.2; }
  @media (max-width: 700px) {
    .yokohama-skyline { height: 39vh; }
    .skyline-silhouette { opacity: 0.16; }
  }
  .wheel-rotate {
    animation: wheel-spin 45s linear infinite;
  }
  @keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  .wheel-light {
    fill: #ffcf6b;
    filter: drop-shadow(0 0 6px #ffcf6b) drop-shadow(0 0 12px rgba(255,207,107,0.6));
    animation: wheel-glow 2.4s ease-in-out infinite;
  }
  @keyframes wheel-glow {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .wheel-rotate { animation: none; }
    .wheel-light { animation: none; opacity: 0.7; }
  }
  .sea-sparkle {
    fill: #ffffff;
    animation: sea-twinkle 3s ease-in-out infinite;
  }
  @keyframes sea-twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.9; }
  }
  @media (prefers-reduced-motion: reduce) {
    .sea-sparkle { animation: none; opacity: 0.4; }
  }

  .cable-pylon {
    position: absolute;
    width: 3px;
    background: var(--color-accent-gold);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
  }
  .cable-pylon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 13px;
    border: 2px solid var(--color-accent-gold);
    border-radius: 3px;
    background: var(--color-bg-card);
  }
  .cable-pylon::after {
    content: '';
    position: absolute;
    top: -2.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-accent-gold);
    opacity: 0.7;
  }
  /* ===== YOKOHAMA AIR CABIN STRIP (over skyline) ===== */
  .cablecar-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 7vh;
    width: 100vw;
    height: 40px;
    z-index: -1;
    overflow: visible;
    pointer-events: none;
  }
  .cablecar-line {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-gold);
    opacity: 0.45;
  }
  .cablecar-gondola {
    position: absolute;
    top: 14px;
    left: -60px;
    width: 40px;
    height: 30px;
    animation: cablecar-move 22s linear infinite;
  }
  .cablecar-gondola svg { width: 100%; height: 100%; display: block; }
  .cablecar-gondola .cabin-sway {
    animation: cablecar-sway 2.2s ease-in-out infinite;
    transform-origin: 20px 8px;
  }
  @keyframes cablecar-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
  }
  .cablecar-gondola:nth-child(2) { animation-delay: -4s; }
  .cablecar-gondola:nth-child(3) { animation-delay: -8s; }
  .cablecar-gondola:nth-child(4) { animation-delay: -12s; }
  @keyframes cablecar-move {
    from { left: -60px; }
    to { left: 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cablecar-gondola { animation: none; left: 20%; }
    .cablecar-gondola .cabin-sway { animation: none; }
  }  /* ===== GRAIN TEXTURE OVERLAY ===== */
  .grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
  }
  /* ===== OPENING INTRO =====
     Line-draw plate outline (with a pause between rim and well), then logo fade-in, then a brief hold, then overlay fade-out.
     Timeline: 0.0-0.95s draw rim, 0.95-1.25s pause, 1.25-2.05s draw well, 1.8-2.75s logo fades in, 2.75-3.35s hold, 3.35-4.1s overlay fades out. */
  .no-opening .opening-overlay { display: none; }
  .opening-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #f7f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: opening-fadeout 0.75s ease forwards;
    animation-delay: 3.35s;
  }
  @keyframes opening-fadeout {
    from { opacity: 1; pointer-events: auto; }
    to { opacity: 0; pointer-events: none; visibility: hidden; }
  }
  .opening-plate-draw {
    position: relative;
    width: clamp(120px, 95px + 10vw, 215px);
    height: clamp(120px, 95px + 10vw, 215px);
  }
  .opening-plate-draw svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .plate-line {
    fill: none;
    stroke: url(#plateLineGradient);
    stroke-width: 2.2;
    stroke-linecap: round;
    transform-origin: 100px 100px;
    transform: rotate(-90deg);
  }
  .plate-line-rim {
    stroke-dasharray: 528;
    stroke-dashoffset: 528;
    animation: plate-draw 0.95s ease forwards;
  }
  .plate-line-well {
    stroke-dasharray: 365;
    stroke-dashoffset: 365;
    animation: plate-draw 0.8s ease forwards;
    animation-delay: 1.25s;
  }
  @keyframes plate-draw {
    to { stroke-dashoffset: 0; }
  }
  .opening-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44%;
    opacity: 0;
    animation: opening-logo-fade 0.95s ease forwards;
    animation-delay: 1.8s;
  }
  @keyframes opening-logo-fade {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .plate-line { animation: none; stroke-dashoffset: 0; }
    .opening-logo { animation: opening-logo-fade-reduced 0.2s ease forwards; animation-delay: 0.05s; }
    @keyframes opening-logo-fade-reduced {
      to { opacity: 1; transform: translate(-50%, -50%); }
    }
    .opening-overlay { animation: opening-fadeout 0.3s ease forwards; animation-delay: 0.5s; }
  }
