/* ============================================
   YOITOKI - 婚恋生活综合媒体平台
   Warm · Cute · Romantic Design System
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --color-base: #F9F6F0;
  --color-primary: #F08080;
  --color-primary-light: #FFB3B3;
  --color-primary-dark: #E06565;
  --color-accent-gold: #D4A574;
  --color-accent-pink: #FFC0CB;
  --color-accent-lavender: #E6E0F8;
  --color-accent-mint: #C8E6D0;
  --color-accent-peach: #FFDAB9;
  --color-accent-cream: #FFF5E6;
  --color-text-main: #333333;
  --color-text-sub: #666666;
  --color-text-light: #999999;
  --color-white: #FFFFFF;
  --color-border: #E8E0D8;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-heart: #FF4757;
  --color-star: #FFD700;
  --gradient-warm: linear-gradient(135deg, #FFF0F0 0%, #FFE8E0 50%, #FFDAB9 100%);
  --gradient-cute: linear-gradient(135deg, #FFC0CB 0%, #FFB3B3 100%);
  --gradient-hero: linear-gradient(135deg, #FFF5F0 0%, #FFE0E0 40%, #FFD0C0 100%);
  --gradient-gold: linear-gradient(135deg, #F5E6C8 0%, #D4A574 100%);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(240, 128, 128, 0.15);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
  --max-width: 1100px;
  --font-jp: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-title: "Yu Mincho", "Hiragino Mincho Pro", serif;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-jp);
  color: var(--color-text-main);
  background: var(--color-base);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

ul, ol {
  list-style: none;
}

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

.text-center { text-align: center; }
.text-pink { color: var(--color-primary); }
.text-gold { color: var(--color-accent-gold); }
.hidden { display: none !important; }

.emoji-icon {
  display: inline-block;
  font-size: 1.2em;
  line-height: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-jp);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 128, 128, 0.4);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: #FFF5F5;
  transform: translateY(-1px);
}

.btn-text {
  background: none;
  color: var(--color-primary);
  padding: 4px 8px;
  text-decoration: underline;
  font-size: 13px;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #5C3D1A;
  font-weight: 700;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0,0,0.06);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo .logo-heart {
  font-size: 20px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.search-box {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-family: var(--font-jp);
  background: var(--color-base);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 16px;
  display: none;
  z-index: 10;
}

.search-suggestions.active {
  display: block;
}

.search-suggestions h4 {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.search-suggestions .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggestions .tag-cloud a {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--color-base);
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
}

.search-suggestions .tag-cloud a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ===== Header Nav Bar ===== */
.header-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-jp);
}
.header-nav .nav-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

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

.header-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.header-action-btn:hover {
  background: var(--color-base);
}

.header-action-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-cute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-card);
}

/* ===== Main Layout ===== */
.main-content {
  margin-top: 64px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Channel page main-content with header-nav */
.main-content.has-nav-bar {
  margin-top: 108px;
}

.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.page-layout.full-width {
  grid-template-columns: 1fr;
}

/* ===== Channel Sidebar ===== */
.ch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ch-sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.ch-sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ch-sidebar-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}
.ch-sidebar-rank-item:last-child { border-bottom: none; }
.ch-sidebar-rank-item:hover { color: var(--color-primary); }
.ch-sidebar-rank-num {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.ch-sidebar-rank-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  line-height: 1.5;
}
.ch-sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ch-sidebar-tag-cloud a {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--color-base);
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
  text-decoration: none;
  transition: var(--transition);
}
.ch-sidebar-tag-cloud a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.ch-sidebar-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  color: var(--color-white);
}
.ch-sidebar-cta h3 {
  color: var(--color-white);
  border-bottom: none;
  padding-bottom: 0;
  justify-content: center;
  font-size: 16px;
}
.ch-sidebar-cta p {
  font-size: 13px;
  opacity: 0.9;
  margin: 10px 0 16px;
  line-height: 1.6;
}
.ch-sidebar-cta-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.ch-sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== Hero Section ===== */
.hero {
  background: url('../images/hero-sakura-fuji.png') center center / cover no-repeat;
  padding: 80px 20px 90px;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,30,70,0.45) 0%, rgba(70,25,80,0.38) 45%, rgba(40,15,55,0.52) 100%);
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-title .accent {
  color: #FFB3B3;
  position: relative;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255, 179, 179, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  line-height: 1.8;
  max-width: 90%;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 26px;
  font-weight: 700;
  color: #FFD0C0;
  font-family: var(--font-title);
}

.hero-stat .label {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

/* ===== Section Title ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.section-title .emoji {
  font-size: 26px;
}

.section-title .more-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

/* ===== Channel Cards ===== */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.channel-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 12px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.channel-card .channel-img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: block;
}

.channel-card .channel-emoji,
.channel-card .channel-bg {
  display: none;
}

