/* TripLogue Blog 共通スタイル
 * 対応：SEO記事10本（2026年6月〜7月公開）
 * カラー基準：本体サイト shiori.html と統一
 */

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

:root {
  --bg: #faf6f0;
  --bg-card: #ffffff;
  --text: #4a3f3f;
  --text-muted: #8a7a72;
  --primary: #c9602e;
  --primary-hover: #b35224;
  --accent-orange: #F08537;
  --accent-blue: #4AA3D9;
  --border: rgba(138,122,114,0.2);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --max-width: 760px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ==== ヘッダー ==== */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--sans);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 48px; }

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.header-nav a:hover { color: var(--primary); }

.header-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 18px;
  border-radius: 22px;
  font-weight: 600;
}

.header-cta:hover { background: var(--primary-hover); color: white !important; }

/* ==== 記事本体 ==== */
.article {
  max-width: var(--max-width);
  margin: 32px auto;
  background: var(--bg-card);
  padding: 48px 56px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.article-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta .category {
  background: rgba(201,96,46,0.1);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.article h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--text);
}

.article h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}

.article h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  margin: 32px 0 14px;
  color: var(--primary);
}

.article h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}

.article p {
  margin-bottom: 1.4em;
}

.article strong {
  font-weight: 700;
  color: var(--primary-hover);
  background: linear-gradient(transparent 70%, rgba(240,133,55,0.25) 70%);
  padding: 0 2px;
}

.article ul, .article ol {
  margin: 0 0 1.4em 1.8em;
}

.article li { margin-bottom: 8px; }

/* テーブル */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--sans);
  font-size: 14.5px;
}

.article table th {
  background: rgba(201,96,46,0.08);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
}

.article table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.article table tr:nth-child(even) td { background: #fafafa; }

/* コードブロック（テンプレ転載用） */
.article pre {
  background: #fff8ec;
  border: 2px dashed var(--primary);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "SF Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre-wrap;
  position: relative;
  color: #4a3f3f;
}

.article pre::before {
  content: "📋 コピーして使えるテンプレート";
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,96,46,0.2);
}

.article pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 画像 */
.article figure {
  margin: 32px -24px;
}

.article .hero-image {
  margin: 0 -56px 32px;
}

.article img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.article figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  padding: 0 16px;
}

.article figcaption a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* CTAブロック */
.cta-block {
  background: linear-gradient(135deg, #fff4ec, #ffe9d6);
  border: 1px solid rgba(201,96,46,0.2);
  border-radius: 10px;
  padding: 32px 28px;
  margin: 40px 0;
  text-align: center;
}

.cta-block h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 22px;
}

.cta-block .cta-bullets {
  text-align: left;
  max-width: 480px;
  margin: 16px auto 24px;
  font-size: 15px;
}

.cta-block .cta-bullets li {
  list-style: none;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.cta-block .cta-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white !important;
  padding: 14px 36px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  transition: all 0.25s;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201,96,46,0.3);
}

/* 関連記事 */
.related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related h3 {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  margin-bottom: 8px;
}

.related a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
}

.related a:hover { text-decoration: underline; }

/* 区切り線 */
.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* 引用 */
.article blockquote {
  border-left: 4px solid var(--accent-orange);
  padding: 8px 20px;
  margin: 24px 0;
  background: rgba(240,133,55,0.05);
  color: var(--text);
  font-style: italic;
}

/* ==== 一覧ページ（index.html） ==== */
.blog-hero {
  text-align: center;
  padding: 60px 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 16px;
  color: var(--text-muted);
}

.article-list {
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all 0.25s;
  display: block;
  text-decoration: none;
  color: var(--text);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.article-card-body { padding: 20px 22px 24px; }

.article-card .category {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.article-card h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  margin: 8px 0 12px;
  border: none;
  padding: 0;
}

.article-card .excerpt {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==== フッター ==== */
.site-footer {
  background: #2a2424;
  color: #cfc5bf;
  padding: 40px 24px 32px;
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.site-footer a { color: #f1e6dc; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-copy { color: #8a807a; font-size: 12px; }

/* ==== レスポンシブ ==== */
@media (max-width: 720px) {
  .article {
    margin: 16px;
    padding: 28px 22px;
  }

  .article h1 { font-size: 24px; }
  .article h2 { font-size: 20px; margin: 36px 0 16px; }
  .article h3 { font-size: 17px; }
  .article p { font-size: 15.5px; }

  .article .hero-image { margin: 0 -22px 24px; }
  .article figure { margin: 24px -10px; }

  .article table { font-size: 13px; }
  .article table th, .article table td { padding: 8px 10px; }

  .header-inner { padding: 12px 18px; }
  .header-nav { gap: 14px; font-size: 13px; }

  .blog-hero h1 { font-size: 26px; }
  .article-list { grid-template-columns: 1fr; }
}
