@charset "UTF-8";

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Sky / Primary Blue Palette */
  --sky-50: #eff8ff;
  --sky-100: #dceeff;
  --sky-200: #b4ddfb;
  --sky-300: #7ec4f5;
  --sky-400: #4aa8ec;
  --sky-500: #2389d4;
  --sky-600: #176bb0;
  --sky-700: #125691;
  --sky-800: #0e4373;
  --sky-900: #0a2e54;

  /* Neutrals */
  --ink: #0d1b2a;
  --paper: #fafcff;
  --paper-2: #f1f6fb;
  --line: rgba(13, 27, 42, .10);
  --line-blue: rgba(35, 137, 212, .18);
  --steel: #3a4a5e;
  --accent: #ff6b35;

  /* Quality/Teal Palette (do.html) */
  --teal: #0d6e6e;
  --teal-light: #e0f5f5;
  --teal-mid: #0a9396;

  /* NC Lathe Palette (nc.html) */
  --nc-accent: #c0392b;
  --nc-dark: #922b21;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* Base atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(35, 137, 212, .08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(35, 137, 212, .06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Classes */
.mincho {
  font-family: 'Shippori Mincho', serif;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .05em;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 252, 255, .90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--sky-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 24px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(18, 86, 145, .25);
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-jp {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .12em;
}

.logo-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sky-600);
  margin-top: 5px;
  letter-spacing: .22em;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--sky-500);
  transition: width .35s ease;
}

.nav-links a:hover {
  color: var(--sky-600);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--active-color, var(--sky-600));
  border-bottom: 2px solid var(--active-border, var(--sky-500));
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--sky-700);
  color: #fff;
  padding: 11px 24px;
  font-size: 12px;
  letter-spacing: .1em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: all .3s;
}

.nav-cta:hover {
  background: var(--sky-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 86, 145, .3);
}

/* ==========================================================================
   4. SECTIONS (COMMON BASICS)
   ========================================================================== */
section {
  padding: 120px 48px;
  position: relative;
  z-index: 3;
}

.section-head {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: end;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--sky-600);
  letter-spacing: .3em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-num::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sky-500);
}

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
}

.section-title .blue {
  color: var(--sky-600);
}

.section-desc {
  font-size: 15px;
  color: var(--steel);
  line-height: 2;
  max-width: 420px;
  padding-bottom: 8px;
}

/* ==========================================================================
   5. BUTTONS (SHARED)
   ========================================================================== */
.btn-primary {
  background: var(--sky-700);
  color: #fff;
  padding: 18px 36px;
  font-size: 13px;
  letter-spacing: .15em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all .3s;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(18, 86, 145, .25);
}

.btn-primary:hover {
  background: var(--sky-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 86, 145, .35);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform .3s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .15em;
  padding: 18px 0;
  border-bottom: 1px solid var(--sky-700);
  transition: all .3s;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--sky-600);
  padding-left: 8px;
}

.btn-white {
  background: #fff;
  color: var(--sky-800);
  padding: 20px 40px;
  font-size: 14px;
  letter-spacing: .15em;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all .3s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 20px 40px;
  font-size: 14px;
  letter-spacing: .15em;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all .3s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn-submit {
  width: 100%;
  background: var(--sky-700);
  color: #fff;
  padding: 16px;
  font-size: 14px;
  letter-spacing: .15em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all .3s;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--sky-800);
}

.btn-submit:disabled {
  background: var(--steel);
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   6. SIBLING BUTTONS / SIBLING LINKS
   ========================================================================== */
.sibling-row {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding: 0 48px 80px;
}

.sibling-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: all .3s;
  background: #fff;
}

.sibling-btn:hover {
  border-color: var(--sky-300);
  box-shadow: 0 8px 24px -6px rgba(18, 86, 145, .12);
  transform: translateY(-2px);
}

.sibling-btn .s-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sky-600);
  letter-spacing: .2em;
  margin-bottom: 6px;
}