.channel-card .channel-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.channel-card .channel-desc {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Channel color themes */
.channel-card[data-theme="pink"] { background: linear-gradient(135deg, #FFF5F5, #FFFFFF); }
.channel-card[data-theme="peach"] { background: linear-gradient(135deg, #FFF5E6, #FFFFFF); }
.channel-card[data-theme="mint"] { background: linear-gradient(135deg, #F0FFF4, #FFFFFF); }
.channel-card[data-theme="lavender"] { background: linear-gradient(135deg, #F5F0FF, #FFFFFF); }
.channel-card[data-theme="gold"] { background: linear-gradient(135deg, #FFFBF0, #FFFFFF); }
.channel-card[data-theme="sky"] { background: linear-gradient(135deg, #F0F8FF, #FFFFFF); }
.channel-card[data-theme="rose"] { background: linear-gradient(135deg, #FFF0F5, #FFFFFF); }

/* ===== Article Cards ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.article-card .card-thumb {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-warm);
}

.article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.05);
}

.article-card .card-thumb.bg-1 { background: var(--gradient-warm); }
.article-card .card-thumb.bg-2 { background: linear-gradient(135deg, #E6E0F8, #F5F0FF); }
.article-card .card-thumb.bg-3 { background: linear-gradient(135deg, #C8E6D0, #F0FFF4); }
.article-card .card-thumb.bg-4 { background: linear-gradient(135deg, #FFDAB9, #FFF5E6); }
.article-card .card-thumb.bg-5 { background: linear-gradient(135deg, #FFC0CB, #FFF0F5); }

.article-card .card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.9);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
}

.article-card .card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .card-category {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.article-card .card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--color-text-main);
  flex: 1;
}

.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--color-text-light);
}

.article-card .card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== Matching Preview ===== */
.matching-section {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.matching-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-cute);
}

.matching-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.matching-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-sub);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.matching-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.match-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.profile-card {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.profile-card .profile-photo {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: var(--gradient-warm);
  position: relative;
  overflow: hidden;
}

.profile-card .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-photo img {
  transform: scale(1.05);
}

.profile-card .profile-photo .like-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.profile-card .profile-photo .like-btn:hover {
  transform: scale(1.2);
}

.profile-card .profile-photo .like-btn.liked {
  background: var(--color-heart);
}

.profile-card .profile-photo .like-btn.liked .heart-icon {
  color: var(--color-white);
}

.profile-card .profile-photo .match-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.profile-card .profile-info {
  padding: 12px;
}

.profile-card .profile-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-card .profile-detail {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 6px;
}

.profile-card .profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.profile-card .profile-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--color-accent-cream);
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
}

/* ===== Community Section ===== */
.community-section {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.community-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.community-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-sub);
  transition: var(--transition);
}

.community-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.community-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-post {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.community-post:hover {
  background: #FFF5F5;
}

.community-post .post-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--gradient-cute);
}

.community-post .post-content {
  flex: 1;
}

.community-post .post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.community-post .post-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

.community-post .post-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.post-type.qa { background: var(--color-accent-lavender); color: #7B61C8; }
.post-type.diary { background: var(--color-accent-peach); color: #C8742A; }
.post-type.photo { background: var(--color-accent-mint); color: #2D8C56; }

.community-post .post-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.5;
}

.community-post .post-preview {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-post .post-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--color-text-light);
}

.community-post .post-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== Tools Section ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.tool-card .tool-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: block;
}

.tool-card .tool-emoji {
  display: none;
}

.tool-card .tool-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-card .tool-desc {
  font-size: 11px;
  color: var(--color-text-light);
}

.tool-card .tool-new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-heart);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* position: sticky; */
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card h3 .emoji {
  font-size: 18px;
}

/* ===== Sidebar CTA Card ===== */
.sidebar-cta {
  background: var(--gradient-warm);
  border: 2px solid var(--color-primary-light);
  overflow: hidden;
  position: relative;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,192,203,0.25);
}

.sidebar-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sidebar-cta-emoji {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.sidebar-cta-title {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px !important;
  line-height: 1.5;
  display: block !important;
}

.sidebar-cta-desc {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sidebar-cta-btn {
  display: inline-block;
  background: var(--gradient-cute);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(240,128,128,0.3);
  transition: var(--transition);
  margin-bottom: 14px;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,128,128,0.4);
}

.sidebar-cta-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  padding: 8px 4px;
}

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

.cta-stat-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.cta-stat-label {
  display: block;
  font-size: 9px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.cta-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

/* ===== Sidebar Partner Card ===== */
.sidebar-partner {
  overflow: hidden;
  padding: 0 !important;
}

.sidebar-partner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.sidebar-partner-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.sidebar-partner-badge {
  background: var(--gradient-cute);
  color: var(--color-white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(240,128,128,0.25);
}

.sidebar-partner-photo {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.sidebar-partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-partner-photo:hover img {
  transform: scale(1.05);
}

.sidebar-partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  padding: 20px 14px 10px;
  text-align: right;
}

.sidebar-partner-overlay span {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.sidebar-partner-info {
  padding: 12px 16px 16px;
}

.sidebar-partner-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.sidebar-partner-age {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sub);
}

.sidebar-partner-meta {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.sidebar-partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.partner-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--color-accent-pink);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ===== Sidebar Card Header (enhanced) ===== */
.sidebar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sidebar-card-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card-sub {
  font-size: 10px;
  color: var(--color-text-light);
  background: var(--color-base);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ===== Sidebar Tools Grid ===== */
.sidebar-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.sidebar-tool-item:hover {
  background: var(--color-accent-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sidebar-tool-icon {
  font-size: 22px;
  line-height: 1;
}

.sidebar-tool-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-sub);
  line-height: 1.3;
}

/* ===== Sidebar Tags (colorful) ===== */
.sidebar-tags .tag-cloud-sidebar a {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-tags .tag-cloud-sidebar a:nth-child(3n+1) {
  background: var(--color-accent-pink);
  color: var(--color-primary-dark);
}

.sidebar-tags .tag-cloud-sidebar a:nth-child(3n+2) {
  background: var(--color-accent-cream);
  color: var(--color-accent-gold);
}

.sidebar-tags .tag-cloud-sidebar a:nth-child(3n) {
  background: var(--color-accent-lavender);
  color: #7B68AE;
}

.sidebar-tags .tag-cloud-sidebar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ===== Sidebar SNS Card ===== */
.sidebar-sns {
  text-align: center;
}

.sidebar-sns-desc {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}

.sidebar-sns-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sidebar-sns-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-sns-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.15);
}

.sidebar-sns-btn.sns-line { background: #06C755; }
.sidebar-sns-btn.sns-ig { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f094fb 100%); }
.sidebar-sns-btn.sns-x { background: #000; }
.sidebar-sns-btn.sns-yt { background: #FF0000; }

/* Ranking list */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.ranking-item:hover {
  background: var(--color-base);
}

.ranking-item .rank-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .rank-num { background: #FFD700; color: #fff; }
.ranking-item:nth-child(2) .rank-num { background: #C0C0C0; color: #fff; }
.ranking-item:nth-child(3) .rank-num { background: #CD7F32; color: #fff; }
.ranking-item:nth-child(n+4) .rank-num { background: var(--color-base); color: var(--color-text-sub); }

.ranking-item .rank-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.ranking-item .rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item .rank-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.ranking-item .rank-meta {
  font-size: 10px;
  color: var(--color-text-light);
}

/* ===== Link-wrapped cards (a tag versions) ===== */
a.article-card,
a.ranking-item,
a.community-post {
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
}

a.ranking-item {
  align-items: center;
  gap: 10px;
}

a.community-post {
  gap: 12px;
  padding: 16px;
  background: var(--color-base);
  border-radius: var(--radius-md);
}

/* Tags cloud */
.tag-cloud-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud-sidebar a {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--color-base);
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
  transition: var(--transition);
}

.tag-cloud-sidebar a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* CTA card */
.cta-card {
  background: var(--gradient-cute);
  text-align: center;
  color: var(--color-white);
}

.cta-card h3 {
  color: var(--color-white);
  justify-content: center;
}

.cta-card p {
  font-size: 12px;
  margin-bottom: 14px;
  opacity: 0.9;
}

.cta-card .btn {
  background: var(--color-white);
  color: var(--color-primary);
  width: 100%;
  justify-content: center;
}

/* Premium card */
.premium-card {
  background: var(--gradient-gold);
  color: #5C3D1A;
}

.premium-card h3 {
  color: #5C3D1A;
}

.premium-card .premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #5C3D1A;
  color: #FFD700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.premium-card p {
  font-size: 12px;
  margin-bottom: 14px;
  color: #6B4C2A;
}

.premium-card .btn {
  background: #5C3D1A;
  color: #FFD700;
  width: 100%;
  justify-content: center;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: #FFF5F0;
  padding: 48px 20px 24px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text-main);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--color-text-sub);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

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

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-sns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-sns a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.footer-sns a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-sns a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.footer-sns a.sns-line:hover { background: #06C755; }
.footer-sns a.sns-line:hover svg path { fill: #fff; }
.footer-sns a.sns-x:hover { background: #000; }
.footer-sns a.sns-x:hover svg path { fill: #fff; }
.footer-sns a.sns-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-sns a.sns-ig:hover svg path { fill: #fff; }
.footer-sns a.sns-fb:hover { background: #1877F2; }
.footer-sns a.sns-fb:hover svg path { fill: #fff; }
.footer-sns a.sns-tt:hover { background: #000; }
.footer-sns a.sns-tt:hover svg path { fill: #fff; }
.footer-sns a.sns-yt:hover { background: #FF0000; }
.footer-sns a.sns-yt:hover svg path { fill: #fff; }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-light);
}

/* ===== Bottom Tab Bar (Mobile) ===== */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 6px 0;
  padding-bottom: env(safe-area-inset-bottom, 6px);
}

.bottom-tab {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  font-family: var(--font-jp);
}

.bottom-tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-tab-item .tab-label {
  font-size: 10px;
  color: var(--color-text-sub);
}

.bottom-tab-item.active .tab-icon,
.bottom-tab-item.active .tab-label {
  color: var(--color-primary);
}

/* ===== Floating Action Button ===== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(240,128,128,0.4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 24px rgba(240,128,128,0.5);
}

.fab-menu {
  position: fixed;
  bottom: 90px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

.fab-menu.active .fab-menu-item {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.fab-menu-item .fab-icon {
  font-size: 20px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
}

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

/* ===== Global Floating Decorations ===== */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-shape {
  position: absolute;
  opacity: 0.7;
  will-change: transform;
}

.float-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.float-shape.s1 { width: 28px; height: 28px; top: 15%; left: 6%; animation: drift1 7s ease-in-out infinite; }
.float-shape.s2 { width: 22px; height: 22px; top: 25%; right: 8%; animation: drift2 6s ease-in-out infinite 1s; }
.float-shape.s3 { width: 34px; height: 34px; top: 45%; left: 4%; animation: drift3 8s ease-in-out infinite 2s; }
.float-shape.s4 { width: 26px; height: 26px; top: 55%; right: 5%; animation: drift1 5s ease-in-out infinite 0.5s; }
.float-shape.s5 { width: 30px; height: 30px; top: 72%; left: 7%; animation: drift2 7s ease-in-out infinite 1.5s; }
.float-shape.s6 { width: 24px; height: 24px; top: 82%; right: 10%; animation: drift3 6s ease-in-out infinite 2.5s; }
.float-shape.s7 { width: 20px; height: 20px; top: 35%; left: 92%; animation: drift1 9s ease-in-out infinite 0.8s; }
.float-shape.s8 { width: 32px; height: 32px; top: 62%; left: 15%; animation: drift2 5.5s ease-in-out infinite 3s; }

@keyframes drift1 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-20px) translateX(10px) rotate(15deg); }
  50% { transform: translateY(-10px) translateX(-5px) rotate(-5deg); }
  75% { transform: translateY(-25px) translateX(8px) rotate(10deg); }
}

@keyframes drift2 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  33% { transform: translateY(-15px) translateX(-12px) rotate(-12deg); }
  66% { transform: translateY(-22px) translateX(6px) rotate(8deg); }
}

@keyframes drift3 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  20% { transform: translateY(-12px) translateX(8px) rotate(10deg); }
  40% { transform: translateY(-8px) translateX(-10px) rotate(-8deg); }
  60% { transform: translateY(-20px) translateX(5px) rotate(12deg); }
  80% { transform: translateY(-15px) translateX(-6px) rotate(-5deg); }
}

/* ===== Hero responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 50px 20px 60px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-stats {
    gap: 24px;
  }

  .channel-card .channel-img {
    height: 70px;
  }

  .article-card .card-thumb {
    height: 120px;
  }

  .profile-card .profile-photo {
    height: 160px;
  }
}

/* ===== Quick Match Search ===== */
.quick-match {
  max-width: 1100px;
  margin: -40px auto 40px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.quick-match-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 2px solid var(--color-accent-pink);
}

.quick-match-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-match-title .icon {
  font-size: 22px;
}

.quick-match-title .sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 8px;
}

.quick-match-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.quick-match-field {
  flex: 1;
  min-width: 140px;
}

.quick-match-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-sub);
  margin-bottom: 4px;
  display: block;
}

.quick-match-field select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-jp);
  background: var(--color-base);
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-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='%23F08080' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.quick-match-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.quick-match-btn {
  padding: 11px 32px;
  background: var(--gradient-cute);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-jp);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(240,128,128,0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-match-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,128,128,0.4);
}

.quick-match-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  font-size: 12px;
  color: var(--color-text-sub);
}

.quick-match-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-match-stats .num {
  font-weight: 700;
  color: var(--color-primary);
}

/* ===== Match Search Results ===== */
#match-search-results {
  margin-top: 24px;
}

.match-search-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff5f5, #fff0f5);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-accent-pink);
}

.match-search-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.match-search-condition {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 0;
}

.match-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.match-result-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  display: block;
}

.match-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(240,128,128,0.18);
  border-color: var(--color-accent-pink);
}

.match-result-card .profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-base);
}

.match-result-card .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.match-result-card:hover .profile-photo img {
  transform: scale(1.05);
}

.match-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(240,128,128,0.95);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(240,128,128,0.3);
}

.match-result-card .like-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.match-result-card .like-btn:hover {
  transform: scale(1.15);
}

.match-result-card .like-btn.liked {
  background: var(--color-primary);
}

.match-result-card .profile-info {
  padding: 12px 14px 14px;
}

.match-result-card .profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.match-result-card .profile-detail {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.match-result-card .profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.match-result-card .profile-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-accent-light);
  padding: 3px 8px;
  border-radius: 12px;
}

.match-search-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.match-search-actions .btn {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.match-search-actions .match-more-btn {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.match-search-actions .match-more-btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.match-search-actions .match-login-btn {
  background: var(--gradient-cute);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(240,128,128,0.3);
}

.match-search-actions .match-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240,128,128,0.4);
}

/* ===== Events Section ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.event-card .event-banner {
  height: 120px;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.event-card .event-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .event-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
}

.event-type-badge.party { background: var(--color-primary); }
.event-type-badge.gourmet { background: #E67E22; }
.event-type-badge.online { background: #3498DB; }
.event-type-badge.premium { background: var(--gradient-gold); color: #5C3D1A; }

.event-card .event-body {
  padding: 16px;
}

.event-card .event-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.event-card .event-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.event-card .event-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 10px;
}

.event-card .event-info span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.event-card .event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.event-card .event-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.event-card .event-capacity {
  font-size: 11px;
  color: var(--color-text-light);
}

.event-card .event-capacity .full {
  color: var(--color-heart);
}

/* ===== App Comparison ===== */
.app-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.app-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.app-card .app-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  text-align: center;
  line-height: 1;
}

.app-card .app-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-card .app-tagline {
  font-size: 11px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.app-card .app-features {
  text-align: left;
  margin-bottom: 14px;
}

.app-card .app-features li {
  font-size: 11px;
  color: var(--color-text-sub);
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.app-card .app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.app-card .app-rating {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-star);
  margin-bottom: 6px;
}

.app-card .app-price {
  font-size: 12px;
  color: var(--color-text-sub);
}

.app-card .app-price strong {
  color: var(--color-primary);
  font-size: 14px;
}

.app-card .app-btn {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-base);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
  transition: var(--transition);
}

.app-card:hover .app-btn {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== Date Spots ===== */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.spot-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

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

.spot-card .spot-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.spot-card .spot-body {
  padding: 12px;
}

.spot-card .spot-area {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.spot-card .spot-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.spot-card .spot-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.spot-card .spot-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--color-accent-cream);
  border-radius: var(--radius-full);
  color: var(--color-text-sub);
}

.spot-card .spot-rating {
  font-size: 11px;
  color: var(--color-star);
  margin-top: 6px;
  font-weight: 600;
}

/* ===== Q&A Section ===== */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.qa-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  border-left: 4px solid var(--color-primary);
}

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

