/* Custom CSS for ICEEP 2026 Website */

:root {
    --primary-color: #261E5C;
    --accent-color: #9E843C;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-image: url(./images/main-background.jpg);
    background-size: 100%;
    background-repeat: repeat-y;
    background-position: center;

}



/* Header Styles */
.header-section {
    background-color: transparent;
}

.hero-banner {
    padding: 20px 0;
    background-image: url('./images/header_background-img.png');
    background-size: clamp(550px, 60%, 1500px);
    background-position: bottom right -15%;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.logo-section {}

.japanese-logo {
    position: relative;
}

.japanese-logo img {
    max-width: 300px;
}

.conference-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.2;
    position: absolute;
    top: 5px;
    left: 190px;
    /* ロゴ画像の幅に合わせて調整 */
}

.conference-title small {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.6em;
    padding: 0px 5px;
}

.conference-title p {
    font-family: "Yuji Syuku", serif;
    margin-top: 5px;
}

.event-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-text {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
}

.location {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 900;
}


/* Desktop nav */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
}

.main-nav .navbar-nav {
    width: 100%;
    justify-content: center;
}

.main-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
}

/* Bootstrap dropdown theming */
.main-nav .dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-nav .dropdown-item {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.main-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    background-color: var(--accent-color);
    color: #fff;
}

/* Hamburger default hidden on desktop */
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
}

#navbarNav {
    display: none;
}

/* hidden by default */



/* Default state for hamburger and mobile menu (hidden on desktop) */
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
}

#navbarNav {
    display: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-toggle::after {
    display: none;
}




/* Default state for hamburger and mobile menu (hidden on desktop) */
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
}

#navbarNav {
    display: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-toggle::after {
    display: none;
}

/* Main Content Styles */
.main-content {
    padding: 60px 0 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    gap: 15px;
    margin-bottom: 30px;
}

.section-icon {
    color: var(--accent-color);
    font-size: 20px;
}


.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    /* 32px to rem (32/16=2) */
    color: var(--accent-color);
    font-weight: 900;
    margin: 0;
    padding-left: 40px;
    /* space for icon */
    position: relative;
    display: inline-block;
}

.under-content {
    padding: 60px 30px 30px;
    margin: 0 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.under-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
    font-weight: bold;
}


.under-content a {
    color: var(--accent-color);
    transition: 0.5s;
    word-break: break-all;
}

.under-content a:hover {
    color: var(--primary-color);
}

.japanese-title {
    font-family: "Yuji Syuku", serif;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 4rem;
    color: var(--accent-color);
}

.section-title.japanese-title {
    font-size: 2rem;
}

