/*
Theme Name: MOC2027
Theme URI: 
Author: 
Author URI: 
Description: WordPress theme for MOC2027 conference.
Version: 1.0
*/

body {
    font-family: 'Noto Sans JP', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Barlow', sans-serif;
}

.navbar {
    background-color: #2a598c;
    /* Main color */
}

.navbar-toggler {
    border-color: #fff;
}

ul {
    padding-left: 0;
}

ul li {
    list-style: none;
}

/* top image */
.top-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ccc;
    width: 100%;
}

.top-placeholder {
    aspect-ratio: 1920 / 400;
    height: auto;
    object-fit: cover;
}

/* header */

header {
    background-color: #2a598c;
    /* Main color */
    color: #fff;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

.header-container h1 {
    font-size: 7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-right: 40px;
    line-height: 1;
    margin-bottom: 0;
}

.header-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
}

.header-container .header-title-box p {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.header-org-info {
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
}

/* menu */
.menu-container {
    background-color: #82a9c3;
    /* Sub color */
    color: #fff;
    margin-bottom: 20px;
}

.menu-container a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    font-weight: 600;
    transition: 0.3s;
}

.menu-container li:last-child a {
    border-bottom: none;
}

.menu-container a:hover {
    background-color: #2a598c;
}

.main-container {
    padding: 0 20px;
}

/* main-content */

.content-section {
    margin-bottom: 30px;
}

.content-section h2,
.content-section h3 {
    border-bottom: 2px solid #2a598c;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-section h2 span,
.content-section h3 span {
    color: #2a598c;
    /* Main color */
    font-weight: 600;
}

.home-soponsor-box {
    margin-bottom: 20px;
}

.home-soponsor-box p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sponsor-logo {
    max-width: 100px;
    height: auto;
    margin-top: 10px;
}

/* News */

.news-box {
    padding: 15px;
    border: 1px solid #ccc;
    height: 120px;
    overflow-y: auto;
}

.news-box dl {
    margin-bottom: 10px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.news-box dt {
    font-size: 1rem;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
}

.news-box dt p {
    margin-bottom: 0;
}

.news-box dd p {
    margin-bottom: 0;
    font-weight: bold;
}

/* right sidebar images */
.right-sidebar .placeholder-img,
.right-sidebar img {
    width: 100%;
    max-width: 220px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 5px;
}

.right-sidebar img {
    display: block;
}


/* Under-container */

.content-section {
    margin-bottom: 15px;
}

.under-contents-title {
    border-bottom: solid 1px #000;
    /* 二重線の上の線になる一本線をひく */
    margin-bottom: 2px;
    /* 二重線の下の線の位置を確保する */
    position: relative;
    /* 外側の線の位置を調整する時の基準点になるようにする    */
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.under-contents-title::before {
    content: '';
    /* 擬似要素に実体を持たせる */
    width: 100%;
    /* 二重線の下の線になる要素の幅を指定する */
    height: 1px;
    /* 線を表示させるために1pxだけ高さを入れる */
    border-bottom: solid 1px;
    /* 二重線の下の線になる一本線の枠線をひく*/
    position: absolute;
    /* 二重線の下の線の位置を自由に動かせるようにする */
    left: 0px;
    /* 二重線の下の線の位置を、内側の線の左に揃える */
    bottom: -4px;
    /* 二重線の下の線の位置を、内側の線から下に-2pxずらす */
}

.under-contents-title span {
    color: #2a598c;
    font-weight: 600;
}

.under-contents-section {
    margin-bottom: 20px;
}

.under-contents-section h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    font-weight: 500;
    font-size: 1.8rem;
}

.under-contents-section h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    font-weight: 500;
    font-size: 1.5rem;
}


.under-contents-section h4 {
    font-weight: 500;
    font-size: 1.2rem;
}

/* committee */
.committee-member p {
    font-size: 0.9rem;
}

.committee-member p span {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
}

.committee-member img {
    max-width: 200px;
}

.members-container {
    margin: 0 0 16px 0;
}

.members-container dl.committee-member,
.ta-members-container dl.committee-member,
.la-members-container dl.committee-member {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

.committee-member dt {
    display: block;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    margin:0;
    width: 45%;
}

.committee-member dd {
    display: block;
    box-sizing: border-box;
    font-size: 0.9em;
    margin:0;
    padding-top: .4em;
}

@media screen and (max-width:820px) {
    .members-container dl.committee-member,
    .ta-members-container dl.committee-member,
    .la-members-container dl.committee-member {
        display: block;
    }
    .committee-member dt {
        width: 100%;
        margin-bottom: -0.4em;
    }
    .committee-member dd {
        width: 100%;
        padding-top: 0;
    }
}


/* footer */
footer {
    background-color: #2a598c;
    /* Main color */
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fotter-title {
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0;
    line-height: 1;
}

.fotter-info {
    border-left: 2px solid #fff;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.fotter-info p {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .top-placeholder {
        aspect-ratio: 2 / 1;
        /* Taller image on mobile */
    }

    .header-container h1 {
        font-size: 2.5rem;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .header-container h2 {
        font-size: 1.1rem;
    }

    .header-container .header-title-box p {
        font-size: 0.85rem;
    }

    .header-org-info {
        font-size: 0.75rem;
        margin-top: 10px;
    }

    .header-container .d-lg-flex {
        flex-direction: column;
        text-align: center;
    }

    .fotter-info {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
    }

    .right-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .right-sidebar img {
        margin: 0;
        height: 150px;
        max-width: none;
    }
}

/* Custom Hamburger Menu */
.custom-mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a598c;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
    /* Above overlay */
}

.mobile-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
}

.hamburger-btn {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-btn span:nth-child(1) {
    top: 0px;
}

.hamburger-btn span:nth-child(2) {
    top: 10px;
}

.hamburger-btn span:nth-child(3) {
    top: 20px;
}

.hamburger-btn.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-btn.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(42, 89, 140, 0.95);
    /* Main color with opacity */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-nav ul {
    text-align: center;
    padding: 0;
}

.overlay-nav ul li {
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.overlay-menu.active .overlay-nav ul li {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for menu items */
.overlay-menu.active .overlay-nav ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(2) {
    transition-delay: 0.15s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(3) {
    transition-delay: 0.2s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(4) {
    transition-delay: 0.25s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(5) {
    transition-delay: 0.3s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(6) {
    transition-delay: 0.35s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(7) {
    transition-delay: 0.4s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(8) {
    transition-delay: 0.45s;
}

.overlay-menu.active .overlay-nav ul li:nth-child(9) {
    transition-delay: 0.5s;
}

.overlay-nav ul li a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.overlay-nav ul li a:hover {
    color: #82a9c3;
}