/*
Theme Name: SupSale Value Style v6 UI 22
Theme URI: https://bolg.supsale.jp/
Author: SupSale
Description: 日本の消費者向けのブランド小物記事を2カラムで表示するSupSale用テーマ。
Version: 2.6.15
Text Domain: supsale-vintage
Domain Path: /languages
*/

/* ===== テーマ全体設定 ===== */
:root {
  --brand-primary: #142521;
  --brand-accent: #208a73;
  --brand-accent-light: #bfeee2;
  --brand-bg: #f6f7f5;
  --brand-card-bg: #ffffff;
  --brand-text: #171b1f;
  --brand-text-muted: #626a72;
  --brand-border: #dfe5e1;
  --brand-tag-bg: #eef4f1;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --grid-gap: 24px;
  --card-radius: 6px;
  --card-shadow: 0 1px 2px rgba(17, 27, 31, 0.05);
  --content-max: 820px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--brand-text);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--brand-primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--brand-accent);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 16px;
}

.site-branding h1, .site-branding p { margin: 0; }
.site-branding { min-width: 0; }

.site-branding a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.site-branding .site-description {
  font-size: 12px;
  color: var(--brand-accent-light);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.5;
}

.main-navigation {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-navigation ul::-webkit-scrollbar { display: none; }

.main-navigation a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 4px;
  white-space: nowrap;
}

.main-navigation a:hover { color: var(--brand-accent); background: rgba(255,255,255,0.06); }

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.site-search input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
}
.site-search input::placeholder { color: rgba(255,255,255,0.62); }
.site-search button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--brand-accent);
  color: #fff;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.site-search button:hover { background: #2aa386; }

/* ===== メインコンテンツ ===== */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ===== ヒーローセクション ===== */
.hero-section {
  margin-bottom: 26px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--card-radius);
}
.hero-copy { min-width: 0; }
.hero-kicker {
  margin: 0 0 6px;
  color: var(--brand-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.28;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0;
}
.hero-desc {
  font-size: 15px;
  color: var(--brand-text-muted);
  margin: 0;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 360px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-tag-bg);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.no-posts-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--brand-text-muted);
}

/* ===== 記事グリッド ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
}

/* 記事カード */
.post-card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  min-width: 0;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-card-media-link,
.post-card-body-link {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.post-card-media-link {
  display: block;
  position: relative;
}

.post-card-body-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-tag-bg);
  position: relative;
  line-height: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.post-card:hover .post-card-thumb img { transform: scale(1.03); }

.post-card-photo-cue {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20,37,33,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.post-card-thumb .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--brand-text-muted);
  font-size: 12px;
  background: linear-gradient(135deg, #f0ede8 0%, #e8e4de 100%);
}

.post-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 206px;
  min-width: 0;
}

.post-card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--brand-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: calc(1.45em * 2);
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand-text-muted);
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 3);
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand-text-muted);
  border-top: 1px solid var(--brand-border);
  padding-top: 12px;
  margin-top: auto;
  gap: 12px;
}

.post-card-date { font-size: 12px; white-space: nowrap; }

.post-card-read {
  color: var(--brand-accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: right;
}

/* ===== 無限スクロール ===== */
#infinite-scroll-sentinel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
  color: var(--brand-text-muted);
}

.infinite-scroll-loading::after { content: "読み込み中…"; animation: blink 1.2s ease-in-out infinite; }
.infinite-scroll-end::after { content: "すべての記事を表示しました"; color: var(--brand-text-muted); }
.infinite-scroll-error::after { content: "読み込みに失敗しました"; color: #cc3333; }

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== シングル記事 ===== */
.single-post-wrapper { max-width: var(--content-max); margin: 0 auto; }
.single-post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--brand-border); }
.single-post-header .post-category { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-accent); text-transform: uppercase; }
.single-post-header h1 { font-family: var(--font-serif); font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 12px 0 16px; font-weight: 700; }
.single-post-header .post-meta { font-size: 13px; color: var(--brand-text-muted); }
.single-post-featured { margin: 20px 0 0; }
.single-post-featured img { width: 100%; height: auto; border-radius: 4px; }

.post-content { font-size: 17px; line-height: 2; }
.post-content p { margin: 0 0 1.6em; }
.post-content h2 { font-family: var(--font-serif); font-size: clamp(24px, 3.5vw, 32px); line-height: 1.3; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-accent); }
.post-content h3 { font-family: var(--font-serif); font-size: clamp(20px, 3vw, 26px); margin: 36px 0 12px; }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 24px 0; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { font-size: 13px; color: var(--brand-text-muted); text-align: center; margin-top: 6px; }
.post-content blockquote { margin: 28px 0; padding: 16px 20px; border-left: 3px solid var(--brand-accent); background: #f8f6f2; font-style: italic; }
.post-content ul, .post-content ol { margin: 0 0 1.6em; padding-left: 24px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--brand-accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--brand-primary); }
.supsale-official-check {
  margin: 34px 0;
  padding: 20px 22px 18px;
  border: 1px solid #cbdcd5;
  border-left: 4px solid var(--brand-accent);
  border-radius: 6px;
  background: #fbfcfa;
}
.supsale-official-check__label {
  display: inline-block;
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  color: var(--brand-accent);
}
.supsale-official-check h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 3vw, 27px);
  border-bottom: 0;
  padding-bottom: 0;
}
.supsale-official-check p {
  margin-bottom: 12px;
  color: var(--brand-text-muted);
}
.supsale-official-check ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding-left: 18px;
  margin-bottom: 0;
}
.supsale-official-check li {
  margin-bottom: 0;
}
.supsale-product-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.supsale-product-gallery {
  margin: 42px 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--brand-border);
}
.supsale-product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.supsale-product-gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--brand-tag-bg);
}
.supsale-product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.25s;
}
.supsale-product-gallery-item:hover img { transform: scale(1.04); }
.supsale-gallery-source {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: right;
}
.supsale-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}
.supsale-post-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  background: var(--brand-tag-bg);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.supsale-post-tags a:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* ===== フッター ===== */
.site-footer { background: var(--brand-primary); color: rgba(255,255,255,0.7); padding: 10px 20px; text-align: center; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer a { color: var(--brand-accent-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 10px;
  min-width: 0;
}
.footer-brand { font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: #fff; margin: 0; line-height: 1.25; }
.footer-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255,255,255,0.64);
}
.footer-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255,255,255,0.56);
  white-space: nowrap;
}

