/*
Theme Name: Jakuets Magazine
Theme URI:
Author: Eio LLC
Author URI: https://corp.ei-o.com/
Description: jakuets.com メディアサイト用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: jakuets-magazine
*/

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-primary: #FFE600;
  --color-primary-dark: #E6CF00;
  --color-black: #1a1a1a;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-border: #e0e0e0;
  --color-bg: #fff;
  --color-bg-light: #f7f7f7;
  --color-bg-dark: #1a1a1a;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --container-width: 1200px;
  --header-height: 60px;
  --nav-height: 44px;
  --section-padding: 80px;
  --card-gap: 24px;
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 60px;
}

/* --- Left: Search --- */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: calc(50% - 200px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-text);
  min-width: 280px;
}

.header-search__icon {
  flex-shrink: 0;
  color: var(--color-text);
}

.header-search__input {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  font-family: inherit;
}

.header-search__input::placeholder {
  color: var(--color-text);
  opacity: 1;
}

.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* --- Center: Logo --- */
.site-branding {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.site-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-title a {
  color: var(--color-black);
  display: inline-block;
}

.site-title a:hover {
  opacity: 1;
}

.site-logo-img {
  height: 18px;
  width: auto;
  display: block;
}

/* --- Right: Actions --- */
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  max-width: calc(50% - 200px);
}

.header-action-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  white-space: nowrap;
}

.header-action-link svg {
  flex-shrink: 0;
}

/* MYPAGE (icon stacked above text) */
.header-mypage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text);
  text-decoration: none;
}

.header-mypage svg {
  color: var(--color-text);
}

.header-mypage span {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Divider */
.header-divider {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* MENU button (icon stacked above text) */
.header-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.header-menu-btn__lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
}

.header-menu-btn__lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-black);
  transition: var(--transition);
}

.header-menu-btn__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================
   Category Navigation (Mega Menu)
   ============================================ */
.category-nav {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-light);
}

.category-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.category-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.category-nav-list > li {
  position: relative;
}

.category-nav-list > li > a {
  display: block;
  padding: 16px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-text);
  line-height: 52px;
  white-space: nowrap;
}

.category-nav-list > li > a:hover {
  opacity: 0.7;
}

/* Mega menu dropdown */
.category-nav-list > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.category-nav-list > li:hover > .sub-menu,
.category-nav-list > li.is-mega-open > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.category-nav-list > li > .sub-menu > li > a {
  display: block;
  padding: 8px 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.category-nav-list > li > .sub-menu > li > a:hover {
  background: var(--color-bg-light);
  opacity: 1;
}

/* Has children indicator */
.category-nav-list > li.menu-item-has-children > a {
  position: relative;
}

/* Fullscreen Menu */
.fullscreen-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu {
  display: grid;
  grid-template-columns: 40% 1fr;
  height: 100%;
}

/* Left column */
.fullscreen-menu__left {
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 56px;
  padding-top: 15vh;
}

.fullscreen-menu__logo {
  margin-bottom: 48px;
  text-align: center;
}

.fullscreen-menu__brand {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
}

.fullscreen-menu__brand-img {
  width: 240px;
  height: auto;
  display: block;
}

.fullscreen-menu__company {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
  letter-spacing: 0.08em;
}

.fullscreen-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.fullscreen-menu__cta-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: background 0.2s ease;
  height: 52px;
}

.fullscreen-menu__cta-btn:hover {
  background: var(--color-bg-light);
}

.fullscreen-menu__cta-icon {
  flex-shrink: 0;
  margin-left: 20px;
}

.fullscreen-menu__cta-label {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}

.fullscreen-menu__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 100%;
  flex-shrink: 0;
}

.fullscreen-menu__legal {
    padding-bottom: 48px;
    padding-top: 40px;
    width: 100%;
    max-width: 280px;
}

.fullscreen-menu__legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fullscreen-menu__legal-list li a {
  font-size: 12px;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.fullscreen-menu__legal-list li a:hover {
  opacity: 0.6;
}

/* Right column */
.fullscreen-menu__right {
  background: #fff;
  overflow-y: auto;
  padding: 24px 56px 56px;
}

.fullscreen-menu__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.fullscreen-menu__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 10px;
}

.fullscreen-menu__search svg {
  flex-shrink: 0;
  color: var(--color-text);
}

.fullscreen-menu__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  font-family: var(--font-sans);
}

.fullscreen-menu__topbar-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.fullscreen-menu__topbar-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.fullscreen-menu__mypage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.fullscreen-menu__mypage:hover {
  opacity: 0.7;
}

.fullscreen-menu__close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.fullscreen-menu__close:hover {
  opacity: 0.7;
}

/* Category groups */
.fullscreen-menu__categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 10vw;
}

.menu-cat-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.menu-cat-group__header:hover {
  opacity: 0.7;
}

.menu-cat-group__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.menu-cat-group__count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.menu-cat-group__count-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.menu-cat-group__count-num {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.menu-cat-group__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1vw;
  padding-left: 3vw;
}

.menu-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  transition: background 0.15s ease;
}

/* .menu-cat-item:nth-child(odd) {
  border-right: 1px solid var(--color-border);
} */

.menu-cat-item:hover {
  background: var(--color-bg-light);
}

.menu-cat-item__name {
  letter-spacing: 0.03em;
}

.menu-cat-item__count {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* Responsive: 768px以下 */
@media (max-width: 768px) {
  .fullscreen-menu {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    overflow-y: auto;
  }

  .fullscreen-menu__left {
    order: 2;
    padding: 16px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .fullscreen-menu__logo {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
  }

  .fullscreen-menu__brand {
    font-size: 16px;
    line-height: 1.3;
  }

  .fullscreen-menu__brand .pc-only {
    display: none;
  }

  .fullscreen-menu__brand-img {
    width: 180px;
  }

  .fullscreen-menu__company {
    font-size: 11px;
    margin-top: 4px;
  }

  .fullscreen-menu__cta {
    flex-direction: row;
    max-width: none;
    width: 100%;
  }

  .fullscreen-menu__cta-btn {
    flex: 1;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .fullscreen-menu__cta-label {
    font-size: 11px;
  }

  .fullscreen-menu__cta-arrow {
    display: none;
  }

  .fullscreen-menu__legal {
    width: 100%;
    padding-bottom: 0;
    padding-top: 0;
  }

  .fullscreen-menu__legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .fullscreen-menu__legal-list li a {
    font-size: 10px;
  }

  .fullscreen-menu__right {
    order: 1;
    padding: 24px 20px;
    overflow-y: auto;
  }

  .fullscreen-menu__topbar {
    margin-bottom: 24px;
    gap: 16px;
  }

  .menu-cat-group__grid {
    grid-template-columns: 1fr;
  }

  .menu-cat-item:nth-child(odd) {
    border-right: none;
  }
}

/* ============================================
   Hero Slider
   ============================================ */
.section-hero {
  background: var(--color-bg);
  padding: 0;
  overflow: hidden;
}

.hero-slider {
  overflow: visible;
}

.hero-slider .swiper-wrapper {
  align-items: stretch;
}

.hero-slider .swiper-slide {
  transition: transform var(--transition), opacity var(--transition);
}

.hero-slider .swiper-slide a {
  display: block;
}

.hero-slider .swiper-slide a:hover {
  opacity: 1;
}

.hero-slide-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}

/* Controls: ←— | ● ● ● | —→ */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0 0;
}

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: var(--color-text);
  cursor: pointer;
  transition: opacity var(--transition);
}

.hero-arrow:hover {
  opacity: 0.4;
}

.hero-controls-divider {
  display: block;
  width: 1px;
  height: 24px;
  background: #bbb;
  margin: 0 20px;
  flex-shrink: 0;
}

.hero-pagination,
.archive-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto !important;
  padding: 0;
}

.hero-pagination .swiper-pagination-bullet,
.archive-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #aaa;
  opacity: 1;
  margin: 0 !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hero-pagination .swiper-pagination-bullet-active,
.archive-pagination .swiper-pagination-bullet-active {
  background: var(--color-black);
  width: 13px;
  height: 13px;
}

/* Caption: title + excerpt */
.hero-caption {
  display: block;
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 720px;
  color: inherit;
  text-decoration: none;
}

.hero-caption__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 2;
  color: var(--color-black);
  margin-bottom: 16px;
}

.hero-caption__excerpt {
  font-size: 13px;
  line-height: 2.2;
  color: var(--color-text-light);
}

/* ============================================
   Section Common
   ============================================ */
.section-lead,
.section-news,
.section-new-arrival,
.section-pickup,
.section-category,
.section-ranking,
.section-latest {
  padding: var(--section-padding) 0;
}

.section-pickup,
.section-ranking,
.section-interview {
  background: #f7f7f7;
}

.section-product {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent calc(20px - 1px),
      #e8e8e8 calc(20px - 1px),
      #e8e8e8 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(20px - 1px),
      #e8e8e8 calc(20px - 1px),
      #e8e8e8 20px
    ),
    #fff;
}

/* Section Heading (title + subtitle) */
.section-heading {
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-black);
  margin-bottom: 4px;
  line-height: 1.4;
}

.section-title-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--color-text);
  transition: opacity var(--transition);
}

.view-all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* ============================================
   Lead Text
   ============================================ */
.section-lead {
  padding: 60px 0;
}

