/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #f8f9fb;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #1a1a2e;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}
.nav-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #6366f1; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.9; }

/* Article Layout */
.article-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
  padding: 4rem 0 3rem;
  color: #fff;
}
.article-header .badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.3);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #a5b4fc;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #6366f1;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d2d5e;
  margin: 2rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.2rem;
  color: #374151;
}
.article-body ul, .article-body ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: #374151;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body strong {
  color: #1a1a2e;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}
.fee-table thead {
  background: #1a1a2e;
  color: #fff;
}
.fee-table th {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.fee-table td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}
.fee-table tbody tr:hover {
  background: #f8f5ff;
}
.fee-table .country-cell {
  font-weight: 700;
  text-align: left;
  color: #1a1a2e;
}
.fee-table .total-cell {
  font-weight: 800;
  color: #6366f1;
  font-size: 1rem;
}
.fee-table .new-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  font-weight: 700;
  vertical-align: middle;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  border: 2px solid #c4b5fd;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-box h3 {
  color: #4338ca;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.cta-box p {
  color: #4b5563;
  margin-bottom: 1rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.cta-btn-secondary {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 15px rgba(5,150,105,0.3);
}
.cta-btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(5,150,105,0.4);
}

/* Info Box */
.info-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p {
  color: #92400e;
  margin-bottom: 0;
  font-size: 0.9rem;
}
.info-box strong {
  color: #78350f;
}

.alert-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.alert-box p {
  color: #991b1b;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Formula */
.formula-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Inter', monospace;
}
.formula-box .label {
  font-size: 0.8rem;
  color: #166534;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
}
.formula-box .formula {
  font-size: 1rem;
  color: #15803d;
  font-weight: 600;
}

/* TOC */
.toc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #1a1a2e;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}
.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.toc a {
  color: #6366f1;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #94a3b8;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a {
  color: #a5b4fc;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Steps */
.steps {
  margin: 1.5rem 0;
}
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}
.step-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #1a1a2e;
}
.step-body p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* Time Comparison */
.time-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.time-card {
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.time-card.manual {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.time-card.tool {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.time-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.time-card-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}
.time-card.manual .time-card-value { color: #dc2626; }
.time-card.tool .time-card-value { color: #059669; }
.time-card-unit {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}
.feature-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.feature-content span {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Price Tag */
.price-tag {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
}
.price-note {
  font-size: 0.85rem;
  color: #6b7280;
}

/* CTA Box Buttons */
.cta-box-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Table Column Headers */
.fee-table th.col-manual {
  color: #d1d5db;
}
.fee-table th.col-tool {
  color: #c4b5fd;
}

/* Calculation Box */
.calc-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Inter', monospace;
}
.calc-box .calc-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #166534;
  font-family: 'Noto Sans JP', sans-serif;
}
.calc-box .calc-line {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #374151;
}
.calc-box .calc-result {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid #bbf7d0;
  font-weight: 700;
  font-size: 1rem;
  color: #166534;
}
.calc-box .calc-loss {
  color: #dc2626;
}

/* Timeline */
.timeline {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid #6366f1;
}
.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
}
.timeline-date {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}
.timeline-content {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
}

/* Blog Index Cards */
.blog-cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.blog-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.blog-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.blog-card .blog-card-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .article-header h1 { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.25rem; }
  .nav-links { display: none; }
  .fee-table { font-size: 0.8rem; }
  .fee-table th, .fee-table td { padding: 0.5rem 0.6rem; }
  .cta-box { padding: 1.5rem; }
  .time-comparison { grid-template-columns: 1fr; }
  .time-card-value { font-size: 1.5rem; }
  .cta-box-buttons { flex-direction: column; align-items: center; }
}
