/* =========================================================================
   株式会社まえびー — Corporate site theme
   "Bright Japanese / Warm Wabi / Modern Tech"
   Light washi grounds dominate; sumi (ink) used as accent only.
   Orange brand color, vermilion & gold accents. Mincho × Gothic.
   Plain CSS, fully responsive.
   ========================================================================= */

:root {
  /* Sumi / ink grounds (ACCENT use only — footer, occasional band) */
  --ink:        #17110c;
  --ink-2:      #241812;
  --ink-3:      #2d2017;
  --ink-soft:   #38291d;

  /* Washi / paper grounds (PRIMARY) */
  --cream-bg:   #fff7ed;   /* body base, warm */
  --paper:      #faf1e3;   /* primary section */
  --paper-2:    #f6e7d2;   /* deeper washi */
  --paper-3:    #fffdf8;   /* near-white */
  --paper-line: rgba(45, 28, 18, 0.13);
  --paper-ink:  #1e1712;   /* main text on light */
  --paper-ink-2:#6a5848;   /* secondary text on light (warm) */

  /* Foreground on sumi */
  --cream:      #fbf3e7;
  --cream-dim:  rgba(251, 243, 231, 0.80);
  --cream-faint:rgba(251, 243, 231, 0.52);
  --line-dark:  rgba(251, 243, 231, 0.16);

  /* Brand accents */
  --orange:      #e8732b;
  --orange-br:   #f28a2e;
  --orange-deep: #cf5a1c;
  --orange-pale: #fbe1c7;
  --orange-pale2:#f7c999;
  --vermillion:  #d95a2b;   /* 朱 */
  --gold:        #c9a24b;   /* 金 */

  /* Type */
  --mincho: "Shippori Mincho", "Noto Serif JP", serif;
  --gothic: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 8.5vw, 124px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream-bg);
  color: var(--paper-ink);
  font-family: var(--gothic);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.3; word-break: auto-phrase; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* light grounds (primary) */
.section--paper  { background: var(--paper);    color: var(--paper-ink); }
.section--cream  { background: var(--cream-bg);  color: var(--paper-ink); }
.section--washi  { background: var(--paper-2);   color: var(--paper-ink); }
.section--white  { background: var(--paper-3);   color: var(--paper-ink); }
/* sumi grounds (accent) */
.section--dark   { background: var(--ink);   color: var(--cream); }
.section--ink2   { background: var(--ink-2);  color: var(--cream); }

/* subtle washi paper texture on light sections */
.section--paper::before, .section--washi::before, .section--cream::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(45,28,18,0.025) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.6;
}
.section > .container { position: relative; z-index: 1; }

