/* ============================================================
   ヒーローズ泉中央校 リニューアル検討案（統合版・最終調整済） 
   追加スタイルシート
   ============================================================ */

:root {
    --renewal-navy: #0f172a;
    --renewal-gold: #f59e0b;
    --renewal-sky: #e0f2fe;
    --renewal-accent-soft: #ff8c00;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* 2. 教育理念（個別指導 / 信頼・情熱） */
.philosophy {
    background: #f8fafc;
}

.philosophy-card {
    background: #ffffff;
    color: var(--renewal-navy);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 50px;
}

.philosophy-header .badge {
    background: var(--renewal-gold);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 20px;
}

.philosophy-header h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--renewal-navy);
}

.philosophy-body {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.philosophy-content {
    flex: 1.2;
    min-width: 300px;
}

.message-bubble {
    background: #f1f5f9;
    padding: 40px;
    border-radius: 30px;
    border-left: 6px solid var(--renewal-gold);
}

.message-bubble h3 {
    font-size: 1.6rem;
    color: var(--renewal-navy);
    margin-bottom: 25px;
}

.message-bubble p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #475569;
}

.quote-signature {
    margin-top: 30px;
    text-align: right;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.quote-signature p {
    font-style: italic;
    color: var(--renewal-navy);
    font-weight: 700;
}

.signature-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.signature-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--renewal-gold);
    object-fit: cover;
    background: #fff;
}

.signature-flex span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--renewal-navy);
}

/* 3. プログラミング（気づき・漫画スタイル） */
.programming-concept {
    background-color: var(--renewal-sky);
    background-image: radial-gradient(#bae6fd 1px, transparent 1px);
    background-size: 20px 20px;
}

.manga-container {
    background: white;
    border-radius: 50px;
    padding: 80px 40px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
    border: 8px solid var(--primary);
}

.manga-header {
    text-align: center;
    margin-bottom: 60px;
}

.manga-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 15px;
}

.manga-grid {
    margin: 0 auto 60px;
    max-width: 800px;
}

.manga-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.concept-explanation {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 3px dashed var(--secondary);
    width: 100%;
}

.concept-explanation .text-box {
    flex: 1;
    min-width: 0;
}

.concept-explanation .icon-box {
    font-size: 4rem;
    background: var(--renewal-sky);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.concept-explanation h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.anime-avatar-box {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f0f9ff;
    padding: 20px 30px;
    border-radius: 24px;
    width: fit-content;
    max-width: 100%;
}

.anime-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    flex-shrink: 0;
}

/* 4. コース紹介 (Courses) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.course-card-modern {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.course-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--renewal-gold);
}

.course-card-modern .course-card-header {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
}

.course-card-modern .course-card-header img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.course-badge-list {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}

.c-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bg-blue { background: #3b82f6; }
.bg-pink { background: #ec4899; }
.bg-green { background: #10b981; }

.course-card-body {
    padding: 40px;
    flex: 1;
}

.course-card-body h3 {
    font-size: 1.5rem;
    color: var(--renewal-navy);
    margin-bottom: 20px;
    font-weight: 800;
}

.course-card-body p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}

/* 5. 不登校・引きこもり支援セクション */
.support-section {
    padding: 100px 0;
    background: #fff;
}

.support-box {
    display: flex;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
    padding: 60px;
    border-radius: 40px;
    border: 3px solid #fde68a;
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.15);
}

.support-content h2 {
    font-size: 2.2rem;
    color: #92400e;
    line-height: 1.4;
    margin-bottom: 30px;
}

.support-content p {
    color: #78350f;
    line-height: 1.8;
    margin-bottom: 30px;
}

.support-features {
    list-style: none;
    padding: 0;
}

.support-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #b45309;
}

.support-features li i {
    color: #fbbf24;
}

.blob-border {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    border: none !important;
}

/* 6. 合格実績・喜びの声 */
.results-section {
    padding: 100px 0;
    background: #f8fafc;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.result-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 15px;
    display: block;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--renewal-navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.result-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* 7. FAQ モダン化 */
.faq-modern {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-q-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.faq-q-trigger {
    padding: 24px 30px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--renewal-navy);
}

.faq-q-trigger span {
    color: var(--renewal-gold);
    margin-right: 15px;
    font-weight: 900;
}

.faq-a-content {
    padding: 0 30px 24px 60px;
    color: #64748b;
    line-height: 1.8;
}

/* 8. アクセス（教室案内）の視認性向上 */
.access-container {
    display: flex;
    gap: 60px;
    background: #fff;
    border-radius: 50px;
    padding: 60px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
    flex-wrap: wrap;
}

.access-info { flex: 1; min-width: 300px; }

.access-list dt { 
    font-size: 0.85rem;
    font-weight: 800; 
    color: var(--renewal-gold); 
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.access-list dd { 
    margin-bottom: 45px; /* 上下をゆったり広げる */
    color: var(--renewal-navy); 
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.6; 
}

/* 最後の子要素の余白を調整 */
.access-list dd:last-child {
    margin-bottom: 0;
}

.access-map { flex: 1.5; min-width: 350px; border-radius: 30px; overflow: hidden; height: 400px; }
.access-map iframe { width: 100%; height: 100%; border: none; }

/* その他調整 */
@media (max-width: 768px) {
    .support-box { flex-direction: column; padding: 40px 25px; }
    .concept-explanation {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .anime-avatar-box {
        flex-direction: column;
        text-align: center;
        margin: 20px auto 0;
    }
}
/* 6. 入塾フロー (Entrance Flow) */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.flow-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.flow-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08); 
    border-color: var(--renewal-gold);
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--renewal-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: -70px auto 25px;
    border: 6px solid #f8fafc;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.flow-card h3 {
    font-size: 1.35rem;
    color: var(--renewal-navy);
    margin-bottom: 15px;
    font-weight: 800;
}

.flow-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
}

@media (max-width: 768px) {
    .flow-grid {
        gap: 80px; /* スマホでは番号が飛び出す分、余白を広げる */
        margin-top: 80px;
    }
}
