﻿/* =====================================
   LLA Home ページ
   ===================================== */

.lla-home {
    min-height: 100vh;
    padding: 36px 5%;
    box-sizing: border-box;
    color: #173451;
    background-color: #f7f0e2;
    font-family: Georgia, "Times New Roman", serif;
}

/* メインビジュアル */
.lla-home-hero {
    position: relative;
    padding: 48px 24px 42px;
    text-align: center;
    background-color: #fbf6eb;
    border: 3px double #c6a15e;
    outline: 1px solid #c6a15e;
    outline-offset: 5px;
}

/* 上部の装飾 */
.lla-home-ornament {
    margin-bottom: 20px;
    color: #b38a45;
    letter-spacing: 4px;
}

/* 英語の小見出し */
.lla-home-eyebrow {
    margin-bottom: 8px;
    color: #8c6b32;
    font-size: 0.85rem;
    letter-spacing: 4px;
}

/* LLAタイトル */
.lla-home-title {
    margin: 0;
/*    color: #102b49;*/
    color: midnightblue;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: normal;
    letter-spacing: 12px;
}

/* 日本語タイトル */
.lla-home-subtitle {
    margin-top: 12px;
    color: #173451;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: normal;
}

/* タイトル下の装飾 */
.lla-home-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 28px auto;
    color: #b38a45;
    font-size: 1.7rem;
}

.lla-home-divider::before,
.lla-home-divider::after {
    width: 90px;
    content: "";
    border-top: 1px solid #c6a15e;
}

/* 説明文 */
.lla-home-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #35485c;
    font-family: "Yu Mincho", "Hiragino Mincho ProN",
                 "Noto Serif JP", serif;
    font-size: 1.5rem;
    line-height: 2;
}

/* 格言 */
.lla-home-motto {
    margin: 28px 0 4px;
    color: #9a7435;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
}

.lla-home-motto-translation {
    margin: 0;
    color: #6d6a60;
    font-size: 0.9rem;
}

/* 学習メニュー */
.lla-home-learning {
    max-width: 1000px;
    margin: 56px auto 0;
}

.lla-home-section-title {
    margin-bottom: 10px;
    text-align: center;
    color: #102b49;
    font-size: 1.8rem;
    font-weight: normal;
}

.lla-home-section-description {
    margin-bottom: 28px;
    text-align: center;
    color: #6d6a60;
    font-family: "Yu Mincho", "Hiragino Mincho ProN",
                 "Noto Serif JP", serif;
}

/* カード一覧 */
.lla-home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* 学習カード */
.lla-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 30px 24px;
    color: #173451;
    text-align: center;
    text-decoration: none;
    background-color: #fbf6eb;
    border: 1px solid #c6a15e;
    outline: 1px solid #e0cda8;
    outline-offset: -6px;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.lla-home-card:hover {
    color: #102b49;
    background-color: #f0e1c4;
    transform: translateY(-3px);
}

/* カード内の装飾 */
.lla-home-card-icon {
    margin-bottom: 12px;
    color: #b38a45;
    font-size: 2.8rem;
}

.lla-home-card h3 {
    margin-bottom: 6px;
    color: #102b49;
    font-size: 1.5rem;
    font-weight: normal;
}

.lla-home-card-japanese {
    margin-bottom: 16px;
    color: #8c6b32;
    font-size: 1rem;
}

.lla-home-card-description {
    max-width: 360px;
    margin-bottom: 24px;
    color: #35485c;
    font-family: "Yu Mincho", "Hiragino Mincho ProN",
                 "Noto Serif JP", serif;
    line-height: 1.9;
}

/* カード下部のリンク風表示 */
.lla-home-card-link {
    margin-top: auto;
    padding-bottom: 5px;
    color: #8c6b32;
    border-bottom: 1px solid #c6a15e;
}

/* ページ下部 */
.lla-home-footer {
    margin: 48px auto 0;
    text-align: center;
    color: #9a7435;
}

.lla-home-footer-ornament {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.lla-home-footer > p:first-of-type {
    margin-bottom: 4px;
    font-size: 1.15rem;
    font-style: italic;
}

.lla-home-footer-translation {
    color: #6d6a60;
    font-family: "Yu Mincho", "Hiragino Mincho ProN",
                 "Noto Serif JP", serif;
    font-size: 0.85rem;
}

/* タブレット・スマートフォン */
@media (max-width: 640px) {
    .lla-home {
        padding: 24px 16px;
    }

    .lla-home-hero {
        padding: 32px 16px;
    }

    .lla-home-title {
        letter-spacing: 6px;
    }

    .lla-home-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lla-home-learning {
        margin-top: 42px;
    }

    .lla-home-card {
        padding: 28px 20px;
    }
}

/* =====================================
   LLA クラシカル・サイドバー
   ===================================== */

.page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* 左メニューの外枠 */
.page > .sidebar {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    min-height: 100vh;
    padding: 0;
    background-color: #102b49;
    border-right: 3px double #c6a15e;
    box-sizing: border-box;
}

/* サイドバー本体 */
.lla-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px 10px;
    background-color: #102b49;
    color: #f5e7ca;
    font-family: Georgia, "Times New Roman", serif;
    box-sizing: border-box;
}

/* タイトル */
.lla-sidebar-brand {
    padding: 12px 4px 24px;
    text-align: center;
}

.lla-sidebar-logo {
    color: #e8c783;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 5px;
}

.lla-sidebar-subtitle {
    color: #f5e7ca;
    font-size: 0.85rem;
}

.lla-sidebar-line {
    width: 85%;
    margin: 18px auto 0;
    border-bottom: 1px solid #c6a15e;
}

/* メニュー一覧 */
.lla-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* メニュー項目 */
.lla-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 14px;
    color: #f5e7ca;
    text-decoration: none;
    font-size: 1.1rem;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
}

/* アイコン */
.lla-menu-icon {
    width: 30px;
    text-align: center;
    font-size: 1.5rem;
    color: #e8c783;
}

/* マウスを乗せたとき */
.lla-menu-item:hover {
    background-color: #1b3b5b;
    color: #ffffff;
    border-top-color: #8d754d;
    border-bottom-color: #8d754d;
}

/* 選択中のメニュー */
.lla-menu-item.active {
    background-color: #f0d9ad;
    color: #173451;
    font-weight: bold;
    border-top-color: #c6a15e;
    border-bottom-color: #c6a15e;
}

/* 選択中のアイコン */
.lla-menu-item.active .lla-menu-icon {
    color: #173451;
}

/* 下部のラテン語 */
.lla-sidebar-footer {
    margin-top: auto;
    padding: 28px 4px 24px;
    text-align: center;
    color: #e8c783;
    font-size: 1.15rem;
    line-height: 1.6;
    letter-spacing: 2px;
}

.lla-footer-decoration {
    margin-top: 16px;
    font-size: 0.9rem;
    letter-spacing: 0;
}

/* 右側の本文 */
.page > main {
    flex: 1;
    min-width: 0;
}

/* スマートフォンでは縦配置 */
@media (max-width: 640px) {
    .page {
        flex-direction: column;
    }

    .page > .sidebar {
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: auto;
        border-right: none;
        border-bottom: 3px double #c6a15e;
    }

    .lla-sidebar {
        min-height: auto;
    }

    .lla-sidebar-brand {
        padding-bottom: 12px;
    }

    .lla-sidebar-logo {
        font-size: 2rem;
    }

    .lla-sidebar-footer {
        display: none;
    }
    


}
