body,
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
}

main {
    display: block;
    flex: 1 0 auto;
}


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

a {
    text-decoration: none;
}

/* Navbar base styles */
.navbar {
    background-color: #74C5E8;
    width: 100%;
    z-index: 1000;
}

.navbar p {
    color: #fff;
    font-size: 0.8em;
    padding: 0px 10px 10px 10px;
}

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

.nav-item {
    border-bottom: 1px solid #fff;
}

.nav-link {
    padding: 20px 25px;
    color: #fff;
    background-color: #0D6EB5;
}

/* Add scrolling functionality for the dropdown menu */
.navbar-collapse {
    max-height: 70vh;
    /* Adjust this value to set the max height of the dropdown */
    overflow-y: auto;
    /* Enable vertical scrolling */
}

/* Customize scrollbar if desired */
.navbar-collapse::-webkit-scrollbar {
    width: 8px;
}

.navbar-collapse::-webkit-scrollbar-thumb {
    background-color: #0D6EB5;
    /* Color of the scrollbar */
    border-radius: 10px;
}

.navbar-collapse::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Scrollbar track color */
}



ul {
    padding-left: 0;
}

ul li {
    list-style: none;
}

div.space20 {
    height: 20px;
    clear: both;
}

div.space30 {
    height: 30px;
    clear: both;
}
div.space50 {
    height: 50px;
    clear: both;
}

@media (max-width:1023px) {
    .main-container {
        margin-top: 200px;
    }
}

@media (max-width:600px) {
    .main-container {
        margin-top: 160px;
    }
}

/* breadcrumbs ////////////////////////*/

#breadcrumbs.container {
    max-width: 1200px;
    padding-left: 30px;
}

#breadcrumbs ol li {
    display: inline-block;
    margin-right: 5px;
    color: #000000;
    font-weight: bold;
    line-height: 1.8;
}

#breadcrumbs ol li i.fa-chevron-right {
    color: #666666;
    margin-right: 5px;
}

@media only screen and (max-width: 991px) {
    #breadcrumbs {
        padding: 0 15px;
    }
}

@media only screen and (max-width: 767px) {
    #breadcrumbs ol li {
        font-size: 0.9rem;
    }
}


/* END  ////////////////////////*/


/* header */

header {
    background-color: #74C5E8;
    color: #fff;
    padding: 10px 10px;
}

.header-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 820px) {
    .header-img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        object-position: top;
    }
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
}

.header-container h1 {
    font-size: 9rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-right: 30px;
    line-height: 1;
    color: #fff;

}

.header-container h2 {
    font-size: 1.65rem;
    font-weight: 600;
    margin-top: 20px;
}

