/**
 * Metaphm Cushion Page - 메인 스타일
 * 일본 미용/건강기능식품 쿠션 페이지용
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    /* Colors */
    --metaphm-primary: #c9a86c;
    --metaphm-primary-dark: #b8956c;
    --metaphm-secondary: #2c3e50;
    --metaphm-accent: #e74c3c;

    --metaphm-text: #333333;
    --metaphm-text-light: #666666;
    --metaphm-text-muted: #999999;

    --metaphm-bg: #ffffff;
    --metaphm-bg-light: #f8f9fa;
    --metaphm-bg-section: #faf8f5;

    --metaphm-border: #e0e0e0;
    --metaphm-border-light: #f0f0f0;

    /* Ad Label Colors */
    --metaphm-ad-label-bg: #e74c3c;
    --metaphm-ad-label-text: #ffffff;

    /* Disclaimer Colors */
    --metaphm-disclaimer-bg: #fff9e6;
    --metaphm-disclaimer-text: #856404;
    --metaphm-disclaimer-border: #ffeeba;

    /* Spacing */
    --metaphm-spacing-xs: 0.5rem;
    --metaphm-spacing-sm: 1rem;
    --metaphm-spacing-md: 1.5rem;
    --metaphm-spacing-lg: 2rem;
    --metaphm-spacing-xl: 3rem;
    --metaphm-spacing-xxl: 4rem;

    /* Typography */
    --metaphm-font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --metaphm-font-size-base: 16px;
    --metaphm-line-height: 1.8;

    /* Border Radius */
    --metaphm-radius-sm: 4px;
    --metaphm-radius-md: 8px;
    --metaphm-radius-lg: 16px;
    --metaphm-radius-full: 9999px;

    /* Shadows */
    --metaphm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --metaphm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --metaphm-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Container */
    --metaphm-container-max: 1000px;
    --metaphm-container-padding: 1.5rem;
}

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

html {
    font-size: var(--metaphm-font-size-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--metaphm-font-family);
    font-size: 1rem;
    line-height: var(--metaphm-line-height);
    color: var(--metaphm-text);
    background-color: var(--metaphm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--metaphm-primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   Container
============================================ */
.metaphm-container {
    max-width: var(--metaphm-container-max);
    margin: 0 auto;
    padding: 0 var(--metaphm-container-padding);
}

/* ============================================
   Header
============================================ */
.metaphm-header {
    background: var(--metaphm-bg);
    border-bottom: 1px solid var(--metaphm-border-light);
    padding: var(--metaphm-spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.metaphm-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metaphm-header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--metaphm-secondary);
}

.metaphm-header__logo img {
    max-height: 50px;
    width: auto;
}

.metaphm-header__brand {
    color: var(--metaphm-secondary);
}

/* ============================================
   Ad Label (스텔스마케팅 규제 대응)
============================================ */
.metaphm-ad-label {
    display: inline-block;
    background: var(--metaphm-ad-label-bg);
    color: var(--metaphm-ad-label-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--metaphm-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metaphm-ad-notice {
    background: var(--metaphm-bg-light);
    padding: var(--metaphm-spacing-xs) 0;
    text-align: center;
}

/* ============================================
   Hero Section
============================================ */
.metaphm-hero {
    background: linear-gradient(135deg, var(--metaphm-bg-section) 0%, var(--metaphm-bg) 100%);
    padding: var(--metaphm-spacing-xxl) 0;
}

.metaphm-hero__image {
    margin-bottom: var(--metaphm-spacing-lg);
    border-radius: var(--metaphm-radius-lg);
    overflow: hidden;
    box-shadow: var(--metaphm-shadow-lg);
}

.metaphm-hero__image img {
    width: 100%;
    height: auto;
}

.metaphm-hero__content {
    text-align: center;
}

.metaphm-hero__brand {
    color: var(--metaphm-primary-dark);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: var(--metaphm-spacing-xs);
}

.metaphm-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--metaphm-secondary);
    margin: 0 0 var(--metaphm-spacing-md);
    line-height: 1.4;
}

.metaphm-hero__subtitle {
    font-size: 1.125rem;
    color: var(--metaphm-text-light);
    margin: 0 0 var(--metaphm-spacing-lg);
}

.metaphm-hero__cta {
    margin-top: var(--metaphm-spacing-lg);
}

/* ============================================
   Sections
============================================ */
.metaphm-section {
    padding: var(--metaphm-spacing-xxl) 0;
}

.metaphm-section:nth-child(even) {
    background: var(--metaphm-bg-section);
}

.metaphm-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--metaphm-secondary);
    text-align: center;
    margin: 0 0 var(--metaphm-spacing-xl);
    position: relative;
}

.metaphm-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--metaphm-primary);
    margin: var(--metaphm-spacing-sm) auto 0;
    border-radius: var(--metaphm-radius-full);
}

