/* =========================================================
   AS Link — design system
   Ink (deep green-black) × Paper × Emerald→Mint (logo gradient)
   ========================================================= */
:root {
  --ink: #06110e;
  --ink-2: #0c1d18;
  --ink-3: #14302a;
  --paper: #f3f5f1;
  --paper-2: #e8ece6;
  --white: #ffffff;
  --emerald: #11998e;
  --emerald-deep: #0b6f67;
  --mint: #38ef7d;
  --line: rgba(6, 17, 14, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #15201d;
  --text-muted: #52605b;
  --text-on-dark: #e9f2ee;
  --text-on-dark-muted: #9fb3ab;
  --grad: linear-gradient(120deg, var(--emerald) 0%, var(--mint) 100%);

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;

  --text-display: clamp(2.6rem, 5.2vw + 1rem, 6rem);
  --text-hero: clamp(2rem, 3vw + 0.6rem, 3.5rem);
  --text-section: clamp(1.6rem, 2vw + 0.5rem, 2.5rem);
  --text-sub: clamp(1.1rem, 0.8vw + 0.6rem, 1.35rem);
  --text-body: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem);
  --text-small: 0.875rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: clamp(5rem, 9vw, 8.5rem);

  --radius: 4px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--text-body);
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-deep); text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.35; font-weight: 700; letter-spacing: 0.01em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 820px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--mint); color: var(--ink); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.on-dark .eyebrow { color: var(--mint); }

.section-title { font-size: var(--text-section); font-weight: 900; letter-spacing: 0.02em; }
.section-lead { color: var(--text-muted); max-width: 640px; font-size: 1.05rem; }
.on-dark .section-lead { color: var(--text-on-dark-muted); }
.display { font-size: var(--text-display); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.en { font-family: var(--font-en); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { color: var(--ink); background: #5cf596; box-shadow: 0 10px 30px rgba(56, 239, 125, 0.3); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: var(--emerald-deep); transform: translateY(-2px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.5em; align-items: center; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--emerald-deep); }
.text-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }
.on-dark .text-link { color: var(--white); }
.on-dark .text-link:hover { color: var(--mint); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s, height 0.35s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.logo .logo-dark { display: none; }
.site-header.is-solid, .site-header.is-light { background: rgba(243, 245, 241, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .logo-white, .site-header.is-light .logo-white { display: none; }
.site-header.is-solid .logo-dark, .site-header.is-light .logo-dark { display: block; }

.global-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.global-nav a { display: block; padding: 0.55em 0.95em; color: var(--white); text-decoration: none; font-size: 0.93rem; font-weight: 500; border-radius: 999px; transition: background 0.25s, color 0.25s; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.site-header.is-solid .global-nav a, .site-header.is-light .global-nav a { color: var(--text); }
.site-header.is-solid .global-nav a:hover, .site-header.is-light .global-nav a:hover,
.site-header.is-solid .global-nav a[aria-current="page"], .site-header.is-light .global-nav a[aria-current="page"] { background: rgba(17, 153, 142, 0.1); color: var(--emerald-deep); }
.global-nav .nav-cta a { background: var(--mint); color: var(--ink) !important; font-weight: 700; margin-left: 8px; padding-inline: 1.3em; }
.global-nav .nav-cta a:hover { background: #5cf596; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--white); cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 50%; width: 18px; height: 2px; background: currentColor; transform: translateX(-50%); transition: transform 0.3s var(--ease-out), opacity 0.3s; content: ""; }
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.site-header.is-solid .menu-toggle, .site-header.is-light .menu-toggle { color: var(--ink); border-color: var(--line); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero (top) ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink) url("../images/hero.jpg") center right / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 17, 14, 0.94) 0%, rgba(6, 17, 14, 0.72) 45%, rgba(6, 17, 14, 0.3) 100%), linear-gradient(0deg, rgba(6, 17, 14, 0.9) 0%, transparent 35%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  z-index: -1;
}
.hero-inner { padding: calc(var(--header-h) + 60px) 0 140px; }
.hero h1 { font-size: var(--text-display); font-weight: 900; line-height: 1.1; margin-bottom: 0.45em; letter-spacing: -0.01em; }
.hero h1 .line { display: block; }
.hero-lead { font-size: var(--text-sub); color: var(--text-on-dark); max-width: 560px; line-height: 1.95; margin-bottom: 2.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line-dark);
  background: rgba(6, 17, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.hero-facts li { padding: 22px 28px 22px 0; display: flex; gap: 14px; align-items: baseline; border-right: 1px solid var(--line-dark); margin-right: 28px; }
.hero-facts li:nth-child(3) { border-right: 0; }
.hero-facts strong { font-family: var(--font-en); font-size: 1.6rem; font-weight: 600; color: var(--mint); line-height: 1; }
.hero-facts span { font-size: 0.85rem; color: var(--text-on-dark-muted); line-height: 1.5; }
.scroll-cue { align-self: center; border: 0 !important; margin: 0 !important; font-family: var(--font-en); font-size: 0.72rem !important; letter-spacing: 0.3em; color: var(--text-on-dark-muted); text-decoration: none; display: flex; gap: 12px; align-items: center; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--mint), transparent); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  background: var(--ink);
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -160px;
  top: -260px;
  background: radial-gradient(circle, rgba(56, 239, 125, 0.28), transparent 65%);
  z-index: -1;
}
.page-hero.has-image { background: var(--ink) var(--hero-img, none) center / cover no-repeat; }
.page-hero h1 { font-size: var(--text-hero); font-weight: 900; margin-bottom: 0.4em; max-width: 900px; }
.page-hero .page-lead { color: var(--text-on-dark-muted); max-width: 720px; font-size: 1.05rem; margin: 0; }
.page-hero .en-title { font-family: var(--font-en); font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18); position: absolute; right: 24px; bottom: -0.12em; pointer-events: none; white-space: nowrap; }

.breadcrumb { font-size: 0.8rem; margin-bottom: 28px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--mint); }

/* ---------- Sections ---------- */
.section { padding: var(--space-xl) 0; position: relative; }
.section-tight { padding: var(--space-lg) 0; }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--text-on-dark); }
.bg-emerald { background: var(--emerald-deep); color: var(--white); }
.bg-ink h2, .bg-ink h3, .bg-emerald h2, .bg-emerald h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head p { margin: 0; }

