/* ===========================
   Edutex Camp 共通スタイル
   =========================== */

/* ===========================
   スクロールアニメーション
   =========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延アニメーション（複数要素がある場合） */
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===========================
   CSS変数
   =========================== */
:root {
    /* カラーパレット */
    --primary-blue: #0d3b5d;
    --secondary-teal: #00A896;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-primary: #0d3b5d;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* フォント */
    --font-heading: 'BIZ UDPGothic', sans-serif;
    --font-body: 'BIZ UDPGothic', sans-serif;
}

/* ===========================
   リセット
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===========================
   ヘッダー
   =========================== */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary-teal);
}

/* お問い合わせボタン */
.nav-cta-button {
    background: var(--secondary-teal);
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 168, 150, 0.2);
}

.nav-cta-button:hover {
    background: #009688;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.3);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* メールリンク */
.email-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--secondary-teal);
}

/* ===========================
   フッター
   =========================== */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-teal);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===========================
   ページヘッダー（サブページ共通）
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a2940 100%);
    color: white;
    padding: 120px 20px 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   MVVセクション（共通）
   =========================== */
.en-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #00A896;
    background: #E6F7F5;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mvv-vertical {
    max-width: 900px;
    margin: 0 auto;
}

.mvv-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.mvv-item:last-child {
    margin-bottom: 0;
}

.mvv-item .en-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.mvv-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A896;
    margin-bottom: 20px;
}

.mvv-item-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 500;
}

.mvv-item-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8f4f3;
    opacity: 0.85;
}

/* Values内部の3カラムグリッド */
.values-inner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
}

.value-keyword {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.value-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.value-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 12px;
    opacity: 0.9;
}

/* ===========================
   レスポンシブ（共通）
   =========================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav li {
        width: 100%;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .nav a {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
    }
    
    .nav-cta-button {
        margin-top: 10px;
        text-align: center;
        border-radius: 8px;
    }
    
    .page-header {
        padding: 120px 20px 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* MVVレスポンシブ */
    .mvv-vertical {
        max-width: 100%;
    }
    
    .mvv-item {
        padding: 30px 25px;
        margin-bottom: 25px;
    }
    
    .values-inner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