/* ============================================
   Concerns Section
============================================ */
.metaphm-concerns {
    display: grid;
    gap: var(--metaphm-spacing-md);
    margin-bottom: var(--metaphm-spacing-xl);
}

.metaphm-concern-item {
    display: flex;
    align-items: center;
    background: var(--metaphm-bg);
    padding: var(--metaphm-spacing-md);
    border-radius: var(--metaphm-radius-md);
    box-shadow: var(--metaphm-shadow-sm);
    border-left: 4px solid var(--metaphm-accent);
}

.metaphm-concern-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--metaphm-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: var(--metaphm-spacing-md);
}

.metaphm-concern-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--metaphm-text);
}

.metaphm-solution {
    text-align: center;
}

.metaphm-solution__lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--metaphm-primary-dark);
    margin: 0;
}

/* ============================================
   Features Section
============================================ */
.metaphm-features__grid {
    display: grid;
    gap: var(--metaphm-spacing-lg);
}

@media (min-width: 768px) {
    .metaphm-features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metaphm-feature-card {
    background: var(--metaphm-bg);
    padding: var(--metaphm-spacing-lg);
    border-radius: var(--metaphm-radius-lg);
    box-shadow: var(--metaphm-shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metaphm-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--metaphm-shadow-lg);
}

.metaphm-feature-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--metaphm-primary) 0%, var(--metaphm-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--metaphm-spacing-md);
}

.metaphm-feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--metaphm-secondary);
    margin: 0 0 var(--metaphm-spacing-sm);
}

.metaphm-feature-card__text {
    font-size: 0.9375rem;
    color: var(--metaphm-text-light);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   Testimonials Section
============================================ */
.metaphm-testimonials__grid {
    display: grid;
    gap: var(--metaphm-spacing-lg);
}

@media (min-width: 768px) {
    .metaphm-testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metaphm-testimonial-card {
    background: var(--metaphm-bg);
    border-radius: var(--metaphm-radius-lg);
    box-shadow: var(--metaphm-shadow-md);
    overflow: hidden;
}

.metaphm-testimonial-card__image {
    aspect-ratio: 1;
    overflow: hidden;
}

.metaphm-testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metaphm-testimonial-card__content {
    padding: var(--metaphm-spacing-md);
}

.metaphm-testimonial-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--metaphm-spacing-xs);
    margin-bottom: var(--metaphm-spacing-sm);
}

.metaphm-testimonial-card__meta span {
    font-size: 0.75rem;
    color: var(--metaphm-text-muted);
    background: var(--metaphm-bg-light);
    padding: 0.125rem 0.5rem;
    border-radius: var(--metaphm-radius-sm);
}

.metaphm-testimonial-card__text {
    font-size: 0.9375rem;
    color: var(--metaphm-text);
    margin: 0;
    line-height: 1.7;
}

.metaphm-testimonial-card__disclaimer {
    font-size: 0.75rem;
    color: var(--metaphm-text-muted);
    padding: var(--metaphm-spacing-sm) var(--metaphm-spacing-md);
    background: var(--metaphm-bg-light);
    margin: 0;
    border-top: 1px solid var(--metaphm-border-light);
}

/* ============================================
   Disclaimer Box (면책 문구)
============================================ */
.metaphm-disclaimer-box {
    background: var(--metaphm-disclaimer-bg);
    border: 1px solid var(--metaphm-disclaimer-border);
    border-radius: var(--metaphm-radius-md);
    padding: var(--metaphm-spacing-md);
    margin-bottom: var(--metaphm-spacing-lg);
}

.metaphm-disclaimer-box--bottom {
    margin-top: var(--metaphm-spacing-lg);
    margin-bottom: 0;
}

.metaphm-disclaimer {
    font-size: 0.875rem;
    color: var(--metaphm-disclaimer-text);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   How To Section
============================================ */
.metaphm-howto__steps {
    display: flex;
    flex-direction: column;
    gap: var(--metaphm-spacing-md);
}

@media (min-width: 768px) {
    .metaphm-howto__steps {
        flex-direction: row;
        justify-content: center;
    }
}

.metaphm-howto-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--metaphm-spacing-md);
}

@media (min-width: 768px) {
    .metaphm-howto-step {
        flex: 1;
        max-width: 200px;
    }

    .metaphm-howto-step:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 2px;
        background: var(--metaphm-border);
    }
}

.metaphm-howto-step__number {
    width: 50px;
    height: 50px;
    background: var(--metaphm-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--metaphm-spacing-sm);
}

.metaphm-howto-step__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--metaphm-text);
}

/* ============================================
   CTA Section
============================================ */
.metaphm-cta-section {
    background: linear-gradient(135deg, var(--metaphm-secondary) 0%, #1a252f 100%);
    color: white;
}

.metaphm-cta-box {
    text-align: center;
    padding: var(--metaphm-spacing-xl);
}

.metaphm-cta-box__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--metaphm-spacing-sm);
    color: white;
}

.metaphm-cta-box__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 var(--metaphm-spacing-lg);
}