/* Eyebrow / section kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange-deep);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--orange-deep); display: inline-block; }
.section--dark .kicker, .section--ink2 .kicker { color: var(--orange-br); }
.section--dark .kicker::before, .section--ink2 .kicker::before { background: var(--orange-br); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-top: 18px; }

.h2 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.32; letter-spacing: 0.01em;
  color: var(--paper-ink);
}
.section--dark .h2, .section--ink2 .h2 { color: var(--cream); }
.h2 .accent { color: var(--orange-deep); font-style: normal; }
.section--dark .h2 .accent, .section--ink2 .h2 .accent { color: var(--orange-br); }

.lead {
  font-family: var(--gothic); font-size: clamp(15px, 1.3vw, 17px); line-height: 2;
  color: var(--paper-ink-2); margin-top: 22px; max-width: 62ch;
}
.section--dark .lead, .section--ink2 .lead { color: var(--cream-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; font-family: var(--gothic); font-size: 15px; font-weight: 700;
  letter-spacing: 0.03em; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--orange); color: #fff;
  transition: transform .25s cubic-bezier(.3,.7,.3,1), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s cubic-bezier(.3,.7,.3,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(232,115,43,.55); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-br); }

.btn--ghost { background: transparent; color: var(--paper-ink); border-color: var(--paper-line); }
.btn--ghost:hover { border-color: var(--orange-deep); color: var(--orange-deep); box-shadow: none; }
.section--dark .btn--ghost, .section--ink2 .btn--ghost { color: var(--cream); border-color: var(--line-dark); }
.section--dark .btn--ghost:hover, .section--ink2 .btn--ghost:hover { border-color: var(--orange-br); color: var(--orange-br); }

.btn--text { background: transparent; color: var(--orange-deep); padding: 15px 6px; }
.btn--text:hover { color: var(--orange); box-shadow: none; transform: none; }
.btn--text:hover .arr { transform: translateX(4px); }
.section--dark .btn--text { color: var(--orange-br); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================================================================
   HEADER (light)
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--paper-line);
  box-shadow: 0 8px 30px -22px rgba(45,28,18,0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand .jp { font-family: var(--mincho); font-weight: 600; font-size: 17px; color: var(--paper-ink); letter-spacing: 0.04em; white-space: nowrap; }
.brand .en { font-family: var(--mono); font-size: 9px; letter-spacing: 0.28em; color: var(--orange-deep); text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--gothic); font-size: 14px; font-weight: 500;
  color: var(--paper-ink-2); letter-spacing: 0.03em; position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--orange); transition: width .28s cubic-bezier(.3,.7,.3,1); }
.nav a:hover, .nav a[aria-current] { color: var(--paper-ink); }
.nav a:hover::after, .nav a[aria-current]::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 11px 20px; font-size: 13.5px; }

/* Language switcher (ja / en / zh / vi) */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--paper-line); border-radius: 999px; overflow: hidden; background: var(--paper-3); }
.lang-switch a, .lang-switch button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1;
  color: var(--paper-ink-2); background: transparent; border: 0; cursor: pointer;
  padding: 8px 11px; transition: background .2s, color .2s; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
}
.lang-switch a + a, .lang-switch button + button { border-left: 1px solid var(--paper-line); }
.lang-switch a:hover, .lang-switch button:hover { color: var(--orange-deep); }
.lang-switch a[aria-current="true"], .lang-switch button[aria-current="true"] { background: var(--orange); color: #fff; }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.8px; background: var(--paper-ink); transition: transform .3s, opacity .3s, background .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span { background: var(--paper-ink); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   HERO (bright washi + Fuji)
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 76px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 18%, var(--orange-pale), transparent 55%),
    linear-gradient(180deg, var(--cream-bg), var(--paper));
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 64%; height: 100%; object-fit: cover; object-position: 60% center;
  opacity: 0.96; filter: saturate(1.04) contrast(1.01) brightness(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}
.hero__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--cream-bg) 26%, rgba(255,247,237,0.55) 48%, transparent 72%),
    linear-gradient(0deg, var(--paper) 2%, transparent 32%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,28,18,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,28,18,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 82% 28%, black, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 80% at 82% 28%, black, transparent 68%);
  opacity: 0.7;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 720px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--orange-deep);
  text-transform: uppercase; padding: 8px 14px; border: 1px solid rgba(207,90,28,0.3);
  border-radius: 999px; background: rgba(255,255,255,0.55);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero h1 {
  font-family: var(--mincho); font-weight: 600;
  font-size: clamp(30px, 5.2vw, 62px); line-height: 1.32; letter-spacing: 0.005em;
  margin-top: 26px; text-wrap: balance; color: var(--paper-ink);
}
.hero h1 .accent { color: var(--orange-deep); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.05em; height: 0.18em;
  background: linear-gradient(90deg, var(--orange), var(--orange-pale2)); opacity: 0.9; z-index: -1; border-radius: 2px;
}
.hero__sub { font-size: clamp(14.5px, 1.4vw, 17px); line-height: 2.05; color: var(--paper-ink-2); margin-top: 28px; max-width: 54ch; }
.hero .btn-row { margin-top: 38px; }

.hero__keywords { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 26px; border-top: 1px solid var(--paper-line); }
.hero__keywords .kw { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--paper-ink-2); display: inline-flex; align-items: center; gap: 10px; }
.hero__keywords .kw .mk { color: var(--orange); }
.hero__keywords .sep { color: var(--paper-line); }