.sibling-btn .s-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 700;
}

.sibling-btn .s-count {
  font-family: 'Shippori Mincho', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--sky-700);
}

.sibling-btn .s-arrow {
  font-size: 20px;
  color: var(--sky-400);
}

/* ==========================================================================
   7. CONTACT MODAL & FORM ELEMENTS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, .65);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 4px;
  padding: 56px 48px;
  width: min(600px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform .35s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--steel);
  cursor: pointer;
  line-height: 1;
}

.modal h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  margin-bottom: 8px;
}

.modal .modal-sub {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 36px;
  letter-spacing: .05em;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--sky-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sky-500);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Modal Form States (Success & Error messages) */
.form-status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 2px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-status-message.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-status-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.modal-success-screen {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.modal-success-screen svg {
  width: 72px;
  height: 72px;
  color: #27ae60;
  background: #e8f5e9;
  border-radius: 50%;
  padding: 14px;
}

.modal-success-screen h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  color: var(--ink);
}

.modal-success-screen p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.8;
  max-width: 400px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 80px 48px 32px;
  position: relative;
  z-index: 3;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .logo-mark {
  margin-bottom: 20px;
}

.footer-brand h4 {
  font-family: 'Shippori Mincho', serif;
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 11px;
  color: var(--sky-300);
  letter-spacing: .2em;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: 13px;
  transition: color .3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .1em;
}

.footer-policy-link {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  transition: color .3s;
}

.footer-policy-link:hover {
  color: rgba(255, 255, 255, .8);
}

/* ==========================================================================
   9. SCROLL REVEALS & KEYFRAMES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   10. RESPONSIVE UTILITIES (GLOBAL NAV / FOOTER)
   ========================================================================== */
@media(max-width:1024px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  section {
    padding: 90px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .sibling-row {
    flex-direction: column;
  }
}

@media(max-width:640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   11. PAGE-SPECIFIC SECTIONS (MERGED FROM INDEX.HTML)
   ========================================================================== */

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 160px 48px 100px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  position: relative;
  align-items: center;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-50%);
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(180px, 24vw, 360px);
  font-weight: 800;
  background: linear-gradient(180deg, var(--sky-200) 0%, var(--sky-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .5;
  letter-spacing: -.04em;
  line-height: .85;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  writing-mode: vertical-rl;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sky-600);
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--sky-500);
}

.hero-tag::after {
  content: 'EST. 大阪';
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sky-700);
  letter-spacing: .2em;
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.1;
  letter-spacing: .02em;
  margin-bottom: 36px;
  color: var(--ink);
}

.hero-title .accent {
  color: var(--sky-600);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--sky-200);
  opacity: .6;
  z-index: -1;
}

.hero-sub {
  font-size: 16px;
  color: var(--steel);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 2;
}

.hero-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== Hero visual: blueprint aesthetic ===== */
.hero-visual {
  position: relative;
  z-index: 2;
  aspect-ratio: 1/1.15;
  background: linear-gradient(135deg, var(--sky-800) 0%, var(--sky-900) 100%);
  overflow: hidden;
  border-radius: 3px;
  box-shadow:
    0 30px 60px -20px rgba(10, 46, 84, .4),
    0 0 0 1px rgba(255, 255, 255, .05);
}

.blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.blueprint-major {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 160px 160px;
}

.gear-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  animation: spin 80s linear infinite;
}

.gear-svg-2 {
  position: absolute;
  top: 18%;
  right: 8%;
  width: 30%;
  height: 30%;
  animation: spin-rev 50s linear infinite;
  opacity: .5;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0)
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg)
  }
}

@keyframes spin-rev {
  from {
    transform: rotate(0)
  }
  to {
    transform: rotate(-360deg)
  }
}

.visual-corner {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .15em;
}

.vc-tl {
  top: 18px;
  left: 18px;
}

.vc-tr {
  top: 18px;
  right: 18px;
  text-align: right;
}

.vc-bl {
  bottom: 18px;
  left: 18px;
}

