:root {
  --bg: #ffffff;
  --bg-soft: #f5f9f8;
  --bg-card: #ffffff;
  --ink: #2a3534;
  --ink-soft: #5a6766;
  --ink-mute: #8a9694;
  --line: #e5ebe9;
  --line-soft: #f0f4f2;

  --green: #06c755;
  --green-deep: #04a648;
  --green-pale: #d6f4e0;
  --green-bg: #eaf7ef;

  --blue: #4dc4ff;
  --blue-deep: #2ba8e8;
  --blue-pale: #d6eefb;
  --blue-bg: #eaf5fc;

  --orange: #ff8c42;
  --orange-deep: #ed6f1f;
  --orange-pale: #ffe0cc;
  --orange-bg: #fff2e8;

  --yellow: #ffc83d;
  --yellow-deep: #f5b800;
  --yellow-pale: #fff0c2;
  --yellow-bg: #fff8e0;

  --primary: var(--green);
  --primary-deep: var(--green-deep);
  --primary-pale: var(--green-pale);
  --primary-bg: var(--green-bg);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'LINE Seed JP', sans-serif;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.05em;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}
.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.logo-mark::before { width: 8px; height: 8px; top: 12px; left: 11px; }
.logo-mark::after { width: 8px; height: 8px; top: 12px; right: 11px; }
.logo-mouth {
  position: absolute;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  border-bottom: 2.5px solid white;
  border-radius: 0 0 12px 12px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--primary); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 32px;
}
.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--ink); font-weight: 700; }

/* ===== Page Title Section ===== */
.page-title-section {
  background: var(--bg);
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.page-title-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.page-title .accent { color: var(--primary); }
.page-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.page-subtitle .num {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 720px;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  transition: all 0.2s;
  background: var(--bg-soft);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}
.search-input-wrap::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}
.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.search-btn:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

/* Category Tabs */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cat-tab {
  padding: 10px 18px;
  font-size: 13px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cat-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Main Container ===== */
.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px;
}

