/* =====================================================
   MIINT Blog Theme — main.css
   ===================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #E4E2DF;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 300;
  color: #333;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

:root {
  --mint: #D2F5F0;
  --mint-dark: #68DACD;
  --mint-light: #9AE0D8;
  --mint-light2: #CDF3EE;
  --mint-blue: #ACC2D8;
  --bg: #E4E2DF;
  --white: #ffffff;
  --text-dark: #333333;
  --text-mid: #666666;
  --text-light: #999999;
  --header-h: 72px;
  --sidebar-w: 240px;
  --gap: 32px;
}

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-logo {
  height: 36px;
  width: auto;
}

.header-tagline {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 200px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-home {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mid);
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-home:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-list a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.06em;
}

.nav-list a:hover,
.nav-list .current-menu-item a {
  color: var(--mint);
  background: var(--mint-light2);
}

.nav-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--mint-dark) 0%, var(--mint-blue) 100%);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(109, 207, 196, 0.3);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-register-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* =====================================================
   BLOG HERO
   ===================================================== */
.blog-hero {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.blog-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-hero-img--sp {
  display: none;
}

@media (max-width: 768px) {
  .blog-hero-img--pc {
    display: none;
  }

  .blog-hero-img--sp {
    display: block;
  }
}

/* =====================================================
   SITE BODY LAYOUT (main + sidebar)
   ===================================================== */
.site-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--gap);
  align-items: start;
}

/* =====================================================
   CATEGORY NAV
   ===================================================== */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.cat-nav-item {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  padding: 6px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cat-nav-item:hover,
.cat-nav-item.active {
  border-color: var(--mint);
  color: var(--wp-admin-theme-color);
  background: var(--mint-light2);
}

/* =====================================================
   STICKY SECTION
   ===================================================== */
.sticky-section {
  margin-bottom: 40px;
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sticky-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: 1.5px solid var(--mint-light2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sticky-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.sticky-card-link {
  display: block;
  color: inherit;
}

.sticky-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mint-light2);
}

.sticky-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.sticky-thumb img.noimg {
  object-fit: contain;
  padding: 20px;
  background: var(--mint-light2);
}

.sticky-body {
  padding: 14px 16px 12px;
}

/* =====================================================
   POSTS GRID
   ===================================================== */
.posts-grid-section {}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* 横長カード */
.post-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: row;
  min-height: 130px;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.post-card-link {
  display: flex;
  flex-direction: row;
  flex: 1;
  color: inherit;
  min-width: 0;
}

/* 左: サムネイル */
.post-thumb {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.thumb-noimg {
  width: 100%;
  height: 100%;
  background: var(--mint-light2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-noimg img {
  width: 48px;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
}

/* 右: テキスト */
.post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
  min-width: 0;
}

/* ── Card meta & title (shared) ── */
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-cat {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--wp-admin-theme-color);
  border: 1px solid var(--mint-light);
  background: var(--mint-light2);
  border-radius: 50px;
  padding: 2px 10px;
  white-space: nowrap;
}

.card-date {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-family: 'Cormorant Garamond', serif;
}

.card-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card actions (share) ── */
.card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s;
}

.share-btn:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.share-btn svg {
  width: 12px;
  height: 12px;
}

/* ── Pagination ── */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--white);
}

.page-numbers.dots {
  border: none;
  width: auto;
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 14px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  order: -1;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(109, 207, 196, 0.3);
}

/* Search */
.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--mint);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 14px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dark);
}

.search-wrap input::placeholder {
  color: var(--text-light);
}

.search-wrap button {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.search-wrap button:hover {
  color: var(--mint);
}

.search-wrap svg {
  width: 16px;
  height: 16px;
}

/* Brand widget */
.widget-brand {
  text-align: center;
}

.brand-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mint-light2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-circle {
  width: 90%;
  height: 100%;
  object-fit: scale-down;
}

.brand-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--wp-admin-theme-color);
  border: 1px solid var(--mint-light);
  border-radius: 50px;
  padding: 2px 12px;
  margin-bottom: 10px;
}

