/**
 * トップページ用スタイル
 *
 * @package OnlineClinic
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.oc-hero {
    padding: var(--oc-space-3xl) 0;
    background: linear-gradient(135deg, var(--oc-bg) 0%, var(--oc-accent-light) 100%);
}

.oc-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-hero__content {
    max-width: 700px;
    text-align: center;
}

.oc-hero__title {
    font-size: var(--oc-font-size-2xl);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--oc-space-lg);
    color: var(--oc-text);
}

.oc-hero__lead {
    font-size: var(--oc-font-size-base);
    color: var(--oc-text-light);
    line-height: 1.8;
    margin-bottom: var(--oc-space-xl);
}

.oc-hero__actions {
    display: flex;
    gap: var(--oc-space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--oc-space-xl);
}

.oc-hero__badges {
    display: flex;
    gap: var(--oc-space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.oc-hero__badge {
    display: flex;
    align-items: center;
    gap: var(--oc-space-xs);
    font-size: var(--oc-font-size-sm);
    color: var(--oc-text-light);
}

.oc-hero__badge-icon {
    color: var(--oc-accent);
    font-size: var(--oc-font-size-lg);
}

@media (min-width: 769px) {
    .oc-hero {
        padding: var(--oc-space-3xl) 0 calc(var(--oc-space-3xl) * 1.5);
    }

    .oc-hero__title {
        font-size: var(--oc-font-size-3xl);
    }

    .oc-hero__lead {
        font-size: var(--oc-font-size-lg);
    }
}

/* ==========================================================================
   Flow Section (diagnosis steps)
   ========================================================================== */
.oc-flow__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--oc-space-lg);
    counter-reset: step;
}

.oc-flow__step {
    text-align: center;
    padding: var(--oc-space-xl) var(--oc-space-lg);
    background-color: var(--oc-bg);
    border-radius: var(--oc-border-radius-lg);
    position: relative;
}

.oc-flow__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--oc-accent);
    color: #fff;
    font-size: var(--oc-font-size-xl);
    font-weight: 700;
    margin-bottom: var(--oc-space-md);
}

.oc-flow__step-title {
    font-size: var(--oc-font-size-lg);
    font-weight: 600;
    margin-bottom: var(--oc-space-sm);
    color: var(--oc-text);
}

.oc-flow__step-desc {
    font-size: var(--oc-font-size-sm);
    color: var(--oc-text-light);
    line-height: 1.7;
}

@media (min-width: 769px) {
    .oc-flow__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--oc-space-xl);
    }

    .oc-flow__step {
        padding: var(--oc-space-2xl) var(--oc-space-lg);
    }
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.oc-category-card {
    display: block;
    background-color: var(--oc-bg-white);
    border-radius: var(--oc-border-radius-lg);
    box-shadow: var(--oc-shadow);
    overflow: hidden;
    transition: box-shadow var(--oc-transition), transform var(--oc-transition);
    text-decoration: none;
    color: var(--oc-text);
}

.oc-category-card:hover {
    box-shadow: var(--oc-shadow-hover);
    transform: translateY(-2px);
    color: var(--oc-accent);
}

.oc-category-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.oc-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-category-card__image--placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--oc-border-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

.oc-category-card__body {
    padding: var(--oc-space-md) var(--oc-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oc-category-card__name {
    font-size: var(--oc-font-size-sm);
    font-weight: 600;
}

.oc-category-card__count {
    font-size: var(--oc-font-size-xs);
    color: var(--oc-text-muted);
}

/* ==========================================================================
   Product Card (Top Page)
   ========================================================================== */
.oc-product-card__link {
    display: block;
    text-decoration: none;
    color: var(--oc-text);
}

.oc-product-card__link:hover {
    color: var(--oc-text);
}

.oc-card__image--placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--oc-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23CCCCCC' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

.oc-card__price-original {
    font-size: var(--oc-font-size-sm);
    color: var(--oc-text-muted);
    margin-right: var(--oc-space-sm);
}

/* ==========================================================================
   Notices Section
   ========================================================================== */
.oc-notices__list {
    max-width: 800px;
    margin: 0 auto;
}

.oc-notices__list .oc-notice {
    margin-bottom: var(--oc-space-md);
}

.oc-notices__list .oc-notice:last-child {
    margin-bottom: 0;
}
