/* html, body の基本設定 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 全体を包む wrapper */
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* 共通コンテナ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダー全体 */
.site-header {
    background-color: var(--primary-color, #007bff);
    color: #fff;
    padding: 20px 0;
}

/* ヘッダーコンテナ：左右に分割、最低高さを設定 */
.header-container {
    display: flex;
    justify-content: space-between;
    min-height: 100px;  /* ヘッダー全体の高さを確保 */
}

/* 左側：サイトタイトルブロック（中央寄せ） */
.site-title-block {
    flex: 1;
    display: flex;
    align-items: center;  /* 変更：flex-start → center */
}
.site-title-block .navbar-brand {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

/* 右側：メニューと語彙選択を横並びに、下寄せ */
.header-right {
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* 下寄せ */
    gap: 30px;           /* メニューと語彙選択の間にスペース */
    text-align: right;
}

/* メニュー部分 */
.site-nav {
    margin-bottom: 0;
}
.site-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}
.site-menu li {
    display: inline-block;
    margin-left: 15px;
}
.site-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.site-menu li a:hover {
    text-decoration: underline;
}

/* 言語セレクター */
.language-selector select {
    padding: 5px 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* メインコンテンツ */
.site-main {
    flex: 1;
    padding: 40px 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* フッター全体 */
.site-footer {
    background-color: #343a40;
    color: #ccc;
    padding: 10px 0;  /* 余白をスリムに */
    font-size: 0.8rem;
}

/* footer-row：左右のグループを同じ行に配置 */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 左側グループ：サイト名とコピーライト（縦方向に配置、左寄せ） */
.footer-left {
    display: flex;
    flex-direction: column;
    /* 必要に応じて最小高さを設定（例：80px） */
    min-height: 42px;
}
.footer-site-name {
    margin: 0;
    font-size: 1.2rem;
    /* line-height: 1.2; */
}
.footer-left p {
    margin: 0;
    margin-top: auto; /* コピーライトを下部に配置 */
    font-size: 0.7rem;
    /* line-height: 1.2; */
    /* 必要に応じて追加の余白を設定 */
    padding-top: 10px;
}

/* 右側グループ：Links（左寄せのリンク集） */
.footer-right {
    text-align: left;
}
.footer-links-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
}
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-links li {
    display: inline-block;
    margin-right: 15px;
}
.footer-link,
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
    color: #ccc !important;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-right {
        flex-direction: column;
        align-items: center;
    }
    .site-menu li {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}
