@charset "utf-8";
/* ==========================================
 *  CHARME Beauty V2 - 独立CSS
 *  スマホ幅(480px)固定レイアウト
 * ========================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #424242;
  background: #f0ece6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- App Shell (480px固定) --- */
.v2-app {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 24px rgba(0,0,0,0.08);
}
.v2-inner {
  padding: 0 16px;
}

/* --- Header --- */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e0da;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v2-header__logo {
  height: 24px;
}
.v2-header__logo img {
  height: 100%;
  width: auto;
}
.v2-header__menu {
  display: flex;
  gap: 16px;
  align-items: center;
}
.v2-header__menu-link {
  font-size: 12px;
  color: #999;
}

/* --- FV --- */
.v2-fv {
  position: relative;
  background: linear-gradient(135deg, #f5efe8, #e8ddd0);
  padding: 28px 20px 20px;
  text-align: center;
  overflow: hidden;
}
.v2-fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.v2-fv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.v2-fv__content {
  position: relative;
  z-index: 1;
}
.v2-fv__logo {
  height: 28px;
  margin: 0 auto 4px;
}
.v2-fv__catch {
  font-size: 14px;
  color: #937f65;
  letter-spacing: 1px;
}
.v2-fv__discount {
  font-size: 28px;
  font-weight: bold;
  color: #937f65;
  letter-spacing: 4px;
  margin: 4px 0 8px;
}
.v2-fv__sub {
  font-size: 12px;
  color: #937f65;
  opacity: 0.8;
}

/* --- FV Placeholder --- */
.v2-fv--placeholder {
  padding: 76px 20px 24px;
}
.v2-fv__placeholder-text {
  font-size: 14px;
  color: #937f65;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* --- FV Search --- */
.v2-fv__search {
  margin-top: 20px;
  width: 100%;
}
.v2-fv__search-keyword {
  display: flex;
  gap: 8px;
}
.v2-fv__search-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e5e0da;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #424242;
}
.v2-fv__search-input:focus {
  border-color: #937f65;
}
.v2-fv__search-submit {
  padding: 10px 18px;
  background: #937f65;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}
.v2-fv__search-condition {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 2px solid #937f65;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  color: #937f65;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.v2-fv__search-condition:hover {
  background: #937f65;
  color: #fff;
}

/* --- Condition Modal --- */
.v2-condition-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.v2-condition-modal.is-active {
  display: block;
}
.v2-condition-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.v2-condition-modal__panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
}
.v2-condition-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}
.v2-condition-modal__title {
  font-size: 15px;
  font-weight: bold;
  color: #424242;
}
.v2-condition-modal__close {
  font-size: 24px;
  background: none;
  border: none;
  color: #aaa;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}
.v2-condition-modal__body {
  padding: 16px;
}
.v2-condition-modal__section {
  margin-bottom: 20px;
}
.v2-condition-modal__section:last-child {
  margin-bottom: 0;
}
.v2-condition-modal__label {
  font-size: 13px;
  font-weight: bold;
  color: #937f65;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #937f65;
  display: inline-block;
}

/* --- Section Common --- */
.v2-section {
  padding: 28px 0;
}
.v2-section--alt {
  background: #faf8f5;
}
.v2-section__header {
  text-align: center;
  margin-bottom: 20px;
}
.v2-section__sub {
  font-size: 11px;
  color: #937f65;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.v2-section__title {
  font-size: 16px;
  font-weight: bold;
  color: #424242;
}

/* --- Search --- */
.v2-search {
  padding: 20px 16px 24px;
  background: #fff;
}
.v2-search__title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #424242;
}
.v2-search__form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.v2-search__input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e5e0da;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #424242;
}
.v2-search__input:focus {
  border-color: #937f65;
}
.v2-search__submit {
  padding: 10px 18px;
  background: #937f65;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.v2-search-cat {
  margin-bottom: 20px;
}
.v2-search-cat:last-child {
  margin-bottom: 0;
}
.v2-search-cat__title {
  font-size: 13px;
  font-weight: bold;
  color: #937f65;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #937f65;
  display: inline-block;
}
.v2-search-cat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-search-cat__tag {
  display: inline-block;
  padding: 7px 16px;
  background: #f5f0ea;
  border: 1px solid #e5e0da;
  border-radius: 20px;
  font-size: 12px;
  color: #424242;
  transition: background 0.2s, color 0.2s;
}
.v2-search-cat__tag:hover {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}
.v2-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v2-area-btn {
  display: block;
  padding: 10px 4px;
  background: #f5f0ea;
  border: 1px solid #e5e0da;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: #424242;
  transition: background 0.2s, color 0.2s;
}
.v2-area-btn:hover {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}