.qa-card .qa-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.qa-cat-approach { background: var(--color-accent-pink); color: var(--color-primary); }
.qa-cat-comm { background: var(--color-accent-lavender); color: #7B61C8; }
.qa-cat-mind { background: var(--color-accent-mint); color: #2D8C56; }
.qa-cat-date { background: var(--color-accent-peach); color: #C8742A; }
.qa-cat-breakup { background: #FFE0E0; color: var(--color-heart); }

.qa-card .qa-question {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.qa-card .qa-preview {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.qa-card .qa-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--color-text-light);
  align-items: center;
}

.qa-card .qa-expert-badge {
  background: var(--gradient-gold);
  color: #5C3D1A;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.qa-ask-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* ===== Expert Column ===== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.expert-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

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

.expert-card .expert-header {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: center;
}

.expert-card .expert-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.expert-card .expert-info {
  flex: 1;
}

.expert-card .expert-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.expert-card .expert-title {
  font-size: 11px;
  color: var(--color-text-sub);
}

.expert-card .expert-article {
  padding: 0 16px 16px;
}

.expert-card .expert-article-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.expert-card .expert-article-meta {
  font-size: 11px;
  color: var(--color-text-light);
  display: flex;
  gap: 8px;
}

/* ===== Safety Banner ===== */
.safety-banner {
  background: linear-gradient(135deg, #E8F5E9, #C8E6D0);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.safety-banner .safety-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.safety-banner .safety-content {
  flex: 1;
  min-width: 200px;
}

.safety-banner .safety-title {
  font-size: 16px;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 4px;
}

.safety-banner .safety-desc {
  font-size: 12px;
  color: #388E3C;
  line-height: 1.6;
}

.safety-banner .safety-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.safety-banner .safety-badge {
  background: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #2E7D32;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== CTA Register Banner (replaced newsletter) ===== */
.cta-register-banner {
  background: var(--gradient-cute);
  border-radius: var(--radius-xl);
  padding: 0;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.cta-register-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-register-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -10px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cta-register-inner {
  padding: 40px 32px;
  text-align: center;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.cta-register-inner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-register-inner p {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 16px;
  line-height: 1.7;
}

.cta-register-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-register-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-jp);
}

.newsletter-form button {
  padding: 12px 28px;
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-jp);
  white-space: nowrap;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: scale(1.03);
}

/* ===== Success story thumbs (same as article cards) ===== */
.success-story .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.success-story:hover .card-thumb img {
  transform: scale(1.05);
}

/* ===== Article Hero (no overlay) ===== */
.article-hero {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
  margin-bottom: 0;
}

.article-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 12px;
}

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

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

.breadcrumb a {
  color: var(--color-text-sub);
}

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

.breadcrumb .separator {
  color: var(--color-text-light);
}

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

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-accent-pink);
  color: var(--color-primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title-main {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-sub);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta .author-link {
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
}

/* Article TOC */
.article-toc {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
  border-left: 4px solid var(--color-primary);
}

.article-toc h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.article-toc ol li {
  margin-bottom: 6px;
  font-size: 13px;
}

.article-toc ol li a {
  color: var(--color-text-sub);
}

.article-toc ol li a:hover {
  color: var(--color-primary);
}

/* Article body */
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-main);
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent-pink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--color-primary-dark);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body .lead {
  font-size: 16px;
  color: var(--color-text-sub);
  padding: 16px 20px;
  background: var(--color-accent-cream);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent-gold);
  margin-bottom: 24px;
}

.article-body ul, .article-body ol {
  margin: 12px 0 16px 20px;
}

.article-body ul li, .article-body ol li {
  margin-bottom: 6px;
  list-style: disc;
}

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

.article-body strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Step box */
.step-box {
  background: var(--color-white);
  border: 2px solid var(--color-accent-pink);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}

.step-box .step-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-box h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-box p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Product card */
.product-card {
  display: flex;
  gap: 12px;
  background: var(--color-base);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 12px 0;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
  background: var(--color-white);
}

.product-card .product-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-md);
}

