/*
Theme Name: Golf Goods Lab
Theme URI: https://example.com
Author: Golf Goods Lab
Author URI: https://example.com
Description: ゴルフグッズ研究所 - アフィリエイト特化型ゴルフブログテーマ
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golf-goods-lab
Tags: golf, affiliate, responsive, number-web-style
*/

/* ============================================================
   CSS Variables（Number Web参考・明るめ調整）
   ============================================================ */
:root {
  /* --- カラー --- */
  --color-bg:          #f5f5f5;     /* 背景: 明るいライトグレー */
  --color-surface:     #ffffff;     /* カード・セクション背景: 白 */
  --color-surface-alt: #f0f0f0;     /* 交互背景: 薄グレー */
  --color-border:      #e0e0e0;     /* ボーダー */
  --color-text:        #1a1a1a;     /* メインテキスト */
  --color-text-sub:    #666666;     /* サブテキスト */
  --color-text-muted:  #999999;     /* ミュートテキスト */

  /* ゴルフグリーン（Number WebのRANKINGセクションバー参考・深みグリーン） */
  --color-green:       #1b5e20;
  --color-green-mid:   #2e7d32;
  --color-green-light: #388e3c;
  --color-green-pale:  #e8f5e9;

  /* 速報バッジ */
  --color-news:        #c62828;
  --color-news-bg:     #ffebee;

  /* Amazonオレンジ */
  --color-amazon:      #ff9900;

  /* --- ヘッダー --- */
  --color-header-bg:   #1a1a1a;
  --color-header-text: #ffffff;

  /* --- フォント --- */
  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans:  'Noto Sans JP', sans-serif;

  /* --- レイアウト --- */
  --max-width:     1200px;
  --content-width: 780px;
  --gap:           16px;
  --radius:        4px;
  --transition:    0.18s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-green);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

/* ============================================================
   Layout
   ============================================================ */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.content-area {
  padding: 40px 0;
}

.layout-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .site-container {
    padding: 0 24px;
  }

  .layout-with-sidebar {
    flex-direction: row;
    align-items: flex-start;
  }

  .main-content {
    flex: 1;
    min-width: 0;
  }

  .sidebar {
    width: 300px;
    flex-shrink: 0;
  }
}

/* ============================================================
   Header（Number Web参考：黒背景・コンパクト）
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-header-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 12px;
}

.site-branding a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.site-description {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 2px;
  display: none;
}

@media (min-width: 375px) {
  .site-description {
    display: block;
  }
}

/* PC ナビ */
.header-nav {
  display: none;
  margin-left: auto;
}

.header-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.header-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.header-nav a:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 24px;
    height: 56px;
  }

  .header-nav {
    display: block;
  }

  .site-title {
    font-size: 1.1rem;
  }
}

/* Hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 1px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Drawer Menu */
.drawer-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 999;
  padding: 70px 24px 40px;
  transition: right 0.28s ease;
  overflow-y: auto;
}

.drawer-nav.is-open {
  right: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.drawer-nav a:hover {
  color: var(--color-green-light);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 998;
}

.drawer-overlay.is-visible {
  display: block;
}

/* ============================================================
   Hero: 最新記事1本 大画像表示（Number Webトップ記事参考）
   ============================================================ */
.hero-latest {
  margin-top: 52px;  /* fixed header分 */
  width: 100%;
  overflow: hidden;  /* はみ出し防止 */
}

@media (min-width: 768px) {
  .hero-latest {
    margin-top: 56px;
  }
}

.hero-latest-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.hero-latest-thumb {
  position: relative;
  width: 100%;
  height: 280px;       /* モバイルで適切な高さ（aspect-ratio非対応環境の保険） */
  overflow: hidden;
  background-color: #2a2a2a;
}

@media (min-width: 768px) {
  .hero-latest-thumb {
    height: 420px;
  }
}

.hero-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.hero-latest-link:hover .hero-latest-thumb img {
  transform: scale(1.03);
}

.hero-latest-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1b5e20 0%, #0a1f0a 100%);
}