/* --- Coupon Card --- */
.v2-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-coupon-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.v2-coupon-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.v2-coupon-card__inner {
  display: flex;
}
.v2-coupon-card__img {
  width: 100px;
  min-height: 88px;
  flex-shrink: 0;
  background: #f5f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v2-coupon-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.v2-coupon-card__body {
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
}
.v2-coupon-card__clinic {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-coupon-card__title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-coupon-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.v2-coupon-card__price-original {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}
.v2-coupon-card__price {
  font-size: 20px;
  font-weight: bold;
  color: #e74c3c;
  letter-spacing: -0.5px;
}
.v2-coupon-card__badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
}
.v2-coupon-card__tags {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.v2-coupon-card__tag {
  font-size: 10px;
  color: #937f65;
  background: #f5f0ea;
  padding: 2px 7px;
  border-radius: 4px;
}

/* --- Coupon Genre (横スライド) --- */
.v2-coupon-genre {
  margin-bottom: 20px;
}
.v2-coupon-genre__label {
  font-size: 14px;
  font-weight: bold;
  color: #937f65;
  padding: 0 0 6px;
  margin: 0 0 10px 16px;
  border-bottom: 2px solid #937f65;
  display: inline-block;
}
.v2-coupon-genre__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
}
.v2-coupon-genre__scroll::-webkit-scrollbar { display: none; }