.hero__founded { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; text-align: right; display: none; }
.hero__founded .lab { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--orange-deep); }
.hero__founded .yr { font-family: var(--mincho); font-size: 22px; color: var(--paper-ink); margin-top: 4px; }
@media (min-width: 1100px) { .hero__founded { display: block; } }

/* =========================================================================
   PHILOSOPHY (showpiece, light washi)
   ========================================================================= */
.philosophy {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 110% at 85% 50%, var(--orange-pale), transparent 60%),
    linear-gradient(180deg, var(--paper-3), var(--paper));
}
.philosophy__inner { position: relative; z-index: 1; max-width: 920px; }
.philosophy .seal {
  display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--mincho); font-size: 26px; font-weight: 600;
  box-shadow: 0 12px 28px -14px rgba(232,115,43,0.7); margin-bottom: 26px;
}
.philosophy h2 {
  font-family: var(--mincho); font-weight: 600; font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.42; letter-spacing: 0.02em; color: var(--paper-ink); text-wrap: balance;
}
.philosophy h2 .accent { color: var(--orange-deep); }
.philosophy__body { margin-top: 30px; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 2.15; color: var(--paper-ink-2); max-width: 66ch; }
.philosophy__rule { width: 64px; height: 3px; background: linear-gradient(90deg, var(--orange), var(--gold)); margin-bottom: 30px; border-radius: 2px; }

/* =========================================================================
   PROBLEMS (light)
   ========================================================================= */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-card {
  background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(45,28,18,0.4); border-color: rgba(207,90,28,0.4); }
.problem-card .pc-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--orange-deep); }
.problem-card .pc-text { font-family: var(--mincho); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.7; color: var(--paper-ink); }
.problem-card .pc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--orange-deep); margin-top: auto; }
.problem-card .pc-check::before {
  content: ""; width: 16px; height: 16px; border-radius: 3px; background: var(--orange);
  -webkit-mask: no-repeat center / 11px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  mask: no-repeat center / 11px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
}

/* =========================================================================
   SERVICES (light cards)
   ========================================================================= */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card {
  position: relative; background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px); overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--orange), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.3,.7,.3,1); }
.service-card:hover { border-color: rgba(207,90,28,0.4); transform: translateY(-3px); box-shadow: 0 22px 50px -30px rgba(45,28,18,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.service-card .sc-no { font-family: var(--mincho); font-size: 52px; font-weight: 500; color: var(--orange); line-height: 0.9; opacity: 0.95; }
.service-card .sc-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--paper-ink-2); text-transform: uppercase; }
.service-card h3 { font-family: var(--mincho); font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--paper-ink); letter-spacing: 0.02em; }
.service-card .sc-desc { font-size: 14.5px; line-height: 1.95; color: var(--paper-ink-2); margin-top: 16px; }
.service-card .sc-tech { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .sc-tech li { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--paper-ink-2); padding: 5px 11px; border: 1px solid var(--paper-line); border-radius: 999px; }

/* =========================================================================
   WORK / CASES (light)
   ========================================================================= */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
a.case-card { text-decoration: none; color: inherit; }
.case-body .more { margin-top: auto; padding-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--orange-deep); display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.case-card:hover .case-body .more, .case-body a.more:hover { color: var(--orange); }
.case-card { background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(45,28,18,0.4); }
.case-card.is-feature { grid-column: span 3; flex-direction: row; }
.case-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.case-card.is-feature .case-thumb { aspect-ratio: auto; width: 46%; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); transition: transform .5s cubic-bezier(.3,.7,.3,1); }
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-thumb .case-badge { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--paper-ink); background: rgba(255,253,248,0.94); padding: 5px 10px; border-radius: 3px; }
.case-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.case-card.is-feature .case-body { width: 54%; justify-content: center; }
.case-body h3 { font-family: var(--mincho); font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; color: var(--paper-ink); line-height: 1.5; }
.case-card.is-feature h3 { font-size: clamp(22px, 2.6vw, 32px); }
.case-meta { display: flex; flex-direction: column; gap: 10px; }
.case-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.case-row dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--orange-deep); text-transform: uppercase; padding-top: 1px; }
.case-row dd { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--paper-ink-2); }
.case-row dd b { color: var(--paper-ink); font-weight: 600; }

