/* ============================================================
   VIVRE AU JAPON — STYLES.CSS
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --primary:        #007ACC;
  --primary-dark:   #005fa3;
  --secondary:      #FF6F61;
  --secondary-dark: #e65a4f;
  --text:           #1a1a2e;
  --text-muted:     #64748b;
  --bg-white:       #ffffff;
  --bg-light:       #f8fafc;
  --bg-dark:        #111827;
  --border:         #e2e8f0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 12px 40px rgba(0,0,0,.14);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --nav-height:     68px;
  --transition:     0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-height);
}

img { display: block; max-width: 100%; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p  { margin-bottom: 1rem; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

/* Logo */
.site-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover, .footer-logo:hover { color: var(--primary); }

.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-text strong { color: var(--primary); }

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: #f1f5f9;
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

.chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.mega-menu.is-open {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.mega-col { min-width: 0; }

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f4fd;
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-col ul li a,
.mega-col > a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.855rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.mega-col ul li a:hover,
.mega-col > a:hover {
  background: #f1f5f9;
  color: var(--primary);
  padding-left: 14px;
}

.mega-link-bold {
  font-weight: 700 !important;
  color: var(--text) !important;
}
.mega-link-urgent {
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.mega-col-tall { /* taller cols just scroll naturally */ }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg-white);
  z-index: 900;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav > a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav > a:hover { background: #f8fafc; color: var(--primary); }

.mobile-nav details { border-bottom: 1px solid var(--border); }

.mobile-nav details summary {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.mobile-nav details summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
}
.mobile-nav details[open] summary::after { transform: rotate(45deg); }

.mobile-nav details a {
  display: block;
  padding: 10px 16px 10px 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-nav details a:hover { color: var(--primary); background: #f8fafc; }

/* ============================================================
   CONTAINERS & LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

.section-padded { padding: 80px 0; }
.bg-white  { background: var(--bg-white); }
.bg-light  { background: var(--bg-light); }
.bg-dark   { background: var(--bg-dark); color: #e2e8f0; }
.text-center { text-align: center; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-divider {
  width: 64px; height: 4px;
  background: var(--secondary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: #fff0ee;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 { margin-bottom: 20px; }
.text-accent { color: var(--primary); }

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white  { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; color: var(--primary); }

.btn-outline-white {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--primary); }

/* ============================================================
   BENTO HOME GRID
   ============================================================ */
.bento-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-wide { grid-column: span 2; }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.bento-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.bento-card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

.card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover { text-decoration: underline; }

.bento-featured {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 220px;
}
.bento-featured img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bento-featured-content {
  position: relative;
  z-index: 10;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0,122,204,0.85) 0%, rgba(0,90,160,0.6) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-featured-content h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.bento-featured-content p  { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 0.9rem; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body h2 { margin: 0 0 1.5rem; }
.article-body h3 { color: var(--primary); margin: 2.5rem 0 1rem; font-size: 1.25rem; }
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body ul li { margin-bottom: 0.5rem; }

.expert-quote {
  background: #eff8ff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2rem 0;
  color: var(--text);
}
.expert-quote strong { display: block; color: var(--primary); margin-bottom: 6px; }

/* ============================================================
   BUDGET SIMULATOR
   ============================================================ */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.simulator-info h2 { color: #fff; margin-bottom: 16px; }
.simulator-info p  { color: #94a3b8; }

.simulator-steps {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.simulator-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}
.step-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.simulator-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.form-group select,
.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-group select:focus,
.form-group input:focus { border-color: var(--primary); }

.result-box {
  background: #eff8ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.result-box h4 { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }
.result-amount { font-size: 2rem; font-weight: 900; color: var(--primary); }
.result-box small { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 6px; }

/* ============================================================
   SPLIT SECTION
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-lg);
}

.split-content h2 { margin-bottom: 20px; }
.split-content p  { color: var(--text-muted); margin-bottom: 16px; }

.urgency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.urgency-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.urgency-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--secondary);
}
.urgency-card small {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--primary);
  padding: 80px 24px;
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 36px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #f1f5f9;
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo { font-size: 1rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; }

.footer-newsletter {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.footer-newsletter button {
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  transition: background var(--transition);
  white-space: nowrap;
}
.footer-newsletter button:hover { background: var(--primary-dark); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================================
   BENTO ITEMS (legacy / other pages)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bento-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-inner { background: #f8fafc; }

/* Glass effect */
.glass-effect {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* Japanese pattern subtle */
.japanese-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23007ACC' fill-opacity='0.08'/%3E%3C/svg%3E");
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .mega-inner { grid-template-columns: repeat(3, 1fr); }
  .bento-home-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .burger-btn  { display: flex; }
  .simulator-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-section  { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .bento-home-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  body { padding-top: var(--nav-height); }
  .section-padded { padding: 48px 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .urgency-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2rem; }
}