.header-container .header-title-box p {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.menu-container {
    background-color: #0D6EB5;
    color: #fff;
}

.menu-container li.skyblue {
  background-color: #54a7ce;
  list-style: none;
  margin: 5px 0;
}

.menu-container a {
    color: #fff;
    padding: 20px 20px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: 0.5s;

}

.menu-container a:hover {
    background-color: #003b66;
}

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

/* Home button */

.paper-deadline-button {
    background: #4FCAD1;
    box-shadow: 0px 9px 0px 0 #2C8F96;
    border-radius: 7px;
    padding: 10px 20px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    margin-bottom: 20px;
    transition: 0.5s;
}

.paper-deadline-button:hover {
    background: #2C8F96;
}

.cfp-button {
    background: #0D6EB5;
    box-shadow: 0px 9px 0px 0 #131f5f;
    border-radius: 7px;
    padding: 30px 20px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    margin-bottom: 50px;
    transition: 0.5s;
    font-weight: 600;
    max-width: 300px;
    margin: 20px auto;
}

.cfp-button:hover {
    background: #123dc9;
}

.td-button {
    background: #ff7f2a;
    box-shadow: 0px 9px 0px 0 #cc631f;
    border-radius: 7px;
    padding: 30px 20px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    margin-bottom: 50px;
    transition: 0.5s;
    font-weight: 600;
    max-width: 300px;
    margin: 20px auto;
}

.td:hover {
    background: #ff7f2a;
}



/* main-content */

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

.content-section h2 {
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.content-section h2 span {
    color: #0D6EB5;
}

.content-section h3 {
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.content-section h3 span {
    color: #0D6EB5;
}

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

.home-sponsor-box img {
    max-width: 100px;
}


/* News */

.news-box {
    padding: 15px;
    border: 1px solid #ccc;
    overflow-y: scroll;
    min-height: 200px;
    max-height: 300px;
}

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

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

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

.news-box dd p a {
    text-decoration: underline;
}

.home-img-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 10px;
}

@media (max-width:820px) {
    .home-img-box {
        display: flex;
        flex-wrap: wrap;
    }

    .home-img-box img {
        width: 50%;
    }
}

/* 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: #0D6EB5;
}

.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;
    }
}


.moc-button {
    display: block;
    width: 90%;
    text-align: center;
    max-width: 300px;
    background: #74C5E8;
    color: #fff;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 30px;
    /* margin: 30px auto; */
    transition: 0.5s;
}

.moc-button:hover {
    background-color: #0D6EB5;
}

.highlight {
    font-size: 36px; 
    font-weight: bold; 
}

ul {
    list-style-type: none;
    padding: 0;
}
ul li {
    margin: 5px 0;
}

.indent-list {
    list-style-position: inside; 
    padding-left: 20px; 
}
.indent-list li {
    text-indent: -20px; 
}

/* Conference Venue */

.conference-container img{
    width: 100%;
}

.conference-img-container {
    width: 100%;
    justify-content: space-between;
}
.conference-img-container img{
    margin-top: 15px;
}

@media (min-width:820px) {

    .conference-img-container img{
        width: 32%;
    }
    
}

/* footer */

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

footer {
    background-color: #74C5E8;
    color: #fff;
    padding: 20px 20px;
}

p.footer-title {
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0;
    line-height: 1;
    text-align: center;
}





.footer-info p {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
    display: flex;
    justify-content: center;
}

@media (min-width:768px) {
    .footer-info {
        border-left: 1px solid #fff;
        padding-left: 15px;

    }

    .footer-info p {
        font-family: 'Barlow', sans-serif;
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 0;
        line-height: 1.2;
    }

}

/*Top - Plenary*/ 
/*  
.content-section {
    padding: 20px;
}
*/
h2 span {
    font-weight: bold;
}

.speaker {
    display: flex;
    /*  
    align-items: center;*/
    margin-bottom: 20px;
}



 .photo {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 24px;
    font-weight: bold;
}

.photo img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.info {
    width: 60%;
    flex-grow: 1;
}

.info p {
    margin: 5px 0;
    font-weight: 600;
}

@media (min-width:768px) {
    .photo {
        width: 25%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
        font-size: 24px;
        font-weight: bold;
    }
    
    .photo img{
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .info {
        width: 70%;
        flex-grow: 1;
    }
}

.paper-title {
    color: #0D6EB5;
    font-weight: bold;
}

/* CFP button */
/* 
.cfp-button {
    display: inline-block;
    padding: 5px 80px;  
    background-color:#0D6EB5; 
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 3px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    
}

.cfp-button:hover {
    background-color: #123dc9;
}
 */

/* Style for the dropdown menu */
.menu-container {
    list-style: none;
    padding: 0;
}

.menu-container > li {
    position: relative;
}

.dropdown > .dropdown-toggle {
    display: block;
    padding: 20px;
    background-color: #0D6EB5;
    color: #f8f3f3;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Positioning the dropdown menu to the right */
.dropdown-menu {
    display: none; 
    position: absolute;
    left: 100%;  
    top: 0;
    padding: 0;
    background-color: #0D6EB5;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 1000; 
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #f8f8f8;
    font-size: 16px;
}

.dropdown-menu li a:hover {
    background-color: #064980;
}

/* Show the dropdown when the parent is hovered */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown a:focus {
    outline: none;
}

/* JJAP Page Styles */
.jjap-list {
    list-style-type: disc;
    padding-left: 30px;
    margin: 15px 0;
}

.jjap-list li {
    list-style: disc;
    margin: 8px 0;
    line-height: 1.6;
}

.date-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0D6EB5;
    padding: 20px;
    margin: 20px 0;
}

.date-box p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.submission-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.submission-steps li {
    counter-increment: step-counter;
    margin: 15px 0;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
}

.submission-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #0D6EB5;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Barlow', sans-serif;
}