.hero-latest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
}

.hero-latest-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-latest-inner {
    padding: 24px 32px;
  }
}

.hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  background-color: var(--color-green-mid);
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-cat-badge.badge-news {
  background-color: var(--color-news);
}

.badge-live {
  display: inline-block;
  background: #ffffff;
  color: var(--color-news);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  letter-spacing: 0.08em;
}

.hero-latest-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-latest-title {
    font-size: 1.5rem;
  }
}

.hero-latest-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ============================================================
   Front-page Common Section Layout
   ============================================================ */
.fp-section {
  padding: 24px 0;
  background-color: var(--color-surface);
}

.fp-section--gray {
  background-color: var(--color-surface-alt);
}

.fp-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .fp-section {
    padding: 32px 0;
  }

  .fp-container {
    padding: 0 24px;
  }
}

/* Section Head（Number Web参考：左に太いカラーライン+セクション名）*/
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.section-bar {
  display: block;
  width: 4px;
  height: 20px;
  background-color: var(--color-green-mid);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.03em;
  flex: 1;
}

@media (min-width: 768px) {
  .section-name {
    font-size: 1.1rem;
  }
}

.section-more {
  font-size: 0.78rem;
  color: var(--color-text-sub);
  text-decoration: none;
  flex-shrink: 0;
}

.section-more:hover {
  color: var(--color-green-mid);
}

/* ============================================================
   Section 1: ゴルフ速報 ニュースカード（2列グリッド・左サムネ）
   ============================================================ */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;                                  /* border方式に切替えたため gap は 0 */
  background-color: var(--color-surface);  /* 空セルが白になるよう border-color から surface に変更 */
  border: 1px solid var(--color-border);
}

/* アイテム間のセパレータを border で再現（news-list の background を white にした分を補完） */

@media (min-width: 600px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .news-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-card {
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.news-card-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--transition);
}

.news-card-link:hover {
  background-color: #fafafa;
}

@media (min-width: 600px) {
  .news-card-link {
    flex-direction: column;
    gap: 8px;
    padding: 0 0 12px 0;
  }
}

.news-card-thumb {
  position: relative;
  width: 80px;
  min-width: 80px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #e0e0e0;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .news-card-thumb {
    width: 100%;
    min-width: unset;
  }
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-link:hover .news-card-thumb img {
  transform: scale(1.04);
}

.news-card-thumb-blank {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

/* 速報バッジ */
.badge-speed {
  position: absolute;
  top: 4px;
  left: 0;
  background-color: var(--color-news);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  z-index: 2;
}

.news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 600px) {
  .news-card-body {
    padding: 8px 12px 0;
  }
}

.news-cat {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-green-mid);
  letter-spacing: 0.04em;
  line-height: 1;
}

.news-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 600px) {
  .news-title {
    -webkit-line-clamp: 2;
  }
}

.news-time {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Section 2: クラブ・用品 カテゴリグリッド（2列）
   ============================================================ */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .gear-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .gear-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gear-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-color: #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gear-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gear-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gear-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gear-card:hover .gear-card-thumb img {
  transform: scale(1.05);
}

.gear-card-thumb-blank {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.gear-card-overlay {
  position: absolute;
  inset: 0;
}

.gear-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 10px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.gear-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1.3;
}

@media (min-width: 600px) {
  .gear-name {
    font-size: 0.9rem;
  }
}

.gear-count {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ============================================================
   Section 3: 新着記事 横長カード1列（Number Web記事リスト参考）
   ============================================================ */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.latest-card {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.latest-card:last-child {
  border-bottom: none;
}

.latest-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--transition);
}

.latest-card-link:hover {
  background-color: #f9fbe7;
}

.latest-card-thumb {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #e0e0e0;
  flex-shrink: 0;
  border-radius: 2px;
}

@media (min-width: 480px) {
  .latest-card-thumb {
    width: 120px;
    min-width: 120px;
  }
}

