/*
 * Japan Bureaucracy Buddy - Stylesheet
 * Based on japan-utility-setup (documentation-html-template, MIT)
 * Brand colors: #C41E3A (Japanese red) + #FFFFFF (white)
 */

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.7; color: #333; background-color: #FAFAFA;
}
a { color: #C41E3A; text-decoration: none; transition: color 0.2s; }
a:hover { color: #9B1830; text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', 'Noto Sans JP', sans-serif; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
img { max-width: 100%; height: auto; }

/* ===== LAYOUT ===== */
.page-wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px; min-width: 280px; background: #1a1a2e; color: #ccc;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100; transition: transform 0.3s ease;
}
.sidebar-header { padding: 24px 20px; background: #C41E3A; color: #fff; text-align: center; }
.sidebar-header h1 { font-size: 18px; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.sidebar-header .tagline { font-size: 12px; opacity: 0.85; font-weight: 400; }
.sidebar-nav { list-style: none; padding: 12px 0; }
.sidebar-nav li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-nav li a {
  display: block; padding: 12px 20px; color: #ccc; font-size: 14px; font-weight: 500;
  transition: all 0.2s; text-decoration: none; min-height: 44px;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: rgba(196, 30, 58, 0.15); color: #fff; border-left: 3px solid #C41E3A; padding-left: 17px;
}
.sidebar-nav li a .nav-icon { margin-right: 8px; font-size: 16px; }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: 280px; flex: 1; padding: 0; }

/* ===== TOP HEADER BAR ===== */
.top-header {
  background: #fff; border-bottom: 1px solid #e5e5e5; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 24px;
  cursor: pointer; color: #333; padding: 4px 8px; min-height: 44px; min-width: 44px;
}
.top-header .breadcrumb { font-size: 14px; color: #888; }

/* ===== ALERT BANNER ===== */
.alert-banner {
  background: linear-gradient(135deg, #ff6b35, #C41E3A); color: #fff;
  padding: 16px 40px; text-align: center; font-size: 15px; font-weight: 600;
}
.alert-banner a { color: #fff; text-decoration: underline; }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #C41E3A 0%, #9B1830 100%);
  color: #fff; padding: 48px 40px; text-align: center;
}
.hero h2 { font-size: 32px; color: #fff; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 24px; }

/* ===== VISA FILTER ===== */
.filter-bar {
  background: #fff; border-bottom: 1px solid #e5e5e5;
  padding: 16px 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-bar label { font-size: 14px; font-weight: 600; color: #333; }
.filter-bar select {
  padding: 10px 16px; border: 2px solid #C41E3A; border-radius: 6px;
  font-size: 15px; background: #fff; color: #333; min-height: 44px; cursor: pointer;
}

/* ===== PROGRESS BAR ===== */
.progress-section { padding: 20px 40px; background: #fff; border-bottom: 1px solid #e5e5e5; }
.progress-track { background: #e5e5e5; border-radius: 8px; height: 12px; overflow: hidden; }
.progress-fill {
  background: linear-gradient(90deg, #4caf50, #66bb6a); height: 100%;
  border-radius: 8px; transition: width 0.4s ease; width: 0%;
}
.progress-label { font-size: 13px; color: #666; margin-top: 6px; }

/* ===== CONTENT AREA ===== */
.content-area { padding: 40px; max-width: 900px; }
.section { margin-bottom: 60px; padding-top: 20px; }
.section h2 { font-size: 24px; margin-bottom: 12px; }
.section h3 { font-size: 20px; margin: 24px 0 12px; color: #C41E3A; }
.section p { margin-bottom: 16px; }
.section ul, .section ol { margin-bottom: 16px; padding-left: 24px; }
.section li { margin-bottom: 8px; }

/* ===== STEP HEADER ===== */
.step-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.step-number {
  width: 48px; height: 48px; min-width: 48px; background: #C41E3A; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.step-header-text { flex: 1; }
.step-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: #666; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }

/* ===== INFO BOXES ===== */
.info-box { padding: 16px 20px; border-radius: 8px; margin: 16px 0; font-size: 15px; }
.info-box.tip { background: #e8f5e9; border-left: 4px solid #4caf50; }
.info-box.warning { background: #fff3e0; border-left: 4px solid #ff9800; }
.info-box.important { background: #fce4ec; border-left: 4px solid #C41E3A; }
.info-box.info { background: #e3f2fd; border-left: 4px solid #2196f3; }
.info-box strong { display: block; margin-bottom: 4px; }

/* ===== WHAT YOU NEED ===== */
.what-you-need {
  background: #fff; border: 2px solid #C41E3A; border-radius: 8px; padding: 20px 24px; margin: 16px 0;
}
.what-you-need h4 { color: #C41E3A; margin-top: 0; margin-bottom: 12px; font-size: 16px; }
.what-you-need ul { list-style: none; padding: 0; }
.what-you-need li { padding: 4px 0 4px 24px; position: relative; }
.what-you-need li::before { content: "\2713"; position: absolute; left: 0; color: #4caf50; font-weight: 700; }

/* ===== BANK TABLE ===== */
.bank-section { margin-bottom: 60px; }
.bank-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bank-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
.bank-table th { background: #1a1a2e; color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; white-space: nowrap; }
.bank-table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.bank-table tr:nth-child(even) td { background: #f9f9f9; }
.bank-table a { font-weight: 600; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-warn { background: #fff3e0; color: #e65100; }
.badge-ok { background: #e8f5e9; color: #2e7d32; }

/* ===== WISE CTA ===== */
.wise-cta {
  background: linear-gradient(135deg, #9fe870, #00b9ff); border-radius: 8px;
  padding: 24px; margin: 24px 0; text-align: center;
}
.wise-cta p { color: #1a1a1a; margin-bottom: 12px; }
.wise-cta .btn-affiliate {
  display: inline-block; background: #1a1a2e; color: #fff; padding: 12px 24px;
  border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none;
  min-height: 44px; transition: background 0.2s;
}
.wise-cta .btn-affiliate:hover { background: #333; color: #fff; text-decoration: none; }

/* ===== CROSS LINKS ===== */
.cross-link { margin: 16px 0; }
.cross-link a { font-weight: 600; }

/* ===== CHECKLIST TOGGLE ===== */
.checklist-toggle { margin: 24px 0; padding: 16px; background: #f5f5f5; border-radius: 8px; }
.checkbox-label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 16px; font-weight: 600; min-height: 44px;
}
.checkbox-label input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: #4caf50; }

/* ===== LAST UPDATED ===== */
.last-updated { font-size: 12px; color: #999; margin-bottom: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e; color: #aaa; padding: 30px 40px; text-align: center; font-size: 13px;
}
.footer a { color: #ccc; }
.footer a:hover { color: #fff; }
.footer p { margin-bottom: 8px; }
.footer .wise-footer { margin: 16px 0; }
.footer .wise-footer a { color: #9fe870; font-weight: 600; }

/* ===== MOBILE OVERLAY ===== */
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99; }

/* ===== RESPONSIVE 768 ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .top-header { padding: 12px 20px; }
  .alert-banner { padding: 12px 20px; font-size: 14px; }
  .hero { padding: 32px 20px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .filter-bar { padding: 12px 20px; }
  .progress-section { padding: 16px 20px; }
  .content-area { padding: 20px; }
  .section h2 { font-size: 20px; }
  .section h3 { font-size: 18px; }
  .step-meta { flex-direction: column; gap: 8px; }
}

/* ===== RESPONSIVE 480 ===== */
@media (max-width: 480px) {
  .hero h2 { font-size: 20px; }
  .content-area { padding: 16px; }
  .what-you-need { padding: 16px; }
  .wise-cta { padding: 16px; }
  .filter-bar select { width: 100%; }
}
