.ui.header {
    display: none;
}


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

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

header {
    text-align: center;
}

iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
}

.btn {
    padding: 10px 20px;
    background: #FF9966;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    border: solid 1px white;
    transition: 0.1s ease-in;
    z-index: 999;
}

.btn:hover {
    background: #FF7B4B;
    transition: 0.1s ease-in;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#search-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.modal-row {
    margin-bottom: 15px;
}

.modal-row label {
    display: block;
    margin-bottom: 5px;
    width: 30%;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 70%;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
}

.dropdown-toggle:after {
    content: "▼";
    font-size: 12px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f4f4f4;
}

.dropdown-item input {
    margin-right: 10px;
}

/* links modal */

#links-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#links-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

#links-modal h2 {
    margin-bottom: 15px;
}

#links-modal ul {
    list-style: none;
    padding: 0;
}

#links-modal ul li {
    margin-bottom: 10px;
}

#links-modal ul li a {
    color: #007BFF;
    text-decoration: none;
}

#links-modal ul li a:hover {
    text-decoration: underline;
}

/* esaka */

body {
    position: relative;
    padding: 0;
    gap: 0;
}

.title-logo {
    width: calc(64000vw/1440);
    height: auto;
    min-width: 600px;
}

p.tagline {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    color: #7F7F7F;
    -webkit-text-stroke: 4px white;
    text-stroke: 4px white;
    paint-order: stroke;
    font-size: 24px;
    font-weight: bold;
}

header {
    padding: 10px 120px 10px 120px;
    color: #595959;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
}

main {
    padding: 10px 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
}

.logo_nishio {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 20px 0 0 0;
    margin-bottom: -30px;
}

.logo_nishio img {
    width: 120px;
    height: auto;
}

header button.btn {
    background-color: #FFD44B;
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    font-size: 30px;
    width: 100%;
    padding: 16px 20px;
    transition: ease-in 0.1s;
    color: #7F7F7F;
    font-weight: bold;
    -webkit-text-stroke: 4px white;
    text-stroke: 4px white;
    paint-order: stroke;
    max-width: 600px;
}

header button.btn:hover {
    background-color: #FF7B4B;
    transition: ease-in 0.1s;
}

.modal-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.modal-row #course-name {
    width: 70%;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 3rem;
    border: 1px solid #aaa;
}

.dropdown-ok.btn {
    margin: 10px;
}

#search-modal {
    background-color: #FFD44B;
}

.btn.submit {
    background-color: #FF9966;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    transition: ease-in 0.1s;
}

.btn.submit:hover {
    background-color: #FF7B4B;
    transition: ease-in 0.1s;
}

button#show-links-modal.btn {
    background-color: #FFD44B;
    color: black;
    padding: 16px 60px;
    font-size: 18px;
}

button#show-links-modal.btn:hover {
    background-color: #e9b817;
}

.modal-row label {
    display: block;
    margin-bottom: 0;
    width: 24%;
    padding: 8px;
    border-radius: 1000px;
    background-color: white;
    text-align: center;
    font-size: 14px;
}

.pc {}

.sp {
    display: none;
}

.select-wrapper {
    width: 70%;
}

.select2-container .select2-selection {
    height: auto;
    /* 高さを自動調整 */
    min-height: 3rem;
    /* 最小高さを解除 */
    line-height: 2rem;
    /* 行の高さをデフォルトに戻す */
    /* パディングをリセット */
}

/* Select2の検索フィールドの高さを調整 */

.select2-container .select2-search__field {
    height: auto;
    /* 高さを自動調整 */
    min-height: 1.2rem;
    /* フィールドの最小高さを設定（デフォルトの入力高さに合わせる） */
    line-height: 1.5;
    /* 行の高さを設定 */
    padding: 6px 12px;
    /* 内側の余白を調整 */
    box-sizing: border-box;
    /* ボックスサイズを調整して崩れを防ぐ */
    margin: 0;
}

.modal-row label.dropdown-item {
    width: 48%;
}

footer {
    width: 100%;
    text-align: right;
    color: black;
    padding: 0 120px 10px 120px;
}

.about {
    position: absolute;
    top: calc(4000vw/1440);
    right: calc(2000vw/1440);
    background-color: rgba(255, 212, 75, 0.2);
    border: 4px solid rgba(255, 212, 75, 0.9);
    border-radius: calc(2000vw/1440);
    padding: calc(1000vw/1440);
    width: calc(34000vw/1440);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: calc(400vw/1440);
}

.about h2 {
    font-size: calc(1300vw/1440);
}

.about p {
    font-size: calc(1100vw/1440);
    width: 100%;
    text-align: left;
}

.about span {
    color: red;
}

.fixed-footer {
    display: none;
}

@media screen and (max-width:1200px) {
    .pc2 {
        display: none;
    }
}

