
/* --- レイアウト（コンテナ） --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 汎用ユーティリティ --- */
.section-padding {
    /* padding: 80px 0; */
    /* margin-top: 160px; */
    /* padding-top: 70px; */
    /* padding-bottom: 80px; */
}

.text-center {
    text-align: center;
}

/* ================================================= */
/* アニメーション共通設定 (ふわっと表示) */
/* ================================================= */

.fade-in,
.category-card-machine,
.machine-detail-card
{
    opacity: 0;
    transform: translateY(20px);
    /* カスタムプロパティ（--animation-delay）を使用 */
    transition: opacity 0.8s ease-out var(--animation-delay, 0s), 
                transform 0.8s ease-out var(--animation-delay, 0s);
}

.fade-in.visible,
.category-card-machine.visible,
.machine-detail-card.visible
{
    opacity: 1;
    transform: translateY(0);
}

/* --- 共通ボタン（CTA）スタイル --- */
.btn-cta-sky {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-primary-sky {
    background-color: var(--color-secondary); /* オレンジ */
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.btn-primary-sky:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

.btn-large-sky {
    font-size: 24px;
    padding: 20px 40px;
}

/* --- CTAボックス（スカイボックスページから流用） --- */
.cta-box-sky {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}
.cta-box-sky h2 {
    color: var(--color-white);
    font-size: 34px;
    margin-bottom: 15px;
}
.cta-box-sky p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* ================================================= */
/* 機械設備ページ固有のスタイル */
/* ================================================= */

/* --- ヒーローセクション --- */
.hero-machine {
    background-color: var(--color-primary); /* 深い緑 */
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}
.hero-machine h1 {
    font-size: 44px;
    margin-bottom: 20px;
    color: var(--color-white);
}
.lead-text-machine {
    font-size: 18px;
    opacity: 0.9;
}

/* --- タイトル共通 --- */
.section-title-machine {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.section-title-machine i {
    color: var(--color-secondary);
    margin-right: 10px;
}

.type-title-machine {
    font-size: 30px;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 15px;
}

.type-description-machine {
    text-align: center;
    font-size: 17px;
    margin-bottom: 60px;
    color: #555;
}


/* --- カテゴリーグリッド --- */
.bg-light-gray-machine {
    background-color: var(--color-light-bg);
}

.category-grid-machine {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-card-machine {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    text-decoration: none;
    color: var(--color-primary);
    background-color: var(--color-white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 5px solid transparent;
}

.category-card-machine:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--color-secondary);
}

.category-card-machine i {
    font-size: 50px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.category-card-machine h3 {
    0:
    AUTO 100PX;
    margin: 0;
    color: var(--color-primary);
    margin-top: 0 !important;
    font-size: 20px !important;
}

/* --- 機械詳細カード --- */
.machine-detail-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.machine-detail-card.reverse {
    flex-direction: row-reverse;
}

.machine-detail-card img {
    flex-shrink: 0;
    width: 45%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.machine-info {
    flex-grow: 1;
}

.machine-info h3 {
    font-size: 28px;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.keyword-info {
    font-weight: bold;
    color: #ff9800; /* 補足的なオレンジ */
    font-size: 16px;
    margin-bottom: 15px;
}

.machine-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.machine-info ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.machine-info li {
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.machine-info li i {
    color: var(--color-cta); /* チェックアイコンの色 */
    margin-right: 8px;
}

.btn-detail-link {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: bold;
    margin-top: 15px;
}


/* ================================================= */
/* レスポンシブ対応 */
/* ================================================= */

@media (max-width: 992px) {
    /* 共通基盤スタイルの調整を反映 */
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .section-padding { padding: 50px 0; }

    .hero-machine h1 {
        font-size: 36px;
    }
    .machine-detail-card,
    .machine-detail-card.reverse {
        flex-direction: column;
        text-align: center;
    }
    .machine-detail-card img {
        width: 80%;
        height: auto;
        margin-bottom: 20px;
    }
    .machine-info {
        text-align: left;
    }
    .machine-info h3 {
        text-align: center;
    }
    .category-card-machine {
        flex: 1 1 45%;
    }
}

#machine-category {

margin-top: 160px;

padding-top: 60px;

padding-bottom: 80px;
}

#roughter {
    
margin-top: 50px;
    
padding-top: 60px;
    
padding-bottom: 40px;
}

@media (max-width: 576px) {
    /* 共通基盤スタイルの調整を反映 */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    .btn-cta-sky { font-size: 16px; padding: 12px 25px; }
    .cta-box-sky h2 { font-size: 28px; }

    .hero-machine h1 {
        font-size: 28px;
    }
    .machine-detail-card {
        padding: 20px;
        margin-bottom: 40px;
        gap: 10px;
    }
    .machine-detail-card img {
        width: 100%;
    }
    .category-card-machine {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #machine-category {
        margin-top: 70px;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .section-title-machine {
        font-size: 28px;
        /* text-align: center; */
        margin-bottom: 20px;
        /* color: var(--color-primary); */
    }

    #roughter {
        margin-top: 0px;
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .type-description-machine {
        text-align: center;
        font-size: 17px;
        margin-bottom: 60px;
        color: #555;
    }

    .machine-info h3 {
        font-size: 22px;
        /* color: var(--color-primary); */
        /* border-bottom: 3px solid var(--color-secondary); */
        /* padding-bottom: 5px; */
        /* margin-bottom: 15px; */
    }

    #others {
        padding: 0;
        padding-top: 50px;
        margin-top: 0px;
        padding-bottom: 20px;
    }
}