/* Statement */
.statement { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement .display { margin: 0; font-size: clamp(2.4rem, 3.6vw + 0.8rem, 4.6rem); word-break: keep-all; overflow-wrap: anywhere; }
.statement-body p { color: var(--text-muted); font-size: 1.05rem; }
.statement-body .summary { color: var(--text); font-size: 1.15rem; font-weight: 500; line-height: 1.95; padding-left: 20px; border-left: 3px solid var(--emerald); }

/* ---------- Service bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.svc-card {
  position: relative;
  grid-column: span 6;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.svc-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(6, 17, 14, 0.35); border-color: rgba(17, 153, 142, 0.4); }
.svc-card.is-feature { grid-column: span 7; grid-row: span 2; }
.svc-card.is-side { grid-column: span 5; }
.svc-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.svc-card.is-feature .svc-media { aspect-ratio: 4 / 3; flex: 1; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.svc-num { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--emerald-deep); font-weight: 600; }
.svc-body h3 { font-size: 1.4rem; font-weight: 900; margin: 0; }
.svc-card.is-feature h3 { font-size: 1.9rem; }
.svc-body p { margin: 0; color: var(--text-muted); font-size: 0.97rem; line-height: 1.85; }
.svc-price { margin-top: 10px; font-family: var(--font-en); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.svc-price small { font-family: var(--font-jp); font-weight: 400; color: var(--text-muted); }
.arrow-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; flex-shrink: 0; transition: background 0.3s, transform 0.3s var(--ease-out); }
.arrow-dot svg { width: 16px; height: 16px; }
.svc-card:hover .arrow-dot { background: var(--emerald); color: var(--white); transform: rotate(-45deg); }
.ext-mark { font-size: 0.72rem; font-family: var(--font-jp); color: var(--text-muted); font-weight: 400; }

/* Split (server) */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.split-media { position: relative; min-height: 360px; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--ink) 100%); }
.split-content { display: flex; align-items: center; padding: var(--space-xl) clamp(24px, 6vw, 96px); }
.split-content .inner { max-width: 520px; }
.split-content h2 { font-size: var(--text-section); font-weight: 900; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-media::after { background: linear-gradient(270deg, transparent 60%, var(--ink) 100%); }

.check-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.75; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.8 17.2l-5-5 1.6-1.6 3.4 3.4 7-7 1.6 1.6-8.6 8.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.8 17.2l-5-5 1.6-1.6 3.4 3.4 7-7 1.6 1.6-8.6 8.6z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Business pair (emerald block) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.18); }
.pair-item { background: var(--emerald-deep); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.pair-item .tag { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.2em; color: #b6ffd1; }
.pair-item h3 { font-size: 1.6rem; font-weight: 900; margin: 0; }
.pair-item p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.pair-item .logos { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 10px; }
.pair-item .logos img { width: 56px; height: 56px; border-radius: 12px; background: var(--white); padding: 6px; }
.pair-item .text-link { color: var(--white); margin-top: 8px; align-self: flex-start; }
.pair-item .text-link:hover { color: #b6ffd1; }

/* ---------- Price table ---------- */
.price-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table thead th { background: var(--ink); color: var(--white); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; }
.price-table tbody th { font-weight: 700; white-space: nowrap; }
.price-table .num { font-family: var(--font-en); font-weight: 600; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.price-table .note { color: var(--text-muted); font-size: 0.9rem; }
.table-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Trust (dark) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-top: var(--space-lg); }
.trust-item { background: var(--ink); padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.trust-item .icon { width: 44px; height: 44px; color: var(--mint); }
.trust-item h3 { font-size: 1.15rem; margin: 0; color: var(--white); }
.trust-item p { margin: 0; color: var(--text-on-dark-muted); font-size: 0.95rem; }
.trust-item .big { font-family: var(--font-en); font-size: 1.9rem; color: var(--white); font-weight: 600; line-height: 1.1; }

/* ---------- News list ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 140px 130px 1fr auto; gap: 24px; align-items: center; padding: 28px 8px; text-decoration: none; color: var(--text); transition: background 0.3s, padding 0.3s var(--ease-out); }
.news-list a:hover { background: var(--white); padding-left: 20px; color: var(--text); }
.news-list time { font-family: var(--font-en); color: var(--text-muted); font-size: 0.95rem; }
.news-list .cat { font-size: 0.75rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; text-align: center; color: var(--emerald-deep); }
.news-list .title { font-weight: 700; line-height: 1.6; }
.news-list .arrow-dot { width: 34px; height: 34px; }
.news-list a:hover .arrow-dot { background: var(--emerald); color: var(--white); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: var(--space-xl) 0; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-20%, -50%); background: radial-gradient(circle, rgba(17, 153, 142, 0.5), transparent 60%); z-index: -1; }
.cta-band .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.8rem); font-weight: 900; line-height: 1.2; margin: 0; }
.cta-band p { color: var(--text-on-dark-muted); }
.cta-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tel-block { font-family: var(--font-en); }
.tel-block a { color: var(--white); text-decoration: none; font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; }
.tel-block a:hover { color: var(--mint); }
.tel-block small { display: block; font-family: var(--font-jp); color: var(--text-on-dark-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: #030a08; color: var(--text-on-dark-muted); padding: var(--space-lg) 0 32px; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: var(--space-md); border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-brand address { font-style: normal; line-height: 1.9; }
.footer-brand a { color: var(--text-on-dark); text-decoration: none; }
.site-footer h2 { font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.22em; color: var(--mint); font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-on-dark); text-decoration: none; }
.site-footer ul a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.sns { display: flex; gap: 10px; }
.sns a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--text-on-dark); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.sns a:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.sns svg { width: 17px; height: 17px; }
.copyright { font-family: var(--font-en); font-size: 0.8rem; margin: 0; }

/* ---------- Generic content blocks ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem); font-weight: 900; margin: 2.6em 0 0.8em; padding-top: 0.2em; position: relative; }
.prose h2::before { content: ""; display: block; width: 40px; height: 3px; background: var(--grad); margin-bottom: 18px; }
.prose h3 { font-size: 1.2rem; margin: 2em 0 0.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose table { margin: 1.4em 0 2em; background: var(--white); font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; line-height: 1.7; }
.prose thead th { background: var(--ink); color: var(--white); font-weight: 500; }
.prose tbody th { background: var(--paper-2); white-space: nowrap; }
.prose .answer-first { font-size: 1.12rem; font-weight: 500; line-height: 1.95; padding: 24px 28px; background: var(--white); border-left: 4px solid var(--emerald); margin-bottom: 2em; }

.def-table { background: var(--white); border-top: 2px solid var(--ink); }
.def-table th, .def-table td { padding: 22px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.85; }
.def-table th { width: 220px; font-weight: 700; background: var(--paper-2); }
.def-table ul { margin: 0; padding-left: 1.2em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.two-col.top { align-items: start; }
.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.contain img { object-fit: contain; padding: 24px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(6, 17, 14, 0.3); }
.feature .icon { width: 40px; height: 40px; color: var(--emerald); margin-bottom: 6px; }
.feature .num { font-family: var(--font-en); font-weight: 600; color: var(--emerald); font-size: 0.85rem; letter-spacing: 0.15em; }
.feature h3 { font-size: 1.15rem; margin: 0; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.bg-ink .feature { background: var(--ink-2); border-color: var(--line-dark); }
.bg-ink .feature p { color: var(--text-on-dark-muted); }
.bg-ink .feature .icon, .bg-ink .feature .num { color: var(--mint); }

/* Service detail blocks (services page) */
.svc-detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); padding: var(--space-lg) 0; border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; padding-top: 0; }
.svc-detail .side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.svc-detail .side .num { font-family: var(--font-en); font-size: 4rem; font-weight: 600; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-detail .side h2 { font-size: 1.6rem; font-weight: 900; margin: 12px 0 6px; }
.svc-detail .side .sub { color: var(--text-muted); font-size: 0.9rem; }
.svc-detail .side img { margin-top: 20px; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-detail .main h3 { font-size: 1rem; letter-spacing: 0.1em; color: var(--emerald-deep); margin: 1.6em 0 0.6em; }
.price-box { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px 26px; margin: 1.6em 0; }
.price-box .label { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--mint); display: block; margin-bottom: 6px; }
.price-box p { margin: 0; line-height: 1.8; }
.svc-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 64px; position: relative; font-weight: 700; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; font-family: var(--font-en); font-weight: 600; font-size: 1.3rem; color: var(--emerald); }
.faq-item summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease-out); }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item .a { padding: 0 28px 24px 64px; position: relative; color: var(--text-muted); }
.faq-item .a::before { content: "A"; position: absolute; left: 22px; top: -4px; font-family: var(--font-en); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.faq-item .a p:last-child { margin: 0; }

/* Timeline / steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 32px 24px 0 0; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-en); font-weight: 600; font-size: 2.4rem; display: block; line-height: 1; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Tabs-ish function list (AIGC) */
.func-list { display: grid; gap: 20px; }
.func { display: grid; grid-template-columns: 280px 1fr; gap: 40px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 36px; }
.func .head .num { font-family: var(--font-en); color: var(--mint); font-size: 0.8rem; letter-spacing: 0.2em; }
.func .head h3 { color: var(--white); font-size: 1.35rem; margin: 8px 0; }
.func .head p { color: var(--text-on-dark-muted); font-size: 0.92rem; margin: 0; }
.func .body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.func .body h4 { color: var(--white); font-size: 1rem; margin: 0 0 6px; }
.func .body p { color: var(--text-on-dark-muted); font-size: 0.92rem; margin: 0; line-height: 1.8; }

/* Compare cards */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.compare > div.is-us { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.compare h3 { font-size: 1.1rem; }
.compare .is-us h3 { color: var(--mint); }
.compare dl { margin: 0; display: grid; gap: 14px; }
.compare dt { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-muted); }
.compare .is-us dt { color: var(--text-on-dark-muted); }
.compare dd { margin: 0; font-weight: 500; }

/* Duty grid (about) */
.duty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.duty { background: var(--ink); padding: 32px 28px; }
.duty .law { font-size: 0.78rem; color: var(--mint); letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.duty h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--white); }
.duty p { margin: 0; color: var(--text-on-dark-muted); font-size: 0.93rem; }

