/*
Theme Name: PC診断アドバイザー
Theme URI: https://example.com/pc-advisor
Author: Claude
Author URI: https://claude.ai
Description: 初心者向け・上級者向けの2つの診断フローでおすすめPCを提案するWordPressテーマ。Amazon PA-API連携でアフィリエイトリンク自動生成に対応。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pc-advisor
Tags: one-column, custom-menu, full-width-template, custom-background
*/

/* ============================================================
   DESIGN SYSTEM — Modern Tech Advisory
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --bg:       #f8fafc;
  --bg2:      #f1f5f9;
  --bg3:      #e2e8f0;
  --panel:    #ffffff;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --text:     #0f172a;
  --text2:    #1e293b;
  --muted:    #64748b;
  --dim:      #94a3b8;
  
  --primary:  #3b82f6;
  --primary2: #2563eb;
  --secondary:#8b5cf6;
  --accent:   #06b6d4;
  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  
  --font-display: 'Noto Sans JP', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  
  --radius:  8px;
  --radius2: 16px;
  --shadow:  0 1px 3px rgba(0,0,0,.08);
  --shadow2: 0 4px 16px rgba(0,0,0,.12);
  --shadow3: 0 8px 32px rgba(0,0,0,.16);
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary2); }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Site Header ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-branding a {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  letter-spacing: -.02em;
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  color: white;
}
.brand-text span { color: var(--primary); }

/* ── Nav ── */
.site-nav ul {
  list-style: none;
  display: flex; gap: 4px;
}
.site-nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all .2s;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item > a {
  color: var(--text);
  background: var(--bg2);
}
.menu-toggle {
  display: none;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px;
  border-radius: var(--radius); font-size: 16px;
}

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px; color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 80px;
}

/* ── Main ── */
.site-main { min-height: calc(100vh - 64px - 100px); }

/* ── Breadcrumb ── */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: var(--bg2);
}
.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  font-size: 13px; color: var(--muted);
  font-family: var(--font-mono);
}
.breadcrumb-inner a { color: var(--muted); }
.breadcrumb-inner a:hover { color: var(--primary); }

/* ── Page Hero ── */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  letter-spacing: -.02em;
}

/* ── Standard Layout ── */
.standard-layout {
  max-width: 900px; margin: 0 auto; padding: 48px 24px;
}
.entry {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 40px;
  box-shadow: var(--shadow);
}
.entry-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.entry-content { font-size: 15px; line-height: 1.8; color: var(--text2); }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.entry-content p { margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute;
    top: 64px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow2);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px; }
  .site-nav ul li a { padding: 12px 16px; }
}
