
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 32px rgba(0,0,0,.08);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

/* ===== ヘッダー ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.site-logo .logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.site-logo .logo-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}
nav { display: flex; gap: 8px; align-items: center; }
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: all .2s;
}
nav a:hover { background: #f1f5f9; color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ===== メイン ===== */
main { padding: 40px 24px; min-height: 80vh; }
.container { max-width: 1000px; margin: 0 auto; }
.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  color: #fff;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 { font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.hero p { font-size: 16px; opacity: .85; max-width: 500px; margin-bottom: 28px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ===== 記事カード ===== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.post-grid { display: grid; gap: 20px; }
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .25s;
  overflow: hidden;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card a { display: block; padding: 28px 32px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.post-card-meta time { font-size: 13px; color: var(--text-light); }
.tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}
.post-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.post-card-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.read-more::after { content: '→'; }

/* ===== サイドバー ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.author-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.author-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.author-bio { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.consult-card {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  text-align: center;
}
.consult-card h3 { border-bottom-color: rgba(255,255,255,.3); color: #fff; }
.consult-card p { font-size: 14px; opacity: .9; margin-bottom: 16px; line-height: 1.7; }
.consult-btn {
  display: block;
  background: #fff;
  color: #f97316;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: transform .2s;
}
.consult-btn:hover { transform: translateY(-2px); }

/* ===== 記事本文 ===== */
.post-page { max-width: 740px; }
.post-header { margin-bottom: 40px; }
.post-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-meta time { font-size: 14px; color: var(--text-light); }
.post-body {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 52px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-body h3::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.post-body p { margin-bottom: 22px; line-height: 1.95; }
.post-body strong {
  font-weight: 700;
  background: linear-gradient(transparent 55%, #fef9c3 55%);
}
.post-body ul, .post-body ol {
  padding-left: 28px;
  margin-bottom: 22px;
}
.post-body li { margin-bottom: 8px; line-height: 1.8; }
.post-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f0f9ff;
  border-left: 4px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-size: 15px;
}

/* ===== CTA ===== */
.cta-box {
  margin-top: 48px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius);
  padding: 36px 40px;
  color: #fff;
  text-align: center;
}
.cta-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.cta-box p { font-size: 15px; opacity: .85; margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: all .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ===== フッター ===== */
footer {
  background: #1f2937;
  color: #9ca3af;
  text-align: center;
  padding: 40px 24px;
  margin-top: 80px;
}
footer .footer-logo { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
footer p { font-size: 13px; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .layout-two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 24px; }
  .post-body { padding: 28px 20px; }
  .post-header h1 { font-size: 22px; }
  .header-inner { padding: 0 16px; }
  nav a span { display: none; }
}
