/* ============================================
   会計ソフト診断ナビ - メインスタイルシート
   ============================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --mint: #d1fae5;
  --mint-dark: #059669;
  --accent: #f59e0b;
  --dark: #1e2a3b;
  --text: #1f2937;
  --text-sub: #6b7280;
  --bg: #eef3fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 2px 16px rgba(30,42,59,0.07);
  --shadow-md: 0 4px 24px rgba(30,42,59,0.10);
  --shadow-lg: 0 8px 40px rgba(30,42,59,0.13);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1140px;
}

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

body {
  background-color: #eef3fa;
  background-image:
    radial-gradient(ellipse 65% 40% at 80% 0%, rgba(219,234,254,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 15% 100%, rgba(209,250,229,0.4) 0%, transparent 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

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

/* ===== HEADER ===== */
#site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; }
.site-logo .site-name { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.site-logo .site-tagline { color: rgba(255,255,255,0.45); font-size: 10px; letter-spacing: 0.04em; }

/* ===== NAVIGATION ===== */
#site-nav { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; display: flex; }
.nav-inner a {
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 13px 18px; display: block;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none !important;
}
.nav-inner a:hover, .nav-inner a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #152952 100%);
  position: relative;
  overflow: hidden;
  padding: 72px 32px 80px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 700; padding: 5px 16px;
  border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  color: #fff; font-size: 34px; font-weight: 900;
  line-height: 1.35; letter-spacing: -0.03em; margin-bottom: 16px;
}
.hero h1 em { color: #7dd3fc; font-style: normal; }
.hero p { color: rgba(255,255,255,0.72); font-size: 15px; margin-bottom: 32px; line-height: 1.8; }

.hero-cta {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none !important;
}
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary) !important;
  font-size: 16px; font-weight: 800;
  padding: 17px 44px; border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}
.hero-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,0.3); }
.hero-cta-sub {
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 10px; letter-spacing: 0.04em;
}

/* ===== PAGE WRAPPER ===== */
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 40px 32px 64px; }

/* ===== TWO COLUMN ===== */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

/* ===== MAIN CONTENT ===== */
.main-content { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }

/* ===== ARTICLE HEADER ===== */
.article-header { padding: 36px 40px 24px; border-bottom: 1px solid var(--border); }
.article-cat {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 4px;
  margin-bottom: 12px; letter-spacing: 0.04em;
}
.article-title { font-size: 26px; font-weight: 900; color: var(--dark); line-height: 1.4; letter-spacing: -0.02em; margin-bottom: 12px; }
.article-meta { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 16px; }

/* ===== ARTICLE BODY ===== */
.article-body { padding: 36px 40px 48px; font-size: 15px; line-height: 1.9; color: var(--text); }
.article-body h2 {
  background: var(--dark); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 19px; font-weight: 800;
  border-left: 5px solid #7dd3fc;
  margin-top: 52px; margin-bottom: 22px;
}
.article-body h3 {
  font-size: 17px; font-weight: 800; color: var(--dark);
  border-left: 4px solid var(--primary); border-bottom: 1px solid var(--border);
  padding: 4px 0 10px 14px; margin-top: 38px; margin-bottom: 16px;
}
.article-body h4 {
  font-size: 15px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 7px 14px;
  border-radius: 6px; margin-top: 24px; margin-bottom: 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--primary-dark); font-weight: 700; }
.article-body a { color: var(--primary); text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.8; }
.article-body hr { border: none; border-top: 2px dashed var(--border); margin: 44px 0; }

