/*
Theme Name: Hamulation Column
Theme URI: https://hamulation.com/
Author: ハミュレーション
Description: ハミュレーション本体サイトとブランドを統一したコラム専用テーマ。ゴールド×アイボリー、Shippori Mincho見出し。
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hamulation-column
*/

:root {
  --bg: #FAF7F1;
  --card: #FFFFFF;
  --ink: #2B241A;
  --sub: #8B8171;
  --gold: #C0913C;
  --gold-dark: #A67B2E;
  --gold-light: #E6C87E;
  --champagne: #F7EFDD;
  --line: #EDE5D6;
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); }

/* ---------- ヘッダー ---------- */
.hm-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,247,241,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hm-header-inner {
  max-width: 1040px; margin: 0 auto; padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hm-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.hm-brand img { height: 28px; width: auto; display: block; }
.hm-brand-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dark);
  border: 1px solid var(--gold-light); background: var(--champagne);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.hm-header-cta {
  flex-shrink: 0; font-size: 11.5px; font-weight: 900; letter-spacing: 0.5px;
  color: #fff !important; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 4px 12px rgba(192,145,60,0.3);
}
.hm-shadestrip { display: flex; height: 4px; }
.hm-shadestrip span { flex: 1; }
.hm-shadestrip span:nth-child(1) { background: #C9A57B; }
.hm-shadestrip span:nth-child(2) { background: #D3B189; }
.hm-shadestrip span:nth-child(3) { background: #DCBD97; }
.hm-shadestrip span:nth-child(4) { background: #E5CBA8; }
.hm-shadestrip span:nth-child(5) { background: #EEDBBC; }
.hm-shadestrip span:nth-child(6) { background: #F0E0C4; }
.hm-shadestrip span:nth-child(7) { background: #F5EAD3; }
.hm-shadestrip span:nth-child(8) { background: #FAF3E3; }

/* ---------- レイアウト ---------- */
.hm-main { max-width: 800px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- 記事一覧 ---------- */
.hm-archive-title { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 1px; margin: 4px 0 6px; }
.hm-archive-desc { font-size: 13px; color: var(--sub); margin: 0 0 22px; }
.hm-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .hm-cards { grid-template-columns: 1fr 1fr; } }
.hm-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.hm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,36,26,0.08); }
.hm-card a.hm-card-link { display: block; text-decoration: none; color: inherit; padding: 18px; }
.hm-card .hm-thumb { margin: -18px -18px 14px; display: block; }
.hm-card .hm-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hm-card time { font-size: 11px; color: var(--sub); }
.hm-card h2 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.6; margin: 6px 0 8px; }
.hm-card p { font-size: 12.5px; color: var(--sub); line-height: 1.8; margin: 0; }
.hm-card .hm-more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--gold-dark); }

/* ページネーション */
.hm-main .navigation.pagination { margin-top: 28px; }
.hm-main .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hm-main .nav-links .page-numbers {
  display: inline-block; min-width: 38px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.hm-main .nav-links .page-numbers.current { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; border-color: transparent; }

/* ---------- 記事本文 ---------- */
.hm-entry-header { margin-bottom: 20px; }
.hm-entry-header time { font-size: 12px; color: var(--sub); }
.hm-entry-header h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.55; letter-spacing: 0.5px; margin: 6px 0 0; }
.hm-entry-strip { max-width: 120px; margin-top: 14px; }
.hm-entry-strip .hm-shadestrip { border-radius: 999px; overflow: hidden; height: 5px; }

.hm-content { font-size: 15px; }
.hm-content > * { margin-top: 0; }
.hm-content p { margin: 0 0 1.4em; }
.hm-content h2 {
  font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.5px;
  margin: 2.2em 0 0.8em; padding: 10px 14px;
  background: var(--champagne); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
}
.hm-content h3 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  margin: 1.8em 0 0.7em; padding-bottom: 6px; border-bottom: 2px solid var(--gold-light);
}
.hm-content ul, .hm-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.hm-content li { margin-bottom: 0.4em; }
.hm-content img { border-radius: 14px; }
.hm-content blockquote {
  margin: 0 0 1.4em; padding: 14px 18px; background: var(--champagne);
  border-left: 4px solid var(--gold-light); border-radius: 0 12px 12px 0;
  color: var(--sub); font-size: 13.5px;
}
.hm-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.6em;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: 13px;
}
.hm-content th, .hm-content td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hm-content tr:last-child th, .hm-content tr:last-child td { border-bottom: none; }
.hm-content thead th, .hm-content tr:first-child th { background: var(--champagne); color: var(--gold-dark); font-weight: 900; }
.hm-content strong { color: var(--gold-dark); }

/* ---------- 記事下CTA・免責(自動挿入) ---------- */
.hm-cta-box {
  margin: 36px 0 0; background: var(--champagne); border: 1px solid var(--gold-light);
  border-radius: 18px; padding: 22px 20px; text-align: center;
}
.hm-cta-box .hm-cta-title { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.hm-cta-box p { font-size: 12.5px; color: var(--sub); margin: 0 0 14px; line-height: 1.8; }
.hm-cta-button {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important; font-weight: 900; font-size: 14px; letter-spacing: 1px;
  border-radius: 999px; padding: 14px 32px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(192,145,60,0.35);
}
.hm-cta-box .hm-cta-sub { font-size: 10.5px; color: var(--sub); margin: 10px 0 0; }
.hm-disclaimer {
  margin: 18px 0 0; font-size: 10.5px; color: var(--sub); line-height: 1.8;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.hm-backlink { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 700; color: var(--gold-dark); text-decoration: none; }

/* ---------- フッター ---------- */
.hm-footer { border-top: 1px solid var(--line); background: var(--champagne); margin-top: 30px; }
.hm-footer-inner { max-width: 800px; margin: 0 auto; padding: 26px 20px 40px; text-align: center; }
.hm-footer-links { font-size: 11px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hm-footer-links a { color: var(--sub); }
.hm-footer-copy { font-size: 10px; color: var(--sub); margin-top: 10px; }
