/* ==========================================================
   ReBeauty Korea — 韓国美容・医療観光
   Target: 40代+ 日本人女性 — warm, elegant, large touch targets
   ========================================================== */

:root {
    --b-rose: #b76e79;
    --b-rose-light: #d4a0a8;
    --b-rose-dark: #9a5862;
    --b-cream: #fdf6f0;
    --b-pink: #f5e6e0;
    --b-pink-deep: #e8c9c0;
    --b-gold: #c9a96e;
    --b-text: #3d2c2c;
    --b-text-sub: #7a6565;
    --b-text-muted: #a89292;
    --b-white: #ffffff;
    --b-border: #ecdad4;
    --b-shadow: 0 2px 12px rgba(120, 80, 70, 0.08);
    --b-shadow-lg: 0 8px 30px rgba(120, 80, 70, 0.12);
    --b-shadow-card: 0 1px 8px rgba(120, 80, 70, 0.07), 0 4px 20px rgba(120, 80, 70, 0.05);
    --b-radius: 16px;
    --b-radius-sm: 10px;
}

/* ── Base ── */
.beauty-body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--b-cream);
    color: var(--b-text);
    font-size: 15px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.beauty-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ── */
.beauty-header {
    background: var(--b-white);
    border-bottom: 1px solid var(--b-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
}

.beauty-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.beauty-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.beauty-logo-re {
    font-size: 18px;
    font-weight: 300;
    color: var(--b-text-sub);
}

.beauty-logo-beauty {
    font-size: 18px;
    font-weight: 600;
    color: var(--b-rose);
}

.beauty-logo-korea {
    font-size: 11px;
    font-weight: 400;
    color: var(--b-text-muted);
    margin-left: 6px;
    letter-spacing: 0.5px;
}

.beauty-header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.beauty-header-link {
    font-size: 13px;
    color: var(--b-text-sub);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.beauty-header-link:hover {
    background: var(--b-pink);
    color: var(--b-rose-dark);
}

/* ── Hero ── */
.beauty-hero {
    text-align: center;
    padding: 32px 20px 24px;
    position: relative;
    background: linear-gradient(160deg, #fdf6f0 0%, #f5e6e0 40%, #ecdad4 70%, #f5e6e0 100%);
    border-radius: 0 0 28px 28px;
    margin: 0 -16px 16px;
    overflow: hidden;
}

/* Subtle shimmer */
.beauty-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(183,110,121,0.06) 0%, transparent 50%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroShimmer {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(3%, 2%) rotate(1deg); }
}

/* Decorative line + icon */
.beauty-hero-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.beauty-hero-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--b-gold), transparent);
}

.beauty-hero-icon {
    width: 20px;
    height: 20px;
    color: var(--b-gold);
}

/* Eyebrow */
.beauty-hero-eyebrow {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--b-gold);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.beauty-hero-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--b-text);
    letter-spacing: 0.5px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.beauty-hero-sub {
    font-size: 13px;
    color: var(--b-text-sub);
    margin-top: 8px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Trust signals */
.beauty-hero-trust {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.beauty-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--b-text-sub);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(236,218,212,0.5);
}

.beauty-hero-trust-item svg {
    color: var(--b-rose);
    flex-shrink: 0;
}

/* ── Tabs (Type filter) ── */
.beauty-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 0 14px;
}

.beauty-tab {
    font-size: 14px;
    font-weight: 500;
    color: var(--b-text-muted);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 24px;
    transition: all 0.2s;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.beauty-tab:hover {
    color: var(--b-text-sub);
    background: var(--b-pink);
}

.beauty-tab.active {
    background: var(--b-rose);
    color: var(--b-white);
    font-weight: 600;
}

/* ── Category chips ── */
.beauty-chips-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 16px;
    scrollbar-width: none;
}

.beauty-chips-wrap::-webkit-scrollbar {
    display: none;
}

/* Sub-category chips row */
.beauty-subchips-wrap {
    padding-top: 0;
    padding-bottom: 14px;
}

