/* ===========================
   Elmship Corporate Site - Rich Version
   =========================== */

:root {
  --green-primary: #68B04D;
  --green-dark: #4A8A35;
  --green-darker: #1a3a2a;
  --green-light: #E8F5E3;
  --green-50: #F0F8ED;
  --dark-bg: #0d1f15;
  --dark-card: #142920;
  --dark-surface: #1a352a;
  --text-primary: #e8efe9;
  --text-secondary: #a3b8a8;
  --text-light: #6b8570;
  --white: #FFFFFF;
  --gray-50: #0f1f16;
  --gray-100: #162b1f;
  --gray-200: #1e3829;
  --gray-800: #0a1610;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(104, 176, 77, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  background: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-light);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 31, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: rgba(104, 176, 77, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  transition: width var(--transition);
}

.header-nav a:hover {
  color: var(--green-primary);
}

.header-nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-jewelry.jpeg') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 16, 0.7) 0%,
      rgba(10, 22, 16, 0.5) 40%,
      rgba(10, 22, 16, 0.6) 70%,
      rgba(10, 22, 16, 0.9) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 120px 24px 80px;
}

.hero-logo {
  width: 280px;
  height: auto;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-tagline {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.8s ease-out 0.15s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--green-primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.8s ease-out 0.45s both;
  border: 1px solid rgba(104, 176, 77, 0.4);
}

.hero-cta:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(104, 176, 77, 0.35);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* Wave video overlay */
.hero-wave-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

/* Wave animation */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-1 {
  animation: waveFlow 8s ease-in-out infinite;
}

.wave-2 {
  animation: waveFlow 6s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.wave-3 {
  animation: waveFlow 10s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes waveFlow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

/* Smoke/mist overlay */
.hero-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(13, 31, 21, 0.9) 0%,
    rgba(13, 31, 21, 0.4) 30%,
    rgba(13, 31, 21, 0.1) 60%,
    transparent 100%
  );
  animation: mistPulse 6s ease-in-out infinite;
}

@keyframes mistPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ===========================
   SECTION COMMON
   =========================== */
.section {
  padding: 100px 0;
  background: var(--dark-bg);
}

.section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: 0.06em;
}

.section-title span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ===========================
   ABOUT
   =========================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: 60px;
}

.about-lead {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

.value-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--dark-card);
  border-radius: var(--radius);
  border: 1px solid rgba(104, 176, 77, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(104, 176, 77, 0.3);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--green-primary);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-img {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.value-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.value-item:hover .value-img img {
  transform: scale(1.08);
}

.value-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   STATS
   =========================== */
.stats-section {
  background: linear-gradient(135deg, rgba(13, 31, 21, 0.95), rgba(20, 45, 30, 0.95)), url('assets/images/hero-jewelry.jpeg') center/cover !important;
  padding: 80px 0;
  border-top: 1px solid rgba(104, 176, 77, 0.15);
  border-bottom: 1px solid rgba(104, 176, 77, 0.15);
  position: relative;
  overflow: hidden;
}

.stats-wave-top,
.stats-wave-bottom {
  line-height: 0;
  overflow: hidden;
}

.stats-wave-top svg,
.stats-wave-bottom svg {
  width: 200%;
  height: 60px;
  display: block;
  animation: waveFlow 8s ease-in-out infinite;
}

/* Section Separators — luxury ship interiors */
.section-separator {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.section-separator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.section-separator img {
  opacity: 0.45;
}

.separator-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(13, 31, 21, 0.8) 100%),
    linear-gradient(to bottom, rgba(13, 31, 21, 0.85) 0%, transparent 20%, transparent 80%, rgba(13, 31, 21, 0.85) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ===========================
   BUSINESS
   =========================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.business-card {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(104, 176, 77, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--green-primary);
}

.business-card:hover .business-card-image img {
  transform: scale(1.08);
}

.business-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.business-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--dark-card), transparent);
  z-index: 1;
}

.business-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card-body {
  padding: 28px 32px 32px;
}

.business-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.business-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.business-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-tags li {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--green-primary);
  background: rgba(104, 176, 77, 0.1);
  border: 1px solid rgba(104, 176, 77, 0.2);
  border-radius: 50px;
  font-weight: 500;
}

/* ===========================
   COMPANY
   =========================== */
.company-table-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(104, 176, 77, 0.1);
  overflow: hidden;
}

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

.company-table tr {
  border-bottom: 1px solid rgba(104, 176, 77, 0.08);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  padding: 18px 28px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  background: rgba(104, 176, 77, 0.06);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.company-table td {
  color: var(--text-secondary);
}

.company-table td a {
  color: var(--green-primary);
  font-weight: 500;
}

/* ===========================
   SHOP / MAP
   =========================== */
.shop-content {
  max-width: 900px;
  margin: 0 auto;
}

.shop-info {
  text-align: center;
  margin-bottom: 40px;
}

.shop-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.shop-address {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.shop-detail {
  font-size: 14px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.shop-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(104, 176, 77, 0.15);
}

.shop-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* ===========================
   CONTACT
   =========================== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-phone svg {
  width: 32px;
  height: 32px;
  color: var(--green-primary);
}

.phone-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.phone-number:hover {
  color: var(--green-primary);
}

.contact-hours {
  font-size: 14px;
  color: var(--text-light);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--gray-800);
  padding: 48px 0 32px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(104, 176, 77, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-info p {
  font-size: 13px;
  margin-bottom: 4px;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-info a:hover {
  color: var(--white);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(104, 176, 77, 0.3);
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .header-logo img {
    height: 32px;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transition: right var(--transition);
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav a {
    font-size: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(104, 176, 77, 0.08);
  }

  .hamburger {
    display: block;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 28px;
  }

  .hero-tagline {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .about-lead {
    font-size: 18px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-item {
    padding: 24px 20px;
  }

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

  .stat-number {
    font-size: 44px;
  }

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

  .business-card-body {
    padding: 20px 24px 24px;
  }

  .company-table th,
  .company-table td {
    display: block;
    padding: 12px 20px;
  }

  .company-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .company-table td {
    padding-top: 4px;
  }

  .company-table tr {
    display: block;
    padding: 8px 0;
  }

  .phone-number {
    font-size: 28px;
  }

  .contact-phone svg {
    width: 24px;
    height: 24px;
  }

  .shop-map iframe {
    height: 300px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 24px;
  }

  .hero-logo {
    width: 140px;
  }

  .section-title {
    font-size: 26px;
  }

  .stat-number {
    font-size: 36px;
  }
}
