@charset "utf-8";
/* 入塾までの流れページ専用スタイル (flow.php) */

/* カラーパレット定義 */
:root {
  --primary-blue: #1A3A7D;
  --secondary-blue: #284e9e;
  --accent-yellow: #FFC107;
  --light-gray: #f5f7fa;
  --dark-text: #333333;
  --medium-text: #555555;
  --light-text: #FFFFFF;
}

.flow-hero {
    background: linear-gradient(135deg, rgba(26, 58, 125, 0.9), rgba(40, 78, 158, 0.85)), url('../img/hero-classroom.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.flow-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    color: var(--light-text);
}

.flow-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--light-text);
}

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

.flow-steps {
    position: relative;
    z-index: 1;
}

.flow-step {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.flow-step:last-child { margin-bottom: 0; }

.flow-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--primary-blue);
    border-radius: 4px 0 0 4px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.step-content { padding-left: 30px; }

.step-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-title h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.step-title .step-icon {
    margin-right: 20px;
    background: rgba(26, 58, 125, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-title .step-icon img {
    width: 30px;
    height: 30px;
}

.step-description {
    color: var(--dark-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.step-description p { margin-bottom: 15px; }
.step-description p:last-child { margin-bottom: 0; }

.step-image {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.step-image:hover img { transform: scale(1.03); }

.flow-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
    background: rgba(26, 58, 125, 0.2);
    z-index: -1;
}

.flow-special-note {
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    border-left: 5px solid var(--primary-blue);
}

.flow-special-note h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.flow-special-note p { color: var(--dark-text); }

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--light-text);
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content { position: relative; z-index: 1; }

.cta-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    color: var(--light-text);
}

.cta-button {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: var(--light-text);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    background: rgba(26, 58, 125, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.benefit-icon img { width: 40px; height: 40px; }

.benefit-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.benefit-card p { color: var(--medium-text); }

/* アニメーションクラス */
.fadeUp {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate__fadeInUp {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media screen and (max-width: 968px) {
    .flow-hero h1 { font-size: 2.2rem; }
    .flow-hero p { font-size: 1.1rem; }
    .step-title h2 { font-size: 1.5rem; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .flow-hero { padding: 60px 20px; }
    .flow-step { padding: 30px; }
    .step-number { width: 60px; height: 60px; font-size: 1.5rem; }
    .step-title .step-icon { width: 50px; height: 50px; }
    .cta-heading { font-size: 1.8rem; }
}

@media screen and (max-width: 576px) {
    .flow-hero h1 { font-size: 1.8rem; }
    .flow-hero p { font-size: 1rem; }
    .step-title { flex-direction: column; align-items: flex-start; }
    .step-title .step-icon { margin-bottom: 15px; }
    .benefit-grid { grid-template-columns: 1fr; }
}