.lead-text {
  text-align: center;
  font-size: 13px;
  line-height: 2.2;
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   NEWS
   ============================================ */
.news-list {
  list-style: none;
}

.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-link {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  color: var(--color-text);
  text-decoration: none;
}

.news-link:hover {
  opacity: 0.7;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.news-date svg {
  position: relative;
  top: 1px;
}

.news-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

/* ============================================
   Card Grid
   ============================================ */
.card-grid {
  display: grid;
  gap: var(--card-gap);
}

.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--5col {
  grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   Card
   ============================================ */
/* .card {
  background: var(--color-bg);
} */

.card-link {
  display: block;
}

.card-link:hover {
  opacity: 1;
}

.card-link:hover .card-image .placeholder-img,
.card-link:hover .card-image img {
  transform: scale(1.03);
}

.card-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #ccc;
  transition: transform var(--transition);
}

.placeholder-img--square {
  aspect-ratio: 1 / 1;
}

.placeholder-img--tall {
  aspect-ratio: 2 / 3;
  height: 100%;
}

.card-body {
  padding: 0;
}

.card-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-black);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Portrait image (NEW ARRIVALS etc.) */
.placeholder-img--portrait {
  aspect-ratio: 1 / 1;
}

/* NEW ARRIVALS Card */
.card--arrival .card-image {
  position: relative;
}

.card-category-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-black);
  line-height: 1.4;
}

.card-thumb--square {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-thumb--square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card-link:hover .card-thumb--square img {
  transform: scale(1.03);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.card-tag {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  line-height: 1.8;
}

/* Ranking Card */
.card--ranking .card-image {
  position: relative;
}

.ranking-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  z-index: 1;
}

/* ============================================
   PICK UP
   ============================================ */
.pickup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* --- Left: Main article --- */
.pickup-main-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pickup-main-link:hover {
  opacity: 1;
}

.pickup-main-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  flex: 1;
  min-height: 0;
}

.placeholder-img--pickup-main {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #ccc;
}

.card-thumb--pickup-main {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.card-thumb--pickup-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.pickup-main-link:hover .card-thumb--pickup-main img {
  transform: scale(1.03);
}

.pickup-main-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: var(--color-black);
  margin-bottom: 12px;
}

.pickup-main-excerpt {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.pickup-main-meta {
  margin-bottom: 10px;
}

.pickup-main-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Right: Sub articles --- */
.pickup-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
}

.pickup-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pickup-card-link:hover {
  opacity: 1;
}

.pickup-card-image {
  position: relative;
  overflow: hidden;
}

.pickup-card-image .placeholder-img--square,
.pickup-card-image .card-thumb--square {
  aspect-ratio: 1 / 1;
}

.pickup-card-link:hover .card-thumb--square img {
  transform: scale(1.03);
}

.pickup-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: var(--color-black);
  margin-bottom: 8px;
}

.pickup-card-excerpt {
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.pickup-card-meta {
  margin-bottom: 8px;
}

.pickup-card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================
   Tabs (CASE / RANKING)
   ============================================ */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
}

.tab-btn:hover {
  background: var(--color-bg-light);
}

.tab-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-black);
  font-weight: 600;
}

.tab-nav--yellow .tab-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Bordered tabs (CASE section) */
.tab-nav--bordered {
  gap: 8px;
}

/* Tab as link (archive pages) */
a.tab-btn {
  text-decoration: none;
  display: inline-block;
}

/* AJAX card grid transition */
#caseCardGrid,
#rankingCardGrid {
  transition: opacity 0.3s ease;
}

/* ============================================
   CASE Archive Filters
   ============================================ */
/* .archive-case {
  padding: var(--section-padding) 0;
} */

.case-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.case-filters .tab-nav {
  margin-bottom: 0;
}

.case-region-filter select {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 32px 6px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ============================================
   Category Archive
   ============================================ */
.archive-category .section-hero {
  margin-bottom: 0;
}

.archive-hero-header {
  align-items: center;
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
}

.archive-hero-header .breadcrumb {
  padding: 0;
}

.archive-hero-header .breadcrumb-list {
  margin: 0;
}

.archive-hero-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.15em;
    color: var(--color-text);
    white-space: nowrap;
}

.section-archive-articles {
  padding: var(--section-padding) 0;
}

.section-ranking--archive {
  background: #f7f7f7;
  padding: var(--section-padding) 0;
  margin: var(--section-padding) calc(-50vw + 50%) 0;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.section-ranking--archive .section-heading,
.section-ranking--archive .tab-nav,
.section-ranking--archive .card-grid {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-ranking--archive .tab-nav {
  margin-bottom: 24px;
}

.section-ranking--archive + .card-grid {
  margin-top: var(--section-padding);
}

/* Pagination */
.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pagination .nav-links a,
.pagination .nav-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.pagination .nav-links a:hover {
  background: var(--color-bg-light);
  opacity: 1;
}

.pagination .nav-links .current {
  background: #ccc;
  border-color: #ccc;
  color: #fff;
  font-weight: 600;
}

.pagination .nav-links .prev,
.pagination .nav-links .next {
  border: none;
  padding: 0 4px;
}

.pagination .nav-links .dots {
  border: none;
  color: var(--color-text-muted);
}

/* Archive pagination responsive */
@media (max-width: 768px) {
  .section-ranking--archive {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-ranking--archive .section-heading,
  .section-ranking--archive .tab-nav,
  .section-ranking--archive .card-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .pagination {
    margin-top: 32px;
  }

  .pagination .nav-links a,
  .pagination .nav-links span {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

/* ============================================
   Sign Up CTA
   ============================================ */
.section-signup {
  padding: var(--section-padding) 0;
}

.signup-box {
  position: relative;
  border: 1px solid var(--color-border);
  padding: 64px 80px 64px 42%;
  overflow: hidden;
}

.signup-deco {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.signup-deco svg {
  width: 60%;
  height: auto;
  display: block;
}

.signup-subtitle {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.signup-logo {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

.signup-logo-img {
  width: 300px;
  height: auto;
  display: block;
  margin-bottom: 24px;
  line-height: 1.3;
}

.signup-label {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.signup-button {
  display: inline-flex;
  align-items: stretch;
  background: var(--color-primary);
  color: var(--color-black);
  transition: background var(--transition);
  min-width: 280px;
  margin-bottom: 36px;
}

.signup-button:hover {
  background: var(--color-primary-dark);
  opacity: 1;
}

.signup-button__text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.signup-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.signup-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--color-text-light);
}

/* ============================================
   VIEW ALL Bar
   ============================================ */
.viewall-bar {
  background: var(--color-bg-light);
}

.viewall-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--color-text);
  transition: background var(--transition);
}

.viewall-bar__link:hover {
  background: #eee;
  opacity: 1;
}

.viewall-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-text);
}

/* ============================================
   Footer
   ============================================ */
/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 20px 40px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Section title (CATEGORY / TAG) */
.footer-section {
  margin-bottom: 40px;
}

.footer-section__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

/* Category list — bordered rectangular buttons */
.footer-category-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-category-list li a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  letter-spacing: 0.08em;
  color: var(--color-text);
  transition: var(--transition);
  text-transform: uppercase;
}

.footer-category-list li a:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.footer-category-list li.current-menu-item a,
.footer-category-list li.current-menu-ancestor a {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-black);
  font-weight: 600;
}

/* Tag list — inline # prefixed links */
.footer-tag-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-tag-list li a {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  transition: var(--transition);
}

.footer-tag-list li a:hover {
  color: var(--color-black);
  opacity: 0.7;
}

/* CTA buttons */
.footer-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 48px 0;
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid #333;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: var(--transition);
  min-width: 280px;
  justify-content: center;
  flex: 1;
}

.footer-cta-btn:hover {
  border-color: var(--color-black);
}

.footer-cta-btn__icon {
  flex-shrink: 0;
}

.footer-cta-btn__label {
  flex: 1;
  text-align: center;
}

.footer-cta-btn__arrow {
  flex-shrink: 0;
  color: var(--color-text-light);
}

/* Legal links */
.footer-legal {
  margin-bottom: 32px;
}

