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

:root {
  --bg: #faf9f7;
  --text: #2c2c2c;
  --sub: #6b6b6b;
  --light: #999;
  --accent: #3C74B5;
  --dark: #efefef;
  --line: #e0ddd8;
  --font-sans: 'YakuHanJP', 'Noto Sans JP', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 960px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 2.0;
  letter-spacing: 0.04em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  flex-shrink: 0;
}

.logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--sub);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--sub);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px 28px;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--sub);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ─── Hero ─── */
.hero {
  padding: 180px 0 160px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Watercolor background (fixed) */
.hero-watercolor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(50px);
  z-index: 0;
}

.hero-watercolor span {
  position: absolute;
  border-radius: 50%;
  animation: watercolor infinite ease-in-out;
}

.hero-watercolor span:nth-child(1) {
  width: 500px; height: 500px;
  right: -100px; top: -80px;
  background: radial-gradient(circle, rgba(60, 116, 181, 0.5) 0%, transparent 70%);
  animation-duration: 18s;
}

.hero-watercolor span:nth-child(2) {
  width: 400px; height: 400px;
  right: 100px; bottom: -60px;
  background: radial-gradient(circle, rgba(60, 116, 181, 0.4) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: 3s;
}


.hero-watercolor span:nth-child(3) {
  width: 350px; height: 350px;
  right: 200px; top: 30%;
  background: radial-gradient(circle, rgba(72, 180, 150, 0.35) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: 6s;
}

@keyframes watercolor {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
  25%  { transform: translate(30px, -20px) scale(1.15) rotate(5deg); opacity: 1; }
  50%  { transform: translate(-20px, 15px) scale(0.9) rotate(-3deg); opacity: 0.85; }
  75%  { transform: translate(15px, 25px) scale(1.1) rotate(4deg); opacity: 1; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
}

/* Particles (fixed) */
.hero-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.hero-particles span {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  filter: blur(6px);
  animation: drift infinite ease-in-out;
}

.hero-particles span:nth-child(1) { left: 70%; top: 20%; width: 8px; height: 8px; animation-delay: 0s; animation-duration: 10s; }
.hero-particles span:nth-child(2) { left: 85%; top: 45%; width: 5px; height: 5px; animation-delay: 1.5s; animation-duration: 8s; }
.hero-particles span:nth-child(3) { left: 55%; top: 65%; width: 10px; height: 10px; animation-delay: 3s; animation-duration: 12s; }
.hero-particles span:nth-child(4) { left: 92%; top: 15%; width: 6px; height: 6px; animation-delay: 4.5s; animation-duration: 9s; }
.hero-particles span:nth-child(5) { left: 75%; top: 55%; width: 12px; height: 12px; animation-delay: 0.5s; animation-duration: 14s; }
.hero-particles span:nth-child(6) { left: 50%; top: 30%; width: 5px; height: 5px; animation-delay: 6s; animation-duration: 11s; }
.hero-particles span:nth-child(7) { left: 82%; top: 75%; width: 7px; height: 7px; animation-delay: 2s; animation-duration: 10s; }
.hero-particles span:nth-child(8) { left: 63%; top: 10%; width: 6px; height: 6px; animation-delay: 3.5s; animation-duration: 13s; }

@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 0); }
  20%  { opacity: 0.5; }
  50%  { opacity: 0.35; transform: translate(-15px, -40px); }
  80%  { opacity: 0.5; }
  100% { opacity: 0; transform: translate(10px, -80px); }
}

.hero .inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
}

.hero-def {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sub);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero-copy {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
}

.hero-copy::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-top: 32px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--sub);
  line-height: 2.1;
  max-width: 540px;
  margin-bottom: 44px;
}

.hero-link {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.hero-link:hover {
  border-bottom-color: var(--accent);
}

/* Hero reveal stagger */
.hero .reveal:nth-child(1) { transition-delay: 0s; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero .reveal:nth-child(5) { transition-delay: 0.45s; }

/* ─── Section common ─── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  color: var(--text);
}

.section-heading span {
  display: inline-block;
}

/* ─── Problems ─── */
.problems-list {
  list-style: none;
}

.problems-list li {
  position: relative;
  padding: 18px 0 18px 28px;
  font-size: 1rem;
  color: var(--sub);
  line-height: 2.0;
}


.problems-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--light);
}

.problems-list li span {
  display: inline-block;
}

/* ─── Strengths ─── */
.strength-item {
  padding: 36px 0;
}

.strength-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.strength-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--text);
}

.strength-body {
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2.1;
}

.causal-block {
  margin-top: 56px;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(60, 116, 181, 0.04), rgba(60, 116, 181, 0.01));
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2;
}

.evidence-block {
  margin-top: 56px;
}

.evidence-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  gap: 20px;
}

