/* ── Variables ── */
:root {
  --font: 'Noto Sans JP', sans-serif;
  --white: #FFFFFF;
  --ivory: #F9F8F5;
  --gray-50: #F3F2EF;
  --gray-100: #E5E4E0;
  --gray-300: #C5C4BF;
  --gray-500: #88877F;
  --gray-700: #555550;
  --charcoal: #1A1A1A;
  --black: #1A1A1A;
  --green: #7F7F7F;
  --green-mid: #555555;
  --green-light: #82C866;
  --green-subtle: #F0F0F0;
  --header-h: 64px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.8;
  font-size: 16px;
  text-wrap: pretty;
}
a { text-decoration: none; color: inherit; }

/* ── Container ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 60px); }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
}
.header-inner {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; padding: 0; }
.logo img { height: var(--header-h); width: var(--header-h); object-fit: contain; display: block; }
.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--gray-700); transition: color 0.2s;
}
.nav a:hover { color: var(--black); }

/* ── Label ── */
.label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green-light);
  display: block; margin-bottom: 16px;
  font-family: var(--font);
}

/* ── Hero Band ── */
.hero-band {
  position: relative;
  height: 60vh;
  min-height: 360px;
  overflow: hidden;
  background: #111111;
  display: flex;
  align-items: flex-end;
}
.hero-band-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,10,0.78) 0%, rgba(10,20,10,0.45) 55%, rgba(10,20,10,0.15) 100%);
}
.hero-band-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 80px);
  padding-top: var(--header-h);
}
.hero-band-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.hero-band-line span.accent-line {
  width: 28px; height: 1.5px;
  background: var(--green-light); display: inline-block;
}
.hero-band-line span.accent-text {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-family: var(--font);
}
.hero-band h1 {
  font-size: clamp(28px, 4vw, 52px); font-weight: 900;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1.2; font-family: var(--font);
}

/* ── Section ── */
.section { padding: clamp(80px, 12vw, 140px) 0; }

/* ── Section headings ── */
.section-label { color: var(--green); }
.section-heading {
  font-size: clamp(24px, 3vw, 36px); font-weight: 900;
  margin-bottom: clamp(40px, 6vw, 64px);
  letter-spacing: -0.01em; line-height: 1.3;
}

/* ── Overview Table ── */
.overview-table { width: 100%; border-collapse: collapse; }
.overview-table tr { border-bottom: 1px solid var(--gray-100); }
.overview-table th {
  width: 200px; padding: 20px 0; text-align: left;
  font-size: 13px; font-weight: 500; color: var(--gray-500);
  vertical-align: top; letter-spacing: 0.05em;
  font-family: var(--font);
}
.overview-table td {
  padding: 20px 0 20px 24px;
  font-size: 14px; line-height: 1.9; color: var(--black);
}

/* ── Representative Grid ── */
.rep-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.rep-photo-wrap { text-align: center; }
.rep-photo {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 20px;
  border: 3px solid var(--gray-100);
}
.rep-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 10%;
  display: block;
}
.rep-name { font-size: 15px; font-weight: 700; }
.rep-title { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ── Message ── */
.message-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green-light);
  margin-bottom: 20px;
}
.message-text {
  font-size: 15px; line-height: 2.1; color: var(--black);
  margin-bottom: 20px;
}
.message-sign { font-size: 14px; font-weight: 700; margin-top: 28px; }
.sign-name { font-family: 'Yuji Mai', serif; font-size: 22px; font-weight: 400; }

/* ── Timeline ── */
.career-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green-light);
  margin-bottom: 32px;
}
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 8px; bottom: 0;
  width: 1px; background: var(--gray-100);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green);
  z-index: 1;
}
.timeline-year {
  font-size: 12px; font-weight: 700; color: var(--green-light);
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.timeline-company { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.timeline-desc { font-size: 13px; color: var(--gray-500); line-height: 1.9; }

/* ── Map ── */
.map-section { display: block; }
.map-section iframe {
  width: 100%; height: 420px; display: block;
  border: none; filter: grayscale(15%);
}

/* ── Footer ── */
.footer-wrap { background: var(--charcoal); color: var(--white); padding: 80px 0 40px; }
.footer-wrap a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-wrap a:hover { color: var(--white); }

/* ── Scroll Animations ── */
.anim {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim.in-view, .anim-left.in-view, .anim-right.in-view {
  opacity: 1; transform: none;
}
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; cursor: pointer;
  background: none; border: none; padding: 0;
  gap: 5px; z-index: 200;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--black);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu Overlay ── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column; justify-content: center; align-items: center;
  gap: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1; pointer-events: auto;
}
.mobile-menu a {
  font-size: clamp(28px, 8vw, 40px); font-weight: 700;
  color: var(--black); letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-menu-line {
  width: 40px; height: 2px; background: var(--green-light);
  margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .header .hamburger { display: flex !important; position: absolute; top: 10px; right: 24px; }
  .mobile-menu { display: flex; }
  .rep-grid { grid-template-columns: 1fr; }
  .overview-table th { width: 120px; font-size: 12px; }
  .overview-table td { font-size: 13px; padding-left: 16px; }
  .footer-grid { flex-direction: column !important; align-items: flex-start !important; }
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; }
  .map-section iframe { height: 300px; }
}
