/* =====================================================================
   VISHNU CO., LTD. — Modern Minimal Tech Design System
   Dark, near-black surfaces / single warm-gold accent / clean sans.
   Linear / Vercel / Stripe energy. Mobile-bulletproof (no 12-col grids).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Surface (near-black base, layered panels) */
  --bg:         #0B0C0E;   /* page background */
  --bg-soft:    #101114;   /* alternate section */
  --surface:    #141518;   /* cards / panels */
  --surface-2:  #1A1C20;   /* raised / hover */

  /* Text */
  --fg:         #EDEDED;
  --fg-dim:     #C3C7CC;
  --fg-muted:   #9AA0A6;

  /* Lines & borders */
  --line:       rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);

  /* Accent — warm gold, used sparingly */
  --accent:     #E0BA67;
  --accent-2:   #C99B43;
  --accent-soft:rgba(224,186,103,.12);
  --accent-glow:rgba(224,186,103,.22);

  /* Typography */
  --f-sans:  "Inter","Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --f-jp:    "Noto Sans JP","Inter",-apple-system,BlinkMacSystemFont,sans-serif;
  --f-mono:  ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;

  /* Scale */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-30: 30px;
  --fs-40: 40px;
  --fs-52: 52px;
  --fs-68: 68px;

  /* Spacing (8px base) */
  --space-1:  8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-pill:999px;

  /* Layout */
  --maxw:   1200px;
  --maxw-wide: 1320px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Shadow / glow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --glow:      0 0 0 1px var(--line-strong), 0 10px 40px rgba(0,0,0,.5);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .3s;
}

/* ---------- 2. Reset & base ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  /* hard stop for any horizontal overflow on mobile */
  overflow-x:hidden;
}
body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x:hidden;
  width:100%;
  /* subtle top-of-page glow, very restrained */
  background-image:
    radial-gradient(900px 480px at 80% -8%, rgba(224,186,103,.06), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(255,255,255,.025), transparent 55%);
  background-repeat:no-repeat;
}
img,picture,video,svg{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
button{ background:none; border:0; color:inherit; font:inherit; cursor:pointer; }
ul,ol{ list-style:none; }
table{ border-collapse:collapse; width:100%; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
::selection{ background: var(--accent); color:#0B0C0E; }

/* ---------- 3. Typography scale ---------- */
.h-display{
  font-family: var(--f-jp);
  font-weight: 800;
  font-size: clamp(var(--fs-52), 8vw, var(--fs-68));
  line-height: 1.08;
  letter-spacing: -.02em;
}
.h-1{
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: clamp(var(--fs-30), 4.4vw, var(--fs-52));
  line-height: 1.18;
  letter-spacing: -.015em;
}
.h-2{
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: clamp(var(--fs-24), 3vw, var(--fs-40));
  line-height: 1.25;
  letter-spacing: -.01em;
}
.h-3{
  font-family: var(--f-jp);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.4;
  letter-spacing: -.005em;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: var(--space-1);
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity:.7;
}
.lead{
  font-family: var(--f-jp);
  font-weight: 400;
  font-size: clamp(var(--fs-18), 1.8vw, var(--fs-20));
  line-height: 1.9;
  color: var(--fg-dim);
}
.body{
  font-size: var(--fs-16);
  line-height: 1.9;
  color: var(--fg-dim);
}
.caption{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.muted{ color: var(--fg-muted); }
.dim{ color: var(--fg-dim); }
.center{ text-align:center; }

/* ---------- 4. Layout primitives ---------- */
.container{
  width:100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-wide{
  width:100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section{
  padding-top: clamp(var(--space-6), 11vw, var(--space-8));
  padding-bottom: clamp(var(--space-6), 11vw, var(--space-8));
}
.section-sm{
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.divider,.rule{
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--space-5) 0;
}

/* Auto-fit responsive grid — NEVER 12-col, always collapses cleanly */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr));
  gap: var(--space-4);
}
.grid-2{ grid-template-columns: repeat(auto-fit, minmax(min(360px,100%), 1fr)); }
.grid-3{ grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); }
.grid-4{ grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); }

/* Two-column split for figure + text blocks */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: center;
}
.split-text-wide{ grid-template-columns: 1fr 1.15fr; }