.beauty-subchip {
    font-size: 12px;
    padding: 6px 14px;
    border-color: var(--b-rose-light);
    background: var(--b-pink);
    min-height: 34px;
}

.beauty-subchip.active {
    background: var(--b-rose-dark);
    border-color: var(--b-rose-dark);
    color: var(--b-white);
}

.beauty-chip.parent-active {
    border-color: var(--b-rose);
    color: var(--b-rose);
    background: var(--b-pink);
    font-weight: 500;
}

.beauty-chips {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.beauty-chip {
    font-size: 13px;
    color: var(--b-text-sub);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--b-border);
    background: var(--b-white);
    transition: all 0.2s;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.beauty-chip:hover {
    border-color: var(--b-rose-light);
    color: var(--b-rose);
}

.beauty-chip.active {
    background: var(--b-rose);
    color: var(--b-white);
    border-color: var(--b-rose);
    font-weight: 500;
}

/* ── Card Grid ── */
.beauty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 40px;
}

.beauty-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--b-white);
    border-radius: var(--b-radius);
    overflow: hidden;
    box-shadow: var(--b-shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

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

.beauty-card:active {
    transform: scale(0.98);
}

.beauty-card-img {
    position: relative;
    padding-top: 133.33%; /* 3:4 ratio */
    background: var(--b-pink);
    overflow: hidden;
}

.beauty-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.beauty-card:hover .beauty-card-img img {
    transform: scale(1.03);
}

.beauty-card-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b-text-muted);
    font-size: 12px;
}

/* Badge */
.beauty-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.beauty-card-img .beauty-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.beauty-badge-event {
    background: rgba(59, 130, 246, 0.88);
    color: var(--b-white);
}

.beauty-badge-review {
    background: rgba(183, 110, 121, 0.88);
    color: var(--b-white);
}

.beauty-card-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--b-white);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Card body */
.beauty-card-body {
    padding: 12px 14px 16px;
}

.beauty-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--b-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beauty-card-sub {
    font-size: 12px;
    color: var(--b-text-muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.beauty-card-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}

.beauty-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--b-rose);
    font-family: 'Inter', sans-serif;
}

.beauty-card-clinic {
    font-size: 11px;
    color: var(--b-text-muted);
}

.beauty-card-cat-inline {
    font-size: 11px;
    color: var(--b-text-muted);
}

/* ── Stars ── */
.beauty-stars {
    display: inline-flex;
    gap: 1px;
}

.beauty-star {
    color: var(--b-border);
    font-size: 13px;
    line-height: 1;
}

.beauty-star.filled {
    color: var(--b-gold);
}

.beauty-stars-lg .beauty-star {
    font-size: 22px;
}

/* ── Empty state ── */
.beauty-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--b-text-muted);
    font-size: 14px;
}

/* ── Back link ── */
.beauty-back {
    padding: 16px 0 10px;
}

.beauty-back-link {
    font-size: 13px;
    color: var(--b-text-sub);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: color 0.2s;
    min-height: 40px;
}

.beauty-back-link:hover {
    color: var(--b-rose);
}

/* ── Slideshow ── */
.beauty-slideshow {
    position: relative;
    border-radius: var(--b-radius);
    overflow: hidden;
    background: var(--b-pink);
    margin-bottom: 20px;
    box-shadow: var(--b-shadow);
}

.beauty-slideshow-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.beauty-slideshow-track::-webkit-scrollbar {
    display: none;
}

.beauty-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
}

.beauty-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beauty-slideshow-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.beauty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s;
}

.beauty-dot.active {
    background: var(--b-white);
    width: 20px;
    border-radius: 4px;
}

.beauty-slide-count {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--b-white);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

/* ── Article ── */
.beauty-article {
    padding-bottom: 28px;
}

.beauty-article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.beauty-article-cat {
    font-size: 12px;
    color: var(--b-text-muted);
}

.beauty-article-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--b-text);
    letter-spacing: -0.01em;
}

.beauty-article-sub {
    font-size: 15px;
    color: var(--b-text-sub);
    margin-top: 6px;
    line-height: 1.7;
}