.product-card .product-info {
  flex: 1;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.product-card .product-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

.product-card .product-rating {
  font-size: 11px;
  color: var(--color-text-light);
}

.product-card .product-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card .product-actions .btn-sm {
  font-size: 11px;
  padding: 4px 10px;
}

/* Before/After slider */
.compare-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 24px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16/9;
  cursor: ew-resize;
}

.compare-slider .slider-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.compare-slider .slider-before {
  left: 0;
  background: linear-gradient(135deg, #F0F0F0, #E0E0E0);
}

.compare-slider .slider-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider .slider-after {
  right: 0;
  background: var(--gradient-warm);
}

.compare-slider .slider-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.compare-slider .slider-label.before { left: 12px; color: var(--color-text-sub); }
.compare-slider .slider-label.after { right: 12px; color: var(--color-primary); }

.compare-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--color-white);
  z-index: 3;
  transform: translateX(-50%);
}

.compare-slider .slider-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* Article actions */
.article-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
}

.article-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  transition: var(--transition);
  font-family: var(--font-jp);
}

.article-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.article-action-btn.liked {
  border-color: var(--color-heart);
  color: var(--color-heart);
  background: #FFF5F5;
}

.article-action-btn.saved {
  border-color: var(--color-star);
  color: #B8860B;
  background: #FFFBE6;
}

