/* =====================================================================
   style.css — Alphabet Godo LLC Website
   Color palette:
     Orange:    #E8590C  (primary accent)
     Dark:      #1a1a1a  (company section bg)
     Light Gray:#f5f5f5  (hero bg)
     White:     #ffffff
   ===================================================================== */

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

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ─── Scroll offset for fixed header ───────────────────────────────── */
section { scroll-margin-top: 70px; }

/* ─── Typography ────────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 700; line-height: 1.3; }

/* ─── Header ────────────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: box-shadow 0.3s;
}

#header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #E8590C;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Nav */
.nav-spacer { flex: 1; }

#nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #E8590C;
}

/* Language toggle button */
.lang-btn {
  padding: 5px 14px;
  border: 2px solid #E8590C;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #E8590C;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.lang-btn:hover {
  background: #E8590C;
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 2px;
  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); }

/* ─── Hero Section ──────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  background: #f0eeeb;
  position: relative;
  overflow: hidden;
}

.hero-images {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  height: 340px;
  margin: 0 auto 48px;
  border-radius: 8px;
  overflow: hidden;
}

.hero-images img {
  flex: 1;
  object-fit: cover;
  height: 100%;
  border-radius: 6px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #E8590C;
  margin-bottom: 16px;
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #555;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: #E8590C;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 3px 12px rgba(232,89,12,0.35);
}

.hero-cta:hover {
  background: #c9480a;
  transform: translateY(-2px);
}

/* ─── Services Section ──────────────────────────────────────────────── */
#services {
  background: #E8590C;
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.services-header {
  margin-bottom: 48px;
}

.services-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.services-header p {
  font-size: 1.05rem;
  opacity: 0.92;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  padding: 8px;
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ─── Company Section ───────────────────────────────────────────────── */
#company {
  background: #1a1a1a;
  color: #e8e8e8;
  padding: 0;
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 440px;
}

.company-info {
  padding: 72px 56px 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-info h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #E8590C;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-block {
  border-left: 3px solid #E8590C;
  padding-left: 14px;
}

.detail-label {
  font-size: 0.82rem;
  color: #E8590C;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

.detail-row {
  display: flex;
  gap: 8px;
  font-size: 0.93rem;
  color: #ddd;
  line-height: 1.6;
}

.detail-row .detail-label-inline {
  color: #E8590C;
  font-weight: 600;
  flex-shrink: 0;
}

.phone-note {
  font-size: 0.78rem;
  color: #999;
  margin-top: 4px;
  line-height: 1.6;
}

.company-photo {
  position: relative;
  overflow: hidden;
}

.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Contact Section ───────────────────────────────────────────────── */
#contact {
  background: #E8590C;
  padding: 80px 24px;
  text-align: center;
}

#contact h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

#contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  font-size: 0.97rem;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-field::placeholder {
  color: rgba(255,255,255,0.75);
}

.form-field:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.22);
}

textarea.form-field {
  resize: vertical;
  min-height: 140px;
}

.form-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.submit-btn {
  padding: 13px 42px;
  background: #fff;
  color: #E8590C;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  letter-spacing: 0.05em;
}

.submit-btn:hover:not(:disabled) {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 24px;
  text-align: center;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
}

.form-status.success {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
}

.form-status.error {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ─── Map / Footer Section ──────────────────────────────────────────── */
#map-footer {
  background: #111;
}

.map-section {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-bar {
  background: #111;
  color: #888;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  border-top: 1px solid #222;
}

/* ─── Utility ───────────────────────────────────────────────────────── */
.section-divider {
  width: 48px;
  height: 3px;
  background: currentColor;
  margin: 12px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

/* ─── Responsive — Tablet (max 900px) ──────────────────────────────── */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 540px;
  }

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

  .company-info {
    padding: 56px 32px;
  }

  .company-photo {
    height: 280px;
  }
}

/* ─── Responsive — Mobile (max 680px) ──────────────────────────────── */
@media (max-width: 680px) {
  /* Header */
  #nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 2px solid #E8590C;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    gap: 2px;
  }

  #nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .lang-btn {
    margin-top: 8px;
    padding: 10px 16px;
    text-align: center;
    border-radius: 6px;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  #home { padding: 90px 16px 48px; }

  .hero-images {
    height: 220px;
    gap: 6px;
    margin-bottom: 32px;
  }

  /* Company */
  .company-info { padding: 48px 24px; }

  /* Contact */
  #contact { padding: 60px 16px; }

  .form-submit-wrap { justify-content: center; }

  /* Map */
  .map-section { height: 280px; }
}