/* ---------- 5. Section heading block ---------- */
.section-head{
  display: grid;
  gap: var(--space-3);
  margin-bottom: clamp(var(--space-5), 6vw, var(--space-6));
  max-width: 760px;
}
.section-head h2{ max-width: 22ch; }
.section-head .body{ max-width: 60ch; }

/* ---------- 6. Header / Nav ---------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: var(--space-2) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-scrolled{
  background: rgba(11,12,14,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand{
  font-family: var(--f-sans);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg);
  line-height: 1.1;
}
.brand small{
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .26em;
  color: var(--fg-muted);
  margin-top: 3px;
}
.nav{ display:flex; align-items:center; }
.nav-list{
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-list a{
  font-family: var(--f-sans);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg-muted);
  transition: color .2s var(--ease);
}
.nav-list a:hover{ color: var(--fg); }

/* Hamburger toggle — hidden on desktop, centered bars on mobile */
.nav-toggle{
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  z-index: 110;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.site-header.menu-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .nav{ position: static; }
  .nav-list{
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: center;     /* centered menu items */
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    min-height: 100svh;
    padding: 96px var(--gutter) var(--space-6);
    background: rgba(11,12,14,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s var(--ease);
  }
  .site-header.menu-open .nav-list{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list a{
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--fg);
  }
}

/* ---------- 7. Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 13px 24px;
  font-family: var(--f-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: var(--surface);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0C0E;
  box-shadow: 0 6px 24px rgba(224,186,103,.18);
}
.btn-primary:hover{
  background: #EEC97E;
  border-color: #EEC97E;
  color: #0B0C0E;
  box-shadow: 0 10px 32px rgba(224,186,103,.28);
}
.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.04);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg{ padding: 16px 30px; font-size: var(--fs-15); }
.cta-row,.cta-band-actions{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- 8. Cards ---------- */
.card{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover{
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
/* subtle gold top edge only on accented cards */
.card-accent::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity:0;
  transition: opacity var(--dur) var(--ease);
}
.card-accent:hover::before{ opacity:.9; }

/* Framed image card (photos kept small & tasteful) */
.media-card{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.media-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 9. Hero ---------- */
.hero{
  position: relative;
  width: 100%;
  min-height: 92vh;
  min-height: 92svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding-top: 88px;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.42) contrast(1.05) saturate(.95);
}
.hero-media::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.35) 40%, rgba(11,12,14,.92) 100%),
    radial-gradient(700px 500px at 78% 12%, rgba(224,186,103,.10), transparent 60%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-meta span{ position:relative; }
.hero-meta span + span::before{
  content:"";
  position:absolute;
  left: calc(var(--space-2) * -1);
  top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity:.6;
}
.hero-lede{
  font-family: var(--f-sans);
  font-size: clamp(var(--fs-14), 1.6vw, var(--fs-18));
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.hero-title{
  font-family: var(--f-jp);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--fg);
  max-width: 18ch;
}
.hero-sub{
  margin-top: var(--space-3);
  font-family: var(--f-jp);
  font-size: clamp(var(--fs-15), 1.5vw, var(--fs-18));
  line-height: 1.85;
  color: var(--fg-dim);
  max-width: 52ch;
}
.hero-cta{
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero-foot{
  margin-top: var(--space-6);
}
.scroll-cue{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color .2s var(--ease);
}
.scroll-cue::after{
  content:"";
  width: 40px; height: 1px;
  background: currentColor;
}
.scroll-cue:hover{ color: var(--accent); }

/* ---------- 10. Philosophy ---------- */
.philosophy{ background: var(--bg); }
.philosophy-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: center;
}
.philosophy-figure{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.philosophy-figure img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9) contrast(1.02);
}
.philosophy-body h2{ margin-bottom: var(--space-3); }
.value-list{
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.value-list li{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.value-list .label{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.value-list .text{
  font-family: var(--f-jp);
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--fg-dim);
}

/* ---------- 11. Field (banner with framed image + text) ---------- */
.field{
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(var(--space-6), 9vw, var(--space-8)) 0;
}
.field-media{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.field-media > img{
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  filter: brightness(.5) contrast(1.04);
}
.field-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(var(--space-3), 5vw, var(--space-6));
  background: linear-gradient(0deg, rgba(11,12,14,.9) 0%, rgba(11,12,14,.5) 45%, rgba(11,12,14,.05) 100%);
}
.field-card{ max-width: 620px; }
.field-card .eyebrow{ margin-bottom: var(--space-2); }
.field-card h2{ margin-bottom: var(--space-3); }
.field-card .body{ color: var(--fg-dim); }
.field-tags{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-4);
}
.field-tags span{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
}

/* ---------- 12. Services ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr));
  gap: var(--space-4);
}
.service-card{
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.service-card:hover{
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.service-media{
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.82) saturate(.95);
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.service-card:hover .service-media img{
  transform: scale(1.05);
  filter: brightness(.95);
}
.service-body{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
}
.service-tier{
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.service-title{
  font-family: var(--f-jp);
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.service-price{
  font-family: var(--f-mono);
  font-size: var(--fs-13);
  letter-spacing: .04em;
  color: var(--fg-muted);
}
.service-for{
  font-family: var(--f-jp);
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--fg-dim);
  padding: var(--space-2);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.service-desc{
  font-size: var(--fs-14);
  line-height: 1.85;
  color: var(--fg-dim);
}
.service-list{
  margin-top: var(--space-1);
  border-top: 1px solid var(--line);
}
.service-list li{
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-14);
  color: var(--fg-dim);
}
.service-list li::before{
  content:"";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 13. Process ---------- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr));
  gap: var(--space-4);
}
.process-item{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.process-item:hover{ transform: translateY(-4px); border-color: var(--line-strong); }
.process-item figure{
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.process-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.85) saturate(.95);
  transition: transform .8s var(--ease);
}
.process-item:hover img{ transform: scale(1.05); }
.process-meta{
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) 0;
}
.process-num{
  font-family: var(--f-mono);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
}
.process-title{
  font-family: var(--f-jp);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -.01em;
}
.process-text{
  padding: var(--space-2) var(--space-3) var(--space-4);
  font-size: var(--fs-14);
  line-height: 1.85;
  color: var(--fg-dim);
}

/* ---------- 14. Works preview ---------- */
.works-preview{
  display: block;
  position: relative;
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease);
}
.works-preview:hover{ border-color: var(--line-strong); }
.works-preview img{
  width: 100%;
  display: block;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.works-preview:hover img{ transform: scale(1.015); opacity: .95; }
.works-preview-cue{
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 18px;
  font-family: var(--f-sans);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
  background: rgba(11,12,14,.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.works-preview:hover .works-preview-cue{
  background: var(--accent);
  color: #0B0C0E;
  border-color: var(--accent);
}

/* ---------- 15. Company ---------- */
.company{
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.company-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.company-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.22) contrast(1.05);
}
.company-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,12,14,.6), rgba(11,12,14,.9));
}
.company-inner{
  position: relative;
  z-index: 2;
  padding-top: clamp(var(--space-6), 9vw, var(--space-8));
  padding-bottom: clamp(var(--space-6), 9vw, var(--space-8));
}
.company-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: start;
}
.company-table{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  font-size: var(--fs-14);
}
.company-table th,
.company-table td{
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.company-table tr:last-child th,
.company-table tr:last-child td{ border-bottom: 0; }
.company-table th{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: 180px;
  white-space: nowrap;
  background: rgba(255,255,255,.02);
}
.company-table td{ color: var(--fg-dim); }
.company-table a:hover{ color: var(--accent); }

/* ---------- 16. FAQ ---------- */
.faq-list{
  max-width: 800px;
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 0; }
.faq-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--f-jp);
  font-size: clamp(var(--fs-15), 1.5vw, var(--fs-16));
  font-weight: 600;
  color: var(--fg);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.faq-item summary:hover{ background: rgba(255,255,255,.02); }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content:"+";
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--fs-20);
  font-weight: 400;
  color: var(--fg-muted);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.faq-item[open] summary{ color: var(--accent); }