.article-action-btn .action-count {
  font-size: 12px;
  font-weight: 700;
}

/* Recommend section */
.recommend-section {
  margin: 32px 0;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* CTA box */
.cta-box {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.cta-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-section {
  margin: 32px 0;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--color-base);
}

.faq-question .faq-toggle {
  font-size: 18px;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 16px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--color-white);
}

.compare-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  position: sticky;
  top: 0;
}

.compare-table th:hover {
  background: var(--color-primary-dark);
}

.compare-table th .sort-icon {
  font-size: 10px;
  opacity: 0.7;
}

.compare-table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.compare-table tr:hover td {
  background: #FFF8F5;
}

.compare-table .yes { color: #2D8C56; font-weight: 600; }
.compare-table .no { color: var(--color-text-light); }
.compare-table .partial { color: var(--color-accent-gold); }

/* Restaurant detail card */
.restaurant-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 20px 0;
  transition: var(--transition);
}

.restaurant-card:hover {
  box-shadow: var(--shadow-hover);
}

.restaurant-card .restaurant-header {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.restaurant-card .restaurant-thumb {
  width: 120px;
  height: 100px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  background: var(--gradient-warm);
  overflow: hidden;
}
.restaurant-card .restaurant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-card .restaurant-info {
  flex: 1;
}

.restaurant-card .restaurant-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.restaurant-card .restaurant-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.restaurant-card .restaurant-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.restaurant-tag.tag-night { background: #E6E0F8; color: #7B61C8; }
.restaurant-tag.tag-private { background: var(--color-accent-mint); color: #2D8C56; }
.restaurant-tag.tag-surprise { background: var(--color-accent-pink); color: var(--color-primary); }
.restaurant-tag.tag-budget { background: var(--color-accent-cream); color: #C8742A; }

.restaurant-card .restaurant-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 10px;
}

.restaurant-card .restaurant-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

.restaurant-card .restaurant-info-table {
  padding: 0 20px 20px;
  font-size: 12px;
}

.restaurant-card .restaurant-info-table table {
  width: 100%;
}

.restaurant-card .restaurant-info-table td {
  padding: 4px 0;
  vertical-align: top;
}

.restaurant-card .restaurant-info-table td:first-child {
  width: 80px;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-base);
  border-radius: var(--radius-full);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

/* ===== Notification Toast ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text-main);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    gap: 8px;
  }

  .search-box {
    max-width: none;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .main-content {
    margin-top: 56px;
    padding-bottom: 70px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sidebar {
    display: none;
  }

  .hero {
    padding: 40px 20px 60px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .number {
    font-size: 22px;
  }

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

  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .channel-card {
    padding: 16px 8px;
  }

  .channel-card .channel-emoji {
    font-size: 28px;
  }

  .channel-card .channel-name {
    font-size: 12px;
  }

  .channel-card .channel-desc {
    display: none;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article-card .card-thumb {
    height: 100px;
    font-size: 36px;
  }

  .article-card .card-title {
    font-size: 13px;
  }

  .matching-section,
  .community-section {
    padding: 20px 16px;
  }

  .match-profiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .profile-card .profile-photo {
    height: 140px;
    font-size: 40px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tool-card {
    padding: 16px 8px;
  }

  .tool-card .tool-emoji {
    font-size: 26px;
  }

  .bottom-tab-bar {
    display: block;
  }

  .fab {
    bottom: 80px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .fab-menu {
    bottom: 140px;
  }

  .back-to-top {
    bottom: 80px;
    width: 40px;
    height: 40px;
  }

  .article-page {
    padding: 16px;
  }

  .article-title-main {
    font-size: 20px;
  }

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

  .article-body h2 {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .restaurant-card .restaurant-header {
    flex-direction: column;
  }

  .restaurant-card .restaurant-thumb {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .match-profiles {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Auth & Points System Styles
   ============================================ */

/* Header Register Button */
.header-register-btn {
  background: var(--gradient-cute);
  color: var(--color-white);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(240, 128, 128, 0.3);
}

.header-register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.4);
}

/* Header User Info (logged in) */
.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
}