.footer-legal-list {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-list li a {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-legal-list li a:hover {
  opacity: 0.7;
}

/* Copyright */
.copyright {
  text-align: center;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
    --card-gap: 20px;
  }

  .header-inner {
    padding: 20px;
  }

  .header-action-link {
    display: none;
  }

  .site-branding {
    padding: 0 20px;
  }

  .site-title {
    font-size: 22px;
  }

  .site-logo-img {
    height: 14px;
  }

  .header-search {
    min-width: 140px;
  }

  .category-nav-inner {
    padding: 0 20px;
  }

  .category-nav-list > li > a {
    padding: 0 16px;
  }

  .card-grid--5col {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4col {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup-box {
    padding-left: 38%;
    padding-right: 40px;
  }

  .signup-logo {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --card-gap: 16px;
  }

  .header-inner {
    padding: 16px 20px;
  }

  .header-search__input {
    display: none;
  }

  .header-search {
    min-width: auto;
    border-bottom: none;
    padding-bottom: 0;
  }

  .header-mypage {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .category-nav-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .category-nav-list {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .category-nav-list > li > a {
    padding: 0 12px;
    font-size: 11px;
    line-height: 40px;
  }

  /* モバイルではタップでサブメニュー開閉 */
  .category-nav-list > li > .sub-menu {
    left: 0;
    transform: none;
  }

  .global-nav-list li:not(:last-child)::after {
    margin: 0 10px;
  }

  .hero-caption {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-caption__title {
    font-size: 16px;
  }

  .hero-caption__excerpt {
    font-size: 12px;
  }

  .lead-text {
    font-size: 12px;
  }

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

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

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

  .pickup-layout {
    grid-template-columns: 1fr;
  }

  .pickup-main-image {
    flex: none;
  }

  .placeholder-img--pickup-main {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .card-thumb--pickup-main {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .pickup-card-link {
    grid-template-columns: 1fr 1fr;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-link {
    width: 100%;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .footer-category-list {
    gap: 8px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-cta-btn {
    min-width: 0;
    width: 100%;
    max-width: 400px;
  }

  .footer-tag-list {
    gap: 20px;
  }

  .footer-legal-list {
    gap: 20px;
  }

  .signup-box {
    padding: 40px 24px;
  }

  .signup-deco {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
  }

  .signup-deco svg {
    width: 120px;
  }

  .signup-logo {
    font-size: 24px;
  }

  .signup-logo-img {
    width: 200px;
  }

  .signup-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }

  .card-grid--3col,
  .card-grid--4col,
  .card-grid--5col {
    grid-template-columns: 1fr 1fr;
  }

  .tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .tab-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* ============================================
   Single Article Page
   ============================================ */
.single-article {
  padding-bottom: var(--section-padding);
}

.container-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-article {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.1s linear;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 24px 20px;
}

.single-article .breadcrumb {
  max-width: 1080px;
}

.container .breadcrumb {
  max-width: none;
  margin: 0;
  padding: 0 0 16px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: var(--color-text-muted);
}

.breadcrumb-list li a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.breadcrumb-list li a:hover {
  color: var(--color-text);
  opacity: 1;
}

.breadcrumb-list li span {
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Header --- */
.article-header {
  padding-top: 48px;
  padding-bottom: 8px;
  text-align: center;
}

.article-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  background: var(--color-primary);
  color: var(--color-black);
  line-height: 1.4;
  transition: opacity var(--transition);
}

.article-category:hover {
  opacity: 0.7;
}

.article-category--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-black);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* --- Hero Image (top wide) --- */
.article-hero {
  max-width: var(--container-width);
  margin: 0 auto;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Header (hero variant) --- */
.article-header--hero {
  text-align: left;
  padding-top: 48px;
  padding-bottom: 0;
}

.article-header__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.article-header--hero .article-categories {
  justify-content: flex-start;
  margin-bottom: 0;
}

.article-header--hero .article-meta {
  justify-content: flex-end;
  flex-shrink: 0;
}

.article-header--hero h1 {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

/* --- Thumbnail (legacy) --- */
.article-thumbnail {
  margin-top: 40px;
  margin-bottom: 48px;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 2-Column Layout --- */
.article-columns {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
}

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

/* --- Sidebar --- */
.article-sidebar {
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 24px;
}

.sidebar-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-black);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 16px;
}

/* --- Sidebar TOC --- */
.sidebar-toc {
  margin-bottom: 32px;
}

.sidebar-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc ol li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-toc ol li a {
  display: block;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.sidebar-toc ol li a:hover {
  color: var(--color-black);
  opacity: 1;
}

.sidebar-toc ol li a.is-active {
  color: var(--color-black);
  font-weight: 600;
}

.sidebar-toc ol li.toc-h3 a {
  padding-left: 16px;
  font-size: 11px;
}

.sidebar-toc.is-hidden {
  display: none;
}

/* --- Inline TOC (in article body) --- */
.inline-toc {
  border: 1px solid var(--color-border);
  padding: 24px 28px;
  margin-bottom: 2em;
}

.inline-toc__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  margin-bottom: 12px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.inline-toc__list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.inline-toc__list li {
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--color-border);
}

.inline-toc__list li:last-child {
  border-bottom: none;
}

.inline-toc__list li a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
  text-decoration: none;
}

.inline-toc__list li a:hover {
  color: var(--color-black);
  opacity: 1;
}

.inline-toc__list li.toc-h3 a {
  padding-left: 16px;
  font-size: 12px;
  color: var(--color-text-light);
}

/* --- Sidebar Related --- */
.sidebar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-related-list li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-related-list li:last-child {
  border-bottom: none;
}

.sidebar-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  transition: opacity var(--transition);
}

.sidebar-related-card:hover {
  opacity: 0.7;
}

.sidebar-related-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.sidebar-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-related-thumb .placeholder-img--square {
  width: 60px;
  height: 60px;
}

.sidebar-related-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Sidebar Tag Cloud --- */
.sidebar-tagcloud {
  margin-top: 32px;
}
.sidebar-tagcloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tagcloud-item {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.6;
}
.sidebar-tagcloud-item:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}

/* --- Body / Typography --- */
.article-body {
  margin-bottom: 48px;
}

.article-body .entry-content {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

.article-body .entry-content p {
  margin-bottom: 1.8em;
}

.article-body .entry-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 3em;
  margin-bottom: 1em;
  color: var(--color-black);
}

.article-body .entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  color: var(--color-black);
}

.article-body .entry-content h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-black);
}

.article-body .entry-content ul,
.article-body .entry-content ol {
  margin-bottom: 1.8em;
  padding-left: 1.5em;
}

.article-body .entry-content ul {
  list-style: disc;
}

.article-body .entry-content ol {
  list-style: decimal;
}

.article-body .entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.9;
}

.article-body .entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-light);
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
}

.article-body .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-body .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.article-body .entry-content figure {
  margin: 2em 0;
}

.article-body .entry-content figcaption {
  font-size: 14px;
  /* color: var(--color-text-muted); */
  margin-top: 8px;
  text-align: left;
  display: inline-block;
  width: 100%;
}

.article-body .entry-content a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body .entry-content a:hover {
  opacity: 0.6;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 1.8em 0;
  font-size: 14px;
  table-layout: auto;
}

.entry-content th,
.entry-content td {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 20px 16px;
  text-align: left;
  line-height: 1.8;
  vertical-align: top;
}

.entry-content th {
  font-weight: 600;
  color: var(--color-black);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .entry-content th,
  .entry-content td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .entry-content th {
    padding-bottom: 4px;
    border-bottom: none;
    white-space: normal;
  }

  .entry-content td {
    padding-top: 0;
  }
}

/* --- Gutenberg Blocks --- */

/* Alignment */
.article-body .entry-content .alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
  max-width: 50%;
}

.article-body .entry-content .alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
  max-width: 50%;
}

.article-body .entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-body .entry-content .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.article-body .entry-content .alignwide {
  margin-left: -40px;
  margin-right: -40px;
  max-width: calc(100% + 80px);
}

/* Text align utilities */
.article-body .entry-content .has-text-align-center {
  text-align: center;
}

.article-body .entry-content .has-text-align-right {
  text-align: right;
}

.article-body .entry-content .has-text-align-left {
  text-align: left;
}

/* Clearfix for floats */
.article-body .entry-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Separator */
.article-body .entry-content hr,
.article-body .entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

.article-body .entry-content .wp-block-separator.is-style-wide {
  border-top-width: 1px;
}

.article-body .entry-content .wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.5em;
}

.article-body .entry-content .wp-block-separator.is-style-dots::before {
  content: "···";
  font-size: 24px;
  color: var(--color-text-muted);
}

/* Spacer */
.article-body .entry-content .wp-block-spacer {
  clear: both;
}

/* Quote / Pullquote */
.article-body .entry-content .wp-block-quote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-light);
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
}

.article-body .entry-content .wp-block-quote cite,
.article-body .entry-content .wp-block-quote footer {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.article-body .entry-content .wp-block-quote.is-style-plain {
  border-left: none;
  background: none;
  padding: 0;
}

.article-body .entry-content .wp-block-pullquote {
  margin: 2.5em 0;
  padding: 32px 0;
  border-top: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
  text-align: center;
}

.article-body .entry-content .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border-left: none;
  background: none;
}

.article-body .entry-content .wp-block-pullquote p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-black);
}

.article-body .entry-content .wp-block-pullquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* Code / Preformatted */
.article-body .entry-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-text);
}

.article-body .entry-content pre,
.article-body .entry-content .wp-block-code {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--color-bg-dark);
  color: #e0e0e0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  border-radius: 4px;
}

.article-body .entry-content pre code,
.article-body .entry-content .wp-block-code code {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.article-body .entry-content .wp-block-preformatted {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--color-bg-light);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Verse */
.article-body .entry-content .wp-block-verse {
  margin: 2em 0;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--color-text-light);
}

/* Gallery */
.article-body .entry-content .wp-block-gallery {
  margin: 2em 0;
  gap: 8px;
}

.article-body .entry-content .wp-block-gallery .wp-block-image {
  margin: 0;
}

.article-body .entry-content .wp-block-gallery .wp-block-image img {
  margin: 0;
}

.article-body .entry-content .wp-block-gallery figcaption {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 4px 8px;
}

/* Image block */
.article-body .entry-content .wp-block-image {
  margin: 2em 0;
}

.article-body .entry-content .wp-block-image img {
  margin: 0;
  display: block;
}

.article-body .entry-content .wp-block-image.is-style-rounded img {
  border-radius: 9999px;
}