.faq-item[open] summary::after{ transform: rotate(45deg); color: var(--accent); }
.faq-item p{
  padding: 0 var(--space-4) var(--space-4);
  max-width: 66ch;
  font-size: var(--fs-14);
  line-height: 1.9;
  color: var(--fg-dim);
}

/* ---------- 17. CTA band ---------- */
.cta-band{
  position: relative;
  padding: clamp(var(--space-7), 12vw, var(--space-8)) 0;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 320px at 50% 0%, rgba(224,186,103,.10), transparent 70%);
  pointer-events:none;
}
.cta-band .container{ position: relative; z-index: 1; }
.cta-band h2{ margin-bottom: var(--space-2); }
.cta-band .body{
  max-width: 52ch;
  margin: 0 auto var(--space-4);
  color: var(--fg-dim);
}
.cta-band .btn{ margin-top: var(--space-1); }

/* ---------- 18. Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: stretch;
}
.contact-figure{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.contact-figure img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9);
}
.contact-body h2{ margin-bottom: var(--space-3); }
.contact-list{
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.contact-list li{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child{ border-bottom: 0; }
.contact-list .label{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact-list .val{ font-size: var(--fs-15); color: var(--fg-dim); }
.contact-list .val a:hover{ color: var(--accent); }

/* ---------- 19. Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0 var(--space-5);
  background: var(--bg);
}
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-row .brand{ font-size: var(--fs-18); }
.footer-row p{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .08em;
  color: var(--fg-muted);
}

/* ---------- 20. Works page helpers ---------- */
.page-hero{
  padding-top: calc(var(--space-7) + 56px);
  padding-bottom: var(--space-6);
}
.page-hero .eyebrow{ margin-bottom: var(--space-3); }
.page-hero h1{ max-width: 20ch; }
.page-hero .lead{ max-width: 58ch; margin-top: var(--space-3); }