.header-user-greeting {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  white-space: nowrap;
}

.header-user-points {
  display: flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #FFF5E6, #FFE8D6);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

.header-points-icon {
  font-size: 12px;
}

.header-points-num {
  font-weight: 800;
  color: var(--color-accent-gold);
  font-size: 14px;
}

.header-points-label {
  font-size: 11px;
  color: var(--color-text-sub);
}

.header-logout-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  cursor: pointer;
  color: var(--color-text-sub);
  transition: var(--transition);
  white-space: nowrap;
}

.header-logout-btn:hover {
  background: var(--color-base);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Auth Modal */
.auth-modal .auth-modal-content {
  max-width: 440px;
  padding: 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.auth-header h2 {
  font-size: 20px;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

.auth-field input {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-jp);
  transition: var(--transition);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(240, 128, 128, 0.1);
}

.auth-note {
  font-size: 11px;
  color: var(--color-text-light);
  line-height: 1.6;
  background: var(--color-base);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.auth-bonus {
  font-size: 14px;
  color: var(--color-accent-gold);
  text-align: center;
  background: linear-gradient(135deg, #FFF5E6, #FFEBD4);
  padding: 10px;
  border-radius: var(--radius-md);
}

.auth-submit-btn {
  background: var(--gradient-cute);
  color: var(--color-white);
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-jp);
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 128, 128, 0.3);
}

/* Unlock Modal */
.unlock-modal .unlock-modal-content {
  max-width: 400px;
  padding: 32px;
  text-align: center;
}

.unlock-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.unlock-modal h3 {
  font-size: 18px;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.unlock-modal #unlock-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

.unlock-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF5E6, #FFE8D6);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}

.unlock-cost-label {
  font-size: 13px;
  color: var(--color-text-sub);
}

.unlock-cost-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent-gold);
}

.unlock-cost-unit {
  font-size: 14px;
  color: var(--color-text-sub);
}

.unlock-balance {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

.unlock-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Points Earn Hint */
.points-earn-hint {
  margin-top: 10px;
  text-align: center;
}

/* Locked Content */
.lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #D4A574, #C49A6C);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(212, 165, 116, 0.3);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 245, 230, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  border-radius: inherit;
}

.lock-overlay-content {
  text-align: center;
  color: var(--color-accent-gold);
}

.lock-overlay-content .lock-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.lock-overlay-content .lock-text {
  font-size: 13px;
  font-weight: 600;
}

.lock-overlay-content .lock-cost {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-accent-gold);
}