/* =========================================================================
   TECH STACK — works on dark (accent) and light
   ========================================================================= */
.tech-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; color: var(--paper-ink);
  padding: 11px 18px; border: 1px solid var(--paper-line); border-radius: var(--radius);
  background: var(--paper-3); transition: border-color .25s, color .25s, transform .25s;
}
.tech-chip:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.tech-chip.is-ai { border-color: rgba(201,162,75,0.55); color: #9a7b2e; background: rgba(201,162,75,0.07); }
.section--dark .tech-chip, .section--ink2 .tech-chip { color: var(--cream); background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .tech-chip:hover { border-color: var(--orange-br); color: var(--orange-br); }
.section--dark .tech-chip.is-ai, .section--ink2 .tech-chip.is-ai { color: var(--gold); border-color: rgba(201,162,75,0.4); background: rgba(201,162,75,0.08); }
.tech-note { margin-top: 26px; font-size: 13px; color: var(--paper-ink-2); line-height: 1.9; display: flex; gap: 10px; align-items: flex-start; }
.tech-note::before { content: "※"; color: var(--orange-deep); }
.section--dark .tech-note, .section--ink2 .tech-note { color: var(--cream-faint); }
.section--dark .tech-note::before { color: var(--orange-br); }

/* =========================================================================
   ACT-SORA (warm light feature)
   ========================================================================= */
.actsora {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% 40%, var(--orange-pale), transparent 58%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.actsora__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.actsora__name { font-family: var(--mincho); font-weight: 300; letter-spacing: -0.01em; font-size: clamp(46px, 8vw, 100px); line-height: 0.96; color: var(--paper-ink); margin-top: 8px; }
.actsora__name em { color: var(--orange); font-style: normal; font-weight: 400; }
.actsora__tag { font-family: var(--mincho); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.7; color: var(--paper-ink); margin-top: 26px; }
.actsora__points { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.actsora__points li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.8; color: var(--paper-ink-2); }
.actsora__points li .n { font-family: var(--mono); font-size: 11px; color: #fff; background: var(--orange); padding: 3px 8px; border-radius: 3px; margin-top: 3px; flex-shrink: 0; }
.actsora .btn-row { margin-top: 36px; }
.actsora__visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--paper-line); box-shadow: 0 40px 80px -44px rgba(45,28,18,0.45); }
.actsora__visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.actsora__visual .ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(45,28,18,0.42), transparent 50%); }
.actsora__visual .cap { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #fff; }

/* compact self-product card (homepage demoted treatment) */
.selfproduct { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-3); overflow: hidden; }
.selfproduct__media { position: relative; aspect-ratio: 16/11; overflow: hidden; height: 100%; }
.selfproduct__media img { width: 100%; height: 100%; object-fit: cover; }
.selfproduct__body { padding: clamp(28px, 3.4vw, 48px) clamp(24px,3vw,40px); }
.selfproduct__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--orange-deep); text-transform: uppercase; }
.selfproduct h3 { font-family: var(--mincho); font-size: clamp(24px, 3vw, 36px); font-weight: 600; color: var(--paper-ink); margin-top: 14px; }
.selfproduct h3 em { color: var(--orange); font-style: normal; }
.selfproduct p { font-size: 14px; line-height: 1.95; color: var(--paper-ink-2); margin-top: 16px; max-width: 52ch; }
.selfproduct .btn-row { margin-top: 26px; }
@media (max-width: 860px){ .selfproduct { grid-template-columns: 1fr; } .selfproduct__media { aspect-ratio: 16/9; } }

/* =========================================================================
   REASONS (light)
   ========================================================================= */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason-card { background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; transition: transform .3s, box-shadow .3s; }
.reason-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(45,28,18,0.35); }
.reason-card .rc-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--orange-deep); }
.reason-card h3 { font-family: var(--mincho); font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; color: var(--paper-ink); line-height: 1.55; }
.reason-card p { font-size: 13.5px; line-height: 1.9; color: var(--paper-ink-2); }