@media (min-width: 768px) {
  .latest-card-thumb {
    width: 160px;
    min-width: 160px;
  }

  .latest-card-link {
    padding: 14px 16px;
    gap: 16px;
  }
}

.latest-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.latest-card-link:hover .latest-card-thumb img {
  transform: scale(1.05);
}

.latest-card-thumb-blank {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
}

.latest-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.latest-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  background-color: var(--color-green-pale);
  color: var(--color-green);
  border-radius: 2px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-cat-badge.badge-news {
  background-color: var(--color-news-bg);
  color: var(--color-news);
}

.badge-live-sm {
  display: inline-block;
  background: var(--color-news);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.latest-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .latest-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
  }
}

.latest-time {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================================
   Profile（コンパクト）
   ============================================================ */
.fp-profile {
  padding: 20px 0;
}

.profile-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
}

.profile-compact-icon {
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  background: var(--color-green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-compact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-green-mid);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.profile-compact-text {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.03em;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-green-mid);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-green);
  color: #ffffff;
}

.btn-amazon {
  background-color: var(--color-amazon);
  color: #111111;
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: 4px;
  box-shadow: 0 3px 0 #c97a00;
}

.btn-amazon:hover {
  background-color: #ffaa20;
  color: #111111;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-green-mid);
  color: var(--color-green-mid);
}

.amazon-btn-wrap {
  margin: 24px 0;
  text-align: center;
}

.amazon-btn-wrap a.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.amazon-btn-wrap a.btn-amazon::before {
  content: '🛒';
  font-size: 1.1em;
}

/* ============================================================
   Section Common（archive/single用）
   ============================================================ */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-green-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.4rem;
  color: var(--color-text);
}

.section-divider {
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-green-mid);
  margin: 12px auto 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }
}

/* ============================================================
   Category Cards（archive用）
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card[data-category="drivers"]   { background: linear-gradient(135deg, #c8e6c9 0%, #1b5e20 100%); }
.category-card[data-category="irons"]     { background: linear-gradient(135deg, #bbdefb 0%, #0d47a1 100%); }
.category-card[data-category="wedges"]    { background: linear-gradient(135deg, #ffe0b2 0%, #e65100 100%); }
.category-card[data-category="putters"]   { background: linear-gradient(135deg, #c8e6c9 0%, #1a5c1a 100%); }
.category-card[data-category="golf-balls"]{ background: linear-gradient(135deg, #eeeeee 0%, #37474f 100%); }
.category-card[data-category="bags"]      { background: linear-gradient(135deg, #e1bee7 0%, #4a148c 100%); }
.category-card[data-category="accessories"]{ background: linear-gradient(135deg, #b2ebf2 0%, #006064 100%); }

.category-card:not([data-category]) {
  background: linear-gradient(135deg, #c8e6c9 0%, #1b5e20 100%);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 55%);
  pointer-events: none;
}

.category-card:hover {
  border-color: var(--color-green-mid);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-icon {
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  z-index: 2;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.2s ease;
}

.category-card:hover .category-icon {
  transform: translate(-50%, -70%) scale(1.1);
}

.category-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  padding: 0 8px 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.category-count {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ============================================================
   Post Cards（archive/single関連記事）
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.post-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: var(--color-green-mid);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #e0e0e0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.post-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-green-mid);
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-green-mid);
}

.post-card-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.post-card-excerpt {
  font-size: 0.8rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Profile Section（full版・archive/singleページ用）
   ============================================================ */
.profile-section {
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.profile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-green-mid);
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-green-pale);
  border: 3px solid var(--color-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.profile-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-green-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.profile-text {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .profile-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================================
   Single Post
   ============================================================ */
.single-eyecatch {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  max-height: 500px;
}

.single-eyecatch-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 500px;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-green-mid);
}

.breadcrumb-sep {
  margin: 0 6px;
  opacity: 0.4;
}

