/* ==========================================
   トップページ専用スタイル
   ========================================== */

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

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

/* スライダーの上に暗いオーバーレイを追加 */
.hero__slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 48px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hero__arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero__arrow--prev {
    left: 20px;
}

.hero__arrow--next {
    right: 20px;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero__dot.active {
    background-color: white;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.hero__text {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ==========================================
   特徴セクション
   ========================================== */
.features__grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.features__grid .card {
    overflow: hidden;
}

.features__icon {
    width: 100%;
    height: 200px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

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

/* ==========================================
   サービスセクション
   ========================================== */
.services__list {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.services__item {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
}

.services__image {
    min-height: 200px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
}

.services__content {
    text-align: left;
}

.services__button {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================
   お知らせセクション
   ========================================== */
.news__list {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.news__item {
    padding: var(--spacing-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.news__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news__date {
    display: inline-block;
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}

.news__title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.news__text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ==========================================
   CTAセクション
   ========================================== */
.cta {
    text-align: center;
}

.cta__title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.cta__text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.cta__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ==========================================
   フェードインアニメーション
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   レスポンシブ（タブレット以上）
   ========================================== */
@media (min-width: 768px) {
    /* ヒーローセクション */
    .hero__title {
        font-size: 40px;
    }

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

    .hero__buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-md);
    }

    /* 特徴セクション */
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .features__icon {
        height: 250px;
    }

    /* サービスセクション */
    .services__item {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .services__item--reverse {
        direction: rtl;
    }

    .services__item--reverse .services__content {
        direction: ltr;
    }

    /* お知らせセクション */
    .news__list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTAセクション */
    .cta__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================
   レスポンシブ（PC以上）
   ========================================== */
@media (min-width: 1024px) {
    .hero__title {
        font-size: 48px;
    }

    .features__icon {
        height: 280px;
    }
}