/* ==========================================================================
   ページ固有スタイル - 中学受験サイト（CodeCampKIDS風リデザイン）
   ========================================================================== */

/* カードスタイル */
.card {
    background-color: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
    transform: translateY(-8px);
    border-color: var(--main-color);
}

.card h3 {
    margin-top: 0;
    color: var(--main-color);
    font-size: 1.4rem;
}

/* セクションスタイル */
.section {
    padding: 80px 0;
}

.section-light {
    background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg,
 color-mix(in srgb, var(--main-color) 60%, transparent),
 color-mix(in srgb, var(--sub-color) 60%, transparent));
    width: 62%;
    text-align: center;
    margin: 0 auto;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* 強調ボックス */
.highlight-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(92, 184, 92, 0.08));
    border-left: 5px solid var(--main-color);
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.highlight-box.success {
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.08), rgba(72, 187, 120, 0.08));
    border-left-color: var(--sub-color);
}

.highlight-box.warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 107, 107, 0.08));
    border-left-color: var(--accent-color);
}

/* リストスタイル */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 1.05rem;
}

.styled-list li::before {
    content: "✓";
    color: var(--sub-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* テーブルスタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

th {
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

tr:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

/* アイコン付きボックス */
.icon-box {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.15);
}

.icon-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.icon-box-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-primary {
    background: linear-gradient(135deg, var(--main-color), #5BA3F5);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--sub-color), #72C672);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--accent-color), #FFB74D);
    color: white;
}

/* アコーディオン */
.accordion {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-gray);
}

.accordion-header {
    padding: 10px 15px;
    background-color: var(--light-gray);
    cursor: pointer;
    font-weight: 700;
    color: var(--main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(92, 184, 92, 0.1));
}

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

.accordion.active .accordion-content {
    padding: 25px;
    max-height: 1000px;
}

.accordion.active .accordion-header {
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
}

/* ステップ表示 */
.steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin: 50px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color), var(--sub-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.step-content h3 {
    margin-top: 5px;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
    color:#000;
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-section h2::after {
    background: white;
}

.cta-section .btn {
    background: white;
    color: var(--main-color);
    font-size: 1.1rem;
    padding: 18px 50px;
}

.cta-section .btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--main-color);
    font-weight: 600;
}

.breadcrumb span {
    color: var(--text-color);
}

/* 特徴カード（3つ） */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 2%;
}

.feature-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 0;
    height: auto;
    min-height: 400px;
    overflow: hidden;
    border: 3px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(92, 184, 92, 0.05));
    z-index: -1;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    border-color: var(--main-color);
}

.feature-card:hover::before {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(92, 184, 92, 0.1));
}

.feature-card:nth-child(2):hover {
    border-color: var(--sub-color);
}

.feature-card:nth-child(3):hover {
    border-color: var(--accent-color);
}

.feature-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

.feature-card h3,
.feature-card p,
.feature-icon {
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

.feature-icon {
    font-size: 3.5rem;
    margin: 30px 0 20px 0;
    display: block;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--main-color);
    font-weight: 700;
}

.feature-card p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* お悩みセクション */
.concerns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.concern-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border-left: 6px solid var(--main-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.concern-card:hover {
    border-left-color: var(--sub-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(92, 184, 92, 0.05));
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
}

.concern-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.concern-card h4::before {
    content: "◎";
    font-size: 1.4rem;
}

/* 7つのテーマセクション */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.theme-card {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.theme-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 35px rgba(74, 144, 226, 0.2);
    transform: translateY(-8px);
}

.theme-card-header {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.theme-card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--sub-color);
}

.theme-card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.theme-card-body {
    padding: 35px 30px;
}

.theme-card-body p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.theme-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-card-body li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
}

.theme-card-body li::before {
    content: "▶";
    color: var(--sub-color);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* セクションヘッダー */
.section-header {
    text-align: left;
    margin: 3% 2% 2% 2%;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--main-color);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--main-color);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-header p {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* 7分割横スクロール */
.features-grid7 {
    display: flex;
    gap: 25px;
    margin: 2% 2% 0 2%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 20px;
}

.features-grid7::-webkit-scrollbar {
    height: 10px;
}

.features-grid7::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.features-grid7::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--main-color), var(--sub-color));
    border-radius: 10px;
}

.feature-card7 {
    flex-shrink: 0;
    scroll-snap-align: start;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card7:hover {
    transform: scale(1.1);
}

.feature-card7 img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.feature-card7:hover img {
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.5);
    border-color: var(--main-color);
}

.feature-card7 h3 {
    font-size: 1rem;
    margin-top: 12px;
    color: var(--main-color);
    font-weight: 700;
}

.feature-card7 p {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .features-grid,
    .concerns-grid,
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding: 60px 20px;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .steps {
        gap: 25px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .cta-section {
        padding: 50px 25px;
        border-radius: 15px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 12px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .feature-card {
        min-height: 350px;
    }

    .grid, .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
        border-radius: 12px;
    }

    .section {
        padding: 50px 0;
    }

    .icon-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .icon-box-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .feature-card7 img {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}