.section-header p {
    font-family: 'Poppins', sans-serif;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

dl.home-venue-dates {
    display: grid;
    grid-template-columns: 20rem 2fr;
    gap: 0.25rem 1rem;
    margin-top: 10px;
    width: 77%;
    margin: 0 auto;
}

dl.home-venue-dates dt {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem
}

dl.home-venue-dates dd {
    grid-column: 2;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.95em;
    font-size: 1.1em;
}

.home-title p {
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

/* --- Committee Page Styles --- */
.committee-member-card {
    background-color: var(--background-color);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.committee-member-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.committee-member-card img {
    width: 100%;
    margin: 0 auto 1rem auto;
}

.committee-member-role {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.committee-member-name {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    /* icon width */
    height: 30px;
    /* icon height */
    background-image: url('./images/icon.png');
    /* path to your icon image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.member-name-container {
    padding-left: 0.5rem;
    margin-top: 5px;
}

.member-name-container h4 {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}

/* ... rest of code remains same */

/* Other sections... (Welcome, News, etc. - no changes) */
.welcome-section {
    margin-bottom: 100px;
}

.welcome-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.news-section {
    background-color: transparent;
    border-radius: 0;
}

.news-list {
    padding: 20px;
    border: 1px solid var(--medium-gray);
    min-height: 200px;
    overflow-y: scroll;
    background: #fff;
}

.news-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: flex-start;
    border-radius: 0;
    border-bottom: 1px solid #000;
}

.news-date {
    display: flex;
    align-items: center;
    min-width: 150px; /* 80pxから150pxに変更 */
}

.date-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-right: 5px;
}

.date-year {
    font-size: 14px;
    color: var(--text-color);
}

.news-badge {
    background-color: #dc3545;
    color: white;
    padding: 0px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
    line-height: 1.2;
}

.news-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.important-days-section {
    background-color: transparent;
    border-radius: 0;
}

.important-day-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.important-day-item:last-child {
    border-bottom: none;
}

.day-date {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 5px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    width: 40%;
}

.day-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    width: 60%;
    font-family: 'Poppins', sans-serif;
}

.sponsor-section {
    margin-top: 60px;
}

.sponsor-grid {
    margin-top: 30px;
}

.sponsor-placeholder {
    width: 100%;
    height: 120px;
    background-color: var(--medium-gray);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sponsor-placeholder:hover {
    background-color: #b8b8b8;
}

/* Footer Styles */
.footer-section {
    background-color: transparent;
    position: relative;
    margin-top: 80px;
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    min-height: 300px;
}

.japanese-logo-container {
    position: relative;
    z-index: 1000px;
}

.japanese-logo-container ul {
    justify-content: center;
    list-style: none;
    align-items: center;
    padding-left: 0;
}

.japanese-logo-container ul li {
    padding: 15px;
    font-family: 'Poppins', sans-serif;
}

.japanese-logo-container ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.5s;
}

.japanese-logo-container ul li a:hover {
    color: var(--accent-color);
}

.japanese-logo-container img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-info {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--text-color);
}

.footer-dates {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.footer-dates span {
    background-color: var(--accent-color);
}

.footer-illustration {
    position: absolute;
}

.footer-illustration img {
    width: 70%;
}

.footer-nav {
    margin-bottom: 30px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 10px;
}

.footer-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.footer-nav .nav-link:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

/* Footer nav dropdown base */
.footer-nav {
    position: relative;
}

.footer-nav .footer-nav-list {
    gap: 0.25rem 0.5rem;
}

.footer-nav .nav-link {
    position: relative;
    font-weight: 600;
}

.footer-dropdown {
    position: relative;
}

/* サブメニュー（共通初期状態: 非表示） */
.footer-submenu {
    display: none;
    position: absolute;
    /* desktop default */
    left: 0;
    bottom: 100%;
    /* フッター上方向に展開する場合は bottom:100%; 下方向に出したいなら top:100% に変更 */
    z-index: 100;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--primary-color, #261E5C);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-submenu-item {
    display: block;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.footer-submenu-item:hover {
    color: var(--accent-color, #9E843C);
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop: hover で表示（>=992px）*/
@media (min-width: 992px) {
    .footer-dropdown:hover>.footer-submenu {
        display: block;
    }

    /* クリックでも開閉させたい場合のために、.open 時も表示 */
    .footer-dropdown.open>.footer-submenu {
        display: block;
    }

    /* 矢印アイコンの装飾 */
    .footer-dropdown .footer-dropdown-toggle i {
        transition: transform 0.25s ease;
    }

    .footer-dropdown.open .footer-dropdown-toggle i,
    .footer-dropdown:hover .footer-dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* Mobile: フル幅でアコーディオン（<=991.98px）*/
@media (max-width: 991.98px) {
    .footer-nav .footer-nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-dropdown {
        position: static;
    }

    .footer-submenu {
        position: static;
        display: block;
        /* block だが max-height で隠す */
        max-height: 0;
        overflow: hidden;
        background: rgba(38, 30, 92, 0.1);
        transition: max-height 0.35s ease;
        padding: 0;
        /* 閉じ時に余白を消しておく */
        box-shadow: none;
    }

    .footer-dropdown.open>.footer-submenu {
        max-height: 500px;
        /* サブメニューの実高さより少し大きく */
        padding: 8px 0;
        /* 開いたときに余白を戻す */
    }

    .footer-submenu-item {
        color: #333 !important;
        padding: 10px 16px;
    }

    .footer-submenu-item:hover {
        background: transparent;
        color: var(--accent-color, #9E843C) !important;
    }

    .footer-dropdown .footer-dropdown-toggle {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .footer-dropdown .footer-dropdown-toggle i {
        transition: transform 0.25s ease;
    }

    .footer-dropdown.open .footer-dropdown-toggle i {
        transform: rotate(180deg);
    }
}

/* Page Top Button */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.page-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- RESPONSIVE STYLES --- */

/* Responsive - Mobile menu and accordion */
@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }

    .navbar-toggler {
        display: block;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 1100;
        padding: 0;
        width: 30px;
        height: 24px;
        cursor: pointer;
    }

    .navbar-toggler span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: all 0.35s ease-in-out;
    }

    .navbar-toggler.is-active span {
        background-color: #fff;
    }

    .navbar-toggler.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggler.is-active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #navbarNav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(38, 30, 92, 0.98);
        z-index: 1050;
        justify-content: center;
        align-items: flex-start;
        text-align: center;
        overflow-y: auto;
        padding-top: 15vh;
        padding-bottom: 5vh;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    }

    #navbarNav.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbarNav .navbar-nav {
        width: 100%;
        flex-direction: column;
    }

    #navbarNav .nav-item {
        margin-bottom: 0;
    }

    #navbarNav .nav-link {
        font-size: 1.3rem;
        font-weight: 600 !important;
        color: #fff !important;
        padding: 1rem;
    }

    #navbarNav .nav-link:hover,
    #navbarNav .nav-link.active {
        background-color: transparent !important;
        color: var(--accent-color) !important;
    }

    /* Accordion behavior */
    #navbarNav .mobile-accordion,
    #navbarNav .mobile-accordion-menu {
        position: static !important;
    }

    #navbarNav .mobile-accordion-toggle i {
        display: inline-block;
        transition: transform 0.3s ease-out;
    }

    #navbarNav .mobile-accordion.open .mobile-accordion-toggle i {
        transform: rotate(180deg);
    }

    #navbarNav .mobile-accordion-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background-color: rgba(0, 0, 0, 0.2) !important;
        padding: 0 1rem;
        margin: 0;
        list-style: none;
    }

    #navbarNav .mobile-accordion-item {
        font-size: 1rem;
        color: #ddd !important;
        font-weight: 400;
        padding: 0.75rem 1rem;
        text-align: center;
        display: block;
        text-decoration: none;
    }

    #navbarNav .mobile-accordion.open .mobile-accordion-menu {
        max-height: 500px;
    }
}

