/* ===========================
   ENCL - Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --navy: #1a237e;
  --navy-dark: #0d1257;
  --navy-mid: #263592;
  --blue-stripe: #2636a8;
  --gray-dark: #4a5568;
  --gray-mid: #6e7a8a;
  --gray-light: #b0bec5;
  --gray-bg: #f7f8fa;
  --gray-stripe: #b0bec5;
  --white: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: #8a95a3;
  --accent-blue: #1a237e;
  --border: #e2e8f0;

  --font-logo: 'Caveat', cursive;
  --font-en: 'DM Sans', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  --max-width: 1100px;
  --header-h: 72px;
}

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

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

body {
  font-family: var(--font-ja);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===========================
   STRIPE DECORATION
   =========================== */
.stripe-deco {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.stripe-deco::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    var(--navy) 6px,
    var(--navy) 9px
  );
  opacity: 0.85;
}

.stripe-deco-gray::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    var(--gray-stripe) 6px,
    var(--gray-stripe) 9px
  );
  opacity: 0.4;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
}

.site-header .logo {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-header nav {
  margin-left: auto;
}

.site-header nav ul {
  display: flex;
  gap: 6px;
  background: #f0f2f8;
  border-radius: 999px;
  padding: 6px 10px;
}

.site-header nav a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* SP Header */
.sp-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  padding: 0 20px;
  align-items: center;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
}

.sp-header .logo {
  font-family: var(--font-logo);
  font-size: 1.7rem;
  font-weight: 600;
}

.hamburger-btn {
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: #f0f2f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* SP Menu overlay */
.sp-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--white);
  padding: 60px 30px 40px;
  flex-direction: column;
}

.sp-menu.open { display: flex; }

.sp-menu .close-btn {
  position: absolute;
  top: 12px; right: 20px;
  width: 44px; height: 44px;
  background: #f0f2f8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.sp-menu .logo {
  font-family: var(--font-logo);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.sp-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-menu nav a {
  display: block;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.sp-menu nav a:hover { color: var(--navy); }

.sp-menu .privacy-link {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===========================
   PAGE HEADER (inner pages)
   =========================== */
.page-header {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 40px;
  overflow: hidden;
  min-height: 220px;
}

.page-header-deco {
  position: absolute;
  top: 0; right: 0;
  width: 360px;
  height: 320px;
}

.page-header-deco-navy {
  position: absolute;
  top: 0; right: 0;
  width: 180px;
  height: 100%;
  overflow: hidden;
}

.page-header-deco-navy::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    var(--navy) 6px,
    var(--navy) 9px
  );
}

.page-header-deco-gray-right {
  position: absolute;
  top: 0; right: 180px;
  width: 200px;
  height: 100%;
  overflow: hidden;
}

.page-header-deco-gray-right::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    #c8cfd8 6px,
    #c8cfd8 9px
  );
  opacity: 0.5;
}

.page-header .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.page-title-en {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-title-ja {
  font-family: var(--font-ja);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* Vertical text */
.side-label {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  white-space: nowrap;
  z-index: 100;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 24px;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-dark {
  background: var(--gray-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

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

.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,35,126,0.3);
}

.btn-arrow::after {
  content: '→';
  font-size: 0.9rem;
}

/* ===========================
   SECTIONS
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

section {
  position: relative;
}

.section-label-en {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-label-ja {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-top: 4px;
}

/* ===========================
   CONTACT SECTION (shared)
   =========================== */
.contact-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.contact-section-content {
  padding: 60px 60px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section-content h2 {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}

.contact-section-content .ja {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 0.1em;
}

.contact-section-content .btn-outline {
  margin-top: 28px;
  align-self: flex-start;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}

.contact-section-content .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.contact-section-stripe {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.05) 12px,
    rgba(255,255,255,0.05) 15px
  );
}

.contact-section-image {
  position: relative;
  overflow: hidden;
}

.contact-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--gray-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 2rem;
  color: var(--white);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  padding-top: 8px;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-privacy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-copyright {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.footer-divider {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: right;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .site-header { display: none; }
  .sp-header { display: flex; }
  .side-label { display: none; }

  .container {
    padding: 0 20px;
  }

  .page-header .container {
    padding: 0 20px;
  }

  .page-title-en {
    font-size: 2rem;
  }

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

  .contact-section-image {
    height: 200px;
  }

  .contact-section-content {
    padding: 40px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 6px 20px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-divider {
    padding: 0 20px;
    padding-top: 20px;
    text-align: left;
  }
}
