@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #000;
  background: #fff;
  overflow-x: hidden;
  padding-bottom: 64px;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul, ol, dl {
  list-style: none;
}

/* =====================
   Announce Bar
   ===================== */
.announce-bar {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* =====================
   Site Header
   ===================== */
.site-header {
  position: sticky;
  top: 32px;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =====================
   Hamburger / Menu Toggle
   ===================== */
.menu-toggle,
.bottom-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  min-width: 44px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =====================
   Fullscreen Menu
   ===================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  text-align: center;
}

.menu-dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-dl dt {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.menu-dl dt:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-dl dt a {
  display: block;
  color: #fff;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 24px;
  transition: letter-spacing 0.2s ease, opacity 0.2s ease;
}

.menu-dl dt a:hover {
  letter-spacing: 0.01em;
  opacity: 0.7;
}

/* =====================
   Hero Section
   ===================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #000;
}

.hero-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(120px, 30vw, 320px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #f5f5f5;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  align-items: center;
}

.hero-images {
  position: relative;
  height: 500px;
}

.hero-fig {
  position: absolute;
  overflow: hidden;
  border: 1px solid #000;
}

.hero-fig-1 {
  width: 62%;
  height: 340px;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-fig-2 {
  width: 55%;
  height: 280px;
  bottom: 0;
  right: 0;
  z-index: 3;
  background: #f0f0f0;
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fig-placeholder {
  background: #f0f0f0;
}

.placeholder-egg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.egg-b {
  background: linear-gradient(135deg, #d0d0d0 0%, #b8b8b8 100%);
}

.hero-copy {
  padding: 0 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  max-width: 36ch;
}

.hero-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: 1px solid #000;
  min-height: 48px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =====================
   Content Section (main body)
   ===================== */
.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.content-body {
  padding: 64px 48px 64px 0;
  min-width: 0;
}

/* Styles for page.content sections */
.content-body section {
  padding: 64px 0;
  border-top: 1px solid #000;
}

.content-body section:first-child {
  border-top: none;
}

.content-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.content-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  margin-top: 32px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  margin-bottom: 16px;
  max-width: 70ch;
}

.content-body ul,
.content-body ol {
  padding-left: 0;
  margin-bottom: 16px;
}

.content-body ul li,
.content-body ol li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  max-width: 70ch;
}

.content-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #000;
  font-weight: 400;
}

.content-body ol {
  counter-reset: item;
  list-style: none;
}

.content-body ol li {
  counter-increment: item;
}

.content-body ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  top: 8px;
}

.content-body figure {
  margin: 32px 0;
  border: 1px solid #000;
}

.content-body figure img {
  width: 100%;
  height: auto;
  display: block;
}

.content-body figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #555;
  border-top: 1px solid #000;
}

.content-body blockquote {
  border-left: 3px solid #000;
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: #333;
}

.content-body strong {
  font-weight: 600;
}

.content-body aside {
  background: #f8f8f8;
  border: 1px solid #000;
  padding: 24px;
  margin: 24px 0;
}

.content-body aside p {
  margin-bottom: 8px;
}

.content-body aside p:last-child {
  margin-bottom: 0;
}

/* =====================
   Aside (sidebar)
   ===================== */
.content-aside {
  position: sticky;
  top: 96px;
  padding: 64px 0 64px 32px;
  border-left: 1px solid #000;
}

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

.aside-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-nav-list li a {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #000;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  transition: font-weight 0.2s ease, padding-left 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-list li a:hover {
  font-weight: 600;
  padding-left: 8px;
}

/* =====================
   Small eyebrow labels (h2 前的 small)
   ===================== */
small.aside-eyebrow,
small.footer-eyebrow {
  display: block;
}

/* For content body small+h2 pattern injected by build2 */
.content-body small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

/* =====================
   Fade-in animation (JS controlled)
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .observe-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

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

/* =====================
   Bottom Fixed Nav
   ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #000;
  padding: 0 24px;
  height: 64px;
}

.bottom-brand-link {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bottom-nav-actions {
  display: flex;
  align-items: center;
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 64px 24px 0;
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.footer-dl dt a,
.footer-links li a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  padding: 6px 0;
  transition: color 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-dl dt a:hover,
.footer-links li a:hover {
  color: #fff;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.contact-list li a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.contact-list li a:hover {
  color: #fff;
}

address {
  font-style: normal;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* =====================
   Responsive - Tablet
   ===================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

  .hero-images {
    height: 360px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-copy {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .hero-sub {
    text-align: center;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    padding: 32px 0;
    border-left: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
  }

  .content-body {
    padding: 48px 0;
  }

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

/* =====================
   Responsive - Mobile
   ===================== */
@media (max-width: 600px) {
  .announce-bar {
    font-size: 0.6875rem;
    padding: 6px 12px;
  }

  .site-header {
    top: 28px;
    padding: 10px 16px;
  }

  .hero-images {
    height: 260px;
  }

  .hero-fig-1 {
    height: 220px;
  }

  .hero-fig-2 {
    height: 180px;
  }

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

  .content-section {
    padding: 0 16px;
  }

  .content-body {
    padding: 32px 0;
  }

  .content-body section {
    padding: 40px 0;
  }

  .content-body h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .bottom-nav {
    padding: 0 16px;
  }

  html {
    scroll-padding-top: 64px;
  }
}

/* =====================
   prefers-reduced-motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scroll-hint {
    animation: none;
  }

  .hero-cta,
  .menu-dl dt a,
  .aside-nav-list li a,
  .footer-dl dt a,
  .footer-links li a,
  .contact-list li a {
    transition: none;
  }
}
