/* ジョモ カスタムCSS */

/* ナビゲーション ドロップダウン */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

.nav-dropdown-menu {
    animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* レッスンコンテンツ */
.lesson-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}

.lesson-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.lesson-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.lesson-content ul { list-style-type: disc; }
.lesson-content ol { list-style-type: decimal; }

.lesson-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
    color: #4b5563;
}

.lesson-content strong {
    color: #1f2937;
    font-weight: 600;
}

.lesson-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.lesson-content th,
.lesson-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.lesson-content th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* ガイド・ケース記事 */
.guide-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff;
}

.guide-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.guide-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.guide-content ul { list-style-type: disc; }
.guide-content ol { list-style-type: decimal; }

.guide-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
    color: #4b5563;
}

/* インサイトボックス */
.insight-box {
    background: #eef2ff;
    border-left: 4px solid #6366f1;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.insight-box p {
    color: #3730a3;
    margin-bottom: 0;
}

/* 例題ボックス */
.example-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* 警告ボックス */
.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* 目次 */
.toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #374151;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* フラッシュカード */
.flashcard {
    perspective: 1000px;
    min-height: 200px;
}

.flashcard-inner {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.flashcard-inner.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    backface-visibility: hidden;
}

.flashcard-back {
    transform: rotateY(180deg);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
