/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

h2 {
    font-size: 3rem;
}

/* ヘッダー */
.header {
    text-align: center;
    position: relative;
}

.header-image {
    width: 100%;
    height: auto;
}

.site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 機能紹介セクション */
.features {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.campaigns {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.features .background-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 640px;
  height: 640px;
}

.features h2 {
    text-align: left;
    align-self: baseline;
    width: 77%;
    margin: 100px auto;
    z-index: 10;
}

.campaigns h2 {
    text-align: left;
    align-self: baseline;
    width: 77%;
    margin: 20px auto;
    z-index: 10;
}

.feature {
    width: 80%;
    margin: auto;
    display: flex;
    margin-bottom: 100px;
    max-width: 1100px;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.campaign {
    width: 80%;
    margin: auto;
    display: flex;
    margin-bottom: 30px;
    max-width: 1100px;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.feature-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-left: 16px;
}

.feature-title-container {
    position: relative;
    margin-bottom: 8px;
}

.feature-title-container h3 {
    font-family: Hiragino Sans;
    font-size: 32px;
    font-weight: 800;
    line-height: 48px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #314CB6;
    position: absolute;
    bottom: 0;
}

.campaign-title-container h3 {
    font-family: Hiragino Sans;
    font-size: 32px;
    font-weight: 800;
    line-height: 48px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #314CB6;
    position: relative;
    bottom: 0;
}

.feature-content img {
    margin-bottom: 8px;
}

.feature-content p {
    max-width: 520px;
    font-family: Hiragino Sans;
    font-size: 14px;
    font-weight: 300;
    line-height: 26px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #000
}

.feature-content .bubble {
    height: 35px;
}

/* 機能比較表 */
.comparison {
    padding: 2rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison h2 {
    text-align: left;
    align-self: baseline;
    width: 77%;
    margin: 80px auto 50px;
    z-index: 10;
}

.comparison table {
    max-width: 1100px;
    width: 77%;
    border-collapse: collapse;
}

.comparison th, .comparison td {
    padding: 1rem 5px;
    border: 1px solid #ddd;
    text-align: center;
}

.comparison th:nth-of-type(2), .comparison td:nth-of-type(2) {
    background: #F3F3F3;
}

.comparison th:nth-of-type(3) {
    background: #FFA526;
    color: #fff;
}

.comparison td:nth-of-type(3) {
    background: #FFF7DF;
}

.comparison th:nth-of-type(4) {
    background: #314CB6;
    color: #fff;
}

.comparison td:nth-of-type(4) {
    background: #E4EFFC;
}

/* 注意書きセクション */
.disclaimer {
    padding: 2rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.disclaimer h2 {
    text-align: left;
    align-self: baseline;
    width: 77%;
    margin: 80px auto 50px;
    z-index: 10;
}

.disclaimer ul {
    max-width: 1100px;
    list-style-type: disc;
    padding-left: 20px;
    width: 77%;
}

.footer {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0px auto 20px;
}

.floating_section {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    align-items: center;
    width: 80% !important;
    margin: 0 10% 50px !important;
}

.campaign_button {
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    justify-content: center;
    background-color: #FFA526;
    color: white;
    border-radius: 40px;
    padding: 20px;
    font-size: 18px;
    text-decoration: none;
    width: 100%;
}


/* レスポンシブデザイン (モバイル) */
@media (max-width: 768px) {
    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 28px;
    }

    .features {
        padding: 2rem 2rem 0;
    }

    .features h2 {
        width: 100%;
        margin: 30px auto 50px;
    }

    .campaigns h2 {
        width: 100%;
        margin: 10px auto 20px;
    }

    .features .background-icon {
        position: absolute;
        top: 0px;
        right: 0;
        width: 240px;
        height: 240px;
    }

    .feature {
        width: 100%;
        flex-direction: column;
        align-items: center;
        z-index: 5;
    }

    .campaign {
        width: 100%;
        flex-direction: column;
        align-items: center;
        z-index: 5;
    }

    .feature-content {
        margin-left: 0;
    }

    .feature-image img {
        width: 100%;
        height: auto;
        margin: auto;
        margin-top: 16px;
        max-width: 100%;
    }

    .feature-title-container {
        position: relative;
        margin-bottom: 8px;
        text-align: left;
    }

    .feature-title-container h3 {
        font-family: Hiragino Sans;
        font-size: 24px;
        font-weight: 800;
        line-height: 36px;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #314CB6;
        position: absolute;
        bottom: 0;
    }

    .campaign-title-container h3 {
        font-family: Hiragino Sans;
        font-size: 24px;
        font-weight: 800;
        line-height: 36px;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #314CB6;
        position: relative;
        bottom: 0;
    }

    .feature-title-container img {
        width: 30%;
    }

    .comparison h2, .disclaimer h2 {
        margin-top: 0;
    }

    .comparison h2, .comparison table, .disclaimer h2, .disclaimer ul {
        width: 100%;
    }

    .floating_section {
        width: 90% !important;
        margin: 0 5% 50px !important;
    }

}