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

/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #FFFCF0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cpolygon points='18,5 42,2 56,12 52,30 40,42 16,40 4,26' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='118,8 146,4 160,18 156,40 136,50 110,44 106,24' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='2,88 28,80 44,92 42,116 26,126 4,120 -6,104' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='88,80 120,76 136,94 130,120 108,130 82,122 74,102' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='160,66 188,60 202,78 198,102 178,114 154,108 148,86' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='8,152 38,144 56,158 52,180 30,192 6,186 -4,168' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='76,156 106,150 122,166 118,190 94,202 68,196 60,176' fill='rgba(195,148,55,0.22)'/%3E%3Cpolygon points='152,152 180,146 196,164 190,186 166,196 142,188 136,168' fill='rgba(195,148,55,0.22)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  color: #3A2A0A;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景キリン ===== */
.kirin-bg-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 100vh;
  overflow: hidden;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.kirin-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 240, 0.95);
  border-bottom: 1px solid #E8D5A3;
  backdrop-filter: blur(4px);
}

/* タイトルロゴ行 */
.header-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px 4px;
}
.header-logo-row a {
  display: block;
  line-height: 0;
}
.title-logo {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* ロゴエリア */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 15px;
  color: #7A4F1A;
  line-height: 1.3;
}
.logo-catch {
  font-size: 10px;
  color: #B8860B;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ナビゲーション */
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 11px;
  color: #5A3E1B;
  text-decoration: none;
  padding: 6px 8px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: #B8860B; color: #7A4F1A; }

/* ハンバーガー（スマホ） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #7A4F1A;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255,252,240,0.98);
  border-top: 1px solid #E8D5A3;
  padding: 8px 0;
}
.mobile-nav a {
  padding: 12px 20px;
  font-size: 13px;
  color: #5A3E1B;
  text-decoration: none;
  display: block;
}
.mobile-nav a:hover { background: #FFF8E6; }
.mobile-nav.open { display: flex; }

/* ===== メインコンテンツ ===== */
.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

/* ===== シミュレーターバナー ===== */
.sim-banner {
  background: linear-gradient(135deg, #FFF8E6, #FEF3D0);
  border: 1px solid #E8D5A3;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sim-banner-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 700;
  color: #7A4F1A;
  margin-bottom: 6px;
}
.sim-banner-text p { font-size: 13px; color: #5A3E1B; line-height: 1.6; }
.sim-btn {
  display: inline-block;
  background: #B8860B;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.sim-btn:hover { background: #9A7009; transform: translateY(-1px); }

/* ===== カテゴリタブ ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #EAE0CC;
  background: white;
  color: #7A4F1A;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.tab-btn:hover { border-color: #B8860B; color: #B8860B; }
.tab-btn.active { background: #7A4F1A; color: white; border-color: #7A4F1A; }
.tab-count { font-size: 11px; font-weight: 600; opacity: 0.85; margin-left: 1px; }

/* ===== 並び替えボタン ===== */
.sort-controls {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.sort-btn {
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid #EAE0CC;
  background: white;
  color: #7A4F1A;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.sort-btn:hover { border-color: #B8860B; color: #B8860B; }
.sort-btn.active { background: #B8860B; color: white; border-color: #B8860B; }

/* ===== 記事グリッド ===== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

/* 記事カード（横長レイアウト：画像左・テキスト右） */
.article-card {
  background: white;
  border: 1px solid #EAE0CC;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(122,79,26,0.12);
}
.article-card[data-hidden="true"] { display: none; }
.new-article-card[data-hidden="true"] { display: none; }

/* カードヘッダー */
.card-header {
  height: 90px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-header.has-img {
  height: auto;
  aspect-ratio: 3 / 2;
}
.card-header img.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #FEFCF7;
}
.card-header.cat-konkatsu { background: linear-gradient(135deg, #F4C0D1, #F9D5E3); }
.card-header.cat-ninkatsu  { background: linear-gradient(135deg, #9FE1CB, #C5EEE2); }
.card-header.cat-travel    { background: linear-gradient(135deg, #B5D4F4, #D0E7FA); }
.card-header.cat-career    { background: linear-gradient(135deg, #FAC775, #FDD9A0); }

/* カテゴリタグ */
.cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}
.cat-tag.konkatsu { background: #72243E; color: white; }
.cat-tag.ninkatsu { background: #085041; color: white; }
.cat-tag.travel   { background: #0C447C; color: white; }
.cat-tag.career   { background: #633806; color: white; }

/* カード本体 */
.card-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 800;
  color: #3A2A0A;
  line-height: 1.5;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 13px;
  color: #5C3D0E;
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 12px; font-weight: 600; color: #7A4F1A; }

/* ===== 記事準備中メッセージ ===== */
.articles-empty {
  background: white;
  border: 1px solid #EAE0CC;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #9A8060;
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 2;
}

/* ===== プロフィールセクション ===== */
.profile-section {
  background: white;
  border: 1px solid #EAE0CC;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.profile-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #7A4F1A;
  margin-bottom: 6px;
}
.profile-text { font-size: 13px; color: #5A3E1B; line-height: 1.7; margin-bottom: 10px; }
.profile-badge {
  display: inline-block;
  background: #FFF8E6;
  border: 1px solid #E8D5A3;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: #7A4F1A;
  text-decoration: none;
  transition: background 0.2s;
}
.profile-badge:hover { background: #FEF3D0; }

/* ===== フッター ===== */
.site-footer {
  background: #5A3E1B;
  color: #F5E6C8;
  text-align: center;
  padding: 16px 20px;
  font-size: 10px;
  line-height: 2;
}
.site-footer a { color: #E8D5A3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-affiliate {
  font-size: 9px;
  color: #C8A96A;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ===== 記事ページ ===== */
article {
  background: white;
  border-radius: 14px;
  padding: 28px 32px 36px;
  box-shadow: 0 2px 16px rgba(122,79,26,0.08);
}
.article-header { margin-bottom: 28px; }
.article-category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 700;
  color: #3A2A0A;
  line-height: 1.6;
  margin-bottom: 10px;
}
.article-meta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #7A4F1A;
  background: #FFFBEC;
  border-left: 3px solid #B8860B;
  padding: 6px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
}

/* ===== 記事ヘッダー上段（カテゴリ＋著者アイコン） ===== */
.article-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-icons {
  display: flex;
  align-items: center;
}
.author-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(122,79,26,0.18);
  background: white;
}
.author-icon-second {
  margin-left: -8px;
}
.author-name {
  font-size: 12px;
  color: #7A4F1A;
  font-weight: 500;
}
.article-body { font-size: 15px; line-height: 2; }
.article-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: #7A4F1A;
  border-left: 4px solid #B8860B;
  padding-left: 12px;
  margin: 32px 0 16px;
}
.article-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #5A3E1B;
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: #B8860B; }
.article-body strong { color: #7A4F1A; }

/* 目次 */
.toc {
  background: #FFF8E6;
  border: 1px solid #E8D5A3;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.toc-title { font-family: 'Noto Serif JP', serif; font-size: 13px; font-weight: 700; color: #7A4F1A; margin-bottom: 10px; }
.toc ol { padding-left: 20px; }
.toc li { font-size: 13px; margin-bottom: 4px; }
.toc a { color: #7A4F1A; text-decoration: none; }
.toc a:hover { color: #B8860B; text-decoration: underline; }

/* ===== プロフィールページ ===== */
.profile-page-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  display: block;
  margin: 0 auto 16px;
}
.profile-page h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #7A4F1A;
  text-align: center;
  margin-bottom: 8px;
}
.profile-page .catch {
  text-align: center;
  font-size: 12px;
  color: #B8860B;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.profile-card {
  background: white;
  border: 1px solid #EAE0CC;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #7A4F1A;
  border-left: 4px solid #B8860B;
  padding-left: 10px;
  margin-bottom: 14px;
}
.family-icons { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.family-member { text-align: center; }
.family-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  display: block;
  margin: 0 auto 4px;
}
.family-label { font-size: 10px; color: #9A8060; }

/* ===== ユーティリティ ===== */
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: #7A4F1A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EAE0CC;
}
.breadcrumb { font-size: 11px; color: #9A8060; margin-bottom: 20px; }
.breadcrumb a { color: #B8860B; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== ソーシャルボタン ===== */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.share-buttons-bottom {
  border-top: 1px solid #EAE0CC;
  padding-top: 24px;
  margin-top: 32px;
}
.share-label-text {
  width: 100%;
  font-size: 12px;
  color: #9A8060;
  margin-bottom: 8px;
  font-weight: 500;
}
.share-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-icon { font-size: 14px; font-weight: 900; }
.share-x       { background: #000;    color: #fff; }
.share-line    { background: #06C755; color: #fff; }
.share-hatena  { background: #008FDE; color: #fff; }
.share-pinterest { background: #E60023; color: #fff; }
.share-copy    { background: #6B7280; color: #fff; }

/* ===== 記事アイキャッチ画像 ===== */
.article-eyecatch {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .article-eyecatch {
    border-radius: 8px;
    margin-top: 12px;
  }
}

/* ===== 余談ボックス ===== */
.yodan-box {
  border-left: 4px solid #C8922A;
  background: #FFFBF0;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
}
.yodan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.yodan-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url('https://kirinchan.com/blog/images/kirinchan-yodan-icon.png') center/cover no-repeat;
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}
.yodan-title {
  font-size: 13px;
  font-weight: 500;
  color: #8B6018;
}
.yodan-body {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ===== 記事本文：引用ブロック ===== */
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #72243E;
  background: #FDF5F7;
  border-radius: 0 8px 8px 0;
  color: #5A3A3A;
  font-style: italic;
  line-height: 1.9;
}

/* ===== 記事本文：注記テキスト ===== */
.article-note {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* ===== 記事本文：次回予告ボックス ===== */
.next-article {
  margin-top: 40px;
  padding: 20px 24px;
  background: #FFF8F0;
  border: 1px solid #E8D5B0;
  border-radius: 8px;
  font-size: 14px;
  color: #6B4C1E;
  line-height: 1.8;
}
.next-article-label {
  font-size: 12px;
  font-weight: 600;
  color: #B8860B;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}
.next-article-title {
  font-size: 15px;
  font-weight: 600;
  color: #3A2A0A;
  margin: 0 0 12px;
  line-height: 1.6;
}
.next-article-link {
  display: inline-block;
  padding: 8px 20px;
  background: #B8860B;
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.next-article-link:hover {
  opacity: 0.85;
}

/* ===== 記事間ナビゲーション ===== */
.article-nav {
  display: flex;
  gap: 12px;
  margin: 32px 0 0;
}
.article-nav-prev,
.article-nav-next {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #FDFAF4;
  border: 1px solid #E0D4B8;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.article-nav-prev:hover,
.article-nav-next:hover {
  background: #F5EDD8;
}
.article-nav-next {
  text-align: right;
}
.nav-direction {
  font-size: 11px;
  color: #B8860B !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-title {
  font-size: 13px;
  color: #3A2A0A !important;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .article-nav { flex-direction: column; }
}

/* ===== 記事本文：テーブル ===== */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  font-size: 15px;
}
.article-body table th,
.article-body table td {
  padding: 10px 14px;
  border: 1px solid #E0D4B8;
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}
.article-body table thead th {
  background: #F5EDD8;
  font-weight: 600;
  color: #5C3D0E;
  font-size: 14px;
}
.article-body table tbody tr:nth-child(even) {
  background: #FDFAF4;
}
.article-body table th:first-child,
.article-body table td:first-child {
  width: 150px;
  white-space: nowrap;
}
.article-body .point-label {
  margin-top: 1.4em;
  margin-bottom: 0.2em;
}
.article-body .point-body {
  margin-top: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .kirin-bg { left: 10px; width: 100px; opacity: 0.12; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }

  /* スマホ：全カード横並び */
  .article-card { grid-template-columns: 130px 1fr; }
  .card-header { height: 100%; min-height: 86px; }
  .card-header.has-img {
    aspect-ratio: unset;
    width: 130px;
    height: 100%;
    min-height: 86px;
  }

  .card-body { padding: 10px 12px; }
  .card-title { font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
  .card-excerpt { display: none; }
  .card-meta { font-size: 11px; }
  .cat-tag { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; }
  .sim-banner { flex-direction: column; align-items: flex-start; }
  .profile-section { flex-direction: column; align-items: center; text-align: center; }
  .site-main { padding: 16px 16px 60px; }
  .header-inner { padding: 0 16px; }
  .article-title { font-size: 18px; }
  article { padding: 20px 16px 28px; border-radius: 10px; overflow: hidden; }

  /* スマホ：テーブルを画面幅に収める */
  .article-body table {
    font-size: 12px;
    width: 100%;
    table-layout: fixed;
    word-break: break-all;
  }
  .article-body table th,
  .article-body table td {
    padding: 6px 8px;
    white-space: normal;
    word-break: break-all;
  }
  .article-body table th:first-child,
  .article-body table td:first-child {
    width: 45%;
    white-space: normal;
    word-break: break-all;
  }
  .article-body table th:last-child,
  .article-body table td:last-child {
    width: 55%;
  }
}

/* ===== 新着記事グリッド（ホーム） ===== */
.new-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

/* 1件だけの場合：横長レイアウト */
.new-articles-grid.has-single {
  grid-template-columns: 1fr;
}
.new-articles-grid.has-single .new-article-card {
  flex-direction: row;
  height: 160px;
  max-height: 160px;
}
.new-articles-grid.has-single .new-card-img-wrap {
  width: 240px;
  min-width: 240px;
  height: 160px;
  aspect-ratio: unset;
  flex-shrink: 0;
}
.new-articles-grid.has-single .new-card-img-wrap img {
  height: 100%;
  object-fit: cover;
}
.new-articles-grid.has-single .new-card-body {
  padding: 16px 20px;
  justify-content: center;
  overflow: hidden;
}
.new-articles-grid.has-single .new-card-title {
  font-size: 15px;
  -webkit-line-clamp: 2;
}
.new-articles-grid.has-single .new-card-meta {
  font-size: 12px;
  margin-top: 10px;
}
@media (max-width: 540px) {
  .new-articles-grid.has-single .new-article-card { height: 120px; max-height: 120px; }
  .new-articles-grid.has-single .new-card-img-wrap { width: 140px; min-width: 140px; height: 120px; }
  .new-articles-grid.has-single .new-card-title { font-size: 13px; }
}
.new-article-card {
  background: white;
  border: 1px solid #EAE0CC;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.new-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(122,79,26,0.12);
}
.new-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #EAE0CC;
}
.new-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.new-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #D9534F;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.08em;
}
.new-card-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}
.new-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.new-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 700;
  color: #3A2A0A;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.new-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: #7A4F1A;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .new-articles-grid { gap: 10px; }
  .new-card-title { font-size: 12px; -webkit-line-clamp: 3; }
  .new-card-body { padding: 10px 10px 12px; }
  .new-card-meta { font-size: 10px; margin-top: 6px; }
}

/* ===== 折り返し防止（検索キーワード等） ===== */
.nowrap { white-space: nowrap; display: inline-block; word-break: keep-all; }
.search-keywords {
  list-style: none;
  padding: 0;
  margin: 0.6em 0 1em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.search-keywords li {
  margin: 0 0 0.4em;
  font-size: 14px;
  color: #5C3D0E;
}

/* ===== 記事内テーブル：横スクロールラッパー（JSで自動付与） ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.8rem;
  max-width: 100%;
}
.table-wrap > table { margin: 0; }
@media (max-width: 768px) {
  .table-wrap > table {
    table-layout: auto;
    width: auto;
    min-width: 420px;
    word-break: normal;
  }
  .table-wrap > table th,
  .table-wrap > table td {
    white-space: nowrap;
    word-break: normal;
    font-size: 13px;
  }
  .table-wrap > table th:first-child,
  .table-wrap > table td:first-child {
    width: auto;
    white-space: nowrap;
  }
  .table-wrap > table th:last-child,
  .table-wrap > table td:last-child {
    width: auto;
  }
}

/* ===== 情報ボックス：お得情報（ゴールド） ===== */
.info-box {
  background: #FFFBEC;
  border-left: 4px solid #B8860B;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
}
.info-box-head {
  font-weight: bold;
  color: #B8860B;
  font-size: 15px;
  margin-bottom: 8px;
}

/* ===== 警告ボックス：重要（赤） ===== */
.warning-box {
  background: #FFF5F5;
  border-left: 4px solid #D9534F;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
}
.warning-box-head {
  font-weight: bold;
  color: #D9534F;
  font-size: 15px;
  margin-bottom: 8px;
}

/* ===== 強調ボックス：QRコード等 ===== */
.highlight-box {
  background: #F0F7FF;
  border: 2px solid #4A90D9;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.highlight-box-head {
  font-weight: bold;
  color: #2C6FAC;
  font-size: 15px;
  margin-bottom: 8px;
}

/* ===== 記事内画像 ===== */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0 4px;
  display: block;
}
.article-img-caption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 16px;
}

/* ===== アフィリエイト：PR表記 ===== */
.pr-notice {
  background: #F2F2F2;
  border-left: 3px solid #999;
  color: #666;
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 3px;
}

/* ===== アフィリエイト：CTAボタン ===== */
a.affiliate-btn,
.article-body a.affiliate-btn {
  display: block;
  width: 80%;
  max-width: 400px;
  margin: 20px auto;
  padding: 0 24px;
  height: 56px;
  line-height: 56px;
  background: #B8860B;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}
a.affiliate-btn::after { content: ' →'; }
a.affiliate-btn:hover,
.article-body a.affiliate-btn:hover { background: #9A6F09; color: #fff; }
@media (max-width: 768px) { .affiliate-btn { width: 100%; } }

/* ===== アフィリエイト：カード型リンク ===== */
.affiliate-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.affiliate-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.affiliate-card-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.affiliate-card-body { flex: 1; }
.affiliate-card-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  color: #3A2A0A;
}
.affiliate-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .affiliate-card { flex-direction: column; }
  .affiliate-card-img { width: 80px; height: 80px; }
}

/* ===== アフィリエイト：テキストリンク ===== */
.affiliate-link {
  color: #B8860B;
  text-decoration: underline;
  font-weight: 500;
}

/* ===== 楽天アフィリエイトカード ===== */
.rakuten-card {
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  background: #fffaf7;
  margin: 16px 0;
  overflow: hidden;
  max-width: 520px;
}
.rakuten-card-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff3e8;
  border-bottom: 1px solid #e8d5c4;
  font-size: 11px;
  color: #a0522d;
  font-weight: bold;
}
.rakuten-card-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.rakuten-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.rakuten-card-img-wrap { flex-shrink: 0; }
.rakuten-card-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  display: block;
}
.rakuten-card-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.rakuten-card-body { flex: 1; min-width: 0; }
.rakuten-card-title {
  font-size: 12px;
  line-height: 1.45;
  color: #bf0000;
  text-decoration: none;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rakuten-card-title:hover { text-decoration: underline; }
.rakuten-card-price {
  font-size: 13px;
  color: #333;
  margin: 5px 0 2px;
  font-weight: bold;
}
.rakuten-card-price-note { font-size: 11px; color: #bbb; margin-bottom: 8px; }
.rakuten-card-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rakuten-logo { height: 18px; width: auto; }
.rakuten-btn {
  display: inline-block;
  background: #bf0000;
  color: #fff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}
.rakuten-btn:hover { background: #990000; }
@media (max-width: 480px) {
  .rakuten-card { max-width: 100%; }
  .rakuten-card-img, .rakuten-card-img-placeholder { width: 64px; height: 64px; }
  .rakuten-card-inner { gap: 10px; padding: 10px; }
}

/* ========================================
   吹き出し（balloon）
======================================== */
.balloon-left,
.balloon-right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}
.balloon-right {
  flex-direction: row-reverse;
}

/* アイコン */
.balloon-left .balloon-icon,
.balloon-right .balloon-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e8d5c4;
}

/* 吹き出し本体 */
.balloon-left .balloon-text,
.balloon-right .balloon-text {
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #B8860B;
  font-size: 14px;
  line-height: 1.7;
  color: #3A2A0A;
  max-width: calc(100% - 80px);
  box-shadow: 0 2px 8px rgba(184,134,11,0.08);
}

/* 疑問（左アイコン）→ 吹き出しは右 */
.balloon-left .balloon-text {
  background: #FFF5F5;
}
/* しっぽ（左） */
.balloon-left .balloon-text::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -10px;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid #B8860B;
}
.balloon-left .balloon-text::after {
  content: '';
  position: absolute;
  top: 22px;
  left: -7px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid #FFF5F5;
}

/* 回答（右アイコン）→ 吹き出しは左 */
.balloon-right .balloon-text {
  background: #FFFFFF;
}
/* しっぽ（右） */
.balloon-right .balloon-text::before {
  content: '';
  position: absolute;
  top: 22px;
  right: -10px;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid #B8860B;
}
.balloon-right .balloon-text::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -7px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid #FFFFFF;
}

/* スマホ対応 */
@media (max-width: 480px) {
  .balloon-left .balloon-icon,
  .balloon-right .balloon-icon {
    width: 48px;
    height: 48px;
  }
  .balloon-left .balloon-text,
  .balloon-right .balloon-text {
    font-size: 13px;
    padding: 10px 13px;
    max-width: calc(100% - 64px);
  }
}

/* ========================================
   この記事を読むとわかること（summary box）
======================================== */
.article-summary-box {
  background: #FFF9F0;
  border-left: 4px solid #B8860B;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}
.article-summary-box .summary-title {
  font-size: 15px;
  font-weight: bold;
  color: #B8860B;
  margin: 0 0 10px;
}
.article-summary-box ul {
  margin: 0;
  padding-left: 20px;
}
.article-summary-box ul li {
  font-size: 14px;
  color: #3A2A0A;
  line-height: 1.8;
}

/* ========================================
   月別アーカイブ ウィジェット
======================================== */
.archive-widget {
  max-width: 820px;
  margin: 40px auto 48px;
  padding: 0 16px;
}
.archive-widget-inner {
  background: #FEFCF7;
  border: 1px solid #B8860B;
  border-radius: 8px;
  padding: 20px 24px;
}
.archive-widget-title {
  font-size: 15px;
  font-weight: bold;
  color: #3A2A0A;
  border-bottom: 2px solid #B8860B;
  padding-bottom: 8px;
  margin: 0 0 14px;
}
.archive-year-details {
  margin-bottom: 6px;
}
.archive-year-summary {
  font-size: 14px;
  font-weight: bold;
  color: #B8860B;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
.archive-year-summary::-webkit-details-marker { display: none; }
.archive-year-summary::before { content: '▶ '; font-size: 11px; }
.archive-year-details[open] > .archive-year-summary::before { content: '▼ '; }
.archive-month-list {
  margin: 4px 0 8px 16px;
  padding: 0;
  list-style: none;
}
.archive-month-list li {
  margin: 4px 0;
}
.archive-month-link {
  font-size: 13px;
  color: #5A3E1B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.archive-month-link::before {
  content: '└ ';
  font-size: 11px;
  color: #B8860B;
  white-space: pre;
}
.archive-month-link:hover { color: #B8860B; text-decoration: underline; }
.archive-month-link.active {
  color: #B8860B;
  font-weight: bold;
}
.archive-count {
  color: #999;
  font-size: 12px;
}
.archive-reset-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #B8860B;
  cursor: pointer;
  background: none;
  border: 1px solid #B8860B;
  border-radius: 4px;
  padding: 3px 10px;
  font-family: inherit;
}
.archive-reset-btn:hover { background: #FFF5E0; }
