/* 日本語学習問い合わせ・申し込みページ専用スタイル */

/* ヒーローセクションの桜背景 */
.japanese-inquiry-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/japanese-inquiry-application-01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 简化装饰效果 */

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #b67a93;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: white !important;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.btn-outline:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-3px);
}

/* メインコンテンツセクション */
.contact-application {
    background: linear-gradient(135deg, #fff 0%, #fef7f7 50%, #fff 100%);
    padding: 80px 0;
    position: relative;
}

.contact-application::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="petals" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15,5 Q20,10 15,15 Q10,10 15,5" fill="%23ff6b9d" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23petals)"/></svg>') repeat;
    opacity: 0.4;
}

.contact-app-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 60px;
}

/* お問い合わせセクション */
.contact-section,
.application-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 252, 0.95) 100%);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-section::before,
.application-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d 0%, #ff8fab 50%, #ffb3c1 100%);
    border-radius: 30px 30px 0 0;
}

.contact-section h3,
.application-section h3 {
    font-size: 2rem;
    color: #b67a93;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.contact-section h3::after,
.application-section h3::after {
    content: '🌸';
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.section-description {
    text-align: left;
    font-size: 1.1rem;
    color: #8b4b6b;
    margin-bottom: 40px;
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(255, 179, 193, 0.05) 100%);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

/* 連絡方法 */
.contact-methods {
    display: grid;
    gap: 25px;
    margin-bottom: 50px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 245, 248, 0.8) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(255, 179, 193, 0.05) 100%);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.contact-icon i {
    color: white;
    font-size: 1.5rem;
}

.contact-info h4 {
    color: #b67a93;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info p {
    color: #8b4b6b;
    margin-bottom: 5px;
    line-height: 1.5;
}

.contact-detail {
    font-weight: 600 !important;
    color: #ff6b9d !important;
    font-size: 1.1rem !important;
}

.contact-info small {
    color: #999;
    font-size: 0.85rem;
}

/* コース選択肢 */
.course-options {
    margin-bottom: 40px;
}

.course-options h4 {
    font-size: 1.4rem;
    color: #b67a93;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.course-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 248, 0.9) 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.course-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.course-icon i {
    color: white;
    font-size: 1.2rem;
}

.course-card h5 {
    color: #b67a93;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.course-card p {
    color: #8b4b6b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.course-price {
    color: #ff6b9d;
    font-weight: 600;
    font-size: 1rem;
}

/* フォームスタイル */
.contact-form-section,
.application-form {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.02) 0%, rgba(255, 179, 193, 0.02) 100%);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.contact-form-section h4,
.form-section h4 {
    color: #b67a93;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-section h4::before,
.form-section h4::before {
    content: '🌸';
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #8b4b6b;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

/* チェックボックス・ラジオボタン */
.checkbox-group,
.radio-group {
    display: grid;
    gap: 12px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.checkbox-item:hover,
.radio-item:hover {
    background: rgba(255, 107, 157, 0.05);
    border-color: rgba(255, 107, 157, 0.2);
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"],
.radio-item input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.checkmark {
    border-radius: 4px;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark,
.radio-item input[type="radio"]:checked + .radio-mark {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    border-color: #ff6b9d;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.radio-item input[type="radio"]:checked + .radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* 同意チェックボックス */
.form-agreement {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 107, 157, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.agreement-item {
    margin-bottom: 0;
}

.agreement-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #8b4b6b;
}

/* 送信ボタン */
.submit-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 50%, #ffb3c1 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ff5a8a 0%, #ff7ea0 50%, #ffa8c0 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

/* FAQセクション */
.faq-section {
    background: linear-gradient(135deg, #fef7f7 0%, #fff 50%, #fef7f7 100%);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #b67a93;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '🌸';
    display: block;
    font-size: 2rem;
    margin-top: 10px;
    animation: bounce 2s ease-in-out infinite;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 248, 0.9) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.1);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(255, 179, 193, 0.05) 100%);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 179, 193, 0.1) 100%);
}

.faq-question h4 {
    color: #b67a93;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: #ff6b9d;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
}

.faq-answer p {
    color: #8b4b6b;
    line-height: 1.6;
    margin: 0;
}

/* スムーズスクロール */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .japanese-inquiry-hero {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }
    
    .hero-icon i {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .contact-section,
    .application-section {
        padding: 35px 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-form-section,
    .application-form {
        padding: 25px 20px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-section,
    .application-section {
        padding: 25px 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .course-card {
        padding: 20px 15px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-method,
.course-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

.contact-method:nth-child(2) { animation-delay: 0.1s; }
.contact-method:nth-child(3) { animation-delay: 0.2s; }
.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.2s; }
.course-card:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }