/* ===========================
   Variables
=========================== */
:root {
  --navy:        #0d1b3e;
  --navy-dark:   #080f24;
  --navy-mid:    #162347;
  --orange:      #b8962e;
  --orange-lt:   #cdb040;
  --light:       #f5f7fa;
  --white:       #ffffff;
  --gray:        #8898aa;
  --text:        #333333;
  --border:      #e2e8f0;
  --shadow:      0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.15);
  --radius:      10px;
  --tr:          0.3s ease;
}

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

img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--tr); }
ul  { list-style: none; }

/* ===========================
   Layout helpers
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section      { padding: 100px 0; }
.bg-light     { background: var(--light); }
.bg-navy      { background: var(--navy); }

/* ===========================
   Section headers
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--orange);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto;
  border-radius: 2px;
}

/* Light variant (on navy background) */
.section-header--light .section-title { color: var(--white); }
.section-header--light .section-en    { color: var(--orange); }
.section-header--light .section-line  { background: var(--orange); }

/* ===========================
   Header
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo img {
  height: 44px;
  width: auto;
}

/* Nav */
.header__nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.header__nav a:hover { color: var(--orange) !important; }

.btn-nav {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600 !important;
}
.btn-nav:hover {
  background: var(--orange-lt) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,112,32,0.35);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.header__hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--tr);
}

.header__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Hero
=========================== */
.hero {
  margin-top: 68px; /* header height */
}

.hero__bg {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA bar below hero image */
.hero__bar {
  background: var(--navy);
  padding: 22px 0;
}

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

.hero__bar-text {
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  line-height: 1.5;
}

.hero__bar-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.hero__btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--tr);
}
.hero__btn-primary:hover {
  background: var(--orange-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,112,32,0.35);
}

.hero__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,0.45);
  transition: var(--tr);
}
.hero__btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.10);
}

/* ===========================
   About
=========================== */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__text h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 24px;
}

.about__text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat {
  padding: 22px 24px;
  border-left: 4px solid var(--orange);
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 13px;
  color: var(--gray);
}

/* ===========================
   Products
=========================== */
.products__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}

.product-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: var(--tr);
}
.product-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.product-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,112,32,0.08);
  border-radius: 50%;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.product-card__en {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-card p:last-child {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
}

.products__note {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Export
=========================== */
.export__lead {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 48px;
}

.export__regions {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}

.export__region {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.export__region--main {
  border-top: 3px solid var(--orange);
}

.export__region h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}

.export__region p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

.export__countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.country {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: default;
  transition: var(--tr);
}
.country:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.export__globe {
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.08em;
  opacity: 0.15;
}

/* ===========================
   Strengths
=========================== */
.strengths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.strength-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--tr);
}
.strength-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--orange);
}

.strength-card__num {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: rgba(240,112,32,0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.strength-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.strength-card__en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.strength-card p:last-child {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
}

/* ===========================
   Company table
=========================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 18px 28px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

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

.company-table th {
  width: 180px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(13,27,62,0.04);
  white-space: nowrap;
}

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

/* ===========================
   Contact
=========================== */
.contact__lead {
  text-align: center;
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 48px;
  line-height: 1.9;
}

.contact__form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.required { color: var(--orange); }

.contact__form input,
.contact__form textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--tr);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,112,32,0.10);
}

.btn-submit {
  align-self: center;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 52px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--tr);
}
.btn-submit:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240,112,32,0.30);
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--navy-dark);
  padding: 56px 28px;
  text-align: center;
}

.footer__logo {
  height: 36px;
  margin: 0 auto 24px;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
}

.footer__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer__nav a:hover { color: var(--orange); }

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
}

/* ===========================
   Language Toggle
=========================== */
html.lang-en .ja { display: none !important; }
html.lang-jp .en { display: none !important; }

.lang-toggle {
  display: flex;
  background: #eef0f4;
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 13px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  color: var(--gray);
  cursor: pointer;
  transition: var(--tr);
}

.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

/* Header right group */
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===========================
   Page Hero (inner pages)
=========================== */
.page-hero {
  margin-top: 68px;
  background: var(--navy);
  padding: 72px 0 60px;
  text-align: center;
}

.page-hero__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* ===========================
   About Snap (TOP page)
=========================== */
.about-snap__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-snap__text .section-en { display: block; text-align: left; margin-bottom: 10px; }
.about-snap__text .section-title { text-align: left; }
.about-snap__text .section-line { margin: 0 0 24px; }

.about-snap__text p {
  font-size: 15px;
  color: #555;
  line-height: 1.85;
}

/* ===========================
   More link
=========================== */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: var(--tr);
  margin-top: 28px;
}
.more-link:hover { color: var(--orange); }
.more-link::after { content: '→'; font-size: 16px; }

/* ===========================
   Products more link center
=========================== */
.products__more { text-align: center; margin-top: 12px; }

/* ===========================
   CTA Banner
=========================== */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.35;
}

.cta-banner p {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 16px 52px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--tr);
}
.btn-gold:hover {
  background: var(--orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,150,46,0.35);
}

/* ===========================
   Company Table (also used in company.html)
=========================== */
.access-box {
  max-width: 820px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.access-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.access-box p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ===========================
   Product Detail (products.html)
=========================== */
.product-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.product-detail__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.product-detail__icon {
  width: 64px;
  height: 64px;
  background: rgba(184,150,46,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-detail__head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.product-detail > p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

/* ===========================
   Export (export.html)
=========================== */
.export-intro {
  text-align: center;
  font-size: 17px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ===========================
   Scroll animation
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .about__body      { grid-template-columns: 1fr; gap: 48px; }
  .export__regions  { grid-template-columns: 1fr; }
  .strengths__grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .header__hamburger { display: flex; }
  .lang-toggle { display: flex; }

  .header__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    padding: 88px 32px 32px;
    transition: right 0.32s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.25);
  }
  .header__nav.open { right: 0; }

  .header__nav ul   { flex-direction: column; gap: 0; }
  .header__nav li   { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header__nav a    { display: block; padding: 15px 0; color: rgba(255,255,255,0.88) !important; }

  .btn-nav {
    display: block !important;
    text-align: center;
    margin-top: 16px;
    padding: 13px 24px !important;
    border-radius: 5px !important;
  }

  .about-snap__body { grid-template-columns: 1fr; gap: 40px; }

  .hero__bar-inner { flex-direction: column; text-align: center; gap: 16px; }
  .hero__bar-btns  { flex-direction: column; width: 100%; }
  .hero__btn-primary,
  .hero__btn-secondary { text-align: center; padding: 13px 20px; }

  .product-card { flex: 0 0 calc(50% - 12px); min-width: 200px; }

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

  .company-table th { width: 110px; padding: 14px 16px; }
  .company-table td { padding: 14px 16px; }
}

@media (max-width: 520px) {
  .product-card { flex: 0 0 100%; }
}