.v2-coupon-card--slide {
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.v2-coupon-card--slide .v2-coupon-card__inner {
  flex-direction: column;
}
.v2-coupon-card--slide .v2-coupon-card__img {
  width: 100%;
  min-height: 100px;
  height: 100px;
}
.v2-coupon-card--slide .v2-coupon-card__body {
  padding: 10px;
}
.v2-coupon-card--slide .v2-coupon-card__price {
  font-size: 17px;
}

/* --- Clinic Slider --- */
.v2-clinic-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
}
.v2-clinic-scroll::-webkit-scrollbar { display: none; }
.v2-clinic-mini {
  min-width: 150px;
  max-width: 150px;
  border: 1px solid #e5e0da;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  scroll-snap-align: start;
}
.v2-clinic-mini__img {
  height: 100px;
  background: #f5f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v2-clinic-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.v2-clinic-mini__body {
  padding: 8px 10px 10px;
}
.v2-clinic-mini__name {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-clinic-mini__area {
  font-size: 11px;
  color: #aaa;
}
.v2-clinic-mini__coupon-count {
  font-size: 11px;
  color: #e74c3c;
  font-weight: bold;
  margin-top: 2px;
}

/* --- Column --- */
.v2-column-list {
  display: flex;
  flex-direction: column;
}
.v2-column-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.v2-column-item:last-child {
  border-bottom: none;
}
.v2-column-thumb {
  width: 80px;
  height: 56px;
  background: #f5f0ea;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.v2-column-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-column-text {
  flex: 1;
  min-width: 0;
}
.v2-column-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-column-date {
  font-size: 11px;
  color: #aaa;
}

/* --- SNS --- */
.v2-sns-items {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.v2-sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.v2-sns-item img {
  width: 48px;
  height: 48px;
}
.v2-sns-item span {
  font-size: 11px;
  color: #aaa;
}

/* --- LINE CTA --- */
.v2-line-cta {
  padding: 24px 16px 28px;
  background: linear-gradient(180deg, #faf8f5, #f0ece6);
  text-align: center;
}
.v2-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  transition: opacity 0.2s;
}
.v2-line-btn:hover {
  opacity: 0.9;
}
.v2-line-btn img {
  width: 28px;
  height: 28px;
}

/* --- More Button --- */
.v2-more-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #937f65;
  background: #fff;
  border: 1px solid #937f65;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.v2-more-btn:hover {
  background: #937f65;
  color: #fff;
}

/* --- Footer --- */
.v2-footer {
  background: #333;
  color: #999;
  padding: 24px 16px;
  text-align: center;
}
.v2-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.v2-footer__nav a {
  font-size: 12px;
  color: #bbb;
}
.v2-footer__nav a:hover {
  color: #fff;
}
.v2-footer__copy {
  font-size: 11px;
  color: #777;
}

/* --- Sticky LINE bar --- */
.v2-sticky-line {
  position: sticky;
  bottom: 0;
  z-index: 99;
  background: #06C755;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.v2-sticky-line img {
  width: 22px;
  height: 22px;
}

/* ==========================================
 *  ARCHIVE CLINIC (HPB style)
 * ========================================== */

/* --- Breadcrumb --- */
.v2-breadcrumb {
  padding: 8px 16px;
  font-size: 11px;
  color: #aaa;
  border-bottom: 1px solid #eee;
  background: #faf8f5;
}
.v2-breadcrumb a {
  color: #937f65;
}
.v2-breadcrumb span {
  margin: 0 4px;
}

/* --- Filter bar --- */
.v2-filter-bar {
  padding: 8px 16px;
  background: #f5f0ea;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.v2-filter-bar::-webkit-scrollbar { display: none; }
.v2-filter-btn {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 20px;
  font-size: 11px;
  color: #424242;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.v2-filter-btn.is-active,
.v2-filter-btn:hover {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}

/* --- Result bar --- */
.v2-result-bar {
  padding: 8px 16px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.v2-result-bar strong {
  color: #e74c3c;
  font-size: 16px;
}

/* --- HPB-style Clinic Card --- */
.v2-hpb-card {
  border-bottom: 8px solid #faf8f5;
  background: #fff;
}

/* Top row: thumb + info */
.v2-hpb-card__top {
  display: flex;
  gap: 12px;
  padding: 14px 16px 10px;
}
.v2-hpb-card__thumb {
  width: 110px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f0ea;
}
.v2-hpb-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-hpb-card__info {
  flex: 1;
  min-width: 0;
}
.v2-hpb-card__name {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 4px;
}
.v2-hpb-card__name a {
  color: #424242;
}
.v2-hpb-card__access {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 3px;
}
.v2-hpb-card__area-label {
  display: inline-block;
  background: #f5f0ea;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  color: #937f65;
  margin-right: 4px;
  font-weight: bold;
}
.v2-hpb-card__hours {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-hpb-card__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.v2-hpb-card__tag {
  font-size: 10px;
  background: #f5f0ea;
  padding: 2px 7px;
  border-radius: 4px;
  color: #937f65;
}

/* Discount summary strip */
.v2-hpb-card__discount-summary {
  margin: 0 16px 8px;
  padding: 8px 10px;
  background: #fdf8f3;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  border-left: 3px solid #937f65;
}
.v2-hpb-card__discount-label {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #937f65;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

/* Menu items */
.v2-hpb-card__menus {
  padding: 0 16px 8px;
}
.v2-hpb-card__menus-label {
  font-size: 11px;
  color: #937f65;
  font-weight: bold;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e0da;
}
.v2-hpb-card__menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f0ece6;
  gap: 8px;
}
.v2-hpb-card__menu-item:last-of-type {
  border-bottom: none;
}
.v2-hpb-card__menu-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2-hpb-card__menu-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.v2-hpb-card__menu-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-hpb-card__menu-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.v2-hpb-card__menu-price-old {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
}
.v2-hpb-card__menu-price {
  font-size: 16px;
  font-weight: bold;
  color: #e74c3c;
}
.v2-hpb-card__menus-more {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #937f65;
  padding: 6px 0 0;
}

/* Action buttons */
.v2-hpb-card__actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 14px;
}
.v2-btn {
  flex: 1;
  display: block;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.2s;
}
.v2-btn:hover {
  opacity: 0.85;
}
.v2-btn--line {
  background: #06C755;
  color: #fff;
}
.v2-btn--primary {
  background: #937f65;
  color: #fff;
}

/* --- Pagination --- */
.v2-pagination {
  text-align: center;
  padding: 24px 0;
}
.v2-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: 4px;
  font-size: 13px;
  color: #937f65;
  border: 1px solid #e5e0da;
}
.v2-pagination .page-numbers.current {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}

/* --- No result --- */
.v2-no-result {
  text-align: center;
  padding: 40px 16px;
  color: #aaa;
  font-size: 14px;
}

/* ==========================================
 *  SINGLE CLINIC DETAIL
 * ========================================== */

/* --- Hero --- */
.v2-detail-hero {
  width: 100%;
  height: 200px;
  background: #f5f0ea;
  overflow: hidden;
}
.v2-detail-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-detail-hero__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.v2-detail-hero__placeholder img {
  max-height: 100%;
  object-fit: contain;
}

/* --- Name overlay --- */
.v2-detail-name {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.v2-detail-name__title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 4px;
}
.v2-detail-name__area {
  font-size: 12px;
  color: #aaa;
}

/* --- Tab nav --- */
.v2-tab-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.v2-tab-nav::-webkit-scrollbar { display: none; }
.v2-tab {
  padding: 10px 16px;
  font-size: 12px;
  white-space: nowrap;
  color: #aaa;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
}
.v2-tab.is-active {
  color: #937f65;
  border-bottom-color: #937f65;
  font-weight: bold;
}
.v2-tab:hover {
  color: #937f65;
}

/* --- Tab Panel (show/hide) --- */
.v2-tab-panel {
  display: none;
}
.v2-tab-panel.is-active {
  display: block;
}

/* --- Detail sections --- */
.v2-detail-section {
  padding: 20px 0;
  border-bottom: 8px solid #faf8f5;
}
.v2-detail-section__title {
  font-size: 14px;
  font-weight: bold;
  color: #937f65;
  margin: 0 16px 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #937f65;
  display: inline-block;
}

/* --- Discount summary --- */
.v2-discount-summary {
  margin: 0 16px 16px;
  padding: 12px 14px;
  background: #fdf8f3;
  border-radius: 8px;
  border-left: 4px solid #937f65;
}
.v2-discount-summary__label {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: #937f65;
  margin-bottom: 4px;
}
.v2-discount-summary__text {
  font-size: 13px;
  line-height: 1.6;
}

/* --- Detail coupon card --- */
.v2-detail-coupon {
  margin: 0 16px 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 8px;
}
.v2-detail-coupon__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.v2-detail-coupon__name {
  font-size: 14px;
  font-weight: bold;
  flex: 1;
  min-width: 0;
}
.v2-detail-coupon__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.v2-detail-coupon__desc {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  line-height: 1.5;
}

/* --- Doctor --- */
.v2-doctor {
  padding: 0 16px;
  display: flex;
  gap: 14px;
}
.v2-doctor__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f0ea;
}
.v2-doctor__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-doctor__info {
  flex: 1;
  min-width: 0;
}
.v2-doctor__name {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
}
.v2-doctor__detail {
  margin-bottom: 8px;
}
.v2-doctor__detail h4 {
  font-size: 12px;
  color: #937f65;
  margin-bottom: 2px;
}
.v2-doctor__detail p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* --- Gallery grid --- */
.v2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 16px;
}
.v2-gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f0ea;
}
.v2-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Info table --- */
.v2-info-table {
  width: 100%;
  border-collapse: collapse;
}
.v2-info-table tr {
  border-bottom: 1px solid #eee;
}
.v2-info-table th {
  padding: 10px 0;
  font-size: 12px;
  color: #aaa;
  font-weight: normal;
  width: 72px;
  vertical-align: top;
  text-align: left;
}
.v2-info-table td {
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* --- Detail text --- */
.v2-detail-text {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

/* --- Booking bar (sticky bottom) --- */
.v2-booking-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 99;
  background: #fff;
  border-top: 1px solid #e5e0da;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
}

/* --- WP Admin bar adjustment --- */
body.admin-bar .v2-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .v2-header {
    top: 46px;
  }
}

