/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /*
    Color concept (2026 redesign):
    - --ink: Deep navy (Japan-Thailand sober base)
    - --wine: Refined burgundy (primary accent on light)
    - --sand: Warm cream (accent on dark)
    - --paper / --paper-2: warm whites
  */
  --ink: #12233f;
  --ink-2: #1c2e4a;
  --ink-soft: #3a4a64;
  --wine: #7a1f2b;
  --wine-soft: #a04050;
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --sand: #e8e4dc;
  --sand-deep: #c8c3b8;
  --line: #e5e3de;
  --line-soft: #f0eee9;
  --muted: #8a8787;

  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  --font-ja-serif: 'Noto Serif JP', serif;
  --font-en: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(18,35,63,0.08);
  --shadow-md: 0 8px 32px rgba(18,35,63,0.12);
  --shadow-lg: 0 20px 60px rgba(18,35,63,0.16);
  --shadow-glow: 0 0 0 3px rgba(232,228,220,0.25), 0 12px 40px rgba(18,35,63,0.22);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 6px;
  --radius-lg: 14px;

  --container: 1280px;
  --header-h: 72px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

:lang(en) body,
:lang(en) .en-serif { font-family: var(--font-en); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: 3.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--sand);
  margin: 0.9rem auto 0;
  border-radius: 2px;
}

/* ============================================================
   Layout (2026 redesign)
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 90px 0;
}

/* ============================================================
   Header / Navigation — nav.top (TTK × JTJB compass)
   ============================================================ */
nav.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0e1a30;
  border-bottom: 1px solid rgba(232,228,220,0.12);
}
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 48px;
  gap: 2rem;
}

/* Logo (compass) */
nav.top .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-direction: row;
}
.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
nav.top .logo .text { line-height: 1.35; }
nav.top .logo .j {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: #ffffff;
}
nav.top .logo .j .x {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin: 0 2px;
}
nav.top .logo .e {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
  letter-spacing: 0.1em;
}

/* Desktop nav list */
#nav-menu-desktop {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}
#nav-menu-desktop li { margin: 0; padding: 0; }
#nav-menu-desktop a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
#nav-menu-desktop a:hover,
#nav-menu-desktop a.active {
  border-bottom-color: var(--sand);
  color: #ffffff;
}

/* Right cluster: lang pill + contact button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang-pill {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-pill a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-pill a:hover { color: rgba(255,255,255,0.85); }
.lang-pill a.active { color: #ffffff; font-weight: 500; }
.lang-pill .sep { color: rgba(255,255,255,0.3); }

.contact-btn {
  background: var(--wine);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
}
.contact-btn:hover { background: var(--wine-soft); }
.contact-btn .arrow { font-family: var(--font-en); font-size: 14px; }

/* Hamburger (hidden on desktop) */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* ============================================================
   Mobile drawer (preserved functionality, restyled)
   ============================================================ */
#mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18,35,63,0.55);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82vw);
  background: #0e1a30;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.35);
}
#mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(232,228,220,0.15);
  min-height: var(--header-h);
}
.mobile-nav-logo {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}
#mobile-nav-close,
.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
#mobile-nav-close:hover,
.mobile-nav-close:hover { color: var(--sand); }
#mobile-nav ul {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
#mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }
#mobile-nav ul li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.75rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
}
#mobile-nav ul li a:hover,
#mobile-nav ul li a.active {
  color: var(--sand);
  background: rgba(232,228,220,0.08);
}
#mobile-nav ul li a.active {
  border-left: 3px solid var(--sand);
  padding-left: calc(1.75rem - 3px);
}
.mobile-lang-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(232,228,220,0.2);
}
.mobile-lang-switcher .lang-btn {
  font-family: var(--font-en);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
}
.mobile-lang-switcher .lang-btn:hover { color: #fff; border-color: var(--sand); }
.mobile-lang-switcher .lang-btn.active {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
  font-weight: 500;
}

/* Mobile breakpoint — show hamburger, hide desktop nav */
@media (max-width: 960px) {
  nav.top .inner { padding: 14px 24px; }
  #nav-menu-desktop { display: none; }
  .lang-pill { display: none; }
  .contact-btn { display: none; }
  #nav-toggle { display: flex; }
}

/* ============================================================
   Common: Breadcrumb / Page Head / Section Head
   ============================================================ */
.crumbs {
  padding: 28px 0 12px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }
.crumbs .here { color: var(--ink); }

.page-head {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-ja-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
}
.page-head .ph-grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .page-head .ph-grid { grid-template-columns: 1fr; gap: 24px; } }