/* Cover */
.article-body .entry-content .wp-block-cover {
  margin: 2em 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body .entry-content .wp-block-cover p {
  margin-bottom: 0;
}

/* Video / Audio / Embed */
.article-body .entry-content .wp-block-video,
.article-body .entry-content .wp-block-audio,
.article-body .entry-content .wp-block-embed {
  margin: 2em 0;
}

.article-body .entry-content .wp-block-video video {
  width: 100%;
  display: block;
}

.article-body .entry-content .wp-block-audio audio {
  width: 100%;
  display: block;
}

.article-body .entry-content .wp-block-embed .wp-block-embed__wrapper {
  position: relative;
}

.article-body .entry-content .wp-block-embed .wp-block-embed__wrapper iframe {
  max-width: 100%;
}

.article-body .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  padding-top: 56.25%;
  position: relative;
}

.article-body .entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* File */
.article-body .entry-content .wp-block-file {
  margin: 1.5em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body .entry-content .wp-block-file a:first-child {
  flex: 1;
  min-width: 0;
}

.article-body .entry-content .wp-block-file .wp-block-file__button {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--color-black);
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition);
  flex-shrink: 0;
}

.article-body .entry-content .wp-block-file .wp-block-file__button:hover {
  background: var(--color-text);
  opacity: 1;
}

/* Buttons */
.article-body .entry-content .wp-block-buttons {
  margin: 2em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-body .entry-content .wp-block-button .wp-block-button__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  background: var(--color-black);
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition);
  line-height: 1.5;
}

.article-body .entry-content .wp-block-button .wp-block-button__link:hover {
  background: var(--color-text);
  opacity: 1;
}

.article-body .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--color-black);
  color: var(--color-black);
}

.article-body .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-bg-light);
}

/* Columns */
.article-body .entry-content .wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 2em 0;
  flex-wrap: wrap;
}

.article-body .entry-content .wp-block-column {
  flex: 1;
  min-width: 0;
}

/* Group */
.article-body .entry-content .wp-block-group {
  margin: 2em 0;
}

.article-body .entry-content .wp-block-group.has-background {
  padding: 24px 28px;
  border-radius: 4px;
}

.article-body .entry-content .wp-block-group.has-background > *:first-child {
  margin-top: 0;
}

.article-body .entry-content .wp-block-group.has-background > *:last-child {
  margin-bottom: 0;
}

/* Media & Text */
.article-body .entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 24px;
  margin: 2em 0;
  align-items: center;
}

.article-body .entry-content .wp-block-media-text .wp-block-media-text__media {
  margin: 0;
}

.article-body .entry-content .wp-block-media-text .wp-block-media-text__media img {
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
}

.article-body .entry-content .wp-block-media-text .wp-block-media-text__content {
  padding: 0;
}

.article-body .entry-content .wp-block-media-text .wp-block-media-text__content > *:first-child {
  margin-top: 0;
}

.article-body .entry-content .wp-block-media-text .wp-block-media-text__content > *:last-child {
  margin-bottom: 0;
}

.article-body .entry-content .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 50%;
}

/* Details (accordion) */
.article-body .entry-content .wp-block-details {
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.article-body .entry-content .wp-block-details summary {
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-body .entry-content .wp-block-details summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

.article-body .entry-content .wp-block-details[open] summary::after {
  content: "−";
}

.article-body .entry-content .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.article-body .entry-content .wp-block-details > *:not(summary) {
  padding: 0 20px 16px;
}

.article-body .entry-content .wp-block-details > *:not(summary):first-of-type {
  padding-top: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

/* List block */
.article-body .entry-content .wp-block-list {
  margin-bottom: 1.8em;
  padding-left: 1.5em;
}

/* Table block */
.entry-content .wp-block-table {
  margin: 1.8em 0;
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  margin: 0;
  border: none;
}

.entry-content .wp-block-table table,
.entry-content .wp-block-table.has-fixed-layout table {
  table-layout: auto;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  border: none;
  border-bottom: 1px solid #eee;
  width: auto;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--color-bg-light);
}

.entry-content .wp-block-table figcaption {
  margin-top: 8px;
}

/* WP Background/Text color utilities */
.article-body .entry-content .has-background {
  padding: 20px 24px;
}

/* Footnotes */
.article-body .entry-content .wp-block-footnotes {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-light);
}

/* --- Gutenberg Responsive --- */
@media (max-width: 768px) {
  .article-body .entry-content .alignleft,
  .article-body .entry-content .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .article-body .entry-content .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .article-body .entry-content .wp-block-columns {
    flex-direction: column;
  }

  .article-body .entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
  }

  .article-body .entry-content .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr;
  }

  .article-body .entry-content .wp-block-pullquote p {
    font-size: 16px;
  }

  .article-body .entry-content pre,
  .article-body .entry-content .wp-block-code {
    padding: 16px;
    font-size: 12px;
  }
}

/* --- Footer / Tags --- */
.article-footer {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-tags li a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.article-tags li a:hover {
  border-color: var(--color-black);
  color: var(--color-black);
  opacity: 1;
}

/* --- Post Navigation --- */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.post-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.post-nav-card:hover {
  border-color: var(--color-text-muted);
  opacity: 1;
}

.post-nav-card--next {
  flex-direction: row-reverse;
  text-align: right;
}

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

.post-navigation--single .post-nav-card--next {
  margin-left: auto;
}

.post-nav-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.post-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-nav-text {
  min-width: 0;
}

.post-nav-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

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

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-text);
}

/* --- Related Posts --- */
.section-related {
  background: var(--color-bg-light);
  padding: var(--section-padding) 0;
}

/* --- Article Responsive --- */
@media (max-width: 1024px) {
  .article-columns {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .article-header {
    padding-top: 40px;
  }

  .article-header h1 {
    font-size: 22px;
    line-height: 1.6;
  }

  .article-header--hero {
    padding-top: 32px;
  }

  .article-header__meta-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .article-header--hero h1 {
    padding-bottom: 20px;
  }

  .article-thumbnail {
    margin-top: 28px;
    margin-bottom: 36px;
  }

  .article-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-sidebar {
    display: none;
  }

  .sidebar-sticky {
    position: static;
  }

  .article-body .entry-content {
    font-size: 14px;
  }

  .article-body .entry-content h2 {
    font-size: 20px;
    margin-top: 2.5em;
  }

  .article-body .entry-content h3 {
    font-size: 18px;
  }

  .article-body .entry-content h4 {
    font-size: 16px;
  }

  .article-body .entry-content blockquote {
    padding: 20px;
  }

  .article-footer {
    margin-bottom: 0;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
  }

  .post-nav-card--next {
    flex-direction: row;
    text-align: left;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   会員限定バッジ
   ============================================ */
.members-only-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: #fff8cc;
  border: 1px solid var(--color-primary);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  margin-left: 12px;
}

.members-only-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 1;
  letter-spacing: 0.05em;
}

.members-only-badge svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   コンテンツ制限メッセージ
   ============================================ */
.entry-content--preview {
  position: relative;
  max-height: 300px;
  overflow: hidden;
}

.content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.content-restricted {
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  padding: 48px 24px;
  text-align: center;
  margin-top: -1px;
}

.content-restricted-inner {
  max-width: 480px;
  margin: 0 auto;
}

.content-restricted-inner svg {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.content-restricted-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-black);
}

.content-restricted-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.content-restricted-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   固定ページ (page.php)
   ============================================ */
.page-hero {
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-black);
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 22px;
    padding: 32px 0 20px;
    margin-bottom: 32px;
  }
}

/* --- 固定ページ本文スタイル --- */
.page-content .entry-content {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
  padding-bottom: 80px;
}

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

.page-content .entry-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 3em;
  margin-bottom: 1em;
  color: var(--color-black);
}

.page-content .entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  color: var(--color-black);
}

.page-content .entry-content h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-black);
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 1.8em;
  padding-left: 1.5em;
}

.page-content .entry-content ul {
  list-style: disc;
}

.page-content .entry-content ol {
  list-style: decimal;
}

.page-content .entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.9;
}

.page-content .entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-light);
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
}

.page-content .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-content .entry-content figure {
  margin: 2em 0;
}

.page-content .entry-content figcaption {
  font-size: 14px;
  margin-top: 8px;
  text-align: left;
  display: inline-block;
  width: 100%;
}

.page-content .entry-content a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content .entry-content a:hover {
  opacity: 0.6;
}

.page-content .entry-content hr,
.page-content .entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

.page-content .entry-content .alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
  max-width: 50%;
}

.page-content .entry-content .alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
  max-width: 50%;
}

.page-content .entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-content .entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.page-content .entry-content .wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 2em 0;
  flex-wrap: wrap;
}

.page-content .entry-content .wp-block-column {
  flex: 1;
  min-width: 0;
}

.page-content .entry-content .wp-block-group.has-background {
  padding: 24px 28px;
  border-radius: 4px;
}

.page-content .entry-content pre,
.page-content .entry-content .wp-block-code {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--color-bg-dark);
  color: #e0e0e0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  border-radius: 4px;
}

.page-content .entry-content pre code,
.page-content .entry-content .wp-block-code code {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.page-content .entry-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-text);
}

.page-content .entry-content .wp-block-buttons {
  margin: 2em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-content .entry-content .wp-block-button .wp-block-button__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  background: var(--color-black);
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition);
  line-height: 1.5;
}

