@charset "utf-8";
/* ページ全体の設定 */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: #333;
}

/* ヘッダー（メニュー） */
header {
    background-color: #333;
    color: white;
    padding: 15px;
    position: fixed; /* 上に固定 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100; /* 手前に表示 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header li {
    margin-left: 20px;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ① スライダーエリア */
.slider-area {
    width: 100%;
    height: 500px;
    background-color: black;
    position: relative;
    overflow: hidden;
    margin-top: 50px; /* ヘッダーの分あける */
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* 最初は消しておく */
    transition: opacity 1s; /* ふわっと切り替え */
}

/* activeがついている画像だけ表示 */
.slider-images img.active {
    opacity: 1;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 真ん中配置 */
    color: white;
    text-align: center;
    text-shadow: 2px 2px 5px black;
    z-index: 10;
}

/* メイン部分 */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-box {
    margin-bottom: 80px;
    padding-top: 60px; /* リンクで飛んだ時のズレ防止 */
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.img-box {
    background-color: #eee;
    padding: 50px;
    text-align: center;
    margin: 20px 0;
}

.btn-link {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

/* ② フォーム */
.form-item {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.btn-area button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 16px;
    margin-right: 10px;
}

#check-btn {
    background-color: blue;
}

#send-btn {
    background-color: green;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ③ トップへ戻るボタン */
#page-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* 最初は隠す */
}