.ph-right {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px;
}
.ph-right h4 {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--wine);
  letter-spacing: 0.15em;
  margin: 0 0 18px;
  text-transform: uppercase;
  font-weight: 500;
}
.ph-right ol {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ph-right ol li {
  counter-increment: toc;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 28px 1fr 40px;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
}
.ph-right ol li:last-child { border-bottom: none; }
.ph-right ol li::before {
  content: counter(toc, upper-roman) ".";
  font-family: var(--font-en);
  font-style: italic;
  color: var(--wine);
  font-size: 14px;
}
.ph-right ol li a { text-decoration: none; color: var(--ink); transition: color 0.2s; }
.ph-right ol li a:hover { color: var(--wine); }
.ph-right ol li .pg {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.sec-num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 16px;
  color: var(--wine);
  letter-spacing: 0.1em;
}
.sec-num .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-style: normal;
}
.sec-title {
  font-family: var(--font-ja-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}
.sec-title .it {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--wine);
}
@media (max-width: 700px) {
  .sec-title { font-size: 28px; }
}

/* ============================================================
   Common: CTA Final
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(122,31,43,0.2), transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(232,221,200,0.08), transparent 50%);
}
.cta-final .inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .cta-final { padding: 80px 0; }
  .cta-final .inner { grid-template-columns: 1fr; gap: 48px; }
}
.cta-final .eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--sand);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.cta-final h2 {
  font-family: var(--font-ja-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--paper);
}
.cta-final h2 .it {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--sand);
}
@media (max-width: 700px) { .cta-final h2 { font-size: 30px; } }
.cta-final p {
  font-size: 14px;
  line-height: 2;
  color: rgba(247,243,236,0.75);
  margin-bottom: 32px;
}
.cta-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 34px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s;
  font-weight: 500;
}
.cta-btn-lg:hover { background: var(--wine); color: var(--paper); }
.cta-btn-lg .arrow { font-family: var(--font-en); font-size: 16px; }
.cta-final .contact-info {
  padding-left: 48px;
  border-left: 1px solid rgba(247,243,236,0.15);
}
@media (max-width: 900px) {
  .cta-final .contact-info { padding-left: 0; border-left: none; padding-top: 0; }
}
.cta-final .ci-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(247,243,236,0.1);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
}
.cta-final .ci-row .lbl {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  color: var(--sand);
}
.cta-final .ci-row .val { font-size: 13px; color: var(--paper); }

/* ============================================================
   Footer (2026)
   ============================================================ */
#footer {
  background: var(--paper);
  padding: 64px 0 32px;
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
#footer .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-direction: row;
  text-decoration: none;
}
#footer .logo .text { line-height: 1.35; }
#footer .logo .j {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink);
}
#footer .logo .j .x { color: var(--muted); font-weight: 400; margin: 0 2px; }
#footer .logo .e {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.1em;
}
.footer-grid h5 {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--wine);
  margin: 0 0 16px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid li.footer-meta { color: var(--ink-soft); font-size: 13px; }