.page-content .entry-content .wp-block-button .wp-block-button__link:hover {
  background: var(--color-text);
  opacity: 1;
}

@media (max-width: 768px) {
  .page-content .entry-content {
    font-size: 14px;
  }

  .page-content .entry-content h2 {
    font-size: 20px;
    margin-top: 2.5em;
  }

  .page-content .entry-content h3 {
    font-size: 18px;
  }

  .page-content .entry-content h4 {
    font-size: 16px;
  }

  .page-content .entry-content blockquote {
    padding: 20px;
  }

  .page-content .entry-content .alignleft,
  .page-content .entry-content .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .page-content .entry-content .wp-block-columns {
    flex-direction: column;
  }
}

/* ============================================
   認証ページ (ログイン / 会員登録 / マイページ)
   ============================================ */
.page-auth {
  padding: 80px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 4px;
  color: var(--color-black);
}

.auth-subtitle {
  font-size: 13px;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* Thanks Page */
.auth-container--thanks {
  text-align: center;
  padding-top: 40px;
}

.thanks-icon {
  color: #15803d;
  margin-bottom: 20px;
}

.thanks-message {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.thanks-actions .btn-auth {
  width: auto;
  padding: 12px 48px;
  display: inline-block;
}

/* Login Complete - Pickup Section */
.login-complete-pickup {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.login-complete-pickup .section-heading {
  margin-bottom: 32px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 4px;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Form */
.form-auth {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
  line-height: 1.5;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-text-muted);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.form-group--checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* Auth Buttons */
.btn-auth {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-align: center;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-black);
  border-radius: 4px;
  background: var(--color-black);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.btn-auth:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  opacity: 1;
}

.btn-auth--outline {
  background: transparent;
  color: var(--color-black);
}

.btn-auth--outline:hover {
  background: var(--color-bg-light);
}

.content-restricted-buttons .btn-auth {
  width: auto;
  padding: 10px 28px;
  font-size: 13px;
}

/* Auth Links */
.auth-links {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
}

.auth-links a {
  color: var(--color-black);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* My Page */
.mypage-info {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.mypage-dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.mypage-dl dt {
  font-weight: 500;
  color: var(--color-text-light);
}

.mypage-dl dd {
  color: var(--color-text);
}

.mypage-actions {
  text-align: center;
}

.mypage-actions .btn-auth {
  width: auto;
  padding: 10px 40px;
}

/* Auth Responsive */
@media (max-width: 480px) {
  .page-auth {
    padding: 48px 16px;
  }

  .content-restricted {
    padding: 32px 16px;
  }

  .content-restricted-buttons {
    flex-direction: column;
  }

  .content-restricted-buttons .btn-auth {
    width: 100%;
  }

  .mypage-dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .mypage-dl dt {
    margin-top: 8px;
  }
}

/* ============================================
   SNS Share Buttons
   ============================================ */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.share-buttons__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.share-buttons__list {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
}

.share-btn:hover {
  background: var(--color-black);
  color: #fff;
  border-color: var(--color-black);
}

.share-btn--x:hover { background: #000; border-color: #000; }
.share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn--line:hover { background: #06c755; border-color: #06c755; }

.share-btn__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-btn__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--color-black);
}

.share-btn--copy.is-copied .share-btn__tooltip {
  opacity: 1;
}

/* ============================================
   Author Profile
   ============================================ */
.author-profile {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.author-profile__avatar {
  flex-shrink: 0;
}

.author-profile__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.article-body p.author-profile__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.article-body p.author-profile__bio {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 16px;
  }
}

/* ============================================
   404 Page
   ============================================ */
.page-404 {
  padding: 80px 0;
  text-align: center;
}

.page-404__header {
  margin-bottom: 40px;
}

.page-404__number {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-border);
  line-height: 1;
}

.page-404__header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 16px 0 12px;
}

.page-404__header p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.page-404__search {
  max-width: 480px;
  margin: 0 auto 48px;
}

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

.search-form-404 input[type="search"] {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  background: var(--color-bg);
}

.search-form-404 button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: none;
  background: var(--color-black);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.search-form-404 button:hover {
  background: var(--color-text);
}

.page-404__articles {
  margin-bottom: 48px;
}

.page-404__articles .section-heading {
  margin-bottom: 24px;
}

.page-404__home {
  margin-top: 16px;
}

.page-404__home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--color-black);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition);
}

.page-404__home a:hover {
  background: var(--color-text);
}

@media (max-width: 768px) {
  .page-404 {
    padding: 48px 0;
  }

  .page-404__number {
    font-size: 4rem;
  }
}

/* ============================================
   Footer SNS Links
   ============================================ */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
}

.footer-sns__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

.footer-sns__link:hover {
  color: #fff;
  border-color: #fff;
}

/* ============================================
   Search Results – Tabs & Highlight
   ============================================ */
.search-summary {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--color-text);
}

.search-summary strong {
  color: var(--color-black);
}

.search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.search-tab:hover {
  color: var(--color-text);
}

.search-tab.is-active {
  color: var(--color-black);
  border-bottom-color: var(--color-black);
  font-weight: 600;
}

.search-tab__count {
  font-size: 0.75rem;
  background: var(--color-bg-light);
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--color-text-muted);
}

.search-tab.is-active .search-tab__count {
  background: var(--color-black);
  color: #fff;
}

mark.search-highlight {
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0 2px;
  border-radius: 2px;
}

.search-no-results {
  text-align: center;
  padding: 48px 0;
}

.search-no-results__icon {
  color: var(--color-border);
  margin-bottom: 16px;
}

.search-no-results h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.search-no-results__hints {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 2;
}

.search-no-results__form {
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .search-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ============================================
   メンバーシップページ (page-membership.php)
   ============================================ */

/* --- Hero --- */
.membership-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.membership-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.membership-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.membership-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 80px 20px;
  max-width: 800px;
}

.membership-hero__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 44px;
  line-height: 1.6;
}

.membership-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 52px;
}

.membership-hero__btn {
  display: inline-block;
  min-width: 200px;
  padding: 18px 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.membership-hero__btn--filled {
  background: var(--color-black);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.membership-hero__btn--filled:hover {
  background: #333;
  opacity: 1;
}

.membership-hero__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-left: none;
}

.membership-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.membership-hero__desc {
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* --- Section Common --- */
.membership-section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--color-black);
}

.membership-section-sub {
  font-size: 14px;
  text-align: center;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

/* --- Benefits --- */
.membership-benefits {
  padding: var(--section-padding) 0;
  background: var(--color-bg-light);
}

.membership-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.membership-benefits__card {
  background: #fff;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.membership-benefits__icon {
  margin-bottom: 24px;
  color: var(--color-black);
}

.membership-benefits__card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--color-black);
}

.membership-benefits__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* --- Contents Category --- */
.membership-contents {
  padding: var(--section-padding) 0;
}

.membership-contents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.membership-contents__item {
  padding: 40px 32px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.membership-contents__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 12px;
}

.membership-contents__item-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--color-black);
}

.membership-contents__item-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* --- Steps --- */
.membership-steps {
  padding: var(--section-padding) 0;
  background: var(--color-bg-light);
}

.membership-steps__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.membership-steps__item {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 24px;
}

.membership-steps__num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-black);
  border: 1px solid var(--color-black);
  padding: 6px 20px;
  margin-bottom: 20px;
}

.membership-steps__item-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--color-black);
}

.membership-steps__item-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.04em;
}

.membership-steps__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--color-text-muted);
}

/* --- About --- */
.membership-about {
  padding: var(--section-padding) 0;
}

.membership-about__body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 2.2;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.membership-about__body p {
  margin-bottom: 1.8em;
}

.membership-about__body p:last-child {
  margin-bottom: 0;
}

.membership-about__body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 64px 0 28px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.membership-about__body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 48px 0 20px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

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

/* --- CTA (bordered box with deco) --- */
.membership-signup {
  padding: var(--section-padding) 0;
}

.membership-signup__box {
  position: relative;
  border: 1px solid var(--color-border);
  padding: 60px 72px 60px 40%;
  overflow: hidden;
}