.vc-br {
  bottom: 18px;
  right: 18px;
  text-align: right;
}

.visual-stamp {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .5em;
  writing-mode: vertical-rl;
}

/* ===== Stats strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
  z-index: 3;
}

.stat {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--sky-700);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-num .unit {
  font-size: 18px;
  color: var(--steel);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

.stat-label {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: .1em;
}

.stat-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sky-600);
  margin-top: 6px;
  letter-spacing: .15em;
}

/* ===== ABOUT ===== */
.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sky-700) 0%, var(--sky-900) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.about-img-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: #fff;
}

.about-img-text .kanji {
  font-family: 'Shippori Mincho', serif;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .95);
}

.about-img-text .desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .15em;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 20px;
}

.about-img-deco {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .2em;
  text-align: center;
  line-height: 1.6;
}

.about-text h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

.about-text p {
  font-size: 15px;
  color: var(--steel);
  line-height: 2.1;
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-icon {
  width: 42px;
  height: 42px;
  background: var(--sky-100);
  color: var(--sky-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.feat h4 {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 700;
}

.feat p {
  font-size: 12px;
  color: var(--steel);
  line-height: 1.7;
  margin: 0;
}

/* ===== REPRESENTATIVE & TEAM ===== */
.about-team {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.team-visuals {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rep-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 46, 84, 0.03);
}

.rep-img-wrapper {
  aspect-ratio: 4/3;
  background: var(--sky-900);
  overflow: hidden;
  position: relative;
}

.rep-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rep-info-tag {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.rep-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sky-700);
  letter-spacing: .15em;
  margin-bottom: 4px;
}

.rep-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.rep-name-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  margin-left: 10px;
  font-weight: 400;
}

.team-grid-sm {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.craftsman-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  align-items: center;
}

.craftsman-img-wrapper {
  aspect-ratio: 1/1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--sky-900);
}

.craftsman-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craftsman-info h4 {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.craftsman-info p {
  font-size: 12px;
  color: var(--steel);
  line-height: 1.6;
  margin: 0;
}

.rep-message h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
  color: var(--ink);
}

.rep-message .message-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--sky-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.rep-message p {
  font-size: 15px;
  color: var(--steel);
  line-height: 2.1;
  margin-bottom: 20px;
}

/* ===== SERVICES ===== */
.services {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service {
  background: var(--ink);
  padding: 44px 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sky-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
  z-index: 4;
}

.service-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.72) 0%, rgba(13, 27, 42, 0.9) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.service-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(10, 46, 84, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover .service-bg {
  transform: scale(1.08);
}

.service:hover .service-overlay {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.6) 0%, rgba(13, 27, 42, 0.82) 100%);
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--sky-300);
  letter-spacing: .2em;
  margin-bottom: 24px;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sky-200);
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 3px;
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.service:hover .service-icon {
  background: var(--sky-500);
  color: #fff;
  transform: rotate(-6deg);
  border-color: var(--sky-400);
  box-shadow: 0 8px 20px rgba(35, 137, 212, 0.3);
}

.service h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #fff;
}

.service .en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--sky-300);
  letter-spacing: .15em;
  margin-bottom: 20px;
  display: block;
}

.service p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.service-list li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0 6px 18px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--sky-300);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sky-300);
  text-decoration: none;
  letter-spacing: .1em;
  font-weight: 500;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(126, 196, 245, 0.3);
  transition: all .3s;
}

.service-cta:hover {
  color: #fff;
  border-color: #fff;
  gap: 12px;
}

/* ===== EQUIPMENT / TECHNOLOGY ===== */
.tech {
  background: linear-gradient(rgba(10, 46, 84, 0.85), rgba(10, 46, 84, 0.85)), url('../images/4.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tech::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.tech .section-num {
  color: var(--sky-300);
}

.tech .section-num::before {
  background: var(--sky-300);
}

.tech .section-title {
  color: #fff;
}

.tech .section-title .blue {
  color: var(--sky-300);
}

.tech .section-desc {
  color: rgba(255, 255, 255, .65);
}

.tech-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-list {
  display: flex;
  flex-direction: column;
}

.tech-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tech-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.tech-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--sky-300);
  letter-spacing: .2em;
  width: 40px;
}

