/* デフォルトのスタイル（PC版） */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    background-image: url('pattern.png'); /* 背景画像を追加 */
    background-size: cover; /* 背景画像のサイズをカバーに設定 */
    background-repeat: no-repeat; /* 背景画像のリピートを排除 */
    background-attachment: fixed; /* 背景画像を固定 */
    color: #000;
    text-align: center;
    position: relative;
    overflow-x: hidden; /* 横スクロールを防止 */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* さらに強めの透明な白色フィルターを追加 */
    z-index: -1; /* 背景の後ろに配置 */
}

header {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.logo img {
    height: 100px;
    width: 100px;
    border: 5px solid #ff7e5f;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff7e5f;
}

.background-container {
    position: relative;
    width: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-image {
    background-image: url('background1.jpg');
    background-size: cover; /* 背景画像のサイズをcoverに変更 */
    background-position: center center; /* 背景画像を中央に配置 */
    width: 100%;
    padding-top: 56.25%; /* アスペクト比を維持するためのパディング */
    background-repeat: no-repeat; /* 背景画像のリピートを排除 */
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.indicator-container {
    position: absolute;
    bottom: 10px; /* インディケーターを背景画像の下部に配置 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
}

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

.indicator.active {
    background-color: #ff7e5f;
}

/* PC版のスタイル */
@media (min-width: 769px) {
    .slide-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px 20px;
        background-color: #ff7e5f;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        z-index: 1001;
    }

    #prevBtn {
        left: 10px;
    }

    #nextBtn {
        right: 10px;
    }

    .slide-btn:hover {
        background-color: #feb47b;
    }
}

.image-container {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.image-container img {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    border: 5px solid #ff7e5f;
}

section {
    background-color: #ffffff;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: left;
    width: 80%; /* 幅を80%に設定 */
    box-sizing: border-box; /* パディングとボーダーを含む */
}

section h2, section h3 {
    color: #ff7e5f;
}

footer {
    background-color: rgba(255, 255, 255, 0.8); /* 白透明に設定 */
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    position: fixed; /* フッターを固定 */
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reservation-button {
    background-color: #ff7e5f;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.reservation-button:hover {
    background-color: #feb47b;
}

.about-image img {
    max-width: 100%; /* 画像の最大幅を100%に設定 */
    height: auto; /* 画像の高さを自動調整 */
    display: block; /* 画像をブロック要素に設定 */
    margin: 0 auto; /* 画像を中央揃え */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
    border: 5px solid #ff7e5f; /* 枠線を追加 */
}

.machine-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    border: 5px solid #ff7e5f;
}

.trainer-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    border: 5px solid #ff7e5f;
}

/* モバイル版ではボタンを非表示にする */
@media (max-width: 768px) {
    .slide-btn {
        display: none;
    }
}