@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Syne:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

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

:root {
  --cream: #f5f2ec;
  --cream-dark: #ede9e0;
  --ink: #1a1a18;
  --ink-mid: #4a4a45;
  --ink-light: #8a8a82;
  --green: #2a5c45;
  --green-light: #3d7a5e;
  --gold: #b8963e;
  --white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Syne', 'Noto Sans JP', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.ja { font-family: var(--font-ja); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 56px;
  background: rgba(245,242,236,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,26,24,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-mid);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.lang-switch {
  display: flex; gap: 5px; align-items: center;
  margin-left: 12px; padding-left: 18px;
  border-left: 1px solid rgba(26,26,24,0.14);
}
.lang-switch a {
  font-size: 14px !important; font-weight: 600 !important;
  color: var(--ink-light) !important; text-transform: none !important;
  text-decoration: none; transition: color 0.2s;
}
.lang-switch a.active, .lang-switch a:hover { color: var(--green) !important; }
.lang-switch span { font-size: 13px; color: var(--ink-light); }

/* ── HERO ── */
.hero {
  min-height: 70vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px 56px 64px;
  position: relative; overflow: hidden;
}

/* Gradient animation - visible but subtle */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    135deg,
    #f5f2ec 0%,
    #deeee6 20%,
    #c8e0d2 38%,
    #e8e0cc 58%,
    #f0e8d8 75%,
    #f5f2ec 100%
  );
  background-size: 300% 300%;
  animation: gradientFlow 16s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  33%  { background-position: 100% 0%; }
  66%  { background-position: 100% 100%; }
  100% { background-position: 0% 50%; }
}

.hero-content { position: relative; z-index: 1; }
.hero-label {
  font-size: 15px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); max-width: 860px; margin-bottom: 36px;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  max-width: 560px; color: var(--ink-mid);
  font-size: 18px; line-height: 1.8; font-weight: 400;
  border-left: 2px solid var(--green); padding-left: 22px;
}
.hero-scroll {
  position: absolute; bottom: 40px; right: 56px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-light);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 44px; background: var(--ink-light);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── SECTIONS ── */
section { padding: 88px 56px; }
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--green); }

/* ── MISSION ── */
.mission { background: var(--green); color: var(--white); padding: 96px 56px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mission .section-label { color: rgba(255,255,255,0.5); }
.mission .section-title { color: var(--white); }
.mission .section-title em { color: var(--cream); }
.mission-text { color: rgba(255,255,255,0.82); font-size: 18px; line-height: 1.8; }
.mission-pillars { display: flex; flex-direction: column; gap: 32px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar-number {
  font-family: var(--font-display); font-size: 38px; font-weight: 300;
  color: rgba(255,255,255,0.2); line-height: 1; min-width: 48px;
}
.pillar-content h4 {
  font-size: 16px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white); margin-bottom: 5px;
}
.pillar-content p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ── FEATURED PROJECT ── */
.featured { background: var(--ink); padding: 80px 56px; }
.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 56px;
}
.featured-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(184,150,62,0.4);
  padding: 5px 12px; border-radius: 2px; margin-bottom: 24px;
}
.featured h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px); font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.featured h2 em { font-style: italic; color: var(--gold); }
.featured-desc { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 28px; }
.featured-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(184,150,62,0.4); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.featured-link:hover { opacity: 0.75; }
.featured-meta { display: flex; flex-direction: column; gap: 28px; }
.featured-meta-item dt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 5px;
}
.featured-meta-item dd { font-size: 16px; color: rgba(255,255,255,0.82); line-height: 1.55; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-pilot .dot { background: #4ade80; }
.pill-pilot { color: #4ade80; }
.pill-launch .dot { background: var(--gold); }
.pill-launch { color: var(--gold); }
.pill-clinical .dot { background: #60a5fa; }
.pill-clinical { color: #60a5fa; }
.pill-planned .dot { background: rgba(255,255,255,0.35); }
.pill-planned { color: rgba(255,255,255,0.55); }
.pill-labs .dot { background: #c084fc; }
.pill-labs { color: #c084fc; }

/* light pill variants (on cream bg) */
.pill-pilot-light { color: #166534; }
.pill-pilot-light .dot { background: #166534; }
.pill-launch-light { color: var(--gold); }
.pill-launch-light .dot { background: var(--gold); }
.pill-clinical-light { color: #1d4ed8; }
.pill-clinical-light .dot { background: #1d4ed8; }
.pill-planned-light { color: var(--ink-light); }
.pill-planned-light .dot { background: var(--ink-light); }
.pill-labs-light { color: #7e22ce; }
.pill-labs-light .dot { background: #7e22ce; }

/* ── PRODUCTS ── */
.products { background: var(--cream); }
.cat-section { margin-bottom: 72px; }
.cat-section:last-child { margin-bottom: 0; }
.cat-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(26,26,24,0.12);
}
.cat-header h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink);
}
.cat-header p { font-size: 15px; color: var(--ink-light); }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(26,26,24,0.08);
}
.cat-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.cat-grid.one-col { grid-template-columns: 1fr; background: none; }
.product-card {
  background: var(--cream); padding: 40px 36px;
  transition: background 0.25s;
}
.product-card:hover { background: var(--white); }
.product-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 22px;
}
.product-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.product-icon { font-size: 48px; margin-bottom: 18px; display: block; line-height: 1; }
.product-card h4 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 7px; line-height: 1.2;
}
.product-card .product-cat {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 14px;
}
.product-card p { font-size: 16px; color: var(--ink-mid); line-height: 1.75; }
.product-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); background: rgba(42,92,69,0.08);
  padding: 4px 10px; border-radius: 2px; margin-top: 16px;
}
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--green);
  text-decoration: none; margin-top: 16px;
  border-bottom: 1px solid rgba(42,92,69,0.3); padding-bottom: 1px;
  transition: opacity 0.2s;
}
.product-link:hover { opacity: 0.7; }

/* ── DOMAINS ── */
.domains { background: var(--cream); }
.domains-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: rgba(26,26,24,0.08); margin-top: 56px;
}
.domain-card {
  background: var(--cream); padding: 48px 44px; transition: background 0.25s;
}
.domain-card:hover { background: var(--white); }
.domain-number {
  font-family: var(--font-display); font-size: 52px; font-weight: 300;
  color: rgba(42,92,69,0.12); line-height: 1; margin-bottom: 14px;
}
.domain-card h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; line-height: 1.2;
}
.domain-en {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 18px; display: block;
}
.domain-card > p { font-size: 16px; color: var(--ink-mid); line-height: 1.75; margin-bottom: 20px; }
.domain-items { display: flex; flex-direction: column; gap: 8px; }
.domain-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-mid); line-height: 1.5;
}
.domain-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); flex-shrink: 0; margin-top: 7px;
}

