/* マナボート スタイルシート - manathinka.jpテイスト */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #CDEEDF;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #2A9B6B;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

/* ナビゲーション */
.nav {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav ul {
    list-style: none;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav li {
    margin-right: 20px;
}

.nav a {
    color: #2A9B6B;
    text-decoration: none;
    display: block;
    padding: 15px 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover {
    color: #1a7a4f;
    transform: translateY(-2px);
}

/* サイドメニュー */
.admin-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(42, 155, 107, 0.15);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 20px;
    color: #2A9B6B;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
    background: linear-gradient(135deg, #2A9B6B 0%, #1a7a4f 100%);
    color: white;
    transform: translateX(5px);
}

.main-content {
    flex: 1;
}

/* カード */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(42, 155, 107, 0.15);
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(42, 155, 107, 0.2);
}

.card h2 {
    margin-bottom: 25px;
    color: #2A9B6B;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.card h3 {
    margin: 25px 0 15px;
    color: #555;
    font-size: 18px;
    font-weight: 600;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #1F9462;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 148, 98, 0.3);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 148, 98, 0.4);
}

.btn-fixed:hover {
    transform: none !important;
}

.no-hover:hover {
    transform: none !important;
}

.btn-secondary {
    background: #95a5a6;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

/* フォーム */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2A9B6B;
    box-shadow: 0 0 0 3px rgba(42, 155, 107, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

table th {
    background: #007A51;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

table tr {
    transition: background-color 0.2s ease;
}

table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

table tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

table tr:hover {
    background-color: #f8f9ff;
}

table tr:last-child td {
    border-bottom: none;
}

/* ダッシュボード */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.course-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(42, 155, 107, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 155, 107, 0.2);
    border-color: #2A9B6B;
}

.course-card h3 {
    margin-bottom: 15px;
    color: #2A9B6B;
    font-size: 18px;
    font-weight: 600;
}

.course-card .info {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.course-card .status {
    display: block;
    width: calc(100% + 50px);
    margin: -25px -25px 20px -25px;
    padding: 12px 20px;
    border-radius: 15px 15px 0 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.status.completed {
    background: none;
    color: #007A51;
}

/* 管理画面用のステータス表示 */
.status.pending {
    background: none;
    color: #919191;
}

.status.passed {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.status.failed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* 社員向けダッシュボードのコースカード用ステータス表示 */
.course-card .status.pending {
    background: #626262;
    color: white;
}

.course-card .status.passed {
    background: #038D5F;
    color: white;
}

.course-card .status.failed {
    background: #c44444;
    color: white;
}

/* 動画プレーヤー */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* 問題 */
.question {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(42, 155, 107, 0.1);
}

.question h3 {
    margin-bottom: 20px;
    color: #2A9B6B;
    font-size: 20px;
    font-weight: 600;
}

.question-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.choices {
    margin-top: 20px;
}

.choice {
    margin: 12px 0;
    padding: 15px 20px;
    background: #f8f9ff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    border: 2px solid transparent;
}

.choice:hover {
    background: linear-gradient(135deg, rgba(42, 155, 107, 0.1) 0%, rgba(26, 122, 79, 0.1) 100%);
    border-color: #2A9B6B;
    transform: translateX(5px);
}

.choice input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.choice.correct {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(34, 153, 84, 0.1) 100%);
    border: 2px solid #27ae60;
}

.choice.incorrect {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border: 2px solid #e74c3c;
}

/* 解説 */
.explanation {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(42, 155, 107, 0.05) 0%, rgba(26, 122, 79, 0.05) 100%);
    border-left: 4px solid #2A9B6B;
    border-radius: 8px;
    color: #555;
    line-height: 1.8;
}

.explanation strong {
    color: #2A9B6B;
    display: block;
    margin-bottom: 8px;
}

/* アラート */
.alert {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(34, 153, 84, 0.1) 100%);
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.alert-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background: linear-gradient(135deg, rgba(42, 155, 107, 0.1) 0%, rgba(26, 122, 79, 0.1) 100%);
    color: #2A9B6B;
    border-left: 4px solid #2A9B6B;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
    color: #f39c12;
    border-left: 4px solid #f39c12;
}

/* ログインページ */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 45px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(42, 155, 107, 0.2);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 35px;
    color: #2A9B6B;
    font-size: 28px;
    font-weight: 600;
}

/* フッター */
.footer {
    background: rgba(255, 255, 255, 0.95);
    color: #555;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #389461;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ユーティリティ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .header h1 {
        font-size: 18px;
    }

    .login-container {
        margin: 50px auto;
        padding: 30px;
    }
}

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

.card,
.course-card {
    animation: fadeIn 0.5s ease;
}
