@charset "UTF-8";

/* --- 1. 基本レイアウト --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    /* 背景画像の設定 */
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 120px; /* 固定バナー分の余白 */
    color: #333;
}

.wrapper {
    max-width: 640px; 
    margin: 0 auto;
    background-color: #fff;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

.img-block {
    position: relative;
    width: 100%;
    line-height: 0;
}

.img-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 2. ボタン設定 --- */
.overlay-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* ボタン位置指定（%） */
.btn-mv { top: 86.4%;left: 4.2%;width: 37.5%;height: 10%; }
.btn-c1 { bottom: 9%;left: 8.5%;width: 40%;height: 3.8%; }
.btn-c2 { bottom: 9%;right: 8.5%;width: 40%;height: 3.8%; }
.btn-c3 { bottom: 4.3%;right: 8.5%;width: 83%;height: 3.8%; }
.btn-sns-x { top: 45.4%; right: 36%; width: 10%; }
.btn-sns-insta { top: 45.4%; left: 36%; width: 10%; }

.btn-with-arrow,
.btn-c1,
.btn-c2,
.btn-c3 {
	position: absolute;
}

.btn-with-arrow::after {
	position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
	content: "\f054";
	font-family: "Font Awesome 5 Free";
	font-size: clamp(10px, 1.6vw, 12px);
    color: #000;
    transition: all 0.3s ease;
}

.btn-with-arrow:hover::after {
    right: 5%;
}

.btn-c1::after,
.btn-c2::after,
.btn-c3::after {
	position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
	content: "\f054";
	font-family: "Font Awesome 5 Free";
	font-size: clamp(11px, 1.6vw, 16px);
    color: #000;
    transition: all 0.3s ease;
}

.btn-c1:hover::after,
.btn-c2:hover::after,
.btn-c3:hover::after {
    right: 5%;
}

/* --- 3. 応募規約 --- */
.rule-section {
    padding: 50px 25px;
    background: #fff;
}

.rule-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.rule-content {
    font-size: 13px;
    line-height: 1.8;
    max-height: 500px;
    overflow-y: scroll;
    padding: 25px;
    border: 1px solid #ddd;
    background-color: #fafafa;
}

.rule-box h3 {
    font-size: 14px;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 3px;
}

.rule-list {
    list-style: none;
    margin: 10px 0;
}

.rule-list li {
    position: relative;
    padding-left: 1.3em;
    margin-bottom: 4px;
}

.rule-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.rule-note {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* --- 4. 固定フッターバナー --- */
.fixed-footer-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 520px; 
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    line-height: 0;
}

.fixed-footer-banner img {
    width: 100%;
}

.fixed-footer-banner::after {
	position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
	content: "\f054";
	font-family: "Font Awesome 5 Free";
	font-size: clamp(11px, 1.6vw, 20px);
    font-weight: bold;
    color: #000;
    transition: all 0.3s ease;
}

.fixed-footer-banner:hover::after {
    right: 5%;
}

@keyframes floatAnimation {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px); /* 中間点：上10px移動 */
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.fixed-footer-banner {
  animation: floatAnimation 2s infinite ease-in-out;
}

/* --- 5. スマホレスポンシブ --- */
@media screen and (max-width: 640px) {
    .wrapper, 
    .fixed-footer-banner {
        max-width: 100%;
    }
    .fixed-footer-banner {
        max-width: 80%;
    }
    .rule-section {
        padding: 40px 15px;
    }
}