.evidence-row:first-child {
  border-top: 1px solid var(--line);
}

.evidence-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--light);
  min-width: 160px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.evidence-value {
  color: var(--sub);
}

/* ─── Services ─── */
.service-item {
  padding: 28px 0;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text);
}

.service-body {
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2.0;
}

/* ─── Fields ─── */
.fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
  font-size: 1rem;
  color: var(--sub);
}

.fields-list li:not(:last-child)::after {
  content: "/";
  margin: 0 0.6em;
  color: var(--light);
}

/* ─── FAQ ─── */
.faq-item {
  padding: 28px 0;
}

.faq-item dt {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.faq-item dt::before {
  content: "Q.";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
  margin-right: 8px;
}

.faq-item dd {
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2.0;
}

/* ─── Glossary ─── */
.glossary-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.glossary-heading {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.glossary-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.glossary-item:first-of-type {
  border-top: 1px solid var(--line);
}

.glossary-item dt {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.glossary-item dd {
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 1.9;
}

/* ─── Profile (dark) ─── */
.profile-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.profile-section .section-heading {
  color: var(--text);
}

.profile-wrap {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px 40px;
  align-items: start;
}

.profile-header {
  display: contents;
}

.profile-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 2;
}

.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  grid-row: 1 / 3;
}

.profile-info {
  grid-column: 2;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.profile-title {
  font-size: 0.88rem;
  color: var(--sub);
  margin-bottom: 0;
  letter-spacing: 0.06em;
}

.profile-sep {
  margin: 0 0.4em;
  color: var(--light);
  font-weight: 300;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2.1;
}

.profile-bio p {
  margin-bottom: 1rem;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

/* Career timeline */
.career {
  margin-top: 56px;
  padding-top: 48px;
}

.career-heading {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--sub);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.career-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  align-items: baseline;
}

.career-item:first-of-type {
  border-top: 1px solid #ddd;
}

.career-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  min-width: 28px;
  flex-shrink: 0;
}

.career-year {
  min-width: 90px;
}

.career-content {
  flex: 1;
}

.career-org {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.career-role {
  font-size: 0.88rem;
  color: var(--sub);
  line-height: 1.8;
}

/* Vision & Mission */
.vision-mission {
  margin-top: 72px;
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.vm-block {
  padding: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
}

.vm-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 0;
}

.vm-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vm-heading {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: var(--text);
}

.vm-body {
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2.1;
}

.vm-list {
  list-style: none;
  font-size: 0.95rem;
  color: var(--sub);
  line-height: 2.1;
}

.vm-list li {
  padding: 0 0 6px 1.2em;
  position: relative;
}

.vm-list li:last-child {
  padding-bottom: 0;
}

.vm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1em;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

/* Company info */
.company {
  margin-top: 72px;
  padding-top: 56px;
}

.company-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  color: var(--text);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid #ddd;
}

.company-table th {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sub);
  text-align: left;
  padding: 14px 0;
  vertical-align: top;
  white-space: nowrap;
  width: 120px;
  letter-spacing: 0.02em;
}

.company-table td {
  font-size: 0.95rem;
  color: var(--text);
  padding: 16px 0 16px 20px;
  line-height: 1.9;
}

.company-table td a {
  color: var(--accent);
  transition: opacity 0.25s;
}

.company-table td a:hover {
  opacity: 0.7;
}

.company-sub {
  font-size: 0.85rem;
  color: var(--sub);
}

/* ─── CTA (dark) ─── */
.cta-section {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 80px 0 100px;
  border-top: 1px solid #ddd;
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-body {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2.1;
  margin-bottom: 44px;
  max-width: 580px;
}

.cta-link {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.25s;
}

.cta-link:hover { opacity: 0.7; }

/* ─── Footer ─── */
.footer {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #ddd;
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-logo .logo-divider {
  background: rgba(255,255,255,0.2);
}

.footer-logo .logo-tagline {
  color: rgba(255,255,255,0.5);
}

.footer-info {
  font-size: 0.85rem;
  color: var(--sub);
  line-height: 2.0;
  text-align: right;
  font-style: normal;
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--sub);
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
}

/* ─── Responsive ─── */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }


  .hero {
    padding: 140px 0 100px;
    min-height: auto;
  }

  .hero-copy {
    font-size: 2rem;
  }

  .hero-watercolor {
    opacity: 0.5;
  }

  .section { padding: 72px 0; }

  .profile-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .profile-photo {
    width: 72px;
    height: 72px;
    grid-row: auto;
  }

  .evidence-row {
    flex-direction: column;
    gap: 4px;
  }

  .evidence-label {
    min-width: unset;
  }

  .cta-section { padding: 64px 0 80px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  .vision-mission {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .career-year {
    min-width: 70px;
    font-size: 0.8rem;
  }

  .footer-info {
    text-align: left;
  }
}