.tech-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 600;
}

.tech-name .en {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
  margin-top: 4px;
  letter-spacing: .15em;
}

.tech-arrow {
  color: rgba(255, 255, 255, .4);
  transition: all .3s;
}

.tech-item:hover .tech-arrow {
  color: var(--sky-300);
  transform: translateX(6px);
}

a.tech-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.tech-item:hover {
  background: rgba(255, 255, 255, .04);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
  border-radius: 2px;
}

a.tech-item:hover .tech-name {
  color: #fff;
}

.tech-visual {
  aspect-ratio: 1/1.1;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.tech-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.tech-visual svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
}

.tech-spec {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .15em;
}

.ts1 {
  top: 20px;
  left: 20px;
}

.ts2 {
  top: 20px;
  right: 20px;
  text-align: right;
}

.ts3 {
  bottom: 20px;
  left: 20px;
}

.ts4 {
  bottom: 20px;
  right: 20px;
  text-align: right;
}

/* ===== COMPANY INFO ===== */
.company {
  background: var(--paper);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--line);
}

.info-table tr:first-child {
  border-top: 1px solid var(--line);
}

.info-table th {
  text-align: left;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--sky-700);
  width: 30%;
  letter-spacing: .1em;
  vertical-align: top;
}

.info-table td {
  padding: 14px 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

.info-table td .mono {
  font-size: 14px;
  color: var(--steel);
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(10, 46, 84, 0.05);
  position: relative;
}

/* ===== CTA / CONTACT ===== */
.contact {
  background: linear-gradient(135deg, var(--sky-700) 0%, var(--sky-900) 100%);
  color: #fff;
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.contact-bg-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(140px, 18vw, 260px);
  font-weight: 800;
  color: rgba(255, 255, 255, .06);
  letter-spacing: -.02em;
  line-height: .9;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.contact>* {
  position: relative;
  z-index: 2;
}

.contact .section-num {
  color: var(--sky-300);
  justify-content: center;
  margin-bottom: 24px;
}

.contact .section-num::before {
  background: var(--sky-300);
}

.contact h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.contact p {
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--paper-2);
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .6s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  display: none;
}

.gallery-footer {
  text-align: center;
  margin-top: 56px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 130px 24px 80px;
    gap: 50px;
  }

  .hero-bg-text {
    font-size: 140px;
    writing-mode: horizontal-tb;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .about-grid,
  .about-team-grid,
  .tech-content,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact {
    padding: 90px 24px;
  }

  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:640px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .craftsman-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .craftsman-img-wrapper {
    max-width: 140px;
    margin: 0 auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== COMPANY BANNER (company.html exterior photo) ===== */
.company-banner {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.company-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform .8s ease;
}

.company-banner:hover img {
  transform: scale(1.03);
}

.company-banner-label {
  position: absolute;
  bottom: 28px;
  left: 48px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  opacity: .85;
}

/* ===== TEAM GRID (about.html) ===== */
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.team-full-grid .craftsman-card {
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

.team-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sky-600);
  letter-spacing: .25em;
  margin-top: 32px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--sky-500);
}

.team-section-label.arubaito {
  color: #8b6ecf;
}

.team-section-label.arubaito::before {
  background: #8b6ecf;
}

/* ===== MOBILE HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 252, 255, .97);
  backdrop-filter: blur(16px);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  width: 280px;
  text-align: center;
  transition: color .3s;
}

.mobile-nav a:hover {
  color: var(--sky-600);
}

.mobile-nav .mobile-nav-cta {
  background: var(--sky-700);
  color: #fff;
  border-radius: 2px;
  margin-top: 16px;
  border: none;
  font-size: 14px;
  letter-spacing: .15em;
  font-family: 'Noto Sans JP', sans-serif;
}

.mobile-nav .mobile-nav-cta:hover {
  background: var(--sky-800);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
}

/* ===== SHARED PAGE HERO (FOR SUBPAGES) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--sky-800) 0%, var(--sky-900) 100%);
  padding: 160px 48px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--sky-300);
  letter-spacing: .25em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--sky-300);
  text-decoration: none;
  opacity: .7;
  transition: opacity .3s;
}

.breadcrumb a:hover {
  opacity: 1;
}

.page-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.page-hero h1 .blue {
  color: var(--sky-300);
}

.page-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  max-width: 560px;
  line-height: 2;
}

.hero-count {
  position: absolute;
  right: 48px;
  bottom: 60px;
  font-family: 'Shippori Mincho', serif;
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, .06);
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   ORDER FLOW SECTION
   ========================================================================== */
.order-flow {
  background: var(--sky-800);
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay on blue bg */
.order-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Large decorative text behind the section */
.order-flow::after {
  content: 'PROCESS';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 700;
  color: rgba(255, 255, 255, .04);
  letter-spacing: .3em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Section header text on blue bg */
.order-flow .section-num {
  color: var(--sky-300);
}
.order-flow .section-num::before {
  background: var(--sky-300);
}
.order-flow .section-title {
  color: #fff;
}
.order-flow .section-title .blue {
  color: var(--sky-200);
}
.order-flow .section-desc {
  color: rgba(255, 255, 255, .72);
}

/* ── Flow track (horizontal scroll container on small) */
.flow-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* ── Individual step wrapper */
.flow-step {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Inner card */
.flow-step-inner {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.flow-step-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-300));
  opacity: 0;
  transition: opacity .3s;
}

.flow-step-inner:hover {
  box-shadow: 0 8px 28px -8px rgba(35, 137, 212, .18);
  transform: translateY(-3px);
  border-color: var(--sky-200);
}

.flow-step-inner:hover::before {
  opacity: 1;
}

/* Highlighted last step */
.flow-step-inner--highlight {
  background: var(--sky-500);
  border-color: var(--sky-400);
  color: #fff;
}

.flow-step-inner--highlight::before {
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.2));
  opacity: 1;
}

