@charset "utf-8";
/* 塾についてページ専用スタイル (about.php) */

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

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

.about-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);
}

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

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

/* 代表メッセージスタイル */
.message-section {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 50px 40px;
    position: relative;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.message-section::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 120px;
    color: rgba(26, 58, 125, 0.1);
    font-family: 'Georgia', serif;
    line-height: 1;
}

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

.message-text {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--dark-text);
    text-align: center;
    font-weight: 500;
}

.signature {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 10px;
}

.signature::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-yellow);
}

/* ジャスト式学習法セクション */
.learning-method {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.learning-method img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ジャストの魅力セクション */
.features-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
}

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

.feature-icon img {
    width: 35px;
    height: 35px;
}

.feature-title {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 2px dashed rgba(26, 58, 125, 0.1);
}

.feature-description {
    color: var(--medium-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA セクション */
.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;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
}

.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);
}

/* アニメーションクラス */
.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) {
    .about-hero h1 { font-size: 2.2rem; }
    .about-hero p { font-size: 1.1rem; }
    .message-text { font-size: 1.1rem; }
    .section-title, .features-title { font-size: 1.8rem; }
}

@media screen and (max-width: 768px) {
    .about-hero { padding: 60px 20px; }
    .message-section { padding: 40px 30px; }
    .learning-method { padding: 30px; }
    .feature-card { padding: 25px; }
    .cta-heading { font-size: 1.8rem; }
}

@media screen and (max-width: 576px) {
    .about-hero h1 { font-size: 1.8rem; }
    .about-hero p { font-size: 1rem; }
    .message-text { font-size: 1rem; line-height: 1.8; }
    .message-section::before { font-size: 80px; }
    .signature { font-size: 1.1rem; }
    .feature-title { font-size: 1.2rem; }
}