/* ============================================
   v2 検索エンジン (4軸入口)
   ============================================ */

/* --- 4軸入口セクション --- */
.v2-search-entry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}
.v2-search-entry__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #937f65;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #424242;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  font-family: inherit;
}
.v2-search-entry__btn:hover {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}
.v2-search-entry__btn:active {
  transform: scale(0.98);
}
.v2-search-entry__label {
  display: inline-block;
  line-height: 1.3;
}

/* --- エリアボタン全幅バリアント --- */
.v2-area-btn--full {
  grid-column: 1 / -1;
  padding: 12px 4px;
  font-weight: 500;
}

/* --- 価格レンジ ボタン --- */
.v2-price-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-price-btn {
  display: block;
  padding: 12px 16px;
  background: #f5f0ea;
  border: 1px solid #e5e0da;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #424242;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.v2-price-btn:hover {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}

/* ============================================
   v2 症例カード (archive-case-v2)
   ============================================ */
.v2-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 16px;
}
.v2-case-card {
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #424242;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v2-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.v2-case-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f0ea;
}
.v2-case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-case-card__cat {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  background: rgba(147, 127, 101, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  border-radius: 3px;
}
.v2-case-card__body {
  padding: 10px 12px 12px;
}
.v2-case-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-case-card__clinic {
  font-size: 11px;
  color: #937f65;
  margin: 0 0 4px;
  line-height: 1.3;
}
.v2-case-card__name {
  font-size: 11px;
  color: #666;
  margin: 0 0 6px;
  line-height: 1.3;
}
.v2-case-card__price {
  font-size: 14px;
  font-weight: 700;
  color: #e74c3c;
  margin: 0;
}

/* ============================================
   v2 クーポンコード表示 (single-clinic-v2)
   ============================================ */
.v2-detail-coupon__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #faf6f0;
  border: 1px dashed #937f65;
  border-radius: 6px;
}
.v2-detail-coupon__code-label {
  font-size: 11px;
  font-weight: 500;
  color: #937f65;
  flex-shrink: 0;
}
.v2-detail-coupon__code-value {
  flex: 1;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #424242;
  letter-spacing: 0.05em;
  word-break: break-all;
}
.v2-detail-coupon__code-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #937f65;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.v2-detail-coupon__code-copy:hover {
  background: #7a684f;
}
.v2-detail-coupon__code-copy.is-copied {
  background: #27ae60;
}