.flow-step-inner--highlight:hover {
  background: var(--sky-600);
  border-color: var(--sky-500);
  box-shadow: 0 12px 32px -8px rgba(18, 86, 145, .5);
}

/* Step number */
.flow-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--sky-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-step-num span {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky-600);
}

.flow-step-inner--highlight .flow-step-num,
.flow-step-inner--highlight .flow-step-num span {
  color: rgba(255, 255, 255, .7);
}

/* Step icon */
.flow-step-icon {
  width: 52px;
  height: 52px;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sky-600);
  flex-shrink: 0;
  transition: background .3s;
}

.flow-step-inner:hover .flow-step-icon {
  background: var(--sky-100);
}

.flow-step-inner--highlight .flow-step-icon {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

/* Step title */
.flow-step-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--ink);
}

.flow-step-inner--highlight .flow-step-title {
  color: #fff;
}

/* Step description */
.flow-step-desc {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--steel);
  flex: 1;
}

.flow-step-inner--highlight .flow-step-desc {
  color: rgba(255, 255, 255, .8);
}

/* Tag / badge */
.flow-step-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--sky-600);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.flow-step-inner--highlight .flow-step-tag {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
}

/* ── Arrow connector between steps */
.flow-arrow {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px; /* align with icon center */
  color: var(--sky-300);
}

.flow-arrow svg {
  width: 28px;
  height: 20px;
}

/* Last step has no arrow */
.flow-step--last .flow-arrow {
  display: none;
}

