/* ==========================================================================
   トップページ：投稿ギャラリー
   ========================================================================== */
.gallery-hero {
  position: relative;
  padding: 188px 0 96px;
  overflow: hidden;
  text-align: center;
}
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 8, 20, .82) 0%, rgba(14, 10, 24, .78) 55%, var(--bg) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, .50), rgba(6, 182, 212, .38) 45%, rgba(255, 63, 164, .46));
  background-blend-mode: multiply;
}
.gallery-hero-slides { position: absolute; inset: 0; z-index: 0; }
.gallery-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.gallery-hero-slide.is-active { opacity: 1; }
.gallery-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.gallery-hero .eyebrow { justify-content: center; color: var(--cyan); }
.gallery-hero-inner .serif-title {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
  margin-bottom: 20px;
}
.gallery-hero-desc { color: rgba(255, 255, 255, .82); font-size: 16px; margin-bottom: 36px; }
.gallery-hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ヒーロー直下：トレンドコラムの自動スクロールティッカー */
.topics-ticker {
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.topics-ticker-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
}
.topics-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--violet);
  white-space: nowrap;
}
.topics-ticker-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 63, 164, .18);
}
.topics-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.topics-ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: gpc-ticker-scroll 38s linear infinite;
}
.topics-ticker-viewport:hover .topics-ticker-track { animation-play-state: paused; }
.topics-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.topics-ticker-item:hover { color: var(--magenta); }
.topics-ticker-dot { font-size: 5px; color: var(--border); }
.topics-ticker-more {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
}
.topics-ticker-more:hover { color: var(--magenta); }
@keyframes gpc-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .topics-ticker-track { animation: none; }
}
@media (max-width: 640px) {
  .topics-ticker-more { display: none; }
}

.gallery-list { padding: 40px 0 120px; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.gallery-tabs { display: flex; gap: 8px; }
.gallery-tab {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gallery-tab:hover { border-color: var(--violet); color: var(--violet); }
.gallery-tab.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.gallery-parts-link { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.gallery-parts-link:hover { color: var(--magenta); }

.gallery-brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: -8px 0 28px;
}
.gallery-brand-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gallery-brand-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-right: 2px;
}
.gallery-brand-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gallery-brand-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.gallery-brand-chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-grid-compact { grid-template-columns: repeat(4, 1fr); gap: 18px; }

.gallery-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px 22px 6px 22px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -22px rgba(139, 92, 246, .35); }

.gallery-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: var(--grad-soft);
}

.gallery-card-body { padding: 18px 20px 20px; }
.gallery-card-title {
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.gallery-card-title a:hover { color: var(--magenta); }

.gallery-card-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gallery-card-parts li {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 2px 8px 2px 8px;
  padding: 3px 9px;
}

.gallery-card-meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-faint); }
.gallery-card-likes { color: var(--magenta); font-weight: 600; }

.gallery-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.gallery-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px 10px 4px 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.gallery-pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border);
  border-radius: 6px 24px 6px 24px;
  color: var(--text-muted);
}
.gallery-empty p { margin-bottom: 20px; }

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery-grid, .gallery-grid-compact { grid-template-columns: 1fr; }
  .gallery-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   トップページ：構成シミュレーター訴求セクション
   ========================================================================== */
.builder-promo { padding: 0 0 120px; }
.builder-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 8, 20, .80), rgba(14, 10, 24, .74)),
    linear-gradient(135deg, rgba(139, 92, 246, .40), rgba(6, 182, 212, .30) 55%, rgba(255, 63, 164, .30)),
    url('https://images.unsplash.com/photo-1591370874773-6702e8f12fd8?auto=format&fit=crop&w=1600&q=70') center 60% / cover no-repeat;
  background-blend-mode: normal, multiply, normal;
  border: 1px solid var(--border);
  border-radius: 8px 32px 8px 32px;
  padding: 56px;
}
.builder-promo-text .eyebrow { margin-bottom: 16px; }
.builder-promo-text .serif-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.builder-promo-desc { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 28px; }

.builder-promo-features { display: flex; flex-direction: column; gap: 20px; }
.builder-promo-feature {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px 16px 4px 16px;
  padding: 18px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.builder-promo-feature:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(139, 92, 246, .4); border-color: var(--violet); }
.builder-promo-feature-icon { font-size: 20px; }
.builder-promo-feature h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  color: var(--text);
  margin: 8px 0 6px;
}
.builder-promo-feature p { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; }

@media (max-width: 860px) {
  .builder-promo-inner { grid-template-columns: 1fr; padding: 36px 24px; }
}

/* ==========================================================================
   トップページ：価格別おすすめPC構成訴求セクション
   ========================================================================== */
