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

:root {
  --gold: #C38C00;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-text: #666666;
  --gray-border: #e0e0e0;
  --font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* ========================
   HEADER
   ======================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px 40px;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 40px;
  padding: 10px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: auto;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: opacity 0.2s;
  position: relative;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--black);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.lang-flag {
  font-size: 20px;
  line-height: 1;
}

.lang-chevron {
  transition: transform 0.2s;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--gray-light);
}

.lang-option.active {
  font-weight: 600;
}

/* Japanese font override */
body.ja {
  font-family: 'Noto Sans JP', 'IBM Plex Sans', Arial, Helvetica, sans-serif;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  font-size: 28px;
  font-weight: 600;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  text-align: center;
  padding: 80px 24px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-logo svg {
  width: 44px;
  height: auto;
}

.hero-logo-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.btn-primary:hover {
  background: #222;
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-outline svg {
  transition: transform 0.2s;
}

.btn-outline:hover svg {
  transform: translateX(3px);
}

/* ========================
   SUPERPOD SECTION
   ======================== */
.superpod-section {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 64px 48px;
}

.superpod-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.superpod-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
}

.superpod-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.superpod-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.nowrap {
  display: inline;
}

.superpod-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 16px;
}

/* ========================
   SERVICES SECTION
   ======================== */
.services-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: none;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

.service-info>p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-keys {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
}

.fatesign-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fatesign-link:hover {
  color: var(--gold);
}

.service-keys ul {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
}

.service-keys ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.service-keys ul li::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 10;
}

/* ========================
   COMPANY SECTION
   ======================== */
.company-section {
  padding: 80px 24px 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.company-table {
  border-top: 2px solid var(--black);
}

.company-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--gray-border);
  background: var(--gray-light);
}

.company-row:nth-child(even) {
  background: var(--white);
}

.company-label {
  font-size: 15px;
  font-weight: 700;
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
}

.company-value {
  font-size: 15px;
  padding: 24px 32px;
  line-height: 1.7;
}

.company-value ul {
  list-style: disc;
  padding-left: 20px;
}

.company-value ul li {
  margin-bottom: 4px;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .company-row {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-inner {
    padding: 8px 20px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .superpod-section {
    margin: 0 16px 60px;
    padding: 40px 24px;
    border-radius: 16px;
  }

  .company-row {
    grid-template-columns: 1fr;
  }

  .company-label {
    padding: 16px 24px 4px;
  }

  .company-value {
    padding: 4px 24px 16px;
  }
}