@media screen and (max-width:767px) {
    iframe {
        height: 640px;
    }

    body {
        gap: 0;
        padding-bottom: 60px;
        margin: 0;
    }

    p.tagline {
        width: 100%;
        text-align: left;
        font-size: 16px;
    }

    h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        font-size: 1.2rem;
        gap: 0px;
    }

    .pc {
        display: none;
    }

    .sp {
        display: flex;
        font-size: 0px;
        line-height: 0;
    }

    header {
        width: 100%;
        padding: 10px 20px;
        gap: 6px;
    }

    header p {
        font-size: 12px;
        text-align: left;
    }

    main {
        padding: 0 20px;
    }

    .title-logo {
        width: 100%;
        height: auto;
        min-width: 100%;
    }

    .logo_nishio {
        padding: 10px 0 0 0;
        margin: 0;
    }

    .logo_nishio img {
        width: 100px;
    }

    header .btn.search {
        position: fixed;
        bottom: 24px;
        left: 26%;
        width: 70%;
        font-size: 1.35rem;
        padding: 10px 20px;
        border-radius: 10px;
        z-index: 999;
    }

    button#show-links-modal.btn {
        position: fixed;
        bottom: 24px;
        left: 4%;
        width: 21%;
        padding: 7px 7px;
        font-size: 12.5px;
        line-height: 1.4;
    }

    .fixed-footer {
        display: flex;
        margin-top: 50px;
        font-size: 11px;
        padding: 2px;
        position: fixed;
        bottom: 0;
        text-align: center;
        z-index: 999;
    }

    .modal-row {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        width: auto;
        margin-bottom: 10px;
    }

    .modal-row label {
        width: 200px;
        background: none;
        font-weight: bold;
        font-size: 16px;
        padding: 0;
        margin-top: 8px;
    }

    .menu-row .select {
        width: 100%;
    }

    .modal-row #course-name {
        width: 100%;
    }

    .select-wrapper {
        width: 100%;
    }

    footer {
        text-align: center;
        padding: 0 20px 20px 20px;
    }

    .about {
        position: relative;
    }

    .white-background {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85px;
        background-color: white;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        text-align: center;
        z-index: 500;
    }
}

.custom-dropdown {
    position: relative;
    width: 70%;
}

.custom-dropdown .dropdown-toggle {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

.custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 4px;
}

.custom-dropdown .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}

.custom-dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.custom-dropdown .dropdown-menu input[type="checkbox"] {
    margin-right: 10px;
}

.custom-dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu label.checked {
    background-color: #007BFF;
    /* 背景色 */
    color: #fff;
    /* 文字色 */
    border-radius: 4px;
    font-weight: bold;
}

/* 選択済み項目の表示 */

.selected-items {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

@media screen and (max-width:767px) {
    .custom-dropdown {
        width: 100%;
    }
}

.accordion {
    display: none;
}

@media screen and (max-width:1200px) {
    .accordion {
        display: flex;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .accordion span.red {
        color: red;
    }

    .icon-hand {
        width: 16px;
        height: auto;
    }

    .accordion-item {
        border-bottom: 1px solid #ddd;
        width: 100%;
    }

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

    .accordion-header {
        text-align: center;
        cursor: pointer;
        font-size: 12px;
        font-weight: bold;
        transition: background-color 0.2s;
    }

    .accordion-header:hover {
        opacity: 0.8;
    }

    .accordion-content {
        font-size: 14px;
        line-height: 1.6;
        background-color: rgba(255, 212, 75, 0.0);
        border: 4px solid rgba(255, 212, 75, 0.0);
        border-radius: 20px;
        max-height: 0;
        overflow: hidden;
        padding: 0 12px;
        transition: 0.5s ease, padding 0.3s ease;
        box-sizing: border-box;
        width: 100%;
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }

    .accordion-content.show {
        background-color: #fff7dd;
        border: 4px solid rgba(255, 212, 75, 0.9);
        border-radius: 20px;
        max-height: 300px;
        padding: 12px;
        overflow: visible;
        margin-top: 10px;
    }

    .accordion-content::before {
        content: "";
        position: absolute;
        top: -30px;
        right: 48%;
        background-color: #fff7dd;
        border-right: 4px solid rgba(255, 212, 75, 0.0);
        border-top: 4px solid rgba(255, 212, 75, 0.0);
        z-index: 10;
        width: 18px;
        height: 18px;
        transform: rotate(-45deg);
        transition: 0.1s ease, padding 0.1s ease;
    }

    .accordion-content.show::before {
        content: "";
        position: absolute;
        top: -13px;
        right: 48%;
        background-color: #fff7dd;
        border-right: 4px solid rgba(255, 212, 75, 0.9);
        border-top: 4px solid rgba(255, 212, 75, 0.9);
        z-index: 10;
        width: 18px;
        height: 18px;
        transform: rotate(-45deg);
        transition: 0.1s ease, padding 0.1s ease;
    }
}