.beauty-article-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--b-pink);
    border-radius: var(--b-radius-sm);
}

.beauty-reviewer {
    font-size: 14px;
    color: var(--b-text-sub);
}

/* ── Info table ── */
.beauty-info-table {
    margin: 20px 0;
    background: var(--b-white);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    overflow: hidden;
}

.beauty-info-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--b-border);
}

.beauty-info-row:last-child {
    border-bottom: none;
}

.beauty-info-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--b-text-muted);
}

.beauty-info-value {
    font-size: 15px;
    color: var(--b-text);
}

.beauty-info-price {
    font-weight: 700;
    color: var(--b-rose);
    font-size: 16px;
}

/* ── Before/After ── */
.beauty-ba {
    margin: 28px 0;
}

.beauty-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--b-text);
    margin-bottom: 14px;
}

.beauty-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.beauty-ba-col {
    position: relative;
    border-radius: var(--b-radius-sm);
    overflow: hidden;
    box-shadow: var(--b-shadow);
}

.beauty-ba-col img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.beauty-ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--b-white);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* ── Content body ── */
.beauty-content {
    font-size: 15px;
    line-height: 2;
    color: var(--b-text);
    padding: 16px 0;
}

/* ── Related posts ── */
.beauty-related {
    border-top: 1px solid var(--b-border);
    padding-top: 28px;
    margin-top: 8px;
    padding-bottom: 40px;
}

/* ── Footer ── */
.beauty-footer {
    background: var(--b-white);
    border-top: 1px solid var(--b-border);
    text-align: center;
    padding: 28px 16px;
}

.beauty-footer-text {
    font-size: 12px;
    color: var(--b-text-muted);
}

.beauty-footer-sub {
    font-size: 11px;
    color: var(--b-text-muted);
    margin-top: 4px;
}

/* ── Main area ── */
.beauty-main {
    min-height: calc(100vh - 56px - 84px);
}

/* ── Animations ── */
@keyframes beautyFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.beauty-card {
    animation: beautyFadeUp 0.4s ease both;
}

.beauty-grid .beauty-card:nth-child(1) { animation-delay: 0s; }
.beauty-grid .beauty-card:nth-child(2) { animation-delay: 0.06s; }
.beauty-grid .beauty-card:nth-child(3) { animation-delay: 0.12s; }
.beauty-grid .beauty-card:nth-child(4) { animation-delay: 0.18s; }
.beauty-grid .beauty-card:nth-child(5) { animation-delay: 0.24s; }
.beauty-grid .beauty-card:nth-child(6) { animation-delay: 0.3s; }
.beauty-grid .beauty-card:nth-child(n+7) { animation-delay: 0.35s; }

/* ── Responsive ── */
@media (max-width: 400px) {
    .beauty-grid {
        gap: 10px;
    }

    .beauty-card-body {
        padding: 10px 12px 14px;
    }

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

    .beauty-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .beauty-hero {
        padding: 24px 14px 20px;
    }

    .beauty-hero-title {
        font-size: 20px;
    }

    .beauty-hero-eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .beauty-hero-trust-item {
        font-size: 10px;
        padding: 5px 10px;
    }

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

    .beauty-chip {
        padding: 6px 14px;
        font-size: 12px;
    }

    .beauty-info-row {
        padding: 12px 14px;
    }

    .beauty-info-label {
        width: 80px;
        font-size: 12px;
    }

    .beauty-info-value {
        font-size: 14px;
    }
}

/* ── Lightbox ── */
.beauty-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.beauty-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.beauty-lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.beauty-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.beauty-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.beauty-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 2;
}

.beauty-lightbox-prev,
.beauty-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.beauty-lightbox-prev { left: 12px; }
.beauty-lightbox-next { right: 12px; }

.beauty-lightbox-prev:hover,
.beauty-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
    .beauty-lightbox-prev,
    .beauty-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .beauty-lightbox-prev { left: 6px; }
    .beauty-lightbox-next { right: 6px; }
    .beauty-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

@media (min-width: 521px) {
    .beauty-container {
        max-width: 520px;
    }
}