.map-frame { width: 100%; aspect-ratio: 16 / 7; border: 0; border-radius: var(--radius); filter: grayscale(0.4); background: var(--paper-2); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(6, 17, 14, 0.35); color: var(--text); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.post-card .meta time { font-family: var(--font-en); }
.post-card h2, .post-card h3 { font-size: 1.12rem; line-height: 1.6; margin: 0; }
.post-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }
.cat-chip { font-size: 0.72rem; border: 1px solid rgba(17, 153, 142, 0.4); color: var(--emerald-deep); border-radius: 999px; padding: 2px 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-bar button { font: inherit; font-size: 0.88rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.filter-bar button[aria-pressed="true"], .filter-bar button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.post-header .meta { display: flex; gap: 14px; align-items: center; color: var(--text-on-dark-muted); font-size: 0.9rem; margin-top: 18px; }
.post-header .meta time { font-family: var(--font-en); }
.post-body { padding: var(--space-lg) 0 var(--space-xl); background: var(--white); }
.post-footer-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.sources { font-size: 0.92rem; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { background: var(--ink); color: var(--text-on-dark); padding: 32px; border-radius: var(--radius); margin-top: 24px; }
.contact-card dt { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--mint); font-family: var(--font-en); margin-top: 16px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; }
.contact-card a { color: var(--white); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; }
.form-row { display: grid; gap: 8px; }
.form-row.half { grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.half > div { display: grid; gap: 8px; }
.form label { font-weight: 700; font-size: 0.93rem; display: flex; align-items: center; gap: 8px; }
.req { font-size: 0.7rem; background: var(--emerald-deep); color: var(--white); border-radius: 3px; padding: 1px 7px; font-weight: 500; }
.opt { font-size: 0.7rem; background: var(--paper-2); color: var(--text-muted); border-radius: 3px; padding: 1px 7px; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.25s, background 0.25s;
}
.form textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--emerald); background: var(--white); }
.form .is-invalid { border-color: #c2412d !important; }
.field-error { color: #b0341f; font-size: 0.85rem; margin: 0; }
.consent { font-size: 0.9rem; color: var(--text-muted); }
.consent input { margin-right: 8px; accent-color: var(--emerald); }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-error { color: #b0341f; }
.form button[type="submit"] { justify-self: start; border: 0; }

/* Notice / placeholder */
.notice { background: var(--white); border: 1px dashed var(--emerald); border-radius: var(--radius); padding: 18px 22px; font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: block; z-index: 2; }
  .global-nav { position: fixed; inset: 0; background: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0.35s; }
  .global-nav ul { flex-direction: column; gap: 6px; }
  .global-nav a { color: var(--white) !important; font-size: 1.25rem; padding: 0.6em 1.4em; }
  .global-nav .nav-cta a { margin: 16px 0 0; }
  .menu-open .global-nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .menu-toggle { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
  .menu-open .logo-white { display: block !important; }
  .menu-open .logo-dark { display: none !important; }
  .menu-open { overflow: hidden; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail .side { position: static; }
  .svc-detail .side img { max-width: 420px; }
  .func { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .logo img { height: 28px; }
  .hero { background-position: 70% center; }
  .hero-inner { padding-bottom: 220px; }
  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li { border-right: 0; margin-right: 0; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .hero-facts li:nth-child(3) { border-bottom: 0; }
  .scroll-cue { display: none !important; }
  .statement, .two-col, .cta-band .container, .contact-wrap { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .bento { grid-template-columns: 1fr; }
  .svc-card, .svc-card.is-feature, .svc-card.is-side { grid-column: auto; grid-row: auto; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media::after, .split.reverse .split-media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 50%); }
  .pair, .trust-grid, .duty-grid, .feature-grid, .feature-grid.cols-2, .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .news-list a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .news-list time { grid-column: 1; }
  .news-list .cat { display: none; }
  .news-list .title { grid-column: 1; }
  .news-list .arrow-dot { grid-column: 2; grid-row: 1 / span 2; }
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { padding-bottom: 10px; }
  .def-table td { padding-top: 12px; }
  .form-row.half { grid-template-columns: 1fr; }
  .page-hero .en-title { font-size: 3.4rem; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid.cols-4 { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 14px 16px; }
  .faq-item summary { padding: 20px 52px 20px 52px; }
  .faq-item summary::before, .faq-item .a::before { left: 16px; }
  .faq-item .a { padding: 0 20px 22px 52px; }
}