.entry-header {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.entry-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.entry-cat-label {
  display: inline-block;
  background-color: var(--color-green-mid);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.entry-cat-label:hover {
  background-color: var(--color-green);
  color: #ffffff;
}

.entry-title {
  font-size: 1.4rem;
  color: var(--color-text);
  line-height: 1.45;
  margin-bottom: 14px;
}

.entry-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 768px) {
  .entry-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   Entry Content (記事本文)
   ============================================================ */
.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content h2 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 2.2em 0 0.8em;
  padding: 10px 14px;
  border-left: 4px solid var(--color-green-mid);
  background-color: var(--color-green-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 1.8em 0 0.7em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.entry-content h4 {
  font-size: 0.98rem;
  color: var(--color-text);
  margin: 1.5em 0 0.6em;
}

.entry-content ul {
  margin-bottom: 1.6em;
  padding-left: 0;
}

.entry-content ul li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: var(--color-text);
}

.entry-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-green-mid);
  font-size: 0.8em;
}

.entry-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 1.6em;
}

.entry-content ol li {
  padding: 4px 0;
  color: var(--color-text);
}

.entry-content strong {
  color: var(--color-text);
  font-weight: 700;
}

.entry-content em {
  font-style: italic;
}

.entry-content a {
  color: var(--color-green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--color-green);
}

.entry-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-green-mid);
  padding: 12px 16px;
  margin: 1.6em 0;
  background-color: var(--color-green-pale);
  color: var(--color-text-sub);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.85rem;
}

.entry-content th {
  background-color: var(--color-green-mid);
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
}

.entry-content td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  color: var(--color-text);
}

.entry-content tr:nth-child(even) td {
  background-color: var(--color-surface-alt);
}

/* ============================================================
   Related Posts
   ============================================================ */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.related-posts-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Post Navigation
   ============================================================ */
.post-navigation {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nav-prev,
.nav-next {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--transition);
}

.nav-prev:hover,
.nav-next:hover {
  border-color: var(--color-green-mid);
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.nav-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  text-decoration: none;
}

.nav-title:hover {
  color: var(--color-green-mid);
}

/* ============================================================
   Archive
   ============================================================ */
.archive-header {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .archive-header {
    padding: 88px 0 40px;
  }
}

.archive-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-green-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.archive-title {
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.archive-description {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  max-width: 600px;
}

/* Pagination */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-decoration: none;
  background-color: var(--color-surface);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-green-mid);
  border-color: var(--color-green-mid);
  color: #ffffff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: sticky;
  top: 72px;
}

.widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-green-mid);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 0;
}

.search-form-inner {
  display: flex;
  width: 100%;
}

.search-field {
  flex: 1;
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 10px 12px;
  outline: none;
}

.search-field:focus {
  border-color: var(--color-green-mid);
}

.search-submit {
  background-color: var(--color-green-mid);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #ffffff;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color var(--transition);
  min-height: 44px;
}

.search-submit:hover {
  background-color: var(--color-green);
}

.widget-categories ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.widget-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}

.widget-categories li a:hover {
  color: var(--color-green-mid);
}

.widget-categories .count {
  font-size: 0.7rem;
  color: var(--color-green-mid);
  background-color: var(--color-green-pale);
  padding: 2px 7px;
  border-radius: 10px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-post-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.recent-post-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background-color: var(--color-surface-alt);
}

.recent-post-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.recent-post-title:hover {
  color: var(--color-green-mid);
}

.recent-post-date {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: #1a1a1a;
  border-top: none;
  padding: 36px 0 16px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-brand {
  text-align: center;
  margin-bottom: 20px;
}

.footer-site-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-catch {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   Utility
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 36px; }

.page-top-padding {
  padding-top: 52px;
}

@media (min-width: 768px) {
  .page-top-padding {
    padding-top: 56px;
  }
}

.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  color: var(--color-green-mid);
  font-size: 2rem;
}

/* ============================================================
   Product Card
   ============================================================ */
.product-card {
  display: flex;
  gap: 20px;
  margin: 28px 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.product-card .product-img {
  width: 180px;
  min-width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.product-card .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-text);
}