/* Premium Page Styles */
.premium-hero {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF5E6 50%, #FFE8D6 100%);
  padding: 48px 24px;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 32px;
}

.premium-hero h1 {
  font-size: 28px;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.premium-hero h1 .crown {
  font-size: 32px;
}

.premium-hero p {
  font-size: 14px;
  color: var(--color-text-sub);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.premium-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.premium-stat {
  text-align: center;
}

.premium-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent-gold);
}

.premium-stat .label {
  font-size: 12px;
  color: var(--color-text-sub);
}

.premium-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.premium-content-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.premium-content-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.premium-content-card .card-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.premium-content-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-content-card .card-body {
  padding: 16px;
}

.premium-content-card .card-category {
  font-size: 11px;
  color: var(--color-accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.premium-content-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 10px;
}

.premium-content-card .unlock-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #D4A574, #C49A6C);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-jp);
  text-align: center;
}

.premium-content-card .unlock-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.premium-content-card .unlock-btn.unlocked {
  background: var(--color-accent-mint);
  color: #2E7D32;
}

.premium-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent-gold);
}

.premium-how-to {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.premium-how-to h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.premium-how-to-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.premium-how-to-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-base);
  border-radius: var(--radius-md);
}

.premium-how-to-item .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.premium-how-to-item .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.premium-how-to-item .desc {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

.premium-how-to-item .points {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-accent-gold);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .premium-content-grid {
    grid-template-columns: 1fr;
  }
  .premium-how-to-list {
    grid-template-columns: 1fr;
  }
  .header-user-info {
    flex-wrap: wrap;
    gap: 4px;
  }
  .header-user-greeting {
    font-size: 11px;
  }
  .header-register-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ===== Notification Dropdown ===== */
.notification-dropdown-wrap {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 1100;
  display: none;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.notification-dropdown.active {
  display: block;
}

.notification-dropdown-header {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-list {
  max-height: 350px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.notification-item:hover {
  background: #FFF8F5;
}

.notification-item:last-child {
  border-bottom: none;
}

.notif-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-base);
  border-radius: var(--radius-full);
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
}

/* Hide badge when no notifications */
.notif-badge.hidden {
  display: none !important;
}

/* ===== Secondary Page Hero with Background Image ===== */
.page-hero {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(90,30,70,0.5) 0%, rgba(70,25,80,0.4) 45%, rgba(40,15,55,0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.page-hero-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}

.page-hero-subtitle {
  font-size: 14px;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  .page-hero {
    height: 200px;
  }
  .page-hero-title {
    font-size: 24px;
  }
  .notification-dropdown {
    width: 300px;
  }
}



/* =========================================================
   Footer (yoi-footer)
   ========================================================= */

    /* =========================================================
   Footer (yoi-footer)
   ========================================================= */
    .yoi-footer {
      width: 100%;
      background-color: #28252F;
      color: white;
      padding: 40px;
      position: relative;
      z-index: 9;
      font-family: 'Noto Sans JP', sans-serif;
    }

    .yoi-footer-inner {
      position: relative;

    }

    .yoi-footer-container {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 30px;
    }

    .yoi-footer-sections {
      display: flex;
      gap: 60px;
      flex-wrap: wrap;
    }

    .yoi-footer-brand-side {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 30px;
    }

    .yoi-footer-logo {
      height: 50px;
      width: auto;
    }

    .yoi-footer-col {
      min-width: 120px;
    }

    .yoi-footer-label {
      display: block;
      font-weight: bold;
      font-size: 15px;
      padding-bottom: 20px;
      color: white;
    }

    .yoi-footer-options {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .yoi-footer-options a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }

    .yoi-footer-options a:hover {
      color: white;
      text-decoration: underline;
    }

    .yoi-footer-social-icons {
      display: flex;
      gap: 12px;
    }

    .yoi-footer-social-link {
      background: white;
      color: #28252F;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: opacity 0.2s;
      text-decoration: none;
    }

    .yoi-footer-social-link:hover {
      opacity: 0.8;
    }

    /* Bottom area */
    .yoi-footer-bottom {
      position: absolute;
      right: 40px;
      bottom: 40px;
      max-width: 1080px;
      margin: 40px auto 0;
      display: flex;
      justify-content: flex-start;
      align-items: flex-end;
      gap: 24px;
      padding-top: 30px;
    }

    .yoi-footer-japhic {
      background: white;
      padding: 8px;
      border-radius: 8px;
      width: 64px;
      height: auto;
    }

    .yoi-footer-info {
      text-align: left;
      color: rgba(255, 255, 255, 0.5);
      font-size: 13px;
      line-height: 1.6;
    }

    .yoi-footer-toggle,
    .yoi-footer-arrow,
    .mobile-only {
      display: none;
    }

    @media (max-width: 767px) {
      .yoi-footer {
        padding: 30px 14px;
      }

      .yoi-footer-container {
        flex-direction: column;
        gap: 0;
      }

      .yoi-footer-brand-side {
        width: 100%;
        align-items: center;
        order: 10;
        margin-top: 20px;
      }

      .yoi-footer-logo {
        display: none;
      }

      .yoi-footer-sections {
        width: 100%;
        flex-direction: column;
        gap: 0;
      }

      .yoi-footer-col {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      }

      .yoi-footer-sns-col {
        order: -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .yoi-footer-sns-col .yoi-footer-label {
        padding-bottom: 0;
      }

      .yoi-footer-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        margin: 0;
        cursor: pointer;
      }

      .yoi-footer-arrow {
        display: block;
        transition: transform 0.3s;
      }

      .yoi-footer-toggle:checked~.yoi-footer-label .yoi-footer-arrow {
        transform: rotate(180deg);
      }

      .yoi-footer-options {
        display: none;
        padding-bottom: 16px;
      }

      .yoi-footer-toggle:checked~.yoi-footer-options {
        display: flex;
      }

      .yoi-footer-bottom {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-top: 30px;
      }

      .yoi-footer-info {
        text-align: center;
      }

      .desktop-only {
        display: none;
      }

      .mobile-only {
        display: block;
      }

}