html {
    scroll-behavior: smooth;
    /* ページ全体のスクロールをスムーズに */
}

body {
    max-width: 600px;
    /* ページ全体の最大幅を600pxに制限 */
    margin: 0 auto;
    background-color: #f54b2d;
}

/* グローバルリセット（すべての要素に適用） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 画像の基本スタイル */
img {
    display: block;
    width: 100%;
    height: auto;
    /* 初期値に戻して幅を親要素に合わせる */
    transition: opacity 0.3s ease;
    /* ホバー時の透明度変化をスムーズにする */
}

a {
    color: #0F78C3;
    text-decoration-line: underline;
}

/* ホバー時にテキスト色を変える */
a:hover {
    color: #16476a;
}

/* ホバー時に画像透明度を下げる */
a img:hover {
    opacity: 0.8;
}

/* メインテキスト */
.text-main {
    align-self: stretch;
    color: #3C3C3C;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    /* 157.143% */
}

/* キャプションテキスト */
.text-caption {
    align-self: stretch;
    color: #3C3C3C;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

/* 注意テキスト */
.text-attention {
    text-align: center;
    color: #FFF;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 300;
    line-height: 14px;
    /* 140% */
}

/* 応募要項テキスト */
.text-apply {
    align-self: stretch;
    color: #3C3C3C;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    /* 157.143% */
}

/* キャンペーン詳細タイトルテキスト */
.text-detail-title {
    align-self: stretch;
    color: #A06919;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 133.333% */
}

/* Qテキスト */
.text-qanda-q {
    color: #3C3C3C;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    /* 150% */
}

/* Aテキスト */
.text-qanda-a {
    color: #3C3C3C;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    /* 150% */
}

nav {
    background-image: url('img/bg_navi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 16px;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

nav ul .horizontal {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

/* 下部ナビ */
.nav2 {
    padding: 16px;
}

.nav2 ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.nav2 ul .horizontal {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.prize {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: url(img/bg_prize.png) 0px 0px / 100% auto repeat, #d7a54b;
}

.prize-item {
    display: flex;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    align-self: stretch;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.80);
}

/* マンガをチェック1冊 */
.container1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 16px;
    max-width: 35%;
}

/* マンガをチェック2冊 */
.container2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 16px;
    max-width: 70%;
}

/* マンガをチェック3冊 */
.container3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 16px;
    max-width: 100%;
}

.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.apply {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: url(img/bg_apply.png) 0px 0px / 100% auto repeat, #ff5a3c;
}

.apply-item {
    display: flex;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    align-self: stretch;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.80);
}

.apply-item .image-wrapper {
    text-align: center;
    /* 画像のみを中央に配置する */
}

.apply-item .image-wrapper img {
    width: 50%;
    /* セクション幅に対する50% */
    height: auto;
    /* アスペクト比を維持 */
    max-width: 100%;
    /* 親要素を超えないように設定 */
    display: inline-block;
    /* 中央揃えを可能にする */
}

.detail {
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    gap: 24px;
    background-color: #EEEBE7;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.qanda {
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    gap: 24px;
    background-color: #EEEBE7;
}

.qanda-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}