/* =========================================================================
   COMPANY (light)
   ========================================================================= */
.company-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.company-copy .lead { margin-top: 24px; }
.company-offices { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.office { flex: 1 1 220px; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 20px 22px; background: var(--paper-3); }
.office .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--orange-deep); }
.office .city { font-family: var(--mincho); font-size: 19px; color: var(--paper-ink); margin-top: 8px; }
.office .addr { font-size: 13px; color: var(--paper-ink-2); margin-top: 8px; line-height: 1.7; }
.office .en { font-family: var(--mono); font-size: 10.5px; color: var(--paper-ink-2); margin-top: 6px; letter-spacing: 0.06em; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--paper-line); font-size: 14px; line-height: 1.85; vertical-align: top; }
.company-table th { font-family: var(--gothic); font-weight: 600; color: var(--paper-ink-2); width: 132px; white-space: nowrap; }
.company-table td { color: var(--paper-ink); }
.company-table td .sub { display: block; color: var(--paper-ink-2); font-size: 13px; }
.company-table .ph { font-family: var(--mono); font-size: 11px; color: var(--orange-deep); letter-spacing: 0.04em; margin-left: 6px; }
/* on dark */
.section--dark .company-table th, .section--ink2 .company-table th { color: var(--cream-dim); border-color: var(--line-dark); }
.section--dark .company-table td, .section--ink2 .company-table td { color: var(--cream); border-color: var(--line-dark); }
.section--dark .office, .section--ink2 .office { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .office .city { color: var(--cream); }
.section--dark .office .addr, .section--dark .office .en { color: var(--cream-dim); }

/* =========================================================================
   FAQ (light)
   ========================================================================= */
.faq-wrap { display: grid; grid-template-columns: 360px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q { width: 100%; display: flex; align-items: flex-start; gap: 18px; padding: 26px 0; text-align: left; background: transparent; border: 0; }
.faq-q .qn { font-family: var(--mono); font-size: 12px; color: var(--orange-deep); min-width: 34px; padding-top: 4px; }
.faq-q .qt { flex: 1; font-family: var(--mincho); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; color: var(--paper-ink); line-height: 1.6; }
.faq-q .ic { position: relative; width: 24px; height: 24px; flex-shrink: 0; margin-top: 4px; transition: transform .35s cubic-bezier(.3,.7,.3,1); }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--orange-deep); }
.faq-q .ic::before { left: 4px; right: 4px; top: 11px; height: 1.6px; }
.faq-q .ic::after { top: 4px; bottom: 4px; left: 11px; width: 1.6px; transition: opacity .3s; }
.faq-item.is-open .faq-q .ic { transform: rotate(90deg); }
.faq-item.is-open .faq-q .ic::after { opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s cubic-bezier(.3,.7,.3,1); }
.faq-a__inner { padding: 0 0 28px 52px; display: flex; gap: 14px; }
.faq-a__inner .an { font-family: var(--mono); font-size: 12px; color: var(--orange-deep); }
.faq-a__inner p { font-size: 14px; line-height: 1.95; color: var(--paper-ink-2); }

/* =========================================================================
   CONTACT (light, warm)
   ========================================================================= */
.contact { position: relative; background: var(--paper-2); overflow: hidden; }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact__cta-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact__cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-3); transition: border-color .25s, background .25s, transform .25s; }
.contact__cta:hover { border-color: var(--orange); transform: translateX(4px); }
.contact__cta .ct-main { font-family: var(--mincho); font-size: 18px; color: var(--paper-ink); }
.contact__cta .ct-sub { font-family: var(--mono); font-size: 11px; color: var(--paper-ink-2); margin-top: 4px; letter-spacing: 0.06em; }
.contact__cta .ct-arr { color: var(--orange); font-size: 20px; }

.contact__phone { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius); background: rgba(232,115,43,0.08); border: 1px solid rgba(232,115,43,0.28); }
.contact__phone .pl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--orange-deep); }
.contact__phone .pn { font-family: var(--mincho); font-size: clamp(24px, 3vw, 32px); color: var(--paper-ink); margin-top: 6px; letter-spacing: 0.02em; }
.contact__phone .ph-note { font-size: 12px; color: var(--paper-ink-2); margin-top: 6px; }

