/* MG Special LP Styles */
:root {
    --primary-color: #0056b3;
    --accent-color: #f7b731;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --price-red: #e74c3c;
}

.mg-lp-wrapper {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--white);
}

.mg-lp-wrapper * {
    box-sizing: border-box;
}

.mg-lp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Hero */
.mg-hero {
    background-color: #004185;
    /* background settings for image */
    background-repeat: no-repeat;
    background-position: center top;
    /* Focus on faces/top of image */
    background-size: cover;

    color: var(--white);
    padding: 80px 0;
    /* Reduced padding to keep height manageable */
    min-height: 500px;
    /* Ensure sufficient height but not too tall */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Contain any overflow */
}

.mg-hero-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.mg-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.mg-hero p.subhead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.mg-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.mg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Sections */
.mg-section {
    padding: 60px 0;
}

.mg-section.bg-light {
    background-color: var(--bg-light);
}

.mg-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.mg-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Problem/Pain Points */
.mg-problems {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mg-problem-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
}

.mg-check-icon {
    font-size: 2rem;
    color: var(--price-red);
    margin-bottom: 15px;
    display: block;
}

/* Special Offer Box */
.mg-offer-box {
    border: 3px solid var(--accent-color);
    background-color: #fffbe6;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.mg-offer-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.mg-price-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.mg-price-regular {
    text-decoration: line-through;
    color: #777;
    font-size: 1.2rem;
}

.mg-price-special {
    font-size: 2.5rem;
    color: var(--price-red);
    font-weight: bold;
}

.mg-price-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Features */
.mg-feature {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-direction: row;
}

.mg-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.mg-feature-text {
    flex: 1;
    padding: 20px;
}

.mg-feature-img-wrapper {
    flex: 1;
    min-width: 0;
    /* Flexbox overflow fix */
}

.mg-feature-img {
    width: 100%;
    height: 300px;
    /* Fixed height to match "box" feel */
    object-fit: cover;
    /* Crop image to fit box without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    /* Remove inline spacing */
}

/* Instructor */
.mg-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    /* Center on mobile if wrapped */
}

.mg-profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mg-profile-content {
    flex: 1;
}

/* Footer CTA */
.mg-footer-cta {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 60px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mg-hero h1 {
        font-size: 1.8rem;
    }

    .mg-feature {
        flex-direction: column;
    }

    .mg-feature:nth-child(even) {
        flex-direction: column;
    }

    .mg-profile {
        flex-direction: column;
        align-items: center;
    }
}
/* Customer Voice Section */
.mg-voice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.mg-voice-item {
    width: 300px; /* 必要に応じて幅を調整 */
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.mg-voice-item:hover {
    transform: translateY(-5px);
}
.mg-voice-item img {
    width: 100%;
    height: auto;
    display: block;
}
/* Responsive adjustment */
@media (max-width: 768px) {
    .mg-voice-item {
        width: 100%;
        max-width: 400px;
    }
}