.footer-grid a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--wine); }
.footer-tag {
  font-family: var(--font-ja-serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
  margin: 20px 0 8px;
}
.footer-bottom {
  padding-top: 24px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom .footer-legal a { color: var(--muted); text-decoration: none; }
.footer-bottom .footer-legal a:hover { color: var(--wine); }
.footer-bottom .footer-legal .dot { opacity: 0.5; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-geo {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-firms {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-firm-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-firm-x {
  color: var(--sand);
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--ink-2);
  display: block;
}

.hero-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--sand);
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid var(--ink);
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(27,42,74,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid rgba(27,42,74,0.35);
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(27,42,74,0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27,42,74,0.12);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(27,42,74,0.12);
  flex-wrap: wrap;
}

.stat-item {}

.stat-num {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

/* Hero decoration */
.hero-deco {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.04;
}

/* ============================================================
   Features / Strengths
   ============================================================ */
.features {
  background: var(--paper-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--paper);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,42,74,0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--sand));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,42,74,0.0);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(27,42,74,0.09), rgba(27,42,74,0.04));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: 1.3rem;
}

.feature-title {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   Services Preview
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid rgba(27,42,74,0.1);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink), var(--sand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(27,42,74,0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.service-title {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   About Preview (index page)
   ============================================================ */
.about-preview {
  background: var(--ink);
  color: var(--paper);
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--ink-2), var(--ink-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-preview-img .placeholder-img {
  color: rgba(255,255,255,0.2);
  font-size: 5rem;
}

.about-preview-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--wine);
}

.about-text .section-title {
  color: var(--paper);
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text .section-title::after {
  margin: 0.75rem 0 0;
}

.about-text p {
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(150deg, #0d1b3e 0%, var(--ink) 50%, #213260 100%);
  border-top: none;
  border-bottom: none;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,169,122,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand);
  color: var(--ink);
  padding: 0.95rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid var(--sand);
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.btn-navy:hover {
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(201,169,122,0.45);
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(150deg, #0d1b3e 0%, var(--ink) 45%, #213260 100%);
  border-top: none;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(201,169,122,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0.6;
}

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

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--paper);
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: var(--sand);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--sand); }

.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   Team Page
   ============================================================ */
/* (legacy team/attorney/firm-label/lang-badge styles removed —
    new .att-* and .firm-label* defined in about.astro) */

/* ============================================================
   About Page (legacy - kept for compatibility)
   ============================================================ */
.profile-section {
  background: var(--paper-2);
}

.profile-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.profile-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.profile-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 5rem;
}

.profile-info {
  padding: 1.5rem;
}

.profile-name-en {
  font-family: var(--font-en);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 700;
}

.profile-name-ja {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.profile-affil {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.profile-divider {
  height: 1px;
  background: var(--line);
  margin: 1rem 0;
}

.profile-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}

.profile-contact-link:hover { color: var(--ink); }

/* Career / Timeline */
.career-section {}

.career-block {
  margin-bottom: 3rem;
}

.career-block h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.career-block h3 i {
  color: var(--ink);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--wine), rgba(139,26,46,0.2));
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wine);
  transform: translateX(-4px);
  box-shadow: 0 0 0 3px rgba(139,26,46,0.2);
}