/* ── CTA row */
.flow-cta-row {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

/* ── Reveal animation override for flow steps */
.flow-step.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.flow-step.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay */
.flow-step:nth-child(1) { transition-delay: .05s; }
.flow-step:nth-child(2) { transition-delay: .12s; }
.flow-step:nth-child(3) { transition-delay: .19s; }
.flow-step:nth-child(4) { transition-delay: .26s; }
.flow-step:nth-child(5) { transition-delay: .33s; }
.flow-step:nth-child(6) { transition-delay: .40s; }
.flow-step:nth-child(7) { transition-delay: .47s; }

/* ── Responsive: 2-column on tablet, single-column on mobile */
@media (max-width: 1280px) {
  .flow-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .flow-arrow {
    display: none;
  }
  .flow-step {
    display: block;
  }
}

@media (max-width: 860px) {
  .flow-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .flow-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-step-inner {
    padding: 20px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .flow-step-icon {
    width: 44px;
    height: 44px;
  }

  .flow-step-title {
    font-size: 14px;
  }

  .flow-step-num {
    width: 100%;
  }
}


* =========================================================================
   ORDER FLOW SECTION
   ========================================================================== */
.order-flow {
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}

.order-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(35, 137, 212, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 137, 212, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.order-flow::after {
  content: 'PROCESS';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 700;
  color: rgba(35, 137, 212, .04);
  letter-spacing: .3em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step-inner {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}

.flow-step-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-300));
  opacity: 0;
  transition: opacity .3s;
}

.flow-step-inner:hover {
  box-shadow: 0 8px 28px -8px rgba(35, 137, 212, .18);
  transform: translateY(-3px);
  border-color: var(--sky-200);
}

.flow-step-inner:hover::before {
  opacity: 1;
}

.flow-step-inner--highlight {
  background: var(--sky-700);
  border-color: var(--sky-700);
  color: #fff;
}

.flow-step-inner--highlight::before {
  background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.15));
  opacity: 1;
}

.flow-step-inner--highlight:hover {
  background: var(--sky-800);
  border-color: var(--sky-800);
  box-shadow: 0 12px 32px -8px rgba(18, 86, 145, .4);
}

.flow-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--sky-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-step-num span {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky-600);
}

.flow-step-inner--highlight .flow-step-num,
.flow-step-inner--highlight .flow-step-num span {
  color: rgba(255, 255, 255, .7);
}

.flow-step-icon {
  width: 52px;
  height: 52px;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sky-600);
  flex-shrink: 0;
  transition: background .3s;
}

.flow-step-inner:hover .flow-step-icon {
  background: var(--sky-100);
}

.flow-step-inner--highlight .flow-step-icon {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

.flow-step-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--ink);
}

.flow-step-inner--highlight .flow-step-title {
  color: #fff;
}

.flow-step-desc {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--steel);
  flex: 1;
}

.flow-step-inner--highlight .flow-step-desc {
  color: rgba(255, 255, 255, .8);
}

.flow-step-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--sky-600);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.flow-step-inner--highlight .flow-step-tag {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
}

.flow-arrow {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--sky-300);
}

.flow-arrow svg {
  width: 28px;
  height: 20px;
}

.flow-step--last .flow-arrow {
  display: none;
}

.flow-cta-row {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.flow-step.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.flow-step.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.flow-step:nth-child(1) { transition-delay: .05s; }
.flow-step:nth-child(2) { transition-delay: .12s; }
.flow-step:nth-child(3) { transition-delay: .19s; }
.flow-step:nth-child(4) { transition-delay: .26s; }
.flow-step:nth-child(5) { transition-delay: .33s; }
.flow-step:nth-child(6) { transition-delay: .40s; }
.flow-step:nth-child(7) { transition-delay: .47s; }

@media (max-width: 1280px) {
  .flow-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .flow-arrow { display: none; }
  .flow-step { display: block; }
}

@media (max-width: 860px) {
  .flow-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .flow-track {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .flow-step-inner {
    padding: 20px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .flow-step-icon { width: 44px; height: 44px; }
  .flow-step-title { font-size: 14px; }
  .flow-step-num { width: 100%; }
}
