/* ══════════════════════════════════════════
   blog-company.css  —  共通ベーススタイル
   全ブログテンプレートで読み込む共有CSS
   ══════════════════════════════════════════ */

/* ── CSS 変数（--max はテンプレート側で上書き） ── */
:root {
  --green:  #1F4D3A;
  --gold:   #C6A85C;
  --text:   #21342F;
  --muted:  #6B7A75;
  --line:   #E4E2D8;
  --beige:  #F5F3E7;
  --shadow: 0 14px 36px rgba(24,45,40,.08);
}

/* ── リセット & ベース ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Inter","Zen Kaku Gothic New",system-ui,sans-serif; color: var(--text); letter-spacing: .02em; background: #fff; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── ヘッダー ── */
.site-header { height: 78px; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(228,226,216,.8); position: sticky; top: 0; z-index: 100; }
.header-inner { height: 78px; display: flex; align-items: center; gap: 32px; }
.brand-main { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: #213837; }
.brand-sub { font-size: 10px; font-weight: 700; color: #56645f; letter-spacing: .08em; }
.nav { display: flex; gap: 34px; margin-left: auto; font-size: 13px; font-weight: 800; white-space: nowrap; }
.nav a.active { color: var(--green); }
.footer .brand-sub { margin-top: 6px; }
.footer .brand-main { font-size: 22px; }

/* ── ボタン ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 4px; font-weight: 800; border: 1px solid transparent; font-size: 13px; }
.btn-green   { background: var(--green); color: #fff; }
.btn-white   { background: #fff; color: var(--green); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── タグ ── */
.tag { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; border-radius: 999px; background: var(--gold); color: #fff; }
.tag.sub { background: var(--beige); color: var(--green); border: 1px solid var(--line); }

/* ── シェア ── */
.share-row { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-row span { font-size: 13px; font-weight: 700; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.share-btn:hover { background: var(--beige); }

/* ── 著者ボックス ── */
.author-box { margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 20px; align-items: flex-start; background: var(--beige); }
.author-icon { border-radius: 50%; background: linear-gradient(135deg, var(--green), #0e674d); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.author-box-info h4 { margin: 0 0 6px; font-size: 15px; color: var(--green); }
.author-box-info p  { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── 関連カード ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.related-card:hover { box-shadow: var(--shadow); }
.related-card img { height: 140px; width: 100%; object-fit: cover; }
.related-card-body { padding: 14px; }
.related-card-body .tag { font-size: 10px; padding: 3px 8px; }
.related-card-body h4 { margin: 8px 0 6px; font-size: 14px; line-height: 1.5; color: var(--text); }
.related-card-body span { font-size: 12px; color: var(--muted); }

/* ── CTAセクション ── */
.cta-section { background: linear-gradient(105deg, var(--green) 0%, #0F3D2F 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0; }
.cta-inner h2 { margin: 0 0 8px; font-size: 26px; font-family: "Zen Kaku Gothic New", sans-serif; }
.cta-inner p { margin: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── フッター ── */
.footer { height: 80px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); font-weight: 600; }
.footer-nav { display: flex; gap: 22px; font-size: 12px; font-weight: 800; color: #51605B; white-space: nowrap; }

/* ── レスポンシブ（共通） ── */
@media (max-width: 1024px) {
  .nav { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; height: auto; padding: 20px 0; }
  .footer-nav { flex-wrap: wrap; gap: 12px; }
}