/* ===== Carousel Section ===== */
.carousel-section {
  margin-bottom: 40px;
}
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.carousel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-title .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
}
.carousel-title .badge.live {
  background: var(--green-pale);
  color: var(--green-deep);
}
.carousel-title .badge.live::before {
  content: '●';
  animation: pulse 2s ease-in-out infinite;
}
.carousel-title .badge.popular {
  background: var(--yellow-pale);
  color: var(--yellow-deep);
}
.carousel-title .badge.review {
  background: var(--orange-pale);
  color: var(--orange-deep);
}
.carousel-title .badge.new {
  background: var(--blue-pale);
  color: var(--blue-deep);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.carousel-more {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.carousel-more:hover { color: var(--primary); }

/* Carousel scroller */
.carousel-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding-bottom: 12px;
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.carousel-scroller::-webkit-scrollbar { height: 6px; }
.carousel-scroller::-webkit-scrollbar-track { background: transparent; }
.carousel-scroller::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 100px;
}

/* Counselor Card (compact for carousel) */
.counselor-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
  border: 1.5px solid var(--line-soft);
  flex: 0 0 280px;
  scroll-snap-align: start;
  cursor: pointer;
}
.counselor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.counselor-card.theme-orange:hover { border-color: var(--orange); }
.counselor-card.theme-blue:hover { border-color: var(--blue); }
.counselor-card.theme-green:hover { border-color: var(--green); }
.counselor-card.theme-yellow:hover { border-color: var(--yellow-deep); }
.counselor-header {
  padding: 20px 18px 14px;
  position: relative;
}
.counselor-status-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 100px;
  font-weight: 700;
}
.status-available {
  background: var(--green-pale);
  color: var(--green-deep);
}
.status-available::before {
  content: '●';
  margin-right: 3px;
  color: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.status-busy {
  background: var(--orange-pale);
  color: var(--orange-deep);
}
.counselor-popular-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 100px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: white;
}
.counselor-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.counselor-card-avatar.green { background: var(--green-pale); }
.counselor-card-avatar.blue { background: var(--blue-pale); }
.counselor-card-avatar.orange { background: var(--orange-pale); }
.counselor-card-avatar.yellow { background: var(--yellow-pale); }
.counselor-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.counselor-card-title {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 700;
}
.counselor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 18px 12px;
}
.counselor-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.counselor-tag.green { color: var(--green-deep); background: var(--green-pale); }
.counselor-tag.blue { color: var(--blue-deep); background: var(--blue-pale); }
.counselor-tag.orange { color: var(--orange-deep); background: var(--orange-pale); }
.counselor-tag.yellow { color: var(--yellow-deep); background: var(--yellow-pale); }
.counselor-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 16px;
  background: var(--bg-soft);
  margin: 0 12px;
  border-radius: 10px;
}
.counselor-stat { text-align: center; }
.counselor-stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}
.stat-value .star { color: var(--yellow-deep); }
.stat-label {
  font-size: 9px;
  color: var(--ink-mute);
  margin-top: 2px;
  font-weight: 400;
}
.counselor-message {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.counselor-card-footer {
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.counselor-price { display: flex; flex-direction: column; }
.price-label { font-size: 9px; color: var(--ink-mute); font-weight: 700; }
.price-value {
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}
.price-value .yen { font-size: 11px; color: var(--ink-mute); }
.price-value .unit { font-size: 10px; color: var(--ink-mute); margin-left: 2px; font-weight: 700; }
.btn-consult {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  font-size: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-consult.orange { background: var(--orange); }
.btn-consult.orange:hover { background: var(--orange-deep); }
.btn-consult.blue { background: var(--blue); }
.btn-consult.blue:hover { background: var(--blue-deep); }
.btn-consult:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

/* ===== Coupon Banner (in middle) ===== */
.coupon-banner-mid {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.coupon-banner-mid::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  border-radius: 50%;
}
.coupon-mid-text { color: white; position: relative; }
.coupon-mid-label {
  display: inline-block;
  background: white;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.coupon-mid-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}
.coupon-mid-desc {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.95;
}
.coupon-mid-btn {
  background: white;
  color: var(--orange-deep);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: all 0.2s;
}
.coupon-mid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== All Counselors (Grid Section) ===== */
.all-section {
  background: white;
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
  border: 1.5px solid var(--line-soft);
}
.all-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.all-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.sort-select select {
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}
.sort-select select:focus { outline: none; border-color: var(--primary); }
.all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.all-grid .counselor-card {
  flex: unset;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.page-btn.disabled {
  color: var(--ink-mute);
  cursor: not-allowed;
}

/* ===== Footer ===== */
footer {
  background: #fff;
  color: var(--ink-soft);
  padding: 64px 32px 28px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.85;
  margin-top: 14px;
  color: var(--ink-mute);
  font-weight: 400;
}
.footer-col-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  font-weight: 400;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .all-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { padding: 14px 16px; gap: 8px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .logo-mark::before { left: 9px; top: 10px; width: 7px; height: 7px; }
  .logo-mark::after { right: 9px; top: 10px; width: 7px; height: 7px; }
  .logo-mouth { bottom: 9px; width: 10px; height: 5px; }
  .header-inner > div:last-child { flex-shrink: 0; gap: 4px; }
  .btn-ghost { display: none; }
  .header-inner .btn-primary {
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 10px;
  }
  .breadcrumb { padding: 12px 20px; }
  .page-title-section { padding: 24px 20px 18px; }
  .page-title { font-size: 22px; }
  .main { padding: 24px 20px; }
  .search-bar { flex-direction: column; }
  .search-btn { width: 100%; }
  .carousel-scroller {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .counselor-card { flex: 0 0 240px; }
  .all-section { padding: 24px 20px; border-radius: 16px; }
  .all-grid { grid-template-columns: 1fr; }
  .coupon-banner-mid {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .coupon-mid-title { font-size: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
/* ===== Avatar image override ===== */
.counselor-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.counselor-card-avatar {
  overflow: hidden;
  padding: 0;
}