.budget-pc-promo { padding: 0 0 120px; }
.budget-pc-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 8, 20, .80), rgba(14, 10, 24, .74)),
    linear-gradient(135deg, rgba(6, 182, 212, .38), rgba(139, 92, 246, .32) 55%, rgba(255, 63, 164, .28)),
    url('https://images.unsplash.com/photo-1587202372775-e229f172b9d7?auto=format&fit=crop&w=1600&q=70') center 45% / cover no-repeat;
  background-blend-mode: normal, multiply, normal;
  border: 1px solid var(--border);
  border-radius: 8px 32px 8px 32px;
  padding: 56px;
}
.budget-pc-promo-text .eyebrow { margin-bottom: 16px; }
.budget-pc-promo-text .serif-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.budget-pc-promo-desc { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 28px; }

.budget-pc-promo-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.budget-pc-promo-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px 16px 4px 16px;
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.budget-pc-promo-tier:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(139, 92, 246, .4); border-color: var(--violet); }
.budget-pc-promo-tier-price { font-family: "Shippori Mincho", serif; font-size: 22px; font-weight: 700; color: var(--violet); }
.budget-pc-promo-tier-label { font-size: 12px; color: var(--text-faint); line-height: 1.5; }

@media (max-width: 860px) {
  .budget-pc-promo-inner { grid-template-columns: 1fr; padding: 36px 24px; }
  .budget-pc-promo-tiers { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   トップページ：パーツ図鑑訴求セクション
   ========================================================================== */
.parts-promo { padding: 0 0 120px; }
.parts-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 8, 20, .82), rgba(14, 10, 24, .76)),
    linear-gradient(135deg, rgba(139, 92, 246, .34), rgba(6, 182, 212, .30) 55%, rgba(255, 63, 164, .26)),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=70') center 50% / cover no-repeat;
  background-blend-mode: normal, multiply, normal;
  border: 1px solid var(--border);
  border-radius: 8px 32px 8px 32px;
  padding: 56px;
}
.parts-promo-text .eyebrow { margin-bottom: 16px; }
.parts-promo-text .serif-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.parts-promo-desc { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 28px; }
.parts-promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.parts-promo-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.parts-promo-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px 14px 4px 14px;
  padding: 16px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.parts-promo-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(139, 92, 246, .4); border-color: var(--violet); background: var(--grad-soft); }
.parts-promo-cat-name { font-family: "Shippori Mincho", serif; font-size: 14.5px; color: var(--text); }
.parts-promo-cat-count { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

@media (max-width: 860px) {
  .parts-promo-inner { grid-template-columns: 1fr; padding: 36px 24px; }
  .parts-promo-categories { grid-template-columns: 1fr; }
}

/* ==========================================================================
   トップページ：コラム訴求セクション
   ========================================================================== */
.column-promo { padding: 0 0 120px; }
.column-promo .container {
  background:
    linear-gradient(135deg, rgba(10, 8, 20, .80), rgba(14, 10, 24, .74)),
    linear-gradient(135deg, rgba(255, 63, 164, .34), rgba(139, 92, 246, .30) 55%, rgba(6, 182, 212, .26)),
    url('https://images.unsplash.com/photo-1547082299-de196ea013d6?auto=format&fit=crop&w=1600&q=70') center 40% / cover no-repeat;
  background-blend-mode: normal, multiply, normal;
  border: 1px solid var(--border);
  border-radius: 8px 32px 8px 32px;
  padding: 56px;
}
.column-promo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.column-promo-head .eyebrow { margin-bottom: 12px; }
.column-promo-head .serif-title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.column-promo-desc { color: rgba(255, 255, 255, .82); font-size: 14px; max-width: 560px; }
.column-promo-more {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.column-promo-more:hover { color: var(--magenta); }

@media (max-width: 620px) {
  .column-promo-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .column-promo .container { padding: 36px 24px; }
}

/* ==========================================================================
   トップページ：サイト説明（About）セクション
   ========================================================================== */
.site-intro { padding: 0 0 100px; }
.site-intro-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px 32px 8px 32px;
  padding: 56px;
}
.site-intro-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.site-intro-head .eyebrow { margin-bottom: 16px; }
.site-intro-head .serif-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.6; margin-bottom: 16px; }
.site-intro-desc { color: var(--text-muted); font-size: 14px; line-height: 1.9; }

.site-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.site-intro-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px 16px 4px 16px;
  padding: 22px 24px;
}
.site-intro-item h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 14.5px;
  color: var(--text);
  margin: 0 0 6px;
}
.site-intro-item p { font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }

@media (max-width: 860px) {
  .site-intro-inner { padding: 36px 24px; }
  .site-intro-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-intro-grid { grid-template-columns: 1fr; }
}