.supsale-consult-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20,37,33,0.22);
}
.supsale-consult-float span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  font-size: 11px;
  font-weight: 900;
}
.supsale-consult-float strong {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}
.supsale-consult-float:hover { background: #2aa386; }

/* ===== ページネーション（フォールバック） ===== */
.pagination { grid-column: 1 / -1; text-align: center; padding: 32px 0; display: flex; justify-content: center; gap: 6px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--brand-border); font-size: 14px; text-decoration: none; color: var(--brand-text); border-radius: 4px; }
.pagination .current { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.pagination a:hover { background: var(--brand-tag-bg); }

/* ===== 人気タグ ===== */
.popular-tags-section {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--card-radius);
}
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-kicker {
  margin: 0 0 4px;
  color: var(--brand-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--brand-primary);
}
.popular-tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}
.popular-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  background: var(--brand-tag-bg);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.popular-tag:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.supsale-related-posts {
  margin: 34px 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.supsale-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.supsale-related-post {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.supsale-related-post:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* ===== モバイル対応 ===== */
@media (max-width: 600px) {
  .site-content { padding: 16px 10px 72px; }
  .header-inner {
    padding: 10px 12px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-branding a { font-size: 18px; }
  .site-branding .site-description {
    font-size: 11px;
    line-height: 1.45;
  }
  .main-navigation ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: visible;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .main-navigation ul::-webkit-scrollbar { display: none; }
  .main-navigation a { font-size: 11px; padding: 6px 8px; }
  .site-search {
    max-width: none;
    margin-left: 0;
  }
  .site-search input, .site-search button {
    min-height: 32px;
    font-size: 11px;
  }
  .hero-section {
    padding: 14px 12px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .hero-kicker { font-size: 10px; margin-bottom: 4px; }
  .hero-title { font-size: 21px; line-height: 1.32; }
  .hero-desc { font-size: 12px; line-height: 1.65; }
  .hero-meta {
    justify-content: flex-start;
    gap: 6px;
    max-width: none;
  }
  .hero-meta span {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 10px;
  }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post-card-body { min-height: 158px; padding: 12px 10px 13px; }
  .post-card-category { font-size: 10px; margin-bottom: 6px; }
  .post-card-title { font-size: 13px; line-height: 1.45; margin-bottom: 7px; min-height: calc(1.45em * 2); }
  .post-card-excerpt { font-size: 11px; line-height: 1.55; margin-bottom: 10px; -webkit-line-clamp: 2; min-height: calc(1.55em * 2); }
  .post-card-footer { padding-top: 9px; gap: 6px; }
  .post-card-date, .post-card-read { font-size: 10px; }
  .post-card-thumb { aspect-ratio: 16 / 10; }
  .post-card-photo-cue {
    right: 6px;
    bottom: 6px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: 9px;
  }
  .popular-tags-section {
    margin-top: 18px;
    padding: 14px 12px;
  }
  .section-heading-row { margin-bottom: 10px; }
  .section-kicker { font-size: 10px; }
  .section-title { font-size: 18px; }
  .popular-tags-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .popular-tag {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 10px;
  }
  .post-content { font-size: 15px; }
  .single-post-header h1 { font-size: 24px; }
  .supsale-official-check {
    padding: 16px 16px 15px;
  }
  .supsale-official-check ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .supsale-product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .supsale-related-posts { margin: 24px 0; padding: 16px 0; }
  .supsale-related-posts-grid { gap: 8px; }
  .supsale-related-post {
    min-height: 48px;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.4;
  }
  .site-footer {
    padding: 10px 10px 12px;
    text-align: center;
  }
  .footer-inner {
    display: flex;
    justify-content: center;
  }
  .footer-meta {
    justify-content: center;
    gap: 2px 8px;
  }
  .footer-brand { font-size: 13px; }
  .footer-note { min-height: 20px; font-size: 10px; }
  .footer-copy {
    font-size: 10px;
    white-space: normal;
  }
  .supsale-consult-float {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 7px 10px 7px 8px;
  }
  .supsale-consult-float strong { font-size: 12px; }
  .supsale-consult-float span { width: 28px; height: 28px; font-size: 10px; }
}

/* ===== タブレット微調整 ===== */
@media (min-width: 601px) and (max-width: 1024px) {
  .header-inner {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .site-search { grid-column: 1 / -1; max-width: 520px; }
  .main-navigation ul { justify-content: flex-start; }
  .hero-section { grid-template-columns: 1fr; align-items: start; }
  .hero-meta { justify-content: flex-start; max-width: none; }
  .post-grid { gap: 20px; }
  .post-card-title { font-size: 17px; }
}