.metaphm-cta-box__button {
    margin-bottom: var(--metaphm-spacing-lg);
}

.metaphm-cta-box__disclaimer .metaphm-disclaimer {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    padding: var(--metaphm-spacing-sm);
    border-radius: var(--metaphm-radius-sm);
}

/* ============================================
   CTA Button
============================================ */
.metaphm-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--metaphm-primary) 0%, var(--metaphm-primary-dark) 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--metaphm-radius-full);
    text-decoration: none;
    box-shadow: var(--metaphm-shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metaphm-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--metaphm-shadow-lg);
    color: white;
}

.metaphm-cta-button::after {
    content: ' →';
}

/* ============================================
   FAQ Section
============================================ */
.metaphm-faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.metaphm-faq-item {
    background: var(--metaphm-bg);
    border-radius: var(--metaphm-radius-md);
    margin-bottom: var(--metaphm-spacing-sm);
    box-shadow: var(--metaphm-shadow-sm);
    overflow: hidden;
}

.metaphm-faq-item__question {
    display: flex;
    align-items: center;
    padding: var(--metaphm-spacing-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--metaphm-text);
    transition: background 0.3s ease;
}

.metaphm-faq-item__question:hover {
    background: var(--metaphm-bg-light);
}

.metaphm-faq-item__q,
.metaphm-faq-item__a {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: var(--metaphm-spacing-sm);
}

.metaphm-faq-item__q {
    background: var(--metaphm-primary);
    color: white;
}

.metaphm-faq-item__a {
    background: var(--metaphm-secondary);
    color: white;
}

.metaphm-faq-item__answer {
    display: flex;
    padding: var(--metaphm-spacing-md);
    padding-top: 0;
    color: var(--metaphm-text-light);
}

.metaphm-faq-item__answer p {
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   Floating CTA
============================================ */
.metaphm-floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.metaphm-floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
}

.metaphm-floating-cta .metaphm-cta-button {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer
============================================ */
.metaphm-footer {
    background: var(--metaphm-bg-light);
    padding: var(--metaphm-spacing-xl) 0;
    border-top: 1px solid var(--metaphm-border);
}

.metaphm-footer__disclaimers {
    background: var(--metaphm-disclaimer-bg);
    border: 1px solid var(--metaphm-disclaimer-border);
    border-radius: var(--metaphm-radius-md);
    padding: var(--metaphm-spacing-md);
    margin-bottom: var(--metaphm-spacing-lg);
}

.metaphm-footer__disclaimers .metaphm-disclaimer {
    margin-bottom: var(--metaphm-spacing-xs);
}

.metaphm-footer__disclaimers .metaphm-disclaimer:last-child {
    margin-bottom: 0;
}

.metaphm-footer__tokushoho {
    margin-bottom: var(--metaphm-spacing-lg);
}

.metaphm-footer__copyright {
    text-align: center;
    color: var(--metaphm-text-muted);
    font-size: 0.875rem;
}

.metaphm-footer__copyright p {
    margin: 0 0 var(--metaphm-spacing-xs);
}

.metaphm-footer__ad-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--metaphm-spacing-xs);
}

/* ============================================
   Tokushoho (특상법 표기)
============================================ */
.metaphm-tokushoho {
    background: var(--metaphm-bg);
    border-radius: var(--metaphm-radius-md);
    border: 1px solid var(--metaphm-border);
}

.metaphm-tokushoho__summary {
    padding: var(--metaphm-spacing-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--metaphm-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metaphm-tokushoho__summary:hover {
    background: var(--metaphm-bg-light);
}

.metaphm-tokushoho__summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--metaphm-text-muted);
}

.metaphm-tokushoho__details[open] .metaphm-tokushoho__summary::after {
    content: '−';
}

.metaphm-tokushoho__content {
    padding: var(--metaphm-spacing-md);
    border-top: 1px solid var(--metaphm-border-light);
}

.metaphm-tokushoho__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.metaphm-tokushoho__table th,
.metaphm-tokushoho__table td {
    padding: var(--metaphm-spacing-sm);
    border-bottom: 1px solid var(--metaphm-border-light);
    text-align: left;
}

.metaphm-tokushoho__table th {
    width: 30%;
    color: var(--metaphm-text-muted);
    font-weight: 500;
}

.metaphm-tokushoho__note {
    margin: var(--metaphm-spacing-md) 0 0;
    font-size: 0.75rem;
    color: var(--metaphm-text-muted);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 767px) {
    :root {
        --metaphm-font-size-base: 15px;
    }

    .metaphm-hero__title {
        font-size: 1.5rem;
    }

    .metaphm-section__title {
        font-size: 1.375rem;
    }

    .metaphm-cta-button {
        width: 100%;
        text-align: center;
    }

    .metaphm-floating-cta {
        left: 15px;
        right: 15px;
        transform: none;
    }

    .metaphm-floating-cta .metaphm-cta-button {
        width: 100%;
    }
}
