/*
Theme Name: GaruScope
Theme URI: https://garuscope.example.com
Author: Antigravity
Author URI: https://garuscope.example.com
Description: DLsiteがるまにレビューまとめ専用テーマ (Masonry Mix Style)
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garuscope
*/

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

:root {
  --bg-page: #f7f5f3;
  --bg-white: #ffffff;
  --text-main: #2d2d2d;
  --text-sub: #787878;
  --text-light: #aaaaaa;
  --border: #ece9e5;

  --pink: #e8878c;
  --pink-light: #fdf0f0;
  --pink-gradient: linear-gradient(135deg, #f2a5aa 0%, #e8878c 100%);
  --cream: #faf6f2;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

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

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ===========================
   Header
   =========================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.site-description {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

.site-navigation {
  border-top: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-inner a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-inner a:hover {
  background: var(--pink-light);
  color: var(--pink);
}

/* ===========================
   Main Layout
   =========================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: 40px 24px;
}

.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

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

/* ===========================
   Section Heading
   =========================== */
.section-block {
  margin-bottom: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-gradient);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===========================
   Masonry Card Grid
   =========================== */
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.pickup-grid .review-card:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.pickup-grid .review-card:first-child .card-thumbnail {
  padding-top: 65%;
}

.pickup-grid .review-card:first-child .card-title {
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===========================
   Review Card
   =========================== */
.review-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--cream);
  overflow: hidden;
}

.card-thumbnail img,
.no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.review-card:hover .card-thumbnail img {
  transform: scale(1.04);
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pink-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--pink);
}

.card-excerpt {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  display: inline-block;
  background: var(--pink-gradient);
  color: #fff;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(232, 135, 140, 0.3);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

.view-all-link {
  text-align: center;
  margin-top: 28px;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--bg-white);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--pink-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.widget ul {
  list-style: none;
  padding-left: 0;
}

.widget li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget a:hover {
  color: var(--pink);
}

.search-form {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border);
}

.search-field {
  flex: 1;
  padding: 9px 16px;
  border: none;
  font-size: 13px;
  outline: none;
  background: transparent;
}

.search-submit {
  padding: 9px 18px;
  background: var(--pink-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.search-submit:hover {
  opacity: 0.85;
}

/* ===========================
   Single Review Detail
   =========================== */
.detail-main {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-hero h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.genre-chip {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}

.review-box {
  background: var(--cream);
  border: none;
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 32px 0;
}

.review-article h3 {
  font-size: 18px;
  font-weight: 700;
  padding-left: 14px;
  margin-bottom: 20px;
  border-left: 4px solid var(--pink);
}

.entry-content {
  font-size: 15px;
  line-height: 2;
}

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

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px;
  font-size: 12px;
  color: var(--text-sub);
}

/* ===========================
   Pagination
   =========================== */
.pagination {
  text-align: center;
  margin-top: 32px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
  background: var(--pink-light);
  color: var(--pink);
}

.pagination .page-numbers.current {
  background: var(--pink-gradient);
  color: #fff;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .pickup-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pickup-grid .review-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .pickup-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding: 24px 16px;
  }

  .detail-main {
    padding: 24px 20px;
  }
}