/* ============================================
   v2 Filter Accordion (archive-clinic-v2)
   ============================================ */
.v2-filter-accordion {
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-filter-accordion__item {
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 8px;
  overflow: hidden;
}
.v2-filter-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f5f0ea;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  color: #937f65;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.v2-filter-accordion__head:hover {
  background: #eee5d7;
}
.v2-filter-accordion__label {
  flex-shrink: 0;
}
.v2-filter-accordion__chip {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: #424242;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 12px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.v2-filter-accordion__arrow {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #937f65;
  border-bottom: 2px solid #937f65;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.v2-filter-accordion__item.is-open .v2-filter-accordion__arrow {
  transform: rotate(-135deg);
}
.v2-filter-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 12px;
}
.v2-filter-accordion__item.is-open .v2-filter-accordion__panel {
  max-height: 800px;
  padding: 12px;
}
/* アコーディオン内で再利用するボタンの is-active 強調 */
.v2-filter-accordion .v2-area-btn.is-active,
.v2-filter-accordion .v2-search-cat__tag.is-active,
.v2-filter-accordion .v2-price-btn.is-active {
  background: #937f65;
  color: #fff;
  border-color: #937f65;
}

/* --- 子エリアセクション (親エリア選択時に下段展開) --- */
.v2-filter-accordion__subsection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e0da;
}
.v2-filter-accordion__sublabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #937f65;
  margin-bottom: 8px;
}