/* Form */
.form-card { background: var(--paper-3); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: 0 30px 60px -44px rgba(45,28,18,0.4); }
.form-card h3 { font-family: var(--mincho); font-size: 20px; font-weight: 600; color: var(--paper-ink); margin-bottom: 6px; }
.form-card .form-note { font-size: 12.5px; color: var(--paper-ink-2); margin-bottom: 24px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: span 2; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--paper-ink); letter-spacing: 0.03em; display: flex; align-items: center; gap: 8px; }
.field label .req { font-family: var(--mono); font-size: 10px; color: var(--vermillion); }
.field input, .field select, .field textarea { font-family: var(--gothic); font-size: 14px; color: var(--paper-ink); background: var(--cream-bg); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 12px 14px; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--paper-ink-2); opacity: 0.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23cf5a1c' d='M7 10l5 5 5-5z'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-submit { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-submit .privacy { font-size: 11.5px; color: var(--paper-ink-2); line-height: 1.7; }
.form-submit .privacy a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn--primary { width: 100%; justify-content: center; }

/* =========================================================================
   FOOTER (sumi — closing accent)
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--cream-dim); padding-block: clamp(56px, 7vw, 80px) 36px; border-top: 3px solid var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand .jp { font-size: 20px; color: var(--cream); }
.footer-brand p { font-size: 12.5px; line-height: 1.9; color: var(--cream-faint); max-width: 36ch; }
.footer-brand .est { font-family: var(--mono); font-size: 11px; color: var(--cream-faint); letter-spacing: 0.1em; margin-top: 14px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--orange-br); text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13px; color: var(--cream-dim); transition: color .2s; }
.footer-col a:hover { color: var(--orange-br); }
.footer-col .sub-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--cream-faint); text-transform: uppercase; margin: 18px 0 10px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--cream-faint); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid, .reason-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-card.is-feature { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .nav, .header-cta .lang, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 0 var(--gutter); background: rgba(255,247,237,0.98); backdrop-filter: blur(10px); transform: translateX(100%); transition: transform .42s cubic-bezier(.3,.7,.3,1); }
  body.nav-open .nav { display: flex; transform: none; }
  .nav a { font-family: var(--mincho); font-size: 26px; color: var(--paper-ink); padding: 12px 0; }
  .nav a::after { display: none; }
  .nav .mobile-cta { margin-top: 24px; padding: 14px 28px; background: var(--orange); color: #fff; border-radius: var(--radius); font-family: var(--gothic); font-size: 16px; font-weight: 700; }
  .tech-wrap, .actsora__inner, .company-wrap, .contact__inner, .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { margin-bottom: 8px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 680px) {
  .service-grid, .problem-grid, .reason-grid, .case-grid { grid-template-columns: 1fr; }
  .case-card.is-feature { grid-column: span 1; flex-direction: column; }
  .case-card.is-feature .case-thumb { width: 100%; aspect-ratio: 16/10; }
  .case-card.is-feature .case-body { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field.col-2 { grid-column: span 1; }
  .hero { min-height: auto; padding-block: 124px 72px; }
  .hero__img { width: 100%; opacity: 0.4; -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%); mask-image: linear-gradient(180deg, transparent, #000 50%); }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn--text { width: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* =========================================================================
   Language-specific typography (zh: Simplified Chinese, vi: Vietnamese)
   Swaps the Japanese type stack for fonts that cover each script,
   avoiding tofu/fallback glyphs in headings.
   ========================================================================= */
html[data-lang="zh"] {
  --mincho: "Noto Serif SC", "Shippori Mincho", serif;
  --gothic: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-lang="vi"] {
  --mincho: "Noto Serif", "Shippori Mincho", serif;
  --gothic: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* English keeps the Japanese gothic (it carries Latin); slightly looser for headings */
html[data-lang="en"] .h2, html[data-lang="en"] .hero h1 { letter-spacing: 0; }