/* Video / work card grid (auto-fit) */
.vgrid,
.works-gallery,
.caps,
.gw{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr));
  gap: var(--space-3);
}
.vcard{
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--fg);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.vcard:hover{ transform: translateY(-4px); border-color: var(--line-strong); }
.vcard-thumb{
  position: relative;
  aspect-ratio: 16/9;
  background:#000 center/cover no-repeat;
  filter: brightness(.82) contrast(1.04);
  transition: filter .4s var(--ease);
}
.vcard:hover .vcard-thumb{ filter: brightness(1); }
.vcard-9x16 .vcard-thumb{ aspect-ratio: 9/16; }
.vcard-thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55) 100%);
}
.vcard-play{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(11,12,14,.4);
  color:#fff;
  z-index:1;
  padding-left: 3px;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.vcard:hover .vcard-play{ background: var(--accent); border-color: var(--accent); color:#0B0C0E; }
.vcard-meta{ display:flex; flex-direction:column; gap:6px; padding: var(--space-3); }
.vcard-cat,.cap-num,.cap-cat,.mentions-cat{
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.vcard-title,.cap-title{
  font-family: var(--f-jp);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.vcard-sub{ font-family: var(--f-mono); font-size: var(--fs-12); letter-spacing: .06em; color: var(--fg-muted); }

.cap-card{
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cap-card:hover{ transform: translateY(-4px); border-color: var(--line-strong); }
.cap-text{ font-size: var(--fs-14); line-height: 1.85; color: var(--fg-dim); }

.gw-cell{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  aspect-ratio: 4/3;
}
.gw-cell img{ width:100%; height:100%; object-fit:cover; filter:brightness(.88); transition: transform .8s var(--ease), filter .4s var(--ease); }
.gw-cell:hover img{ transform: scale(1.05); filter: brightness(1); }
.gw-cell figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: var(--space-3);
  background: linear-gradient(180deg, transparent, rgba(11,12,14,.85));
  display:flex; flex-direction:column; gap:4px;
  pointer-events:none;
}
.cap-name{ font-family: var(--f-jp); font-size: var(--fs-14); color: var(--fg); }

.mentions-list{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: var(--space-3);
  background: var(--surface);
}
.mentions-list li{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.mentions-list li:last-child{ border-bottom: 0; }
.mentions-name{ font-family: var(--f-jp); font-size: var(--fs-16); color: var(--fg-dim); line-height: 1.6; }

/* ---------- 21. Reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in{ opacity: 1; transform: translateY(0); }

/* ---------- 22. Responsive collapse — every multi-col grid → 1 column ---------- */
@media (max-width: 900px){
  .split,
  .split-text-wide,
  .philosophy-grid,
  .company-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .value-list li,
  .contact-list li,
  .mentions-list li{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .company-table th{ width: 130px; }
}

@media (max-width: 600px){
  :root{ --gutter: 20px; }
  .hero{ min-height: 88svh; }
  .hero-title{ font-size: clamp(36px, 11vw, 52px); }
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td{ display: block; width: 100%; }
  .company-table th{ border-bottom: 0; padding-bottom: 0; white-space: normal; }
  .company-table td{ padding-top: 6px; }
  .btn{ width: 100%; }
  .hero-cta .btn,
  .cta-row .btn,
  .cta-band-actions .btn{ width: auto; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal{ opacity: 1; transform: none; }
  html{ scroll-behavior: auto; }
}

/* ---- section-specific ---- */
/* ====== HEADER / NAV — Vishnu modern-minimal tech (gold accent) ====== */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled{
  background: rgba(11, 12, 14, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line, rgba(255,255,255,.08));
}

/* Brand */
.brand{
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--fg, #EDEDED);
  text-decoration: none;
}
.brand small{
  display: block;
  margin-top: 4px;
  font-family: "Inter", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--fg-muted, #9AA0A6);
}

/* Nav */
.nav-list{
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a{
  position: relative;
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fg-dim, #C3C7CC);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-list a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent, #E0BA67);
  transition: width .25s ease;
}
.nav-list a:hover{ color: var(--fg, #EDEDED); }
.nav-list a:hover::after{ width: 100%; }

/* お問い合わせ = gold pill CTA */
.nav-list a.nav-cta{
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent, #E0BA67);
  color: #0B0C0E;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(224,186,103,.0);
  transition: background .2s ease, box-shadow .25s ease, transform .15s ease;
}
.nav-list a.nav-cta::after{ display: none; }
.nav-list a.nav-cta:hover{
  background: var(--accent-soft, #EAC987);
  box-shadow: 0 6px 22px -8px var(--accent-glow, rgba(224,186,103,.55));
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span{
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg, #EDEDED);
  transition: transform .32s ease, opacity .2s ease, background .2s ease;
}
.site-header.menu-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); background: var(--accent, #E0BA67); }
.site-header.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); background: var(--accent, #E0BA67); }

/* ---------- Mobile: full-screen menu, centered, drops from top ---------- */
@media (max-width: 860px){
  .nav-toggle{ display: flex; }

  .site-header.menu-open{
    background: rgba(11, 12, 14, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line, rgba(255,255,255,.08));
  }

  .nav{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 12, 14, .98);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
  }
  .site-header.menu-open .nav{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list{
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
    padding: 0 24px;
    text-align: center;
  }
  .nav-list a{
    font-size: 19px;
    letter-spacing: .06em;
  }
  .nav-list a::after{
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-list a.nav-cta{
    padding: 13px 32px;
    font-size: 16px;
    margin-top: 6px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-header, .nav, .nav-list a, .nav-list a::after, .nav-toggle span{
    transition: none !important;
  }
}
/* ============ HERO (modern minimal tech) ============ */
/* トークン未定義環境でも崩れないようフォールバックを併記 */
.hero{
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg, #0B0C0E);
  padding-block: clamp(112px, 16vh, 200px);
}

/* --- 背景写真 --- */
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.34) saturate(.85) contrast(1.05);
}
.hero-media::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 30%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,.92) 100%),
    linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.30) 40%, rgba(11,12,14,.95) 100%);
}

/* --- テック風 装飾レイヤー --- */
.hero-fx{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-grid-lines{
  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: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(80% 75% at 22% 42%, #000 0%, transparent 78%);
          mask-image: radial-gradient(80% 75% at 22% 42%, #000 0%, transparent 78%);
  opacity: .7;
}
.hero-glow{
  position: absolute;
  left: -8%;
  top: 18%;
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow, rgba(224,186,103,.18)) 0%, transparent 68%);
  filter: blur(14px);
}

/* --- コンテンツ --- */
.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-body{
  max-width: 760px;
}
.hero-eyebrow{
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero-title{
  font-family: var(--f-sans, "Noto Sans JP","Inter",sans-serif);
  font-weight: 800;
  font-size: clamp(46px, 8.4vw, 104px);
  line-height: 1.04;
  letter-spacing: .005em;
  color: var(--fg, #EDEDED);
  margin: 0;
}
.hero-lede{
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 40ch;
  color: var(--fg, #EDEDED);
  font-weight: 500;
}
.hero-sub{
  margin-top: 14px;
  max-width: 56ch;
  color: var(--fg-dim, #C3C7CC);
}

/* --- CTA --- */
.hero-cta{
  margin-top: clamp(34px, 5vh, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- 事業領域メタ（小さなチップ列） --- */
.hero-meta{
  list-style: none;
  margin: clamp(40px, 6vh, 56px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.hero-meta li{ display: inline-flex; }
.hero-meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.14));
  border-radius: var(--r-pill, 999px);
  background: rgba(255,255,255,.03);
  color: var(--fg-dim, #C3C7CC);
  font-family: var(--f-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-meta span::before{
  content:"";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent, #E0BA67);
  flex: none;
}

/* --- フッターのスクロール表示 --- */
.hero-foot{
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vh, 36px);
  z-index: 2;
}
.scroll-cue{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-muted, #9AA0A6);
  transition: color .25s ease;
}
.scroll-cue::after{
  content:"";
  width: 44px; height: 1px;
  background: linear-gradient(to right, var(--accent, #E0BA67), transparent);
}
.scroll-cue:hover{ color: var(--accent, #E0BA67); }

/* --- レスポンシブ --- */
@media (max-width: 600px){
  .hero{ padding-block: clamp(104px, 14vh, 140px) 96px; }
  .hero-br{ display: none; }
  /* hero-cta 内は全幅化しない（DSルール）が、横並びはみ出し防止のため伸ばす */
  .hero-cta{ gap: 12px; }
  .hero-cta .btn{ flex: 1 1 auto; justify-content: center; }
  .hero-title{ letter-spacing: 0; }
}

/* --- モーション配慮 --- */
@media (prefers-reduced-motion: reduce){
  .hero-glow{ filter: none; }
}
/* ===== About / Philosophy (modern-minimal tech rebuild) =====
   Overrides the legacy 12-column grid: collapses to 1 column on its own. */
.philosophy{
  background: var(--bg, #0B0C0E);
}
.philosophy .section-head{ margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.philosophy .section-head .body{
  max-width: 56ch;
  color: var(--fg-dim, #C3C7CC);
  line-height: 1.95;
  margin-top: 1.1rem;
}

/* split-text-wide = 1 : 1.15, auto-collapse — no 12-col grid */
.philosophy-grid{
  display: grid;
  grid-template-columns: minmax(min(420px, 100%), 1fr) minmax(min(440px, 100%), 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  grid-column: auto;           /* neutralize legacy span rules */
}
@media (max-width: 900px){
  .philosophy-grid{
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 8vw, 3rem);
  }
}

/* Photo — upscale media-card, subtle gold frame & glow */
.philosophy-figure{
  grid-column: auto;
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg, 18px);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(0,0,0,.5));
}
.philosophy-figure::after{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(224,186,103,.12);
  pointer-events: none;
}
.philosophy-figure img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.92) contrast(1.03) saturate(1.02);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.philosophy-figure:hover img{ transform: scale(1.035); }
@media (max-width: 900px){
  .philosophy-figure{ aspect-ratio: 3 / 2; }
}

/* Value list — generous airy rows */
.philosophy-body{ grid-column: auto; }
.value-list{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong, rgba(255,255,255,.14));
}
.value-list li{
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.75rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
}
@media (max-width: 540px){
  .value-list li{
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
    padding: 1.5rem 0;
  }
}
.value-list .label{
  font-family: var(--f-mono, "Inter", monospace);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--accent, #E0BA67);
  text-transform: uppercase;
  padding-top: .45rem;
  white-space: nowrap;
}
.value-list .text{
  font-family: var(--f-jp, "Noto Sans JP", sans-serif);
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.95;
  color: var(--fg-dim, #C3C7CC);
}
.value-list .value-head{
  display: block;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--fg, #EDEDED);
  letter-spacing: .01em;
  margin-bottom: .4rem;
}

.philosophy-cta{ margin-top: clamp(2rem, 5vw, 2.75rem); }

/* keep buttons auto-width inside cta-row even on small screens */
@media (max-width: 600px){
  .philosophy-cta.cta-row .btn{ width: auto; }
}
/* ===== Services (pricing-style, tech minimal) ===== */
#services .services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(min(300px,100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  margin-top: var(--space-5, 48px);
}

/* card: text-only pricing panel (no media), surface + thin line */
#services .service-card{
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 16px);
  background: var(--surface, #141518);
  overflow: hidden;
  transition: transform .35s var(--ease, cubic-bezier(.2,.6,.2,1)),
              border-color .35s var(--ease, ease),
              box-shadow .35s var(--ease, ease);
}
/* top gold line on hover (card-accent behaviour, made explicit) */
#services .service-card::before{
  content:"";
  position:absolute; inset:0 0 auto 0;
  height:2px;
  z-index: 2; /* keep the gold line above .service-media */
  background: var(--accent, #E0BA67);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease, ease);
}
#services .service-card:hover{
  transform: translateY(-6px);
  border-color: var(--line-strong, rgba(255,255,255,.14));
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(0,0,0,.45));
}
#services .service-card:hover::before{ transform: scaleX(1); }

/* featured (Standard) — gold framed, always-on top line */
#services .service-card.is-featured{
  border-color: var(--accent, #E0BA67);
  box-shadow: var(--glow, 0 0 0 1px rgba(224,186,103,.18), 0 24px 70px rgba(224,186,103,.10));
}
#services .service-card.is-featured::before{ transform: scaleX(1); }

/* "人気" flag */
#services .service-flag{
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  font-family: var(--f-mono, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 5px 12px;
  border-radius: var(--r-pill, 999px);
  color: #0B0C0E;
  background: var(--accent, #E0BA67);
}

#services .service-body{
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

/* tier as pill badge */
#services .service-tier{
  align-self: flex-start;
  font-family: var(--f-mono, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent, #E0BA67);
  padding: 6px 14px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.14));
  border-radius: var(--r-pill, 999px);
  background: rgba(224,186,103,.06);
}

/* title — sans, no serif */
#services .service-title{
  font-family: "Noto Sans JP","Inter",sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--fg, #EDEDED);
  margin-top: 4px;
}

#services .service-price{
  font-family: var(--f-mono, "Inter", sans-serif);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--fg-muted, #9AA0A6);
}

/* "こんな方へ" — gold left band */
#services .service-for{
  border-left: 2px solid var(--accent, #E0BA67);
  padding: 4px 0 4px 14px;
  margin: 6px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-dim, #C3C7CC);
}

#services .service-desc{
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-dim, #C3C7CC);
}

/* feature list — gold round bullets */
#services .service-list{
  list-style: none;
  margin: 14px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#services .service-list li{
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim, #C3C7CC);
}
#services .service-list li::before{
  content:"";
  position: absolute;
  left: 4px; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, #E0BA67);
  box-shadow: 0 0 0 4px rgba(224,186,103,.12);
}

/* footer CTA pinned to bottom */
#services .service-foot{
  margin-top: auto;
  padding-top: 22px;
}
#services .service-foot .btn{ width: 100%; text-align: center; }

/* collapse to 1 column — no horizontal overflow */
@media (max-width: 960px){
  #services .services-grid{ grid-template-columns: 1fr; }
  #services .service-card.is-featured{ order: -1; }
}
/* ---------- Process (制作の流れ) — モダンミニマル・テック ---------- */
/* auto-fitで必ず1列に畳む。横スクロール厳禁 */
.process-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(36px, 5vw, 56px);
}

.process-item{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  transition: border-color .4s var(--ease, ease), transform .4s var(--ease, ease);
}
.process-item:hover{
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
/* ホバーでゴールド上端ライン */
.process-item::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease, ease);
}
.process-item:hover::before{ transform: scaleX(1); }

.process-item figure{
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--r-lg, 18px) - 8px);
  border: 1px solid var(--line);
}
.process-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.08) brightness(.9);
  transition: transform .8s var(--ease, ease), filter .8s var(--ease, ease);
}
.process-item:hover img{
  transform: scale(1.04);
  filter: grayscale(0) brightness(.96);
}

.process-meta{
  margin-top: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.process-num{
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--f-mono, "Inter", monospace);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.process-title{
  /* 見出しはサンス（明朝廃止） */
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  margin: 0;
  color: var(--fg);
}
.process-text{
  margin-top: 16px;
  padding: 16px 6px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.85;
}

@media (max-width: 600px){
  .process-item{ padding: 12px 12px 20px; }
  .process-num{ width: 40px; height: 40px; font-size: 13px; }
}
/* ===== Works / 実績への導線 ===== */
.works-lead{
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* テキスト側 */
.works-copy .eyebrow{ margin-bottom: var(--space-3, 24px); }
.works-title{ margin: 0 0 var(--space-4, 32px); }
.works-copy .lead{ max-width: 36ch; }
.works-roster{
  margin-top: var(--space-3, 24px);
  font-family: var(--f-mono);
  font-size: var(--fs-12, 12px);
  letter-spacing: .14em;
  color: var(--fg-muted);
}
.works-cta{ margin-top: var(--space-5, 48px); }

/* 写真側：上品な細枠フレーム */
.works-lead .works-preview{
  margin-top: 0;
  aspect-ratio: 4 / 3;
}
.works-lead .works-preview img{
  height: 100%;
  object-fit: cover;
}

/* 1列化（split は 900px 以下で1列だが、念のため余白を整える） */
@media (max-width: 900px){
  .works-lead{ gap: clamp(28px, 8vw, 48px); }
  .works-copy .lead,
  .works-title{ max-width: none; }
  .works-lead .works-preview{ aspect-ratio: 16 / 10; }
}

/* モバイル横はみ出し防止 */
@media (max-width: 600px){
  .works-roster{ word-break: break-word; }
}
/* ===== 会社概要（定義リスト版・モバイル安全） ===== */
.company-lede{
  max-width: 46ch;
}

/* 定義リスト本体：テーブルではなくdl/dt/ddで横はみ出しを防ぐ */
.company-profile{
  margin: 0;
  border-top: 1px solid var(--line);
}
.company-profile-row{
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: var(--space-3, 24px);
  align-items: start;
  padding: var(--space-3, 20px) 0;
  border-bottom: 1px solid var(--line);
}
.company-profile dt{
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  line-height: 1.5;
}
.company-profile dd{
  margin: 0;
  color: var(--fg);
  font-size: var(--fs-14, .95rem);
  line-height: 1.7;
  min-width: 0; /* グリッド内での折り返しを許可し横はみ出しを防止 */
  word-break: break-word;
  overflow-wrap: anywhere;
}
.company-profile dd a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .2s ease, color .2s ease;
}
.company-profile dd a:hover{
  border-bottom-color: var(--accent);
}

/* 事業内容タグ：ピル型・必ず折り返す */
.company-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.company-tag{
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill, 999px);
  background: var(--surface-2, #1A1C20);
  color: var(--fg-dim);
  font-size: var(--fs-12, .8rem);
  line-height: 1.4;
  white-space: nowrap;
}

/* モバイル：定義リストを縦積みにして崩れ防止 */
@media (max-width: 600px){
  .company-profile-row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: var(--space-3, 18px) 0;
  }
  .company-profile dt{
    color: var(--accent);
  }
  .company-tag{
    white-space: normal;
  }
}
/* ============ CONTACT ============ */
#contact .section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.contact-body,
.contact-info { min-width: 0; }

.contact-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 20px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}

.contact-card-eyebrow {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-mail {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  line-height: 1.2;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-word;
  transition: color .25s ease;
}
.contact-mail:hover { color: var(--accent); }

.contact-card .cta-row { margin-top: auto; padding-top: .75rem; }

.contact-info {
  display: flex;
  align-items: center;
}

.contact-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 20px);
  display: flex;
  flex-direction: column;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { padding-bottom: 0; border-bottom: 0; }

.contact-list .label {
  flex: 0 0 5.5rem;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--fg-muted);
}
.contact-list .val {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--fg-dim);
  font-size: .95rem;
  line-height: 1.6;
  word-break: break-word;
}
.contact-list .val a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .25s ease, border-color .25s ease;
}
.contact-list .val a:hover { color: var(--accent); border-color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-row .brand {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.footer-row .brand small {
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.footer-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: .9rem;
  transition: color .25s ease;
}
.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  margin: 0;
  font-size: .82rem;
  color: var(--fg-muted);
  letter-spacing: .02em;
}

@media (max-width: 640px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-nav { gap: 1rem 1.5rem; }
}