/* ============================================
   v2 Drawer Menu (ハンバーガーメニュー)
   ============================================ */

/* --- ハンバーガーアイコン --- */
.v2-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.v2-header__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #424242;
  border-radius: 1px;
  transition: background 0.2s;
}
.v2-header__burger:hover .v2-header__burger-bar {
  background: #937f65;
}

/* --- ドロワー全体 --- */
.v2-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
.v2-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.v2-drawer__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(66, 66, 66, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.v2-drawer.is-open .v2-drawer__overlay {
  opacity: 1;
}
.v2-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
}
.v2-drawer.is-open .v2-drawer__panel {
  transform: translateX(0);
}

/* --- ドロワーヘッダー --- */
.v2-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e0da;
  margin-bottom: 12px;
}
.v2-drawer__title {
  font-size: 14px;
  font-weight: 700;
  color: #937f65;
  letter-spacing: 0.15em;
}
.v2-drawer__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #424242;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}
.v2-drawer__close:hover {
  color: #937f65;
}

/* --- ドロワーナビ --- */
.v2-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.v2-drawer__item {
  border-bottom: 1px solid #f5f0ea;
}
.v2-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 14px;
  color: #424242;
  text-decoration: none;
  transition: color 0.2s;
}
.v2-drawer__link::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #937f65;
  border-bottom: 2px solid #937f65;
  transform: rotate(-45deg);
}
.v2-drawer__link:hover {
  color: #937f65;
}

/* --- ドロワー SNS --- */
.v2-drawer__sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 20px;
}
.v2-drawer__sns-item {
  display: block;
  width: 40px;
  height: 40px;
}
.v2-drawer__sns-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- ドロワー LINE CTA --- */
.v2-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: #06C755;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
  transition: opacity 0.2s;
}
.v2-drawer__cta:hover {
  opacity: 0.9;
  color: #fff;
}
.v2-drawer__cta img {
  width: 24px;
  height: 24px;
}

/* ============================================
   v2 Case Detail Modal (症例詳細モーダル)
   ============================================ */
.v2-case-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}
.v2-case-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.v2-case-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
.v2-case-modal.is-open .v2-case-modal__overlay {
  opacity: 1;
}
.v2-case-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.v2-case-modal.is-open .v2-case-modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.v2-case-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #424242;
  cursor: pointer;
  z-index: 2;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.v2-case-modal__close:hover {
  color: #937f65;
}
.v2-case-modal__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f0ea;
  flex-shrink: 0;
}
.v2-case-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-case-modal__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(147, 127, 101, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
}
.v2-case-modal__body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
.v2-case-modal__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 6px;
  color: #424242;
}
.v2-case-modal__clinic {
  font-size: 12px;
  color: #937f65;
  margin: 0 0 16px;
  line-height: 1.4;
}
.v2-case-modal__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0ece6;
}
.v2-case-modal__label {
  font-size: 11px;
  font-weight: 700;
  color: #937f65;
  margin: 0 0 6px;
  letter-spacing: 0.05em;
}
.v2-case-modal__text {
  font-size: 13px;
  line-height: 1.6;
  color: #424242;
  margin: 0;
  word-break: break-word;
}

/* ============================================
   v2 イチオシクーポン (index.php 上部セクション)
   ============================================ */
#featured-coupons {
  /* ハッシュジャンプ (#featured-coupons) 時に sticky ヘッダーで
     見出しが隠れないようオフセットを確保 */
  scroll-margin-top: 70px;
}
/* イチオシセクション内のスクロールコンテナ: box-shadow の影が
   切れないよう上下パディングを確保 */
#featured-coupons .v2-coupon-genre__scroll {
  padding-top: 12px;
  padding-bottom: 16px;
}
.v2-coupon-card--featured {
  position: relative;
  border: 2px solid #e8a33d;
  box-shadow: 0 4px 16px rgba(232, 163, 61, 0.2);
}
.v2-coupon-card__featured-badge {
  position: absolute;
  /* カード内部 左上に配置 (overflow:hidden でも切れない) */
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f5b042, #e8a33d);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