/* Desktop specific overrides (avoid accidental !important display-none) */
@media (min-width: 992px) {

    /* もし古いCSSに .main-nav .mobile-accordion-menu { display: none !important; } が残っていたら無効化 */
    .main-nav .mobile-accordion-menu {
        display: none;
    }

    /* デスクトップはBootstrapのdropdownを使うため非表示でOK */
}


@media (max-width:568px) {
    .day-date {
        width: 100%;
    }

}

/* Underpage */

.committee-member-affiliation {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.committee-member-bio {
    font-size: 0.95rem;
    text-align: justify;
    margin-top: 1rem;
}


/* Venue */

.venu-map-container {
    background: #fff;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    margin-bottom: 50px;
}

.venu-map-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
}

.venu-map-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.closest-Station-container {
    padding: 0 15px;
}

.closest-Station-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.closest-Station-item:last-child {
    border-bottom: none;
}

.closest-Station-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0;
}

.closest-Station-item h4 span {
    font-size: 1.2em;
    font-weight: 700;
}

.closest-Station-item p {
    margin-bottom: 0;
}

.closest-Station-item img {
    width: 30%;
    max-width: 60px;
    height: auto;
    padding: 10px;
}

/* Registration Page */
.registration-table-container {
    overflow-x: auto;
    /* For small screens */
}

.registration-table {
    margin-top: 2rem;
    border: 1px solid var(--medium-gray);
    background-color: #fff;
}

.registration-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    vertical-align: middle;
}

.registration-table td {
    vertical-align: middle;
}

