/* ========================================
   債務整理ナビ — Design by Claw京都
   Palette: 濃紺(#1B365D) × コーラル(#E8734A)
   system-ui only (no external fonts)
   ======================================== */

:root {
  --primary: #1B365D;
  --primary-light: #2A5082;
  --primary-dark: #0F1F38;
  --accent: #E8734A;
  --accent-light: #F08D6A;
  --accent-dark: #D4603A;
  --bg: #F8FAFB;
  --bg-white: #ffffff;
  --bg-dark: #0F1F38;
  --text: #1E293B;
  --text-light: #64748B;
  --text-white: #ffffff;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(27,54,93,.08), 0 1px 2px rgba(27,54,93,.06);
  --shadow-hover: 0 10px 25px rgba(27,54,93,.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1080px;
  --font: system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.8; font-size: 15px; -webkit-font-smoothing: antialiased; }

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header (white + sticky + blur) ── */
.header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* ── Buttons (pill style, coral CTA) ── */
.btn { display: inline-block; padding: 10px 24px; border-radius: 100px; font-weight: 600; font-size: .95rem; transition: all .25s; cursor: pointer; text-align: center; border: none; }
.btn--primary { background: var(--accent); color: var(--text-white); box-shadow: 0 2px 8px rgba(232,115,74,.25); }
.btn--primary:hover { background: var(--accent-light); color: var(--text-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,115,74,.3); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--text-white); }
.btn--danger { background: #DC2626; color: var(--text-white); box-shadow: 0 2px 8px rgba(220,38,38,.25); }
.btn--danger:hover { opacity: .9; color: var(--text-white); transform: translateY(-2px); }
.btn--large { padding: 14px 36px; font-size: 1.05rem; }

/* ── Hamburger (mobile) ── */
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 4px 8px; }
.mobile-menu { display: none; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 16px 20px; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 10px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── Hero (deep navy gradient + coral glow) ── */
.hero { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 60%, #2A4A7A 100%); color: var(--text-white); padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(232,115,74,.15) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.35; letter-spacing: -.02em; }
.hero p { font-size: 1.05rem; opacity: .88; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 18px; border-radius: 100px; font-size: .85rem; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Trust Bar (navy bg, white text) ── */
.trust-bar { background: var(--primary-dark); color: var(--text-white); padding: 14px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: .88rem; font-weight: 500; }
.trust-bar-inner span { display: flex; align-items: center; gap: 6px; }

/* ── Section ── */
.section { padding: 64px 0; }
.section--gray { background: var(--bg); }
.section--white { background: var(--bg-white); }
.section-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--primary); letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: .93rem; }

/* ── Category Cards ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cat-card { background: var(--bg-white); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); color: inherit; }
.cat-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.cat-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }

/* ── Ranking Card (left border style) ── */
.rank-list { display: flex; flex-direction: column; gap: 20px; }
.rank-card { background: var(--bg-white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); border-left: 5px solid var(--border); display: flex; gap: 20px; align-items: flex-start; transition: transform .3s, box-shadow .3s; }
.rank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rank-card:nth-child(1) { border-left-color: #D4A017; }
.rank-card:nth-child(2) { border-left-color: #94A3B8; }
.rank-card:nth-child(3) { border-left-color: #B87333; }

.rank-num { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--text-white); flex-shrink: 0; }
.rank-num--1 { background: linear-gradient(135deg, #F7C948, #D4A017); }
.rank-num--2 { background: linear-gradient(135deg, #CBD5E1, #94A3B8); }
.rank-num--3 { background: linear-gradient(135deg, #D4956A, #B87333); }
.rank-num--other { background: var(--primary-light); }

.rank-body { flex: 1; }
.rank-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.rank-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rank-tag { display: inline-block; background: var(--bg); padding: 3px 10px; border-radius: 100px; font-size: .78rem; color: var(--text-light); border: 1px solid var(--border); }
.rank-tag--hot { background: #FFF5F0; color: var(--accent-dark); border-color: rgba(232,115,74,.2); }
.rank-body p { font-size: .9rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }
.rank-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--text-light); margin-bottom: 14px; }
.rank-meta strong { color: var(--text); }
.rank-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Point Box ── */
.point-box { background: #EFF6FF; border-left: 4px solid var(--primary-light); border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0; }
.point-box h4 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.point-box p { font-size: .93rem; color: var(--text); margin-bottom: 8px; }
.point-box p:last-child { margin-bottom: 0; }
.point-box.warning { background: #FFFBEB; border-left-color: #D97706; }
.point-box.warning h4 { color: #92400E; }
.point-box.danger { background: #FEF2F2; border-left-color: #DC2626; }
.point-box.danger h4 { color: #991B1B; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: .98rem; color: var(--primary); }
.faq-q::after { content: '▼'; font-size: .65rem; transition: transform .25s; color: var(--text-light); }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { padding-top: 12px; color: var(--text-light); font-size: .93rem; display: none; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 48px 0 28px; font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 36px; }
.footer h4 { color: var(--text-white); margin-bottom: 12px; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer a:hover { color: var(--text-white); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .8rem; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 14px 0; font-size: .83rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Review Header ── */
.review-header { background: linear-gradient(135deg, var(--bg-dark), var(--primary)); color: var(--text-white); padding: 44px 0; }
.review-header h1 { font-size: 1.8rem; margin-bottom: 8px; font-weight: 800; }
.review-score { font-size: 2rem; font-weight: 800; }
.review-stars { color: #F7C948; font-size: 1.3rem; margin-bottom: 4px; }

/* ── Info Table ── */
.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.info-table th, .info-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-table th { background: var(--bg); font-weight: 600; width: 30%; color: var(--primary); }

/* ── Article / Column ── */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.4; color: var(--primary); }
.article h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); color: var(--primary); }
.article h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--primary); }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 12px 0 18px 24px; }
.article li { margin-bottom: 8px; line-height: 1.7; }

/* ── Fade-up Animation ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rank-card { animation: fadeUp .5s ease-out both; }
.rank-card:nth-child(1) { animation-delay: .1s; }
.rank-card:nth-child(2) { animation-delay: .2s; }
.rank-card:nth-child(3) { animation-delay: .3s; }
.rank-card:nth-child(4) { animation-delay: .4s; }
.rank-card:nth-child(5) { animation-delay: .5s; }
.cat-card { animation: fadeUp .5s ease-out both; }
.cat-card:nth-child(1) { animation-delay: .1s; }
.cat-card:nth-child(2) { animation-delay: .2s; }
.cat-card:nth-child(3) { animation-delay: .3s; }

/* ── Responsive (mobile-first) ── */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 44px 0; }
  .hero p { font-size: .95rem; }
  .section { padding: 44px 0; }
  .section-title { font-size: 1.3rem; }
  .nav { display: none; }
  .hamburger { display: block; }
  .rank-card { flex-direction: column; padding: 20px; }
  .rank-num { width: 36px; height: 36px; font-size: 1rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-table th { width: 35%; font-size: .85rem; }
  .info-table td { font-size: .85rem; }
  .trust-bar-inner { gap: 16px; font-size: .82rem; }
  .btn--large { padding: 12px 28px; font-size: .98rem; }
  .article h1 { font-size: 1.4rem; }
  .article h2 { font-size: 1.15rem; }
}