/* ===== TABLE ===== */
.article-body table { border-collapse: collapse; width: 100%; font-size: 14px; box-shadow: 0 1px 8px rgba(0,0,0,0.07); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.article-body table th { background: var(--dark); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 13px; text-align: center; }
.article-body table td { padding: 11px 16px; border: 1px solid var(--border); text-align: center; }
.article-body table tr:nth-child(even) td { background: #f9fafb; }
.article-body table tr:hover td { background: var(--primary-light); transition: background 0.15s; }

/* ===== CALLOUT BOXES ===== */
.box-info { background: #eff6ff; border-left: 5px solid var(--primary); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.box-success { background: #f0fdf4; border-left: 5px solid var(--mint-dark); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.box-warn { background: #fffbeb; border-left: 5px solid var(--accent); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.box-summary { background: #f8fafc; border: 1px solid var(--border); padding: 18px 22px; margin: 20px 0; border-radius: var(--radius); }

/* product info boxes */
.box-freee { background: #e0f7fa; border: 1px solid #00b8b4; padding: 12px 18px; margin: 12px 0; border-radius: var(--radius); }
.box-mf    { background: #e8eaf6; border: 1px solid #003896; padding: 12px 18px; margin: 12px 0; border-radius: var(--radius); }
.box-yayoi { background: #fce4ec; border: 1px solid #e85230; padding: 12px 18px; margin: 12px 0; border-radius: var(--radius); }
.box-misoca { background: #e3f2fd; border: 1px solid #1a73e8; padding: 12px 18px; margin: 12px 0; border-radius: var(--radius); }

.box-rank-freee   { background: #e0f7fa; border-left: 5px solid #00b8b4; padding: 12px 18px; margin: 12px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.box-rank-mf      { background: #e8eaf6; border-left: 5px solid #003896; padding: 12px 18px; margin: 12px 0; border-radius: 0 var(--radius) var(--radius) 0; }

/* ===== CTA BUTTON ===== */
.cta-wrap { text-align: center; margin: 20px 0; }
.cta-btn { display: inline-block; font-weight: 700; padding: 13px 36px; border-radius: 50px; text-decoration: none !important; font-size: 15px; transition: opacity 0.2s, transform 0.2s; box-shadow: var(--shadow); }
.cta-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.cta-freee { background: #00b8b4; color: #fff !important; }
.cta-mf    { background: #003896; color: #fff !important; }
.cta-yayoi { background: #e85230; color: #fff !important; }

/* ===== DIAGNOSIS CTA BANNER ===== */
.diag-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--primary); padding: 22px 28px; margin: 32px 0; border-radius: var(--radius); text-align: center; }
.diag-banner strong { font-size: 17px; color: var(--dark); }
.diag-banner p { margin: 8px 0 16px; color: var(--text-sub); font-size: 14px; }
.diag-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--primary); color: #fff !important;
  font-weight: 800; padding: 14px 40px; border-radius: 50px; font-size: 15px;
  text-decoration: none !important; box-shadow: 0 4px 18px rgba(26,86,219,0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.diag-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,86,219,0.35); }
.diag-btn-sub { font-size: 10px; font-weight: 400; opacity: 0.75; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.widget-title { background: var(--dark); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700; border-left: 4px solid #7dd3fc; }
.widget-body { padding: 16px; }

.sidebar-diag {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 22px 18px; text-align: center;
}
.sidebar-diag .sd-title { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.sidebar-diag .sd-desc { font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 1.7; }
.sidebar-diag .sd-btn {
  display: block; background: #fff; color: var(--primary) !important;
  font-size: 14px; font-weight: 800; padding: 12px 16px;
  border-radius: 50px; text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.sidebar-diag .sd-btn:hover { transform: translateY(-2px); }

.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: block; padding: 11px 14px; font-size: 13px;
  color: var(--text) !important; line-height: 1.6; text-decoration: none !important;
  transition: background 0.15s;
}
.related-list a:hover { background: var(--primary-light); }
.related-list a::before { content: '›'; color: var(--primary); font-size: 14px; margin-right: 8px; font-weight: 700; }

/* ===== TOP PAGE SECTIONS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--primary); border-radius: 3px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.article-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none !important; display: flex; flex-direction: column;
  color: var(--text);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-thumb {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a6b 100%);
  height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.card-body { padding: 16px; flex: 1; }
.card-cat { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.55; }
.card-date { font-size: 11px; color: var(--text-sub); margin-top: 10px; }

/* ===== PICKUP BANNER ===== */
.pickup-banner {
  background: linear-gradient(135deg, #1e2a3b 0%, #152952 100%);
  border-radius: var(--radius); padding: 36px 40px;
  display: flex; align-items: center; gap: 40px;
  margin-bottom: 48px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.pickup-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pickup-text { flex: 1; position: relative; z-index: 1; }
.pickup-label { display: inline-block; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.2); }
.pickup-h2 { color: #fff; font-size: 22px; font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.pickup-desc { color: rgba(255,255,255,0.65); font-size: 14px; }
.pickup-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; color: var(--primary) !important;
  font-size: 15px; font-weight: 800; padding: 15px 28px;
  border-radius: var(--radius-lg); text-decoration: none !important;
  white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 1;
}
.pickup-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.pickup-cta-sub { font-size: 10px; font-weight: 400; color: var(--text-sub); white-space: nowrap; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 12px; color: var(--text-sub); padding: 12px 0 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ccc; }

/* ===== FOOTER ===== */
#site-footer { background: var(--dark); border-top: 3px solid var(--primary); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px 32px 24px; }
.footer-logo { color: #fff; font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 12px; margin-bottom: 28px; }
.footer-links { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; color: rgba(255,255,255,0.3); font-size: 11px; text-align: center; }

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-note { font-size: 12px; color: var(--text-sub); background: #f9fafb; border: 1px solid var(--border); padding: 10px 16px; border-radius: 6px; margin-top: 40px; }

/* ===== MOBILE ===== */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .pickup-banner { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 14px 18px; }
  .nav-inner { padding: 0 10px; overflow-x: auto; }
  .nav-inner a { padding: 11px 10px; font-size: 12px; white-space: nowrap; }
  .page-wrap { padding: 20px 16px 48px; }
  .article-header { padding: 24px 18px 18px; }
  .article-body { padding: 24px 18px 36px; }
  .article-title { font-size: 20px; }
  .article-body h2 { font-size: 16px; }
  .article-body h3 { font-size: 15px; }
  .article-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 56px; }
  .hero h1 { font-size: 22px; }
  .hero-cta-btn { padding: 15px 32px; font-size: 15px; }
}
