@charset "UTF-8";
/* ベーススタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #222;
    color: #333;
    text-decoration: none; /* 全体のテキストの下線を削除 */
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #222;
    color: #fff;
}
header .logo {
    font-size: 1.5em;
    font-weight: bold;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* メインビジュアル（スライドショー） */
.main-visual {
    position: relative;
    text-align: center;
    color: #fff;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
    position: relative; /* 画像が自然に表示される */

}

.main-visual h1,
.main-visual p,
.main-visual .btn {
    position: relative;
    z-index: 2; /* 画像より前面に */
    text-align: center;
}

.main-visual h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.main-visual p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.main-visual .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* フッター */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 120px 20px; /* 下に余白を追加 */
}

footer p {
    margin-top: 30px; /* テキストをさらに下へ */
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px; /* フッターとの間に余白を追加 */
    border-bottom: none; /* SNSリンクの下線を削除 */
}
.social-links a {
    text-decoration: none; /* SNSリンクの下線を削除 */
    color: #fff;
    background: #333;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
}

/* フェードインアニメーション（初回表示も適用） */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* スライドイン（左から） */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible, .slide-in-left.initial {
    opacity: 1;
    transform: translateX(0);
}

/* スライドイン（右から） */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible, .slide-in-right.initial {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .main-visual h1 {
        font-size: 2em;
    }
}