/* カスタムスタイル */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #f8f9fa;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* ヒーローセクションを画面全幅にする */
body .hero-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(45deg, #ee5a24, #d63031);
}

.hero-buttons .btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: #667eea;
}

.hero-feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.hero-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffeaa7;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

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

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
}

/* 統計カード */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.stats-card .card-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stats-card .display-4 {
    font-weight: bold;
    margin-bottom: 0;
}

/* 問題表示エリア */
.question-container {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.question-text {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.question-input {
    max-width: 300px;
    margin: 0 auto;
}

.question-input input {
    font-size: 1.5rem;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 1rem;
}

.question-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* 進捗バー */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* タイマー */
.timer {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 結果表示 */
.result-correct {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0;
}

.result-incorrect {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* チャート */
.chart-container {
    position: relative;
    height: 300px;
    margin: 2rem 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .question-text {
        font-size: 2rem;
    }
    
    .question-input input {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* ヒーローセクションのレスポンシブ */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        margin: 0.25rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-feature-card {
        margin-bottom: 1rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* 学習セッション */
.session-info {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.session-info h5 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.session-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.session-stats div {
    flex: 1;
}

.session-stats .number {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.session-stats .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ホバーエフェクト */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ボタングループ */
.btn-group-custom {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-group-custom .btn {
    flex: 1;
    min-width: 120px;
}

/* テーブル */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-custom th {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.table-custom td {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

/* フォーム */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.15);
}

/* アイコン */
.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
} 