.timeline-year {
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* Expertise tags */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.expertise-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   Services Page
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 4px 1fr;
  transition: box-shadow var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.service-stripe {
  background: var(--wine);
}

.service-detail-content {
  padding: 2rem 2rem 2rem 1.75rem;
}

.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-detail-icon {
  width: 52px;
  height: 52px;
  background: rgba(139,26,46,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 1.4rem;
}

.service-detail-title {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.service-detail-subtitle {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-detail-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-detail-list li {
  background: var(--paper-2);
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ============================================================
   Articles Page
   ============================================================ */
.articles-section {
  background: var(--paper-2);
}

/* Section header / eyebrow */
.articles-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}

.articles-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* More toggle */
.more-articles-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.more-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.more-toggle-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.more-toggle-btn.is-open .toggle-icon {
  transform: rotate(180deg);
}

.articles-grid--more {
  margin-top: 1.5rem;
}

/* Home page series teaser */
.home-series-teaser {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--paper-2);
  margin-bottom: 0.5rem;
}

.home-series-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.home-series-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-series-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition);
}

.home-series-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.home-series-chip i { font-size: 0.7rem; }

.home-series-chip-count {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* Series section */
.series-section-wrap {
  margin-top: 4rem;
}

.series-block {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--ink);
  box-shadow: 0 1px 4px rgba(27,42,74,0.07);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.series-block[data-cat="company"]  { border-left-color: #1e6b4a; }
.series-block[data-cat="column"]   { border-left-color: #7a5c4a; }
.series-block[data-cat="legal"]    { border-left-color: #4a3580; }

.series-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--paper-2);
}

.series-block-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}

.series-count-badge {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.series-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  border-bottom: 1px solid var(--paper-2);
}

.series-item:last-child { border-bottom: none; }

.series-item:hover { background: var(--paper-2); }

.series-num {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-2);
  padding: 0.18rem 0.55rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.series-item-title {
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.series-item-date {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.series-arrow {
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.series-item:hover .series-arrow {
  transform: translateX(3px);
  color: var(--ink);
}

/* Legacy filter styles (kept for compatibility) */
.articles-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink-soft);
  font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-btn--column:hover, .filter-btn--column.active {
  background: #7a5c4a;
  border-color: #7a5c4a;
  color: var(--paper);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(27,42,74,0.07), 0 2px 12px rgba(27,42,74,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--ink);
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,42,74,0.13), 0 2px 8px rgba(27,42,74,0.07);
}

/* Category top-border colors */
.article-card[data-cat="contracts"] { border-top-color: var(--wine); }
.article-card[data-cat="company"]   { border-top-color: #1e6b4a; }
.article-card[data-cat="ma"]        { border-top-color: #4a3580; }
.article-card[data-cat="dispute"]   { border-top-color: #c0392b; }
.article-card[data-cat="column"]    { border-top-color: #7a5c4a; }
.article-card[data-cat="news"]      { border-top-color: #2b5c8a; }

/* Card header: category badge + date */
.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--paper-2);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-2);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
}

.article-date {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Card body: title + excerpt */
.article-body {
  padding: 1.1rem 1.25rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-title {
  font-size: 0.97rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
  flex: 1;
}

.article-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.article-title a:hover { color: var(--wine); }

.article-excerpt {
  font-size: 0.81rem;
  color: var(--ink-soft);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer: read time + read more */
.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--paper-2);
  margin-top: auto;
}

.article-read-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.article-card:hover .article-read-more {
  gap: 0.5rem;
  color: var(--wine);
}

/* Column category — warm terracotta overrides */
.article-card[data-cat="column"] .cat-badge {
  background: #f5e6d8;
  color: #6b3e26;
}

.article-card[data-cat="column"] .article-title {
  font-family: 'Noto Serif JP', 'Georgia', serif;
  font-weight: 600;
  color: #3d2210;
}

.article-card[data-cat="column"]:hover .article-read-more {
  color: #7a5c4a;
}

.article-card[data-cat="column"]:hover {
  box-shadow: 0 8px 28px rgba(122,92,74,0.15), 0 2px 8px rgba(122,92,74,0.08);
}

/* ============================================================
   Article Detail Page
   ============================================================ */
.article-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-detail-main {}

.article-header {
  margin-bottom: 2rem;
}

.article-header .cat-badge {
  display: inline-block;
  background: rgba(139,26,46,0.12);
  color: var(--ink);
  border: 1px solid rgba(139,26,46,0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-header .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.article-content h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--wine);
}

.article-content h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li { margin-bottom: 0.4rem; }

.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

.article-content small {
  font-size: 0.75rem !important;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-soft);
  display: block;
}

.article-content strong { color: var(--ink); }

.article-content .note-box {
  background: var(--paper-2);
  border-left: 3px solid var(--wine);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

/* Sidebar */
.article-sidebar {}

.sidebar-widget {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wine);
  display: inline-block;
}

.sidebar-cat-list li {
  margin-bottom: 0.5rem;
}

.sidebar-cat-list a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.sidebar-cat-list a:hover { color: var(--ink); }

.sidebar-cat-count {
  background: var(--line);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  color: var(--ink-soft);
}

/* ============================================================
   Map Section
   ============================================================ */
.map-section {
  background: var(--paper-2);
}

.map-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-info {
  background: var(--ink);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.map-info-block {}

.map-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.map-info-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.map-info-addr {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.map-direction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,169,122,0.15);
  border: 1px solid rgba(201,169,122,0.4);
  color: var(--sand);
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  margin-top: auto;
  text-decoration: none;
}

.map-direction-btn:hover {
  background: rgba(201,169,122,0.25);
  border-color: var(--sand);
  transform: translateY(-2px);
}

.map-embed {
  min-height: 400px;
  background: var(--paper-2);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

@media (max-width: 768px) {
  .map-inner {
    grid-template-columns: 1fr;
  }
  .map-embed {
    min-height: 300px;
  }
  .map-embed iframe {
    min-height: 300px;
  }
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-section {
  background: var(--paper-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: rgba(139,26,46,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.contact-detail-text strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-detail-text span {
  display: block;
  line-height: 1.75;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group .required {
  color: #e53e3e;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--paper);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(139,26,46,0.15);
}

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

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit-btn:hover:not(:disabled) {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.25);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.form-message.success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

.form-message.error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
}

/* (legacy footer styles removed — new #footer / .footer-grid above) */

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-preview-img { max-width: 300px; }
  .profile-inner { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .article-detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  section { padding: 3.5rem 0; }

  #nav-toggle { display: flex; }
  #nav-menu-desktop { display: none; }

  .nav-wrap { gap: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .series-item-date { display: none; }
  .series-item-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem; }

  .page-hero { padding: calc(var(--header-h) + 2rem) 0 2.5rem; }

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

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .lang-switcher { display: none; }
}

/* ============================================================
   Article Content — Tables, Mermaid, Callouts
   ============================================================ */

/* ── テーブル ─────────────────────────────────────────────── */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-content table th {
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink-2);
}

.article-content table td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

.article-content table tr:nth-child(even) td {
  background: rgba(201, 169, 122, 0.07);
}

.article-content table tr:hover td {
  background: rgba(201, 169, 122, 0.13);
}

/* ── Mermaid 図 ───────────────────────────────────────────── */
.article-content .mermaid {
  background: var(--paper-2);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin: 1.75rem 0;
  overflow-x: auto;
  text-align: center;
}

.article-content .mermaid svg {
  max-width: 100%;
  height: auto;
}

/* ── ポイントボックス（blockquote利用） ───────────────────── */
.article-content blockquote {
  background: linear-gradient(135deg, rgba(27,42,74,0.04) 0%, rgba(201,169,122,0.08) 100%);
  border-left: 4px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  color: var(--ink);
}

.article-content blockquote p {
  margin: 0 0 0.5rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content blockquote strong:first-child {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand);
}

/* ── コードブロック（Mermaid以外） ───────────────────────── */
.article-content pre:not(.mermaid) {
  background: var(--ink);
  color: #e8e4da;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.article-content code:not(pre code) {
  background: rgba(201,169,122,0.15);
  color: var(--ink);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ── 顧問弁護士契約 グリッド ───────────────────── */
.retainer-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.8;
}

.retainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.retainer-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--sand);
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.retainer-card:hover {
  box-shadow: 0 8px 28px rgba(27,42,74,0.12);
  transform: translateY(-3px);
}

.retainer-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sand);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.retainer-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ink), #213260);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.retainer-icon i {
  color: var(--wine);
  font-size: 1.25rem;
}

.retainer-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.retainer-card-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .retainer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .retainer-grid { grid-template-columns: 1fr; }
}