.membership-signup__deco {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.membership-signup__deco svg {
  width: 58%;
  height: auto;
  display: block;
}

.membership-signup__content {
  position: relative;
}

.membership-signup__pre {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  margin-bottom: 20px;
  line-height: 1.4;
}

.membership-signup__lead {
  font-size: 13px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.membership-signup__actions {
  display: flex;
  gap: 12px;
}

.membership-signup__btn {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  transition: var(--transition);
  min-width: 240px;
}

.membership-signup__btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.membership-signup__btn--outline:hover {
  border-color: var(--color-black);
  opacity: 1;
}

.membership-signup__btn--outline .membership-signup__btn-icon {
  border-left: 1px solid var(--color-border);
}

.membership-signup__btn--outline:hover .membership-signup__btn-icon {
  border-left-color: var(--color-black);
}

.membership-signup__btn--primary {
  background: var(--color-primary);
  color: var(--color-black);
}

.membership-signup__btn--primary:hover {
  background: var(--color-primary-dark);
  opacity: 1;
}

.membership-signup__btn--primary .membership-signup__btn-icon {
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.membership-signup__btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.membership-signup__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .membership-signup__box {
    padding-left: 36%;
    padding-right: 48px;
  }

  .membership-signup__actions {
    flex-direction: column;
  }

  .membership-signup__btn {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .membership-hero {
    min-height: 420px;
  }

  .membership-hero__title {
    font-size: 24px;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
  }

  .membership-hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
  }

  .membership-hero__btn {
    min-width: 260px;
  }

  .membership-hero__btn--outline {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
  }

  .membership-hero__desc {
    font-size: 12px;
    line-height: 2.2;
  }

  .membership-hero__desc br {
    display: none;
  }

  .membership-section-title {
    font-size: 22px;
  }

  .membership-section-sub {
    margin-bottom: 40px;
  }

  .membership-section-sub br {
    display: none;
  }

  .membership-benefits {
    padding: 56px 0;
  }

  .membership-benefits__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .membership-benefits__card {
    padding: 32px 24px;
  }

  .membership-contents {
    padding: 56px 0;
  }

  .membership-contents__grid {
    grid-template-columns: 1fr;
  }

  .membership-contents__item {
    padding: 28px 24px;
  }

  .membership-steps {
    padding: 56px 0;
  }

  .membership-steps__grid {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .membership-steps__item {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .membership-steps__arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .membership-about {
    padding: 48px 0;
  }

  .membership-about__body {
    font-size: 13px;
  }

  .membership-signup {
    padding: 48px 0;
  }

  .membership-signup__box {
    padding: 36px 24px;
  }

  .membership-signup__deco {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
  }

  .membership-signup__deco svg {
    width: 110px;
  }

  .membership-signup__pre {
    font-size: 16px;
  }

  .membership-signup__actions {
    flex-direction: column;
  }

  .membership-signup__btn {
    min-width: 0;
    width: 100%;
  }

  .membership-signup__lead br {
    display: none;
  }
}

/* ============================================
   Landing Page: Service Hard (/service-hard/)
   ============================================ */

/* --- Placeholder (wireframe style) --- */
.lp-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8e8e8;
  position: relative;
  overflow: hidden;
}

.lp-placeholder::before,
.lp-placeholder::after {
  content: '';
  position: absolute;
  background: #d0d0d0;
  height: 1px;
}

.lp-placeholder::before {
  top: 0;
  left: 0;
  width: 141.4%;
  transform-origin: top left;
  transform: rotate(33.7deg);
}

.lp-placeholder::after {
  top: 0;
  right: 0;
  width: 141.4%;
  transform-origin: top right;
  transform: rotate(-33.7deg);
}

.lp-placeholder--landscape {
  aspect-ratio: 16 / 10;
}

/* --- Section Title --- */
.lp-section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 48px;
  line-height: 1.6;
}

.lp-section-title--large {
  font-size: 30px;
  margin-bottom: 32px;
}

/* --- Common LP Button --- */
.lp-btn {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  transition: var(--transition);
  min-width: 240px;
}

.lp-btn__text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lp-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lp-btn--filled {
  background: var(--color-black);
  color: #fff;
  border: 1px solid var(--color-black);
}

.lp-btn--filled:hover {
  background: #333;
  opacity: 1;
}

.lp-btn--outline {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-left: none;
}

.lp-btn--outline:hover {
  border-color: var(--color-text-muted);
  opacity: 1;
}

.lp-btn--outline .lp-btn__arrow {
  border-left: 1px solid var(--color-border);
}

.lp-btn--dark {
  background: var(--color-black);
  color: #fff;
  margin-top: 20px;
  align-self: center;
}

.lp-btn--dark:hover {
  background: #333;
  opacity: 1;
}

.lp-btn--sm {
  min-width: 0;
}

.lp-btn--sm .lp-btn__text {
  padding: 14px 32px;
  font-size: 13px;
}

.lp-btn--sm .lp-btn__arrow {
  width: 44px;
}

.lp-btn--light {
  background: #fff;
  color: var(--color-black);
}

.lp-btn--light:hover {
  opacity: 0.9;
}

.lp-btn--light .lp-btn__arrow {
  border-left: 1px solid var(--color-border);
  color: var(--color-black);
}

.lp-btn--light .lp-btn__text {
  letter-spacing: 0.06em;
}

/* --- Hero --- */
.lp-hero {
  background: var(--color-bg-light);
}

.lp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 40px;
}

.lp-hero__text {
  padding-right: 20px;
}

.lp-hero__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--color-black);
}

.lp-hero__visual {
  position: relative;
}

.lp-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
}

.lp-hero__visual .lp-placeholder {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
}

.lp-hero__bottom {
  padding: 48px 0 64px;
  background: var(--color-bg-light);
}

.lp-hero__desc {
  text-align: center;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 40px;
}

.lp-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 0;
}

/* --- Pain Points --- */
.lp-pain {
  padding: 80px 0;
  background: #fff;
}

.lp-pain__sub {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.04em;
  margin-top: -32px;
  margin-bottom: 48px;
}

.lp-pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-pain__card {
  border: 1px solid var(--color-border);
  padding: 32px 28px;
}

.lp-pain__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.lp-pain__card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Solution --- */
.lp-solution {
  padding: 64px 0 80px;
  background: #fff;
  border-top: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
}

.lp-solution .lp-section-title {
  margin-bottom: 24px;
}

.lp-solution__sub {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* --- Reasons --- */
.lp-reasons {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.lp-reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.lp-reasons__card {
  background: #fff;
  padding: 40px 28px 32px;
  position: relative;
  text-align: center;
}

.lp-reasons__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #999;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
}

.lp-reasons__card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
  line-height: 1.7;
}

.lp-reasons__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.9;
  text-align: left;
}

/* --- Imagine --- */
.lp-imagine {
  position: relative;
  padding: 80px 0 100px;
  background: #fff;
  overflow: hidden;
}

.lp-imagine__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.lp-imagine__content {
  position: relative;
  z-index: 1;
}

.lp-imagine__body {
  text-align: center;
  font-size: 14px;
  line-height: 2.8;
  color: var(--color-text);
  letter-spacing: 0.06em;
}

.lp-imagine__body p {
  margin-bottom: 2em;
}

.lp-imagine__body p:last-child {
  margin-bottom: 0;
}

/* --- Step --- */
.lp-step__hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--color-bg-light);
}

.lp-step__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.lp-step__number {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.lp-step__number-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.lp-step__number-val {
  font-size: 40px;
  font-weight: 300;
  color: var(--color-black);
  line-height: 1.2;
  padding-bottom: 12px;
  display: inline-block;
  width: fit-content;
  position: relative;
}

.lp-step__number-val::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  right: -8px;
  height: 1.5px;
  background: var(--color-black);
}

.lp-step__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lp-step__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.lp-step__desc {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
}

.lp-step__image {
  margin: 0;
}

.lp-step__image img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-step__image .lp-placeholder {
  aspect-ratio: 3 / 2;
}

.lp-step__chevron {
  position: absolute;
  bottom: -20px;
  left: 34%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
  background: var(--color-bg-light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* --- Triggers --- */
.lp-triggers {
  padding: 56px 0 72px;
  background: #fff;
}

.lp-triggers__heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.lp-triggers__heading::before,
.lp-triggers__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.lp-triggers__heading span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.lp-triggers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.lp-triggers__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-triggers__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-triggers__body {
  min-width: 0;
}

.lp-triggers__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.5;
  margin-bottom: 4px;
}

.lp-triggers__text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Advice (STEP 2) --- */
.lp-advice__header {
  position: relative;
  padding: 64px 0 56px;
  background: var(--color-bg-light);
  text-align: center;
}

.lp-advice__header .lp-step__number {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.lp-advice__header .lp-section-title {
  margin-bottom: 0;
}

.lp-advice__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.lp-advice__chevron {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
  background: var(--color-bg-light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.lp-advice__body {
  padding: 80px 0;
  background: #fff;
}

.lp-advice__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.lp-advice__card {
  border: 1px solid var(--color-border);
}

.lp-advice__card-img {
  overflow: hidden;
}

.lp-advice__card-img .lp-placeholder {
  aspect-ratio: 4 / 3;
}

.lp-advice__card-img img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.lp-advice__card-content {
  padding: 24px 24px 28px;
}

.lp-advice__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
  min-height: calc(18px * 1.6 * 2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-advice__card-sub {
  font-size: 13px;
  color: var(--color-text);
  text-align: center;
  background: var(--color-bg-light);
  padding: 6px 12px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.lp-advice__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.lp-advice__commitment {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.lp-advice__icons {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.lp-advice__icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid #ccc;
  color: #333;
}

.lp-advice__icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-advice__icon-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.6;
}

/* --- Process (STEP 3) --- */
.lp-process__hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--color-bg-light);
}

.lp-process__chevron {
  position: absolute;
  bottom: -20px;
  left: 34%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
  background: var(--color-bg-light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.lp-process__photos {
  padding: 64px 0 56px;
  background: #fff;
}

.lp-process__photos .container {
  max-width: 900px;
}

.lp-process__photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.lp-process__photo-grid .lp-placeholder {
  aspect-ratio: 4 / 3;
}

.lp-process__photo-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-process__caption {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* --- Point --- */
.lp-point {
  padding: 72px 0 80px;
  background: #fff;
}

.lp-point__heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.lp-point__heading::before,
.lp-point__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.lp-point__heading span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-black);
  white-space: nowrap;
}

.lp-point__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.lp-point__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-point__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #555;
  margin-top: 2px;
}

.lp-point__body {
  min-width: 0;
}

.lp-point__item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
  line-height: 1.5;
}

.lp-point__item-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Case Studies --- */
.lp-cases {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.lp-cases__lead {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
  margin-top: -24px;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.lp-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.lp-cases__card {
  background: #fff;
  padding: 0 40px 40px;
  text-align: center;
}

.lp-cases__label {
  display: inline-block;
  background: var(--color-black);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 40px;
  margin-bottom: 24px;
}

.lp-cases__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: calc(20px * 1.7 * 2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-cases__card-img {
  margin-bottom: 20px;
}

.lp-cases__card-img .lp-placeholder {
  aspect-ratio: 4 / 3;
}

.lp-cases__card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-cases__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.9;
  text-align: left;
}

/* --- CTA --- */
.lp-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.lp-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #888;
  background-image:
    linear-gradient(to bottom, transparent 10%, rgba(136,136,136,0.4) 28%, rgba(136,136,136,0.8) 42%, #888 52%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='148' viewBox='0 0 180 148'%3E%3Cpolygon points='90,0 180,45 180,103 90,148 0,103 0,45' fill='none' stroke='%23777' stroke-width='0.8'/%3E%3Cpath d='M90 0 L90 58 L0 103' fill='none' stroke='%23777' stroke-width='0.8'/%3E%3Cpath d='M90 58 L180 103' fill='none' stroke='%23777' stroke-width='0.8'/%3E%3Cpolygon points='0,45 90,0 90,58 0,103' fill='rgba(255,255,255,0.06)'/%3E%3Cpolygon points='90,0 180,45 180,103 90,58' fill='rgba(0,0,0,0.06)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 180px 148px;
  background-repeat: no-repeat, repeat;
}

.lp-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.lp-cta__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  line-height: 1.6;
}

.lp-cta__subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  line-height: 1.6;
}

.lp-cta__body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 2.2;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

.lp-cta__body p {
  margin-bottom: 1.5em;
}

.lp-cta__body p:last-child {
  margin-bottom: 0;
}

.lp-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- LP Contact Form (CF7) --- */
.lp-form {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}

.lp-form__row {
  margin-bottom: 24px;
}

.lp-form__row--half {
  display: flex;
  gap: 20px;
}

.lp-form__col {
  flex: 1;
}

.lp-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.lp-form__label--required::after {
  content: "必須";
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(255, 230, 0, 0.15);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.08em;
}

.lp-form__field input[type="text"],
.lp-form__field input[type="email"],
.lp-form__field input[type="tel"],
.lp-form__field textarea,
.lp-form__field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.04em;
}

.lp-form__field input:focus,
.lp-form__field textarea:focus,
.lp-form__field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.2);
}

