/* ============================================
   MiToA LP - Common Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #1a2236;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  overflow-x: hidden;
}

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

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

.mincho {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 31, 68, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-header.on-dark {
  background: rgba(10, 26, 56, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 24px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-logo-image {
  height: 80px;
  width: auto;
  margin-left: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 8px;
}

.header-links ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.header-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(10, 31, 68, 0.8);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.header-links li + li::before {
  content: "|";
  margin-right: 16px;
  color: rgba(10, 31, 68, 0.3);
}
.header-links a:hover {
  color: #0a1f44;
}
.header-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #2563eb;
}
.on-dark .header-links a {
  color: rgba(255, 255, 255, 0.85);
}
.on-dark .header-links li + li::before {
  color: rgba(255, 255, 255, 0.3);
}
.on-dark .header-links a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.14);
}
.header-cta-outline {
  border: 2px solid rgba(59, 130, 246, 0.72);
  color: #2563eb;
  background: #fff;
}
.header-cta-outline:hover {
  border-color: #2563eb;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.28);
  transform: translateY(-1px);
}
.header-cta-primary {
  background: #2563eb;
  color: #fff;
}
.header-cta-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.34);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 22px;
  position: relative;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #0a1f44;
  transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.on-dark .menu-toggle span { background: #fff; }

.header-gradient-line {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #0f172a 0%, #84cc16 48%, #22d3ee 100%);
  background-size: 200% 100%;
  animation: header-gradient-shift 3s ease infinite;
}

@keyframes header-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.menu-toggle.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------- PAGE NAV (between sections) ---------- */
.page-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(10, 31, 68, 0.7);
  padding: 12px 24px;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 2px;
  transition: all 0.25s;
  background: #fff;
}
.page-nav a:hover {
  color: #0a1f44;
  border-color: #c9a86c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(10, 31, 68, 0.2);
}
.page-nav .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #c9a86c;
  margin-bottom: 2px;
}
.page-nav .nav-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.page-nav .next { flex-direction: row-reverse; }
.page-nav .next .nav-text { text-align: right; }
.page-nav .spacer { flex: 1; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0a1a38;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 32px 32px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo-image {
  width: 96px;
  height: auto;
  margin-left: -8px;
  margin-bottom: 20px;
}
.footer-about {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #c9a86c;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: "Noto Serif JP", serif;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: #c9a86c; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 32px;
  min-width: 260px;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn .arrow {
  font-family: serif;
  font-size: 16px;
}
.btn-primary {
  background: #0a1f44;
  color: #fff;
  border-color: #0a1f44;
}
.btn-primary:hover {
  background: #1a3165;
}
.btn-outline {
  background: #fff;
  color: #0a1f44;
  border-color: rgba(10, 31, 68, 0.3);
}
.btn-outline:hover {
  border-color: #0a1f44;
  background: #f5f3ed;
}
.btn-gold {
  background: linear-gradient(135deg, #d9b978 0%, #c9a86c 100%);
  color: #0a1f44;
  border-color: transparent;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e5c88a 0%, #d4b47a 100%);
}
.btn-dark-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(201, 168, 108, 0.6);
}
.btn-dark-outline:hover {
  border-color: #c9a86c;
  background: rgba(201, 168, 108, 0.08);
}

/* ---------- SECTION SHELL ---------- */
.page-section {
  padding-top: 72px; /* header offset */
  min-height: 100vh;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb-like pagination indicator */
.page-indicator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(10, 31, 68, 0.4);
  font-family: "Noto Serif JP", serif;
}
.page-indicator .current {
  color: #c9a86c;
}

/* ---------- BACKGROUND DECOR ---------- */
.bg-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.bg-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .header-inner { padding: 6px 16px; }
  .header-logo-image {
    height: 64px;
    margin-left: 8px;
  }
  .header-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    transform: translateY(-120%);
    transition: transform 0.35s;
    box-shadow: 0 20px 40px -20px rgba(10, 31, 68, 0.15);
  }
  .on-dark .header-nav {
    background: #0a1a38;
  }
  .header-nav.is-open { transform: translateY(0); }
  .header-links ul {
    flex-direction: column;
    gap: 0;
  }
  .header-links li {
    border-bottom: 1px solid rgba(10, 31, 68, 0.08);
  }
  .header-links li + li::before {
    content: none;
  }
  .header-links a { display: block; padding: 18px 4px; }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
  }
  .header-cta {
    text-align: center;
    justify-content: center;
  }
  .menu-toggle { display: block; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-logo { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-section { padding-top: 72px; }
  .section-inner { padding: 0 20px; }
  .page-indicator { padding: 24px 20px 0; }
  .page-nav { padding: 32px 20px 56px; }

  .btn {
    min-width: 220px;
    padding: 16px 24px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .site-header { min-height: 64px; }
  .page-section { padding-top: 64px; }
  .header-nav { top: 64px; }
  .header-logo-image { height: 54px; }
}
