/* ヒーローセクション */
.hero-section {
    text-align: center;
    margin: 20px auto;
    max-width: 90%;
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-image {
    width: 100%;
    height: auto;
}

.hero-text {
    position: absolute;
    width: 70%;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #167676;
    text-align: center;
}

.hero-description {
    margin: 20px 0;
    font-size: 1.2rem;
    color: #333;
}

.hero-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
}

.hero-btn:hover {
    background-color: #0056b3;
}

/* サービス概要メリットセクション */
.benefits {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.benefits h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
}

.benefits-list li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li::before {
    content: "✔";
    color: #28a745;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* プログラミングスクールとの比較セクション */
.comparison-section {
    margin: 40px auto;
    padding: 20px 40px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 1100px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.comparison-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* テーブルスタイル（既存のCSS） */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.comparison-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f1f1f1;
}

.comparison-table td {
    vertical-align: top;
}

/* おすすめの方セクション */
.recommend-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.recommend-images {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.recommend-image {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
}

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    text-align: left;
    max-width: 50%;
}

.recommend-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.recommend-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #007BFF;
    font-size: 1.2rem;
}

/* レッスン内容セクション */
.lesson-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 900px;
    margin: 30px auto;
}

.lesson-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.lesson-content {
    margin: 20px auto;
    max-width: 800px;
    color: #555;
}

.lesson-subtitle {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 10px;
}

.lesson-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* サービス利用までの流れセクション */
.service-flow-section {
    text-align: center;
    padding: 40px 20px;
}

.service-flow-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-flow-section h3 {
    font-size: 1.5rem;
    margin: 20px;
}

.flow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flow-content img {
    max-width: 90%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.flow-content .btn {
    background-color: #007bff;
    color: #fff;
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.flow-content .btn:hover {
    background-color: #0056b3;
}

/* レッスン料金セクション*/
.lesson-pricing {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

.course-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
}

.course {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.free-consultation {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.free-consultation .btn {
    background-color: #007bff;
    color: #fff;
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.free-consultation .btn:hover {
    background-color: #0056b3;
}

/* FAQのセクション */
.faq {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.faq h3 {
    margin-top: 30px;
    color: #0056b3;
    font-size: 1.5rem;
}

.faq p {
    margin: 10px auto;
    line-height: 1.5;
    font-size: 1.1rem;
    max-width: 600px;
}

/* お断りする方セクション */
.not-eligible-section {
    background-color: #fff3f3;
    color: #d9534f;
    padding: 30px 20px;
    margin: 40px auto;
    border: 1px solid #d9534f;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
}

.not-eligible-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #c9302c;
}

.not-eligible-section p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.not-eligible-section ul {
    margin: 0 auto;
    padding: 0 0 0 40px;
    text-align: left;
    max-width: 50%;
    list-style: disc;
}

.not-eligible-section ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* 参考ゲームセクション */
.reference-game {
    text-align: center;
    padding: 40px 20px;
    background-color: #f3f3f3;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
}

.reference-game h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.reference-game .center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.reference-game-images {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.reference-game .game-screenshot {
    width: 30%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reference-game p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 20px auto;
}

.reference-game .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.reference-game .btn:hover {
    background-color: #0056b3;
}

/* SNSセクション */
.sns-links {
    margin: 20px 5px;
}

.sns-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.sns-icon-items {
    display: inline-block;
    text-decoration: none;
}

.sns-icon-size {
    width: 40px;
    height: 40px;
}

@media screen and (max-width: 1024px) and (max-height: 1366px) {
    .hero-text {
        font-size: 1.3rem;
    }

    .reference-game {
        display: none;
    }
}

@media screen and (min-width: 431px) and (max-width: 960px) {
    .hero-text {
        font-size: 1.2rem;
    }

    .reference-game {
        display: none;
    }
}

@media (max-width: 430px) {
    .btn {
        padding: 10px 15px;
    }

    .hero-text {
        font-size: 9px;
    }

    .benefits {
        max-width: 333px;
    }

    .benefits h2 {
        font-size: 1.5rem;
    }

    .benefits-list {
        max-width: 90%;
    }

    .comparison-section {
        max-width: 290px;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        display: block;
        margin-bottom: 15px;
    }

    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 5px;
    }

    .comparison-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        width: 50%;
        display: inline-block;
    }

    .recommend-section {
        max-width: 330px;
    }

    .recommend-list {
        max-width: 100%;
    }

    .lesson-section {
        max-width: 330px;
    }

    .service-flow-section h2 {
        font-size: 1.5rem;
    }

    .service-flow-section h3 {
        font-size: 1rem;
    }

    .faq {
        max-width: 330px;
    }

    .not-eligible-section {
        padding: 30px 0px;
    }

    .not-eligible-section ul {
        max-width: 100%;
    }

    .reference-game {
        display: none;
    }
}