.lp-form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.lp-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.lp-form__field--radio .wpcf7-radio {
  display: flex;
  gap: 12px;
}

.lp-form__field--radio .wpcf7-list-item {
  margin: 0;
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lp-form__field--radio .wpcf7-list-item:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.lp-form__field--radio .wpcf7-list-item:has(input:checked),
.lp-form__field--radio .wpcf7-list-item.is-checked {
  border-color: var(--color-primary);
  background: rgba(255, 230, 0, 0.1);
}

.lp-form__field--radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.lp-form__field--radio input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lp-form__privacy {
  text-align: center;
  margin: 40px 0 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.lp-form__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-form__privacy a:hover {
  opacity: 0.8;
}

.lp-form__privacy .wpcf7-list-item {
  margin: 12px 0 0;
}

.lp-form__privacy .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.lp-form__privacy input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.lp-form__submit {
  text-align: center;
}

.lp-form__submit .wpcf7-spinner {
  position: absolute;
  margin-top: 8px;
}

.lp-form__submit input[type="submit"] {
  display: inline-block;
  min-width: 320px;
  padding: 18px 48px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.12em;
  color: var(--color-black);
  background: var(--color-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.lp-form__submit input[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* CF7 validation */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 6px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 230, 0, 0.1);
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
}

/* --- LP Responsive --- */
@media (max-width: 1024px) {
  .lp-pain__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-pain__card-title {
    font-size: 16px;
  }

  .lp-reasons__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

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

  .lp-advice__icons {
    flex-wrap: wrap;
    gap: 24px;
  }

  .lp-advice__icon-item {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .lp-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .lp-hero__text {
    padding-right: 0;
  }

  .lp-hero__title {
    font-size: 26px;
    text-align: center;
  }

  .lp-hero__bottom {
    padding: 32px 0 48px;
  }

  .lp-hero__desc {
    font-size: 13px;
  }

  .lp-hero__desc br {
    display: none;
  }

  .lp-hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .lp-btn {
    min-width: 280px;
  }

  .lp-btn--outline {
    border-left: 1px solid var(--color-border);
    border-top: none;
  }

  .lp-section-title {
    font-size: 22px;
    margin-bottom: 36px;
  }

  .lp-section-title--large {
    font-size: 24px;
  }

  .lp-pain {
    padding: 56px 0;
  }

  .lp-pain__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .lp-pain__card {
    padding: 24px 20px;
  }

  .lp-pain__sub br {
    display: none;
  }

  .lp-solution {
    padding: 48px 0 56px;
  }

  .lp-solution__sub br {
    display: none;
  }

  .lp-reasons {
    padding: 56px 0 48px;
  }

  .lp-reasons__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }

  .lp-imagine {
    padding: 56px 0 72px;
  }

  .lp-imagine__body {
    font-size: 13px;
    line-height: 2.4;
  }

  .lp-imagine__body br {
    display: none;
  }

  .lp-step__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-step__title {
    font-size: 22px;
  }

  .lp-step__number-val {
    font-size: 32px;
    font-weight: 300;
  }

  .lp-step__desc br {
    display: none;
  }

  .lp-step__chevron,
  .lp-process__chevron {
    left: 50%;
  }

  .lp-triggers {
    padding: 40px 0 56px;
  }

  .lp-triggers__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-advice__header {
    padding: 48px 0 44px;
  }

  .lp-advice__body {
    padding: 56px 0;
  }

  .lp-advice__card-title br {
    display: none;
  }

  .lp-advice__cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-advice__icons {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .lp-advice__icon-item {
    width: 140px;
    height: 140px;
  }

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

  .lp-point {
    padding: 56px 0;
  }

  .lp-point__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-cases {
    padding: 56px 0;
  }

  .lp-cases__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-cases__card {
    padding: 0 24px 32px;
  }

  .lp-cases__lead br {
    display: none;
  }

  .lp-cta {
    padding: 64px 0;
  }

  .lp-cta__title {
    font-size: 24px;
  }

  .lp-cta__subtitle {
    font-size: 16px;
  }

  .lp-cta__body br {
    display: none;
  }

  .lp-cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .lp-form__row--half {
    flex-direction: column;
    gap: 24px;
  }

  .lp-form__submit input[type="submit"] {
    min-width: 0;
    width: 100%;
  }

}

@media (max-width: 480px) {
  .lp-hero__title {
    font-size: 22px;
  }

  .lp-btn {
    min-width: 0;
    width: 100%;
  }

  .lp-btn__text {
    padding: 14px 20px;
    font-size: 13px;
  }

  .lp-pain__grid {
    grid-template-columns: 1fr;
  }

  .lp-pain__card-title {
    font-size: 16px;
  }

  .lp-reasons__grid {
    grid-template-columns: 1fr;
  }

  .lp-advice__icon-item {
    width: 120px;
    height: 120px;
    gap: 10px;
  }

  .lp-advice__icon-circle svg {
    width: 24px;
    height: 24px;
  }

  .lp-advice__icon-text {
    font-size: 11px;
  }

  .lp-process__photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lp-cases__card {
    padding: 0 20px 28px;
  }

  .lp-cases__card-title {
    font-size: 18px;
  }

  .lp-cta__title {
    font-size: 20px;
  }

  .lp-cta__subtitle {
    font-size: 14px;
  }

}

/* ============================================
   Landing Page: Service Soft (/service-soft/)
   ============================================ */

/* --- Concern Section --- */
.lp-concern {
  padding: 100px 0 80px;
  background: #fff;
}

.lp-concern__heading {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-black);
  line-height: 1.8;
  margin-bottom: 48px;
}

.lp-concern__intro {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2.4;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

.lp-concern__boxes {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto 64px;
}

.lp-concern__box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 36px 40px;
}

.lp-concern__box--left {
  margin-right: 80px;
}

.lp-concern__box--right {
  margin-left: 80px;
}

.lp-concern__box-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.lp-concern__box-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-concern__box-list li {
  position: relative;
  padding-left: 1.5em;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
}

.lp-concern__box-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  font-size: 10px;
  line-height: 2.8;
  color: var(--color-text);
}

.lp-concern__box-list li + li {
  margin-top: 4px;
}

.lp-concern__closing {
  text-align: center;
}

.lp-concern__closing p {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.06em;
  line-height: 2;
}

.lp-concern__closing p + p {
  margin-top: 4px;
}

/* --- Overview Section --- */
.lp-overview {
  padding: 100px 0 80px;
  background: var(--color-bg-light);
}

.lp-overview__sub {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2.2;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

.lp-overview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}

.lp-overview__cell {
  display: flex;
  flex-direction: column;
}

.lp-overview__card {
  background: #fff;
  border-radius: 8px;
  padding: 48px 40px;
  flex: 1;
}

.lp-overview__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.lp-overview__card-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* --- Branding Section --- */
.lp-branding {
  padding: 96px 0 80px;
  background: #fff;
}

.lp-branding__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.lp-branding__label {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.lp-branding__rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 40px;
  max-width: 480px;
}

.lp-branding__title {
  font-size: 34px;
  font-weight: 900;
  color: var(--color-black);
  line-height: 2;
  letter-spacing: 0.06em;
}

.lp-branding__header-icon {
  flex-shrink: 0;
  padding-top: 0;
}

.lp-branding__subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.8;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.lp-branding__desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 2.2;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* Measures area with gray background */
.lp-branding__measures {
  position: relative;
  background: var(--color-bg-light);
  padding: 130px 0 96px;
  margin-top: 130px;
}

.lp-branding__measures-banner {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.lp-branding__measures-banner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.3em;
  width: 160px;
  height: 160px;
}

.lp-branding__measures-intro {
  text-align: center;
  font-size: 14px;
  color: var(--color-text);
  line-height: 2.2;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
  padding-top: 8px;
}

.lp-branding__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}

.lp-branding__service-item {
  background: #fff;
  border-radius: 4px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.lp-branding__service-head {
  border-left: 3px solid var(--color-black);
  padding-left: 16px;
  margin-bottom: 24px;
}

.lp-branding__service-head p {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.lp-branding__service-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
}

.lp-branding__cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lp-branding__case {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 32px 40px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.lp-branding__cases {
  position: relative;
  z-index: 0;
}

.lp-branding__case::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  z-index: -1;
  pointer-events: none;
}

.lp-branding__case-label {
  display: block;
  background: var(--color-black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 0;
  text-align: center;
  max-width: 320px;
  margin: 0 auto 20px;
}

.lp-branding__case-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  text-align: center;
}

.lp-branding__case-img {
  margin-bottom: 32px;
}

.lp-branding__case-img .lp-placeholder {
  aspect-ratio: 4 / 3;
}

.lp-branding__case-img img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-branding__case-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 2.2;
  letter-spacing: 0.02em;
}

/* --- Branding Reverse (CONSULTING etc.) --- */
.lp-branding__header--reverse {
  grid-template-columns: auto 1fr;
}

.lp-branding__header--reverse .lp-branding__label,
.lp-branding__header--reverse .lp-branding__title {
  text-align: right;
}

.lp-branding__header--reverse .lp-branding__rule {
  margin-left: auto;
  margin-right: 0;
}

/* --- Seminar Topics Card --- */
.lp-branding__seminar {
  margin-top: 0;
}

.lp-branding__seminar-inner {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 32px 40px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.lp-branding__seminar-inner::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  z-index: -1;
  pointer-events: none;
}

.lp-branding__seminar {
  position: relative;
  z-index: 0;
}

.lp-branding__seminar-label {
  display: block;
  background: var(--color-black);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 0;
  text-align: center;
  max-width: 280px;
  margin: 0 auto 24px;
}

.lp-branding__seminar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
  text-align: center;
}

