/*
Theme Name: Botamica
*/

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

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

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  color: #2c2c2a;
  background: #faf9f6;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   Layout
=========================== */
.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0ded6;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo a {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #3a4a2e;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav li {
  list-style-type: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #5f5e5a;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  
}

.site-nav a:hover {
  color: #3a4a2e;
}

/* ===========================
   Hero（トップページ）
=========================== */
.hero {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2e3d22;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/june01.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  /* color: #b5d4a0; */
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: #f0ede6;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: #c8c4b8;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #f0ede6;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: background 0.25s, border-color 0.25s;
}

.hero-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ===========================
   Category Hero
=========================== */
.category-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid #e0ded6;
  background: #f2f0ea;
}

.cat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7a9a60;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cat-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c2c2a;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.cat-desc {
  font-size: 0.9rem;
  color: #888780;
  font-weight: 300;
}

/* ===========================
   Section（新着・共通）
=========================== */
.section-recent {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c2c2a;
  letter-spacing: 0.02em;
}

.section-more {
  font-size: 0.85rem;
  color: #7a9a60;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.section-more:hover {
  color: #3a4a2e;
}

/* ===========================
   Main Content（カテゴリーページ）
=========================== */
.main-content {
  padding: 64px 0 80px;
}

/* ===========================
   Post Grid
=========================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 32px;
}

/* トップページは3カラム固定 */
.post-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .post-grid,
  .post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===========================
   Post Card
=========================== */
.post-card {
  background: #fff;
  border: 1px solid #e8e6de;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-link {
  display: block;
}

/* カード画像 */
.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e8e6de;
}

.card-img img {
  transition: transform 0.4s ease;
}

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

.card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #3a4a2e;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}

/* カード本文 */
.card-body {
  padding: 20px 22px 24px;
}

.card-date {
  display: block;
  font-size: 0.75rem;
  color: #b4b2a9;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2a;
  line-height: 1.55;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.card-excerpt {
  font-size: 0.83rem;
  color: #888780;
  line-height: 1.75;
  font-weight: 300;
}

/* ===========================
   Pagination
=========================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0ded6;
  font-size: 0.875rem;
  color: #5f5e5a;
  transition: border-color 0.2s, color 0.2s;
}

.page-num:hover {
  border-color: #7a9a60;
  color: #3a4a2e;
}

.page-num.current {
  background: #3a4a2e;
  border-color: #3a4a2e;
  color: #fff;
}

.page-num.next {
  font-size: 1rem;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: #2e3d22;
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #b5d4a0;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.78rem;
  color: #7a9a60;
  letter-spacing: 0.06em;
}