/* --- 基本設定 --- */
:root {
    --primary: #00ac48;
    --bg-light: #f4f7f9;
}

#main_body {
    margin: 0;
    padding: 0 0 40px 0; /* スライダーを一番上にするため上パディングを0に */
    font-family: sans-serif;
    line-height: 1.7;
    background-color: var(--bg-light);
}

#main-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px; /* 左右の余白を確保 */
}

/* --- 画像スライダーセクション (ID制御) --- */
#top-slider-container {
    width: 100%;
    height: 400px; /* PC時の高さ */
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

#slider-track {
    display: flex;
    width: 500%; /* 5枚分なので500% */
    height: 100%;
    /* アニメーション名 | 秒数 | タイミング | 無限ループ */
    animation: slide-animation 25s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

/* 各スライド画像の共通設定（IDで指定） */
#slide-1,
#slide-2,
#slide-3,
#slide-4,
#slide-5 {
    width: 20%; /* 5枚あるので1枚あたり1/5 */
    height: 100%;
    object-fit: cover;
}

/* スライドアニメーションの定義 */
/* 100% / 5枚 = 20% ごとに切り替え */
@keyframes slide-animation {
    0% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-20%);
    }
    35% {
        transform: translateX(-20%);
    }
    40% {
        transform: translateX(-40%);
    }
    55% {
        transform: translateX(-40%);
    }
    60% {
        transform: translateX(-60%);
    }
    75% {
        transform: translateX(-60%);
    }
    80% {
        transform: translateX(-80%);
    }
    95% {
        transform: translateX(-80%);
    }
    100% {
        transform: translateX(0);
    }
}

/* --- 以下、既存のIDスタイル --- */
#section-header,
#section-profile,
#section-news {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* #section-header {
                border-top: 8px solid var(--primary);
            } */
#company-name {
    margin: 0 0 15px 0;
}
#header-description {
    color: #444;
    margin-bottom: 20px;
}
#contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}
#contact-address-link {
    text-decoration: none;
    color: var(--primary);
}

#nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: -10px; /* 20px → -10px に変更 */
}
#btn-official,
#btn-instagram,
#btn-x,
#btn-youtube {
    flex: 1;
    min-width: 150px;
    text-align: center;
    background: #fff;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
#btn-official:hover,
#btn-instagram:hover,
#btn-x:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

#profile-title,
#news-title {
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}
#data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
#data-label-1,
#data-label-2,
#data-label-3 {
    color: #888;
    display: block;
}
#data-value-1,
#data-value-2,
#data-value-3 {
    font-weight: bold;
}

#news-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: 0.2s;
    margin-bottom: 10px;
}
#news-card:hover {
    background-color: #f9f9f9;
}
#news-thumbnail {
    width: 100px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 6px;
    object-fit: cover;
}
#news-text-content {
    display: flex;
    flex-direction: column;
}
#news-date {
    font-size: 0.9rem;
    color: #999;
}
#news-headline {
    font-weight: bold;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    #top-slider-container {
        height: 250px;
    }
    #contact-list {
        flex-direction: column;
        gap: 5px;
    }
    #data-grid {
        grid-template-columns: 1fr;
    }
    #news-card {
        flex-direction: column;
        align-items: flex-start;
    }
    #news-thumbnail {
        width: 100%;
        height: 150px;
    }
}