.lp-branding__seminar-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.lp-branding__seminar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-branding__seminar-list {
  margin: 0;
}

.lp-branding__seminar-list dt {
  font-size: 13px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
}

.lp-branding__seminar-list dd {
  font-size: 13px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
  margin-left: 1.8em;
  margin-bottom: 6px;
}

/* --- Branding: subtitle right-aligned variant --- */
.lp-branding__subtitle--right {
  text-align: right;
}

/* --- Branding: single service row --- */
.lp-branding__services--single {
  grid-template-columns: 1fr;
  max-width: 50%;
  margin: 0 auto 72px;
}

/* --- Branding: Voices / Testimonials --- */
.lp-branding__voices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.lp-branding__voice {
  text-align: center;
}

.lp-branding__voice-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lp-branding__voice-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.lp-branding__voice-text {
  font-size: 12px;
  color: var(--color-text);
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: left;
}

/* --- Service Soft Responsive: 1024px --- */
@media (max-width: 1024px) {
  .lp-overview__grid {
    gap: 36px 28px;
  }

  .lp-overview__card {
    padding: 36px 28px;
  }

  .lp-branding__services {
    gap: 36px 40px;
  }

}

/* --- Final Section (Quote + Actions) --- */
.lp-final__quote {
  padding: 96px 0 64px;
  text-align: center;
  background: #fff;
}

.lp-final__heading {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--color-black);
  margin-bottom: 40px;
}

.lp-final__sub {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.lp-final__actions {
  padding: 72px 0 96px;
}

.lp-final__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.lp-final__item {
  padding: 0 32px;
  text-align: center;
}

.lp-final__item--bordered {
  border-left: 1px solid var(--color-border);
}

.lp-final__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.lp-final__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.lp-final__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
  text-align: left;
  letter-spacing: 0.02em;
}

/* --- Service Soft Responsive: 768px --- */
@media (max-width: 768px) {
  .lp-concern {
    padding: 56px 0;
  }

  .lp-concern__heading {
    font-size: 24px;
  }

  .lp-concern__intro br {
    display: none;
  }

  .lp-concern__box--left,
  .lp-concern__box--right {
    margin-left: 0;
    margin-right: 0;
  }

  .lp-concern__box {
    padding: 28px 24px;
  }

  .lp-concern__closing p {
    font-size: 16px;
  }

  .lp-overview {
    padding: 56px 0;
  }

  .lp-overview__sub br {
    display: none;
  }

  .lp-overview__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-overview__card {
    padding: 36px 28px;
  }

  .lp-branding {
    padding: 56px 0;
  }

  .lp-branding__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-branding__header-icon {
    display: none;
  }

  .lp-branding__title {
    font-size: 22px;
  }

  .lp-branding__header--reverse {
    grid-template-columns: 1fr;
  }

  .lp-branding__header--reverse .lp-branding__label,
  .lp-branding__header--reverse .lp-branding__title {
    text-align: left;
  }

  .lp-branding__header--reverse .lp-branding__rule {
    margin-left: 0;
  }

  .lp-branding__services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-branding__service-item {
    padding: 32px 24px;
  }

  .lp-branding__cases {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-branding__measures {
    padding: 64px 0 72px;
    margin-top: 56px;
  }

  .lp-branding__case {
    padding: 24px 24px 36px;
  }

  .lp-branding__case-label {
    max-width: 100%;
  }

  .lp-branding__measures-intro br {
    display: none;
  }

  .lp-branding__seminar-inner {
    padding: 0 24px 36px;
  }

  .lp-branding__seminar-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-branding__voices {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .lp-branding__services--single {
    max-width: 100%;
  }

  .lp-branding__subtitle--right {
    text-align: left;
  }

  .lp-final__quote {
    padding: 64px 0 48px;
  }

  .lp-final__heading {
    font-size: 24px;
  }

  .lp-final__sub br {
    display: none;
  }

  .lp-final__actions {
    padding: 48px 0 64px;
  }

  .lp-final__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .lp-final__item:nth-child(3) {
    border-left: none;
  }

  .lp-final__item:nth-child(3),
  .lp-final__item:nth-child(4) {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
  }
}

/* --- Service Soft Responsive: 480px --- */
@media (max-width: 480px) {
  .lp-concern__heading {
    font-size: 20px;
  }

  .lp-concern__box {
    padding: 20px 16px;
  }

  .lp-concern__box-title {
    font-size: 16px;
  }

  .lp-concern__box-list li {
    font-size: 13px;
  }

  .lp-concern__closing p {
    font-size: 14px;
  }

  .lp-branding__title {
    font-size: 19px;
  }

  .lp-branding__subtitle {
    font-size: 15px;
  }

  .lp-branding__measures-banner-text {
    font-size: 18px;
    width: 100px;
    height: 100px;
  }

  .lp-branding__case-label {
    padding: 6px 24px;
    font-size: 12px;
  }

  .lp-branding__voices {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-branding__voice-text {
    font-size: 13px;
  }

  .lp-final__heading {
    font-size: 20px;
    line-height: 1.7;
  }

  .lp-final__sub {
    font-size: 14px;
  }

  .lp-final__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-final__item--bordered {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
  }

  .lp-final__item:nth-child(3),
  .lp-final__item:nth-child(4) {
    padding-top: 32px;
  }
}

/* ============================================
   Search Filter Section
   ============================================ */
.section-search-filter {
  padding: var(--section-padding) 0;
  /* background: var(--color-bg-light); */
}

.search-filter__group {
  margin-bottom: 32px;
}

.search-filter__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.search-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-filter__cat-group {
  display: contents;
}

.search-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.search-filter__btn:hover {
  border-color: var(--color-black);
}
.search-filter__btn.is-active {
  background: var(--color-black);
  color: #fff;
  border-color: var(--color-black);
}

.search-filter__btn--child {
  font-size: 12px;
  padding: 6px 16px;
}

.search-filter__submit {
  text-align: center;
  margin-top: 40px;
}

.search-filter__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 48px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.1em;
  background: var(--color-primary);
  color: var(--color-black);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.search-filter__submit-btn:hover {
  background: var(--color-primary-dark);
}
.search-filter__submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .section-search-filter {
    padding: 48px 0;
  }

  .search-filter__submit-btn {
    min-width: 0;
    width: 100%;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .search-filter__btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  .search-filter__btn--child {
    padding: 5px 12px;
    font-size: 11px;
  }
}
