/* ===================================================
   front-page.css - トップページ専用スタイル
   =================================================== */

/* ---------------------------------------------------
   セクション共通補助
   --------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ---------------------------------------------------
   ① ヒーロースライダー
   --------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    min-height: 580px;
    height: calc(100vh - 113px); /* 固定ヘッダー（PC）分を除く */
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 70%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    max-width: 660px;
    padding: 40px 24px;
}

.hero-slide__catch {
    font-size: 4.4rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-slide__sub {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 36px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ドットインジケーター */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
    background-color: var(--color-white);
    transform: scale(1.4);
}

.hero-dot:hover:not(.is-active) {
    background-color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------
   ② 事業紹介カード
   --------------------------------------------------- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-sub);
}

.service-card__body {
    padding: 20px 18px 24px;
}

.service-card__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 10px;
}

.service-card__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--color-primary);
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}

.service-card__text {
    font-size: 1.4rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------------------------------------------------
   ③ 製品ピックアップ
   --------------------------------------------------- */
.product-pickup {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.product-pickup__card {
    display: block;
    text-decoration: none;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-pickup__card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-pickup__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-pickup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-pickup__card:hover .product-pickup__image img {
    transform: scale(1.05);
}

.product-pickup__image--noimg {
    background-color: var(--color-bg-sub);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-pickup__image--noimg span {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.product-pickup__body {
    padding: 14px 16px 18px;
}

.product-pickup__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 4px;
    transition: color var(--transition);
}

.product-pickup__card:hover .product-pickup__title {
    color: var(--color-primary);
}

.product-pickup__sub {
    font-size: 1.3rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ---------------------------------------------------
   ④ メンテナンス誘導バナー
   --------------------------------------------------- */
.maintenance-banner {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary-dark);
    display: flex;
    align-items: center;
}

.maintenance-banner__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(42, 143, 21, 0.82);
}

.maintenance-banner__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 64px 24px;
    width: 100%;
}

.maintenance-banner__title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.5;
    margin-bottom: 16px;
}

.maintenance-banner__text {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* ---------------------------------------------------
   ⑤ お知らせリスト
   --------------------------------------------------- */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    border-top: 1px solid var(--color-border);
}

.news-list__item {
    border-bottom: 1px solid var(--color-border);
}

.news-list__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color var(--transition);
}

.news-list__link:hover {
    background-color: var(--color-bg-sub);
}

.news-list__link:hover .news-list__title {
    color: var(--color-primary);
}

.news-list__date {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
}

.news-list__cat {
    flex-shrink: 0;
}

.news-list__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    transition: color var(--transition);
    flex: 1;
}

/* ---------------------------------------------------
   ⑥ ブロググリッド
   --------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    display: block;
    text-decoration: none;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.blog-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-sub) 100%);
}

.blog-card__body {
    padding: 16px;
}

.blog-card__date {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    transition: color var(--transition);
}

.blog-card:hover .blog-card__title {
    color: var(--color-primary);
}

/* ---------------------------------------------------
   ⑦ CTAバナー
   --------------------------------------------------- */
.cta-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-section .section-title {
    color: var(--color-white);
    text-align: left;
}

.cta-section .section-title::after {
    background-color: rgba(255, 255, 255, 0.5);
    left: 0;
    transform: none;
}

.cta-section .section-sub {
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.cta-section__text {
    flex: 1;
}

.cta-section__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cta-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
    transition: opacity var(--transition);
}

.cta-phone:hover {
    opacity: 0.85;
}

.cta-phone__label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.cta-phone__number {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* ---------------------------------------------------
   レスポンシブ
   --------------------------------------------------- */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-pickup {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 60px); /* モバイルヘッダー分 */
        min-height: 440px;
    }

    .hero-slide__catch {
        font-size: 2.8rem;
    }

    .hero-slide__sub {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .hero-slide__content {
        padding: 24px 20px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-pickup {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .maintenance-banner__title {
        font-size: 2.2rem;
    }

    .maintenance-banner__text {
        font-size: 1.5rem;
    }

    .news-list__link {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-list__date {
        min-width: auto;
    }

    .cta-section__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .cta-section .section-title,
    .cta-section .section-sub {
        text-align: center;
    }

    .cta-section .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-slide__catch {
        font-size: 2.4rem;
    }

    .service-cards,
    .product-pickup {
        grid-template-columns: 1fr;
    }

    .maintenance-banner__title {
        font-size: 1.9rem;
    }

    .cta-phone__number {
        font-size: 2.6rem;
    }
}
