/* 1. 基本設定と変数定義
----------------------------------*/
:root {
    --primary-color: #12223E;
    --text-color-light: #ffffff;
    --text-color-subtle: #9fa5ac;
}

body {
    font-family: "minion-pro", "hiragino-mincho-pron", serif;
    font-weight: 330;
    color: var(--primary-color);
    background-color: var(--text-color-light);
    line-height: 1.7;
}

body.lang-en main#content-container,
body.lang-en header nav {
    font-size: 107%;
}

/* 2. 全体的な要素のスタイル
----------------------------------*/
a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}
a:hover {
    color: var(--primary-color);
    text-decoration-thickness: 2px;
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
h1 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
ul {
    padding-left: 0;
    list-style: none;
}
li { margin-bottom: 0.5rem; }

/* 3. ヘッダーとナビゲーション
----------------------------------*/
header {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 0rem;
}
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}
.logo-img {
    height: 8vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 15px;
}
.lang-switcher a {
    text-decoration: none;
    color: #9fa5ac;
    font-weight: normal;
}
.lang-switcher a.active-lang {
    color: #12223E;
    text-decoration: none;
}
.menuButton p { margin-bottom: 0; }
.menuButton.active p {
    font-weight: normal;
    color: #12223E;
}
a.no-underline { text-decoration: none !important; }

/* 4. レスポンシブなインデント用クラス
----------------------------------*/
@media (min-width: 768px) {
    .content-body-indent {
        margin-left: 80px;
    }
}
@media (min-width: 1024px) {
    .content-body-indent {
        margin-left: 160px;
    }
}

/* 5. メインコンテンツとMarkdown要素
----------------------------------*/
main#content-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 60vh;
}
#content-container h1, 
#content-container h2 {
    padding-bottom: .5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
#content-container table {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#content-container td {
    padding-left: 0;
}
/* 6. 独自のユーティリティクラス
----------------------------------*/
.text-sub { color: var(--text-color-subtle); }

/* 7. aboutページのセクション間の余白
----------------------------------*/
.about-section {
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .table-layout-fixed-ja td:first-child {
        width: 15em;
    }
    .table-layout-fixed-ja td:last-child {
        width: 8em;
    }

    .table-layout-fixed-en td:first-child {
        width: 12em;
    }
    .table-layout-fixed-en td:last-child {
        width: 10em;
    }
}

/* 8. Researchページのレイアウト用スタイル
----------------------------------*/
.research-article {
    margin-bottom: 4rem;
}
.research-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    height: 100%;
}
.research-text-block h1 {
    margin-top: 0;
    text-align: right;
}

/* 9. BibTeX表示用のカスタムスタイル
----------------------------------*/
.bib-article {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.bib-article cite {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1em;
    font-style: normal;
}
.bib-article a { text-decoration: none; }
.bib-article a:hover cite { text-decoration: underline; }
.bib-article div {
    color: var(--text-color-subtle);
    font-size: 0.9em;
}

/* 10. Contactページの新しいカードスタイル
----------------------------------*/
.contact-card-v2 {
    border: 1px solid var(--primary-color);
    padding: 1.5rem;
    position: relative;
    aspect-ratio: 1.618 / 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.contact-card-v2:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.contact-card-v2:hover .text-sub,
.contact-card-v2:hover address {
    color: #9fa5ac;
}
.contact-card-v2 .card-title {
    font-size: 1.25rem;
    font-weight: 500;
}
.contact-card-v2 address {
    font-size: 0.875rem;
    font-style: normal;
}
.contact-card-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2em;
    height: 2em;
}





