/* ===================================
   global.css — サイト全体のスタイル
   =================================== */

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

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

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

/* --- ヘッダー --- */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-left: 52px;
}

/* --- メインコンテンツ --- */
.site-main {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* --- カテゴリセクション --- */
.category-section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.section-count {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
}

/* ===================================
   メイソンリーグリッド
   CSS Columns を使ったマルチカラムレイアウト。
   =================================== */
.masonry-grid {
  column-count: 2;
  column-gap: 16px;
}

.masonry-grid > :global(.item-card) {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .masonry-grid { column-count: 3; }
}

@media (min-width: 960px) {
  .masonry-grid { column-count: 4; }
}

@media (min-width: 1280px) {
  .masonry-grid { column-count: 5; }
}

/* --- フッター --- */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 20px 16px;
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-note {
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.7rem;
  opacity: 0.6;
}
