/*
Theme Name: HQSN2025 Conference
Theme URI: 
Author: Fujiwara
Author URI: 
Description: Custom theme for HQSN2025 & HQMST2025 conference
Version: 1.0
*/

/* Import Google Fonts - Instrument Sans */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* General Styles */
body {
    font-family: 'Instrument Sans', sans-serif;
}


a {
    text-decoration: none;
}

.space20 {
    padding: 20px;
}

.space30 {
    padding: 30px;
}

.space50 {
    padding: 50px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link,
.dropdown-item,
.btn,
.carousel-caption {
    font-family: 'Instrument Sans', sans-serif;
}

/* Header */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    transition: all 0.3s ease;
    padding: 0;
    height: 50px;
}

.navbar-brand {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 700;
    color: #000;
}

.navbar-nav .nav-link {
    color: #111E70;
    font-weight: 700;
}

.dropdown-menu {
    border: unset;
    border-radius: 0;
}

/* カスタムハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1050;
    outline: none;
}

@media (max-width: 575.98px) {
    .hamburger-menu {
        display: block;
    }
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* モバイルメニューのスタイルを修正 */
.mobile-menu {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    height: calc(100vh - 50px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-items {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-item {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-item a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mobile-dropdown-toggle {
    position: relative;
}

.mobile-dropdown-toggle::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ドロップダウンメニューのトランジションを追加 */
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
    max-height: 500px;
    /* 適切な高さに調整してください */
}

.mobile-dropdown-menu li a {
    padding-left: 30px;
    font-size: 0.95em;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu {
    -webkit-overflow-scrolling: touch;
    /* iOSでのスムーズスクロール */
}

.mobile-dropdown-menu {
    transition: max-height 0.3s ease-out;
}

/* Carousel Styles */
.carousel-item {
    height: 400px;
    background-color: #000;
    position: relative;
}

.carousel-inner {

    margin-top: 50px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-caption {
    top: 0;
    bottom: auto;
}

.title-overlay {
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    color: white;
    text-align: left;
    line-height: 1;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.title-overlay h1 {
    font-weight: 800;
    line-height: 1;
}



.title-overlay .lead span {

    font-weight: 600;
    background: linear-gradient(90deg, #3DC8C2 0%, #CED800 33%, #FFAE44 76%, #EA7200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.title-overlay .lead {
    background-color: rgba(0, 0, 0, 0.5);
    width: 51%;
}



/* スライドの横移動用スタイルを調整 */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel .carousel-item-next,
.carousel .carousel-item-prev,
.carousel .carousel-item.active {
    display: flex;
}

/* Sidebar Styles */
.sidebar h2 {
    font-size: 1.4rem;
    color: #111E70;
    font-weight: 600;
}

.sidebar hr {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, #3DC8C2 0%, #CED800 33%, #FFAE44 76%, #EA7200 100%);
    margin: 10px 0px;
}

.list-unstyled li a {
    text-decoration: none;
    transition: 0.5s;
    color: #000;
}


.list-unstyled li a:hover {
    color: #3DC8C2;
}


/* Main Content Styles */

.background-container {
    background-image: url(images/maincontainer-background.png);
    background-size: cover;
    background-position: top;
    background-size: 100%;
    background-repeat: no-repeat;
}

.main-content h2 {
    color: #333;
    font-size: 1.8rem;
}

.main-content h3 {
    font-style: italic;
    font-weight: 700;
    font-size: 3.8rem;
    color: #111E70;
}

.main-content h4 {
    font-weight: 600;
    font-size: 1.8rem;
    color: #111E70;
}

.main-content hr {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, #3DC8C2 0%, #CED800 33%, #FFAE44 76%, #EA7200 100%);
}

.conference-lead {
    font-size: 1.3rem;
}

/* Under-content */


.under-content hr {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, #3DC8C2 0%, #CED800 33%, #FFAE44 76%, #EA7200 100%);
}

.under-content h2 {
    font-weight: 700;
    font-size: 2rem;
    color: #111E70;
}

.under-content h3 {
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    color: #111E70;
}

/* Airport-map */



.matsue-bus-info-box {
    border: 1px solid #000;
    padding: 15px;
}

table.venue-table-01 {
    width: 100%;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

table.venue-table-01 tr th {
    background-color: #EA7200;
    text-align: center;
    color: #fff;
}

table.venue-table-01 tr td {
    text-align: center;
}


table.venue-table-01 tr:nth-child(even) {
    background-color: #eee;

}

table.venue-table-02 {
    width: 100%;
    border: 1px solid #000;
}

table.venue-table-02 tr th {
    background-color: #111E70;
    text-align: center;
    color: #fff;
}

table.venue-table-02 tr td {
    text-align: center;
}


table.venue-table-02 tr:nth-child(even) {
    background-color: #eee;

}


@media (min-width:768px) {
    .airport-left {
        width: 70%;
    }

    .airport-right {
        padding-left: 15px;
        width: 30%;
    }

    .matsue-bus-info-box {
        display: flex;
    }
}

.airport-access {
    margin-bottom: 20px;
}

/* Footer Styles */
.site-footer {
    border-top: 1px solid #111E70;
    border-bottom: 5px solid #111E70;
}

.site-footer p {
    font-weight: 500;
    margin-bottom: 0;
}

.days-container dl {
    display: flex;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    word-break: break-all;
}

.days-container dt {
    margin-right: 5px;
}

.news-container {
    overflow-y: auto;   /* 必要なときだけスクロールバー */
    min-height: 150px;  /* 最低高さ */
    max-height: 280px;  /* を超えたらスクロール */
    border: 1px solid #ccc;
    padding: 15px;
}

.news-container dl {
    display: flex;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
    word-break: break-all;
}

.news-container dt {
    margin-right: 5px;
}

/* Media Queries */
@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
    }

    .title-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
    }

    .title-overlay h1 {
        font-size: 2rem;
    }

    .title-overlay .lead {
        background-color: rgba(0, 0, 0, 0.5);
        width: 100%;
    }

    .main-content h3 {
        font-size: 3rem;
    }

}

/* Abstract Submission */ 
.abstract-button {
    display: inline-block;
    background-color: #071e66; 
    color: white;
    padding: 20px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
  }

  .template-button {
    display: inline-block;
    background-color: #e06806; 
    color: white;
    padding: 20px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
  }

  .abstract-button:hover {
    background-color: #071196; 
    color: white;
  }