/* ── PROJECTS ── */
.projects { background: var(--cream-dark); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(26,26,24,0.08); margin-top: 56px;
}
.project-card {
  background: var(--cream-dark); padding: 36px 32px; transition: background 0.25s;
}
.project-card:hover { background: var(--white); }
.project-domain-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block;
}
.project-card h4 {
  font-family: var(--font-display); font-size: 20px; font-weight: 400;
  color: var(--ink); margin-bottom: 10px; line-height: 1.2;
}
.project-card p { font-size: 15px; color: var(--ink-mid); line-height: 1.7; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green);
  text-decoration: none; margin-top: 14px;
  border-bottom: 1px solid rgba(42,92,69,0.3); padding-bottom: 1px;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 14px;
}
.proj-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.ps-pilot .dot { background: #166534; }
.ps-pilot { color: #166534; }
.ps-dev .dot { background: var(--gold); }
.ps-dev { color: var(--gold); }
.ps-plan .dot { background: var(--ink-light); }
.ps-plan { color: var(--ink-light); }
.ps-labs .dot { background: #7e22ce; }
.ps-labs { color: #7e22ce; }

@media (max-width: 960px) {
  .domains-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── NEWS ── */
.news { background: var(--cream-dark); }
.news-list { margin-top: 44px; }
.news-item {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 32px; align-items: start;
  padding: 28px 0; border-top: 1px solid rgba(26,26,24,0.1);
}
.news-item:last-child { border-bottom: 1px solid rgba(26,26,24,0.1); }
.news-date { font-size: 15px; font-weight: 500; color: var(--ink-light); padding-top: 3px; }
.news-item h4 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; color: var(--ink);
  line-height: 1.3; margin-bottom: 8px;
}
.news-item p { font-size: 16px; color: var(--ink-mid); line-height: 1.7; }
.news-all-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 40px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid var(--green); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.news-all-link:hover { opacity: 0.7; }

/* ── COMPANY STRIP ── */
.company-strip {
  background: var(--ink); padding: 72px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center;
}
.company-strip .section-label { color: rgba(255,255,255,0.4); }
.company-strip .section-title { color: var(--white); margin-bottom: 0; }
.company-strip .section-title em { color: var(--gold); }
.company-info { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px 44px; }
.info-row dt {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-bottom: 4px;
}
.info-row dd { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.55; }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 56px; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.38); text-decoration: none;
}
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.22); letter-spacing: 0.03em; }

/* ── PAGE HERO ── */
.page-hero { padding: 150px 56px 72px; border-bottom: 1px solid rgba(26,26,24,0.08); }

/* ── COMPANY TABLE ── */
.company-table { width: 100%; border-collapse: collapse; margin-top: 44px; }
.company-table tr { border-top: 1px solid rgba(26,26,24,0.1); }
.company-table tr:last-child { border-bottom: 1px solid rgba(26,26,24,0.1); }
.company-table td { padding: 22px 0; font-size: 17px; line-height: 1.65; vertical-align: top; }
.company-table td:first-child {
  width: 220px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); padding-right: 36px; padding-top: 24px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label { animation: fadeUp 0.6s ease both; }
.hero h1 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.6s 0.2s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 18px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .hero, section, .mission, .featured { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: clamp(32px, 8vw, 52px); }
  .mission-grid { grid-template-columns: 1fr; gap: 44px; }
  .featured-inner { grid-template-columns: 1fr; gap: 40px; padding: 36px 24px; }
  .cat-grid, .cat-grid.two-col { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .company-strip { grid-template-columns: 1fr; padding: 56px 24px; }
  .company-info { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 10px; padding: 24px; text-align: center; }
  .company-table td:first-child { width: 120px; font-size: 11px; }
}
