:root {
    --primary-color: #1C2120;
    --secondary-color: #ffd900;
    --background-color: #f0f0f0;
    --font-family: 'Arial', sans-serif;
}

/* グローバルスタイル */
body {
    font-family: Meiryo, メイリオ, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. index */

/* ヘッダー画像のスタイル */
header {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* モバイル用のヘッダー画像の設定 */
header picture source {
    width: 100%;
    height: auto;
}

/* 最初のセクションの上部の余白を0にする */
main > section:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

/* セクション全体のスタイル */
#introduction-1, #introduction-2, #evidence, #interest, #additional-info, #how-to-use, #faq {
    width: 100%;
    padding: 20px 0;
}

#introduction-1 h2, #introduction-2 h2, #evidence h2, #interest h2, #additional-info h2, #how-to-use h2, #faq h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

/* カスタム見出しのスタイル */
h2.custom-heading {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    background-color: var(--primary-color);
}

h2.custom-heading span.inner01 {
    font-family: Roboto, "Noto Sans JP", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    height: 160.391px;
    width: 100%;
    display: inline-block;
    text-align: center;
    margin: 0;
}

/* 報酬画像のスタイル */
.reward-images img {
    width: 30%;
    margin: 1%;
}

/* ハイライトセクションのスタイル */
.highlight-section {
    background-color: var(--background-color);
    padding: 20px 40px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .highlight-section {
        padding: 10px;
        margin-bottom: 10px;
        width: calc(100% - 20px);
    }
}

/* センター配置画像のスタイル */
.center-image {
    display: block;
    margin: 0 auto;
}

/* フォームのスタイル */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

form p {
    margin-bottom: 10px;
    font-weight: bold;
}

form input[type="text"] {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin-bottom: 0px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* 申し込みボタンのスタイル */
form input[type="submit"] {
    background: linear-gradient(to bottom, #FFD700, #FFC700); /* ボタンのグラデーション背景 */
    color: #333; /* フォントの色 */
    padding: 20px; /* パディングを追加して背景を大きくする */
    font-size: 1.2em; /* フォントを大きくする */
    font-weight: bold; /* フォントを太字にする */
    border: 1px solid #FFA500; /* ボーダーを追加して立体感を出す */
    border-radius: 5px; /* ボタンの角を丸くする */
    box-shadow: 0 4px #CC9500; /* シャドウを追加して立体感を出す */
    cursor: pointer; /* マウスオーバー時にカーソルをポインターにする */
    display: block; /* ボタンをブロック表示にする */
    margin: 10px auto; /* ボタンを中央揃えにする */
    width: calc(100% - 40px); /* ボタンの幅を調整する */
    max-width: 600px; /* 最大幅を設定する */
    text-align: center; /* テキストを中央揃えにする */
    white-space: normal; /* 改行を許可する */
    word-break: break-word; /* 単語の途中での改行を許可する */
    transition: all 0.2s ease-in-out; /* ホバー時のアニメーションを追加 */
}


form input[type="submit"]:active {
    box-shadow: 0 2px #AA8500; /* クリック時のシャドウを変更 */
    transform: translateY(2px); /* クリック時のボタンを少し下に移動 */
}


form input[type="submit"]:hover {
    background: linear-gradient(to bottom, #FFC700, #FFD700); /* ホバー時の背景色 */
    box-shadow: 0 4px #AA8500; /* ホバー時のシャドウを変更 */
}


/* スマホ表示用のメディアクエリ */
@media (max-width: 768px) {
    form input[type="submit"] {
        white-space: normal; /* 改行を許可する */
        word-break: break-word; /* 単語の途中での改行を許可する */
    }
}

/* 表彰状風テスティモニアルのスタイル（LP2の構造に合わせて調整） */
.testimonial {
    background: linear-gradient(45deg, #fff 0%, #f8f6f0 100%);
    border: 8px double #1C2120; /* LP2のプライマリーカラーに変更 */
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: inset 0 0 20px rgba(255,217,0,0.2), 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.testimonial::before {
    content: "🏆 SUCCESS STORY 🏆";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1C2120; /* LP2のプライマリーカラーに変更 */
    color: #ffd900;
    padding: 8px 25px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 20px;
}

.testimonial-header {
    display: flex;
    flex-direction: column; /* LP2の構造に合わせて縦並びに */
    align-items: center;
    margin-bottom: 25px;
    text-align: center;
}

.testimonial-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    margin-right: 0; /* LP2構造では右マージン不要 */
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffd900;
    margin-bottom: 10px;
}

.testimonial-name {
    font-weight: bold;
    color: #1C2120; /* LP2のプライマリーカラーに変更 */
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.testimonial h3 {
    color: #1C2120; /* LP2のプライマリーカラーに変更 */
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #ffd900;
    padding: 15px;
    background: rgba(255,217,0,0.1);
    margin-top: 0;
}

.testimonial p {
    margin: 5px 0;
}

.testimonial .testimonial-content {
    width: 70%;
    text-align: left;
    margin: 0 auto; /* 中央寄せにする */
}

.testimonial .proof-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 15px auto;
    display: block;
    border-radius: 0; /* 角丸を削除 */
    box-shadow: none; /* 影を削除 */
    border: none; /* 枠線を削除 */
}

/* スマホ対応の追加 */
@media (max-width: 768px) {
    .testimonial {
        padding: 20px;
    }
    
    .testimonial::before {
        font-size: 10px;
        padding: 6px 15px;
                letter-spacing: 1px; /* 文字間隔を狭くする */
        white-space: nowrap; /* 改行を防ぐ */
    }
    
    .testimonial img {
        width: 70px;
        height: 70px;
    }
    
    .testimonial-name {
        font-size: 18px;
    }
    
    .testimonial h3 {
        font-size: 16px;
        padding: 10px;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-content {
        text-align: center;
    }

    .testimonial .proof-image {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial .testimonial-content {
        width: 100%;
    }
}

/* プロフィールセクションのスタイル */
.profile-section {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: auto;
    float: left;
    margin-right: 20px;
    border-radius: 8px;
}

.profile-description {
    text-align: left;
    overflow: hidden;
}

@media (max-width: 768px) {
    .profile-section {
        padding: 10px;
    }

    .profile-image {
        width: 100%;
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }

    .profile-description {
        text-align: left;
    }
}

/* フッターのスタイル */
.footer {
    background: url('images/footer-background.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer a {
    color: #FFD700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 5px 0;
}

/* スクロールトップボタンのスタイル */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #00aaff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top img {
    width: 50px;
    height: 50px;
}

.scroll-to-top:hover {
    background-color: #007acc;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.reward-images {
    width: 100%;
    text-align: center;
}

.reward-images img {
    width: 80%;
    height: auto;
    max-width: 100%;
}

hr.icon {
    margin: 25px auto 30px;
    padding: 0;
    border: 0;
    border-top: solid 3px;
    text-align: center;
    position: relative;
    width: 100%;
}

hr.icon::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: url('image/icon-robot.png') no-repeat center center;
    background-size: contain;
}

/* 追加スタイル */
.large-font {
    font-size: 20px;
}

.bold {
    font-weight: bold;
}

.red-bold {
    font-weight: bold;
    color: red;
}

.yellow-highlight {
    background-color: yellow;
}

.bold-underline {
    font-weight: bold;
    text-decoration: underline;
}

/* 2. プライバシーポリシー */

/* プライバシーポリシーのスタイル */
.privacy-policy {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-heading {
    color: #ffd900; /* h2タグの色を黄色に変更 */
    margin-top: 20px;
}

.privacy-policy h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.privacy-policy p, .privacy-policy ul {
    margin-bottom: 20px;
}

.privacy-policy ul {
    padding-left: 20px;
}

.privacy-policy ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

/* 3. 特商法 */

/* 特定商取引法のスタイル */
.legal-content {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.legal-heading {
    color: #ffd900; /* h2タグの色を黄色に変更 */
    margin-top: 20px;
}

.legal-content h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* テーブルのスタイル */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
}

.legal-content table tr {
    border-bottom: solid 2px white;
}

.legal-content table tr:last-child {
    border-bottom: none;
}

.legal-content table th {
    position: relative;
    text-align: left;
    width: 30%;
    background-color: #151377;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.legal-content table th:after {
    display: block;
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    border-left: 10px solid #151377;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.legal-content table td {
    text-align: left; /* テキストを左揃えに変更 */
    width: 70%;
    background-color: #eee;
    padding: 10px 20px; /* 左右の余白を20pxに設定 */
}

/* 画像のスタイル */
.responsive-image {
    width: 80%;
    height: auto;
}

/* スマホ表示用のメディアクエリ */
@media (max-width: 768px) {
    .responsive-image {
        width: 120%;
    }
}

/* カウントダウンタイマーのスタイル */
.countdown-timer {
    background-color: yellow;
    color: red;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 100%; /* 親要素の幅を超えないように設定 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
    .countdown-timer {
        display: block;
        text-align: center;
    }

    .countdown-timer .break {
        display: block;
    }
}


/* 動画ラッパーのスタイル */
.video-wrapper {
    width: 100%;
    max-width: 80%; /* 必要に応じて調整 */
    margin: 20px auto;
    padding: 20px 0;
    text-align: center;
    position: relative; /* 中央に配置 */
    background-color: black; /* 背景を黒に設定 */
    border-radius: 8px;
}

/* 動画自体のスタイル */
.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: black; /* 動画要素の背景色も黒に設定 */
    object-fit: cover; /* 動画をコンテナに合わせる */
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100%; /* スマホ表示では幅を100%に */
    }
    
    .video-wrapper video {
        width: 100%; /* スマホ表示では幅を100%に */
    }
}

/* フッターのスマホ対応を追加 */
@media (max-width: 768px) {
    .footer {
        padding: 20px 10px; /* 左右の余白を狭くする */
    }
    
    .footer-content {
        padding: 0 10px;
    }
    
    .footer-content p {
        margin: 10px 0;
        font-size: 12px; /* フォントサイズを小さくする */
        line-height: 1.4;
    }
    
    /* リンク部分を縦並びにする */
    .footer-content p:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    /* 区切り文字「｜」を非表示にする */
    .footer-content p:first-child::after {
        content: none;
    }
    
    .footer a {
        color: #FFD700;
        text-decoration: none;
        font-size: 12px;
        text-align: center;
        display: block;
    }
    
    /* コピーライト部分 */
    .footer-content p:last-child {
        font-size: 10px;
        text-align: center;
        margin-top: 15px;
    }
}