.product-card .product-body p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.product-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-amazon {
  display: inline-block;
  padding: 10px 18px;
  background: var(--color-amazon);
  color: #111111 !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-amazon:hover { background: #e68900; }

@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
  }
  .product-card .product-img {
    width: 100%;
    min-width: unset;
    height: 180px;
  }
}

/* ============================================================
   わかることボックス（ライト背景での文字強制）
   ============================================================ */
div[style*="background:#f0f7ff"],
div[style*="background: #f0f7ff"],
div[style*="background:#f5f9ff"],
div[style*="background: #f5f9ff"],
div[style*="background:#f0f4f8"],
div[style*="background: #f0f4f8"],
div[style*="background:#e8f4e8"],
div[style*="background: #e8f4e8"] {
  color: #1a1a1a !important;
}

div[style*="background:#f0f7ff"] p,
div[style*="background:#f0f7ff"] li,
div[style*="background:#f0f7ff"] ul,
div[style*="background:#f0f7ff"] strong,
div[style*="background: #f0f7ff"] p,
div[style*="background: #f0f7ff"] li,
div[style*="background: #f0f7ff"] ul,
div[style*="background: #f0f7ff"] strong,
div[style*="background:#f5f9ff"] p,
div[style*="background:#f5f9ff"] li,
div[style*="background:#f5f9ff"] ul,
div[style*="background:#f5f9ff"] strong,
div[style*="background: #f5f9ff"] p,
div[style*="background: #f5f9ff"] li,
div[style*="background: #f5f9ff"] ul,
div[style*="background: #f5f9ff"] strong,
div[style*="background:#f0f4f8"] p,
div[style*="background:#f0f4f8"] li,
div[style*="background: #f0f4f8"] p,
div[style*="background: #f0f4f8"] li,
div[style*="background:#e8f4e8"] p,
div[style*="background:#e8f4e8"] li,
div[style*="background: #e8f4e8"] p,
div[style*="background: #e8f4e8"] li {
  color: #1a1a1a !important;
}

/* ============================================================
   可読性改善
   ============================================================ */
.entry-content p,
.post-content p,
article p {
  line-height: 1.9;
  margin-bottom: 1.8em;
}

.entry-content li,
.post-content li,
article li {
  line-height: 1.85;
  margin-bottom: 0.4em;
}

.entry-content figure,
.post-content figure,
article figure {
  margin: 2em 0;
  text-align: center;
}

.entry-content figure img,
.post-content figure img,
article figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.entry-content figcaption,
.post-content figcaption {
  font-size: 0.82em;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Putter Section */
.putter-section { margin: 40px 0; }
.putter-section h2 { border-left: 4px solid #2d6a2d; padding-left: 12px; margin: 32px 0 16px; }
.product-card { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px; margin: 16px 0; }
.product-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.amazon-btn { display: inline-block; background: #ff9900; color: #fff; font-weight: bold; padding: 10px 20px; border-radius: 4px; text-decoration: none; margin-top: 12px; }
.amazon-btn:hover { background: #e68900; }

/* ─── Reload Button & Version Tag (added 20260531) ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;   /* header-inner内で右端に寄せる */
  flex-shrink: 0;
}
/* ラップ内のhamburgerはmargin-left:autoを使わない */
.header-actions .hamburger {
  margin-left: 0;
}
.reload-btn {
  background: transparent;
  border: none;
  color: var(--color-header-text, #fff);
  cursor: pointer;
  padding: 4px 3px;
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.3s;
  line-height: 1;
}
.reload-btn:hover { opacity: 1; }
.reload-btn:active { transform: rotate(180deg); }
.site-version-tag {
  font-size: 9px;
  line-height: 1.3;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.04em;
  text-align: center;
  margin-right: 2px;
  white-space: nowrap;
}
.site-version-tag small { font-size: 8px; }

/* PC幅では非表示 */
@media (min-width: 769px) {
  .reload-btn,
  .site-version-tag { display: none; }
}