.brand-desc {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.brand-register-btn {
  display: block;
  background: linear-gradient(90deg, var(--mint-dark) 0%, var(--mint-blue) 100%);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 3px 12px rgba(109, 207, 196, 0.3);
  transition: opacity 0.2s;
}

.brand-register-btn:hover {
  opacity: 0.85;
}

/* Select dropdowns */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 12px;
}

.select-wrap select {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 10px 30px 10px 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.8);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.select-wrap select:focus {
  border-color: var(--mint);
}

/* Popular posts */
.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: opacity 0.2s;
}

.popular-item a:hover {
  opacity: 0.75;
}

.popular-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mint-light2);
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popular-title {
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--mint);
}

.bc-sep {
  opacity: 0.5;
}

.single-header {
  margin-bottom: 28px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.single-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.single-thumb {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}

.single-thumb img {
  width: 100%;
  height: auto;
}

.single-content {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-dark);
  max-width: 100%;
}

.single-content h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--mint);
}

.single-content h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.single-content p {
  margin-bottom: 20px;
}

.single-content img {
  border-radius: 8px;
  margin: 24px auto;
}

.single-content a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--mint);
  background: rgba(205, 243, 238, 0.25);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--text-mid);
}

.single-content code {
  background: rgba(109, 207, 196, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}

.tag-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  padding: 4px 12px;
  transition: color 0.2s, border-color 0.2s;
}

.tag-link:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.share-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dark);
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  padding: 10px 20px;
  transition: color 0.2s, border-color 0.2s;
}

.share-btn-lg:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.share-btn-lg svg {
  width: 14px;
  height: 14px;
}

.single-share {
  margin-bottom: 8px;
}

.single-share-bottom {
  text-align: center;
  margin: 40px 0;
  padding: 28px;
  border: 1px solid rgba(109, 207, 196, 0.3);
  border-radius: 12px;
  background: rgba(205, 243, 238, 0.15);
}

.share-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* Post nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  transition: background 0.2s;
}

.post-nav-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.post-nav-item.next {
  text-align: right;
}

.nav-dir {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--mint);
  font-weight: 400;
}

.nav-title {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   ARCHIVE HEADER
   ===================================================== */
.archive-header {
  margin-bottom: 28px;
}

.archive-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-dark);
}

/* =====================================================
   NO POSTS
   ===================================================== */
.no-posts {
  padding: 60px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
}

/* =====================================================
   FOOTER
   ===================================================== */
#site-footer {
  background: transparent;
  padding: 0 40px 48px;
  text-align: center;
}

.footer-rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin: 0 0 52px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--mint); }

.footer-nav .sep {
  font-size: 12px;
  color: var(--text-light);
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border-bottom: 1px solid var(--text-dark);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  transition: color 0.2s, border-color 0.2s;
}

.footer-contact-btn:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.footer-copy {
  font-size: 11px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* =====================================================
   RESPONSIVE — SP (768px以下)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .header-inner {
    padding: 0 20px;
    gap: 12px;
  }

  .header-tagline {
    display: none;
  }

  .nav-home {
    font-size: 11px;
    padding: 6px 10px;
  }

  .nav-list {
    display: none;
  }

  .nav-register-btn {
    font-size: 11px;
    padding: 8px 14px;
  }

  .site-body {
    grid-template-columns: 1fr;
    padding: 28px 16px 60px;
    gap: 40px;
  }

  .sticky-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* SP: 横長カードをコンパクトに */
  .post-card {
    min-height: 100px;
  }

  .post-thumb {
    width: 110px;
  }

  .post-body {
    padding: 12px 14px;
  }

  .card-excerpt {
    display: none;
  }

  .sidebar {
    position: static;
  }

  .single-title {
    font-size: 18px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item.next {
    text-align: left;
  }

  #site-footer {
    padding: 0 20px 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .site-body {
    padding: 36px 28px 60px;
  }

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

  .post-thumb {
    width: 160px;
  }
}