.registration-table .table-category-header {
    font-weight: 700;
    font-size: 1.1rem;
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Activities Page */
.activity-card {
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.activity-card .card-body {
    padding: 1.5rem 2rem;
}

.activity-card .card-title {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Meeting Rooms Page */
.facility-card {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.facility-card img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.facility-card:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.facility-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .japanese-logo img {
        max-width: 230px;
    }

    .conference-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-color);
        line-height: 1.2;
        position: absolute;
        top: -10px;
        left: 156px;
    }

    .footer-illustration img {
        width: 50%;
    }

    .japanese-title {
        font-size: 3rem;
    }

    dl.home-venue-dates {
        display: unset;
        text-align: center;
    }

    .footer-illustration {
        position: absolute;
        bottom: 360px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 20px 0;
        min-height: 250px;
        background-size: 80%;
    }

    .logo-section {
        flex-direction: column;
        gap: 20px;
    }

    .japanese-logo {
        font-size: 80px;
        position: relative;
    }

    .japanese-logo img {
        max-width: 200px;
    }

    .conference-title {
        font-size: 1.3rem;
        width: auto;
        left: 130px;
        top: -20px;
    }

    .section-title {
        font-size: 24px;
    }

    .main-content {
        padding: 40px 0;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .important-day-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-section {
        min-height: 250px;
    }

    .footer-illustration {
        position: absolute;
        top: -10%;
    }

    .japanese-logo-footer img {
        max-width: 120px;
        margin: 0 auto;
    }

    .footer-illustration img {
        width: 55%;
    }

    .footer-logo {
        flex-direction: column;
        gap: 20px;
    }

    .japanese-logo-footer {
        font-size: 60px;
    }

    .footer-info {
        text-align: center;
        font-size: 0.8rem;
    }

    .footer-nav .nav {
        flex-direction: column;
    }

    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .under-content {
        margin: 0;
        padding: 60px 10px 30px;
    }
}

@media (max-width: 576px) {
    .sponsor-placeholder {
        height: 100px;
    }

    .welcome-content p {
        font-size: 14px;
    }


    .hero-banner {
        min-height: 200px;
        background-size: 90%;
    }

    .japanese-logo img {
        max-width: 120px;
    }

    .conference-title {
        font-size: 0.9rem;
        width: auto;
        left: 63px;
        top: 8px;
    }


    .footer-section {
        min-height: 200px;
        padding-top: 50px;
    }

    .under-content h1 {
        font-size: 2rem;
    }

    .conference-title small {
        background: var(--primary-color);
        color: #fff;
        font-size: 0.5em;
        padding: 0px 5px;
    }

    dl.home-venue-dates {
        display: unset;
        text-align: center;
    }

    .japanese-title {
        font-size: 2rem;
    }

    .home-title p {
        font-size: 1rem;
    }

    dl.home-venue-dates dt {
        font-size: 1.2rem;
    }

    dl.home-venue-dates dd {
        font-size: 1em;
    }
}

/* Message */

.message-container {
    background-color: var(--background-color);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.message-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.message-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.message-profile {
    font-size: 0.8em;
    background: var(--accent-color);
    margin-top: 10px;
    padding: 10px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
}

.committee-member-card p {
    margin-bottom: 0;
}

p.map-station-info {
    line-height: 2;
    padding: 10px;
    margin-top: 10px;
    font-weight: 600;
    border-top: 1px solid;
    padding-top: 20px;
}

p.map-station-info span {
    background-color: var(--accent-color);
    font-weight: 700;
    color: #fff;
    padding: 5px 10px;
}

/* 会場セクション */
.venue-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    margin-bottom: 3rem;
    transition: box-shadow 0.3s ease;
}

.venue-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.venue-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #333;
}

.venue-title .underline {
    text-decoration: underline;
    text-decoration-color: #333;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* イベントグリッド */
.event-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 2rem;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    background: #f3f3f3;
}

.event-text {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 10px;
}

.event-text strong {
    font-weight: 600;
}

.event-image img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ランチ情報 */
.lunch-info {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* レストランセクション */
.restaurant-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    transition: box-shadow 0.3s ease;
}

.restaurant-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.restaurant-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.restaurant-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.restaurant-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.restaurant-info {
    text-align: center;
}

.restaurant-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.restaurant-location {
    font-size: 0.9rem;
    color: #666;
}

.restaurant-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .venue-section,
    .restaurant-section {
        padding: 2rem 1.5rem;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .hiragana-mark {
        width: 120px;
        height: 120px;
        font-size: 4.5rem;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-image {
        text-align: center;
    }

    .event-image img {
        width: 100%;
        max-width: 300px;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .venue-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title.japanese-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {

    .venue-section,
    .restaurant-section {
        padding: 1.5rem 1rem;
    }

    .venue-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .event-text {
        font-size: 0.9rem;
    }
}

/* 必須の調整（競合回避） */
.main-nav .dropdown-menu {
    background-color: var(--primary-color, #261E5C);
    border: none;
    border-radius: 0;
    min-width: 220px;
}

.main-nav .dropdown-item {
    color: #fff;
}

.main-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color, #9E843C);
}

/* 不要な !important を避ける: デスクトップではhoverで表示、モバイルではアコーディオン */
@media (min-width: 992px) {

    /* 既存で .mobile-accordion-menu に display: none !important; がある場合は打ち消す */
    .main-nav .mobile-accordion-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    .main-nav .nav-item:hover>.mobile-accordion-menu {
        display: block;
    }

    /* Bootstrap dropdown を使っているため、上記は将来的に削除可。 */
}

@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }

    .navbar-toggler {
        display: block;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 1100;
        padding: 0;
        width: 30px;
        height: 24px;
        cursor: pointer;
        border: none;
        background: transparent;
    }

    .navbar-toggler span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color, #261E5C);
        margin: 5px 0;
        transition: all 0.35s ease-in-out;
    }

    .navbar-toggler.is-active span {
        background-color: #fff;
    }

    .navbar-toggler.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggler.is-active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #navbarNav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(38, 30, 92, 0.98);
        z-index: 1050;
        justify-content: center;
        align-items: flex-start;
        text-align: center;
        overflow-y: auto;
        padding-top: 15vh;
        padding-bottom: 5vh;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    }

    #navbarNav.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #navbarNav .navbar-nav {
        width: 100%;
        flex-direction: column;
    }

    #navbarNav .nav-link {
        font-size: 1.3rem;
        font-weight: 600 !important;
        color: #fff !important;
        padding: 1rem;
    }

    #navbarNav .nav-link:hover,
    #navbarNav .nav-link.active {
        background-color: transparent !important;
        color: var(--accent-color, #9E843C) !important;
    }

    /* アコーディオン */
    #navbarNav .mobile-accordion,
    #navbarNav .mobile-accordion-menu {
        position: static !important;
    }

    #navbarNav .mobile-accordion-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background-color: rgba(0, 0, 0, 0.2) !important;
        padding: 0 1rem;
        margin: 0;
        list-style: none;
    }

    #navbarNav .mobile-accordion-item {
        font-size: 1rem;
        color: #ddd !important;
        font-weight: 400;
        padding: 0.75rem 1rem;
        text-align: center;
        display: block;
        text-decoration: none;
    }

    #navbarNav .mobile-accordion.open .mobile-accordion-menu {
        max-height: 500px;
    }
}

/* PC幅だけ hover でBootstrapドロップダウンを開く */
@media (min-width: 992px) {
    .main-nav .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        /* 位置ズレ防止 */
    }

    /* 矢印を回転させたい場合（任意） */
    .main-nav .dropdown:hover>.dropdown-toggle i {
        transform: rotate(180deg);
        transition: transform .2s ease;
    }
}

/* Venue Page - Bus Website Info */
.bus-website-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bus-website-info span {
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    font-weight: 600;
}

/* Abstract Submission */
.abstract-container {
    text-align: center;
}

.abstract-container p {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn {
    background: var(--accent-color);
    margin-top: 10px;
    padding: 20px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    border-radius: 0%;
}

.btn:hover {
    background: var( --primary-color);
    opacity: 0.8;
    color: #fff;
}