span {
    display: inline-block;
}

body {
    margin: 0%;
    height: 100vh;
    user-select: none;
}

img {
    pointer-events: none;
}

.all_contents {
    /* margin-top: 3vh; */
    margin-left: 5vw;
    margin-right: 5vw;
}

.wellcome_message {
    font-size: 30px;
    margin: 0;
}

.title_area {
    height: 80px;
    display: flex;
    background-color: #1E3575;
    background-image: url(../resource/imgs/circuit.svg);
    justify-content: space-between;
    width: calc(100% - 260px);
    align-items: center;
    padding-right: 260px; /* プルダウンのスペースを確保 */
}

.left_header_area {
    display: flex;
    align-items: center;
    width: 100%;
}

/* .shape_leftmost_header {
    display: flex;
    background-color: #ffffff;
    align-items: center;
    height: 50px;
    width: 400px;
    border-radius: 0% 10px 10px 0%;
    color: #1E3575;
    padding-left: 1.5vw;
    padding-right: 0.2vw;
    font-family: 'Noto Sans JP', sans-serif;
    word-break: keep-all;
    font-size: min(1.2vw, 16px);
    font-size: clamp(10px, 1.5vw, 16px)
} */

.shape_leftmost_header {
    display: flex;
    align-items: center;
    height: 50px;
    width: 400px;
    background-color: #ffffff;
    border-radius: 0% 10px 10px 0%;
    padding: 0 0.5vw 0 0.5vw;
    cursor: pointer;
}

.menu_icon {
    width: 90%;
    height: auto;
}

.main_title {
    font-weight: lighter;
    display: block;
    /* font-family: Arial; */
    align-items: center;
    color: #ffffff;
    line-height: 0.5cm;
    padding: 0.5em;
    border-right: solid;
    word-break: keep-all;
    /*font-size: clamp(10px, 1.5vw, 16px);*/
    font-size: min(1.5vw, 16px);
}

.sub_title {
    margin-left: 1em;
    padding-right: 0.5em;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 21px);
    word-break: break-word;
    border-right: solid;
}

.admin_title_area .sub_title{
    margin-left: unset;
    padding-right: unset;
    color: #ffffff;
    font-size: clamp(0.9rem, 1.4vw, 21px);
    word-break: break-word;
    border-right: solid;
    display: flex;
    flex-direction: row;
}

.admin_title_area .sub_title::before{
    content: '　';
    display: inline-block;
    width: 20px;
    max-width: 0.9vw;
}

.admin_title_area .sub_title::after{
    content: '　';
    display: inline-block;
    width: 20px;
    max-width: 0.9vw;
}

.admin_name_title {
    margin-left: 0.5em;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 24px);
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 41vw;
}

.title_area ul {
    display: flex;
    flex-wrap: nowrap;
    margin-left: 2em;
    padding: 0;
}

.title_area li {
    display: inline;
    margin-right: 0.3em;
}

p.header_button,
p.sidebar_button,
p.content_top_button {
    font-size: 90%;
}

.header_menu .white_btn,
.header_menu .admin_white_btn {
    width: 11.5rem;
    height: 1.18rem;
    border: none !important;
}

.header_button,
.sidebar_button,
.content_top_button {
    text-align: center;
    /* width: 8rem; */
    letter-spacing: 0.5px;
    margin: 1rem 0.5rem;
    /* font-size: 100%; */
    padding: 8px 5px;
    /* position: relative; */
}

.header_button span,
.sidebar_button span,
.content_top_button span {
    width: 7.5rem;
}

.header_menu .white_btn::after {
    position: absolute;
    content: 'さん';
    right: 5%;
    font-family: 'Noto Sans JP', sans-serif;
}

.white_btn span,
.admin_white_btn span {
    margin: auto 0.4rem;
    /* width: 19.5rem; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header_menu .white_btn::after {
    position: absolute;
    content: 'さん';
    right: 5%;
}

/* .header_button.white_btn{
    width: 14vw;
} */

/* 生徒画面のプロフィールプルダウン */
.header_pulldown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc((80px - 40px) / 2);
    right: 40px;
    margin: 0;
    z-index: 200;

    > li {
        margin: 0;

        > label {
            p {
                display: flex;
                width: 190px;
                height: 24px;
                margin: 0;
                padding: 8px 8px;
                background-color: white;
                border: solid #b6b6b6 1px;
                align-items: center;
                justify-content: space-between;
                font-size: 16px;
                font-family: 'Noto Sans JP', sans-serif;

                .icon {
                    position: static;
                }
                span {
                    color: #1E3575;
                }
            }
            a {
                text-decoration: none;
                cursor: default;
            }
        }
        &.header_pulldown_first_cell > label > p {
            border-radius: 6px;
        }
        &:not(.header_pulldown_first_cell) > label p {
            height: 20px;
            padding: 8px 0 8px 16px;
            border-top: none;

            &:hover {
                background-color: #e2e2e2;
            }
        }

        /* プルダウン下隅を丸める */
        &:nth-last-child(1) > label p {
            border-bottom-left-radius: 6px;
            border-bottom-right-radius: 6px;
        }
    }
}

.header_user_name {
    max-width: 8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header_name_honor {
    width: 2em;
}

.icon {
    position: absolute;
    left: 6%;
    top: 0.4rem;
    width: 1.2rem;
    height: 1.2rem;
}

.return_btn_icon {
    position: relative;
}

.icon_back {
    height: 1em;
    width: 1em;
    position: absolute;
    top: 50%;
    right: 0.25em;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
}


.app_container {
    height: 80vh;
    margin: 0 0;
}

.contents {
    width: 100%;
}

.bar {
    justify-content: flex-end;
    display: flex;
    align-items: center;
}

#popup {
    display: none;
}

#logout_popup {
    display: none;
}

/* .overlay {
    display: none;
}

#popup:checked+.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#logout_popup:checked+.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
 } */

.theme_headline {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0;
}

.theme_headline p {
    margin: 4% 0 0 0;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 25px;
    letter-spacing: 2.2px;
    color: #1E3575;
    opacity: 1;
}

.popup-wrapper {
    /* display: none; */
    width: 100vw;
    /*画面に大きさを合わせる*/
    height: 100vh;
    position: fixed;
    /*ラッパーの左上隅を画面左上に固定*/
    top: 0px;
    left: 0px;
    z-index: 900;
}

.popup-background {
    width: 100%;
    /*ラッパー全体を覆うようにする*/
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /*半透明の黒*/
}

.popup_trigger {
    position: absolute;
    width: 100%;
    height: 100%;
}

#popup:checked+.popup-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#logout_popup:checked+.popup-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.download_popup {
    /* display: none; */
    width: 100vw;
    /*画面に大きさを合わせる*/
    height: 100vh;
    position: fixed;
    /*ラッパーの左上隅を画面左上に固定*/
    top: 0px;
    left: 0px;
    z-index: 900;
}

.download_popup_background {
    width: 100%;
    /*ラッパー全体を覆うようにする*/
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /*半透明の黒*/
}

.download_comeback_button{
    background: #E4E4E4;
    color: #008000;
    border: 2px solid #008000;
    width: 250px;
    height: auto;
    padding: 11.6px 0.5em 0.5em;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin: 0px 10px;
    z-index: 3;
}

.download_comeback_button::before{
    position: absolute;
    content: '';
    width: 150%;
    height: 750%;
    background: #ffffff;
    opacity: 1;
    mix-blend-mode: hard-light;
    border-radius: 49% 51% 62% 38% / 60% 60% 23% 14%;
    top: -673%;
    left: -22%;
}

.download_comeback_button:hover {
    opacity: 0.7;
    cursor: pointer;
}

.window {
    /* display: block; */
    /* 変更前 */
    /* width: 960px;
    height: 540px; */
    /* 入力側 */
    top: 300px;
    left: 520px;
    width: 45vw;
    aspect-ratio: 1.618 / 1;
    border: 4px solid #1E3575;
    border-radius: 64px;
    opacity: 1;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #1E3575;
    font-size: 1.5rem;
    animation: fadeInAnimation 200ms ease-out;
    /* 入力側 */
    position: absolute;
    /*ラッパーを基準に、画面中央にくるように調整*/
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    -ms-transform: translateY(-50%) translateX(-50%);
}

.close {
    position: absolute;
    top: 4px;
    right: 4px;
    cursor: pointer;
    border: 1px solid;
    border-color: black;

}

.is-hidden {
    visibility: hidden;
}

.popup_text {
    font-size: 30px;
}

.popup_danger {
    color: red;
    font-size: 20px;
    font-weight: 300;
}

.popup_button_area {
    margin-top: 1.4rem;
    display: flex;
}

.popup_button_blue {
    width: 250px;
    height: auto;
    padding: 13.6px 0.5em 0.5em;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin: 0px 10px;
}

.popup_button_white {
    width: 250px;
    height: auto;
    padding: 11.6px 0.5em 0.5em;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    margin: 0px 10px;
}

h4 .download_title{
    text-align: left;
}

.blue_on_white_button:disabled::after {
    opacity: 0;
    pointer-events: none;
}

/* 選択ボタン用 */
.button_area {
    word-wrap: break-word;
    margin: 0em 0em 0em auto;
}


/* button */
.login_button,
.btn,
.header_button,
.sidebar_button,
.blue_on_white_button,
.list_button,
.list_button_fields,
.next_button,
.return_button,
#modal-close-button {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0px 5px 5px #00000033;
    border: 0px solid gray;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 0.5rem 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
}

.blue_on_white_button {
    width: 12vw;
    height: auto;
}

span {
    position: relative;
}

.login_button::before,
.btn::before,
.header_button::before,
.sidebar_button::before,
.blue_on_white_button::before,
.white_btn_back::before,
.list_button::before,
.list_button_fields::before,
.next_button::before,
.return_button::before,
#modal-close-button::before {
    position: absolute;
    content: '';
    width: 150%;
    height: 750%;
    background: #ffffff;
    opacity: 0.15;
    border-radius: 49% 51% 62% 38% / 60% 60% 23% 14%;
    top: -673%;
    left: -22%;
}


.white_btn_back::before,
.white_btn::before {
    position: absolute;
    content: '';
    width: 150%;
    height: 750%;
    background: #ffffff;
    opacity: 1;
    mix-blend-mode: hard-light;
    border-radius: 49% 51% 62% 38% / 60% 60% 23% 14%;
    top: -673%;
    left: -22%;
}

.list_button::after,
.btn::after,
.theme_button::after {
    display: flex;
    align-items: center;
    position: absolute;
    content: '';
    right: 6%;
    width: 60%;
    height: 60%;
    max-width: 12px;
    max-height: 12px;
    border-right: 2px solid #DB8DAE;
    border-top: 2px solid #DB8DAE;
    top: 50%;
    transform-origin: right top;
    transform: rotate(26deg) skew(160deg, 200deg);
    /* border-bottom: 2px solid #DB8DAE;
    border-left: 2px solid #DB8DAE;
    transform: rotate(45deg) skew(8deg, 8deg) translate(100%, 50%); */
    vertical-align: middle;
    opacity: 1;
}

.list_button.pink_btn::after,
.btn.pink_btn::after,
.theme_button.pink_btn::after {
    /* border-right: 2px solid #1E3575; */
    /* border-top: 2px solid #1E3575; */
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
}

.list_button_fields::after {
    display: flex;
    align-items: center;
    position: absolute;
    content: '';
    right: 6%;
    width: 60%;
    height: 60%;
    max-width: 12px;
    max-height: 12px;
    border-right: 2px solid #696969;
    border-top: 2px solid #696969;
    top: 50%;
    transform-origin: right top;
    transform: rotate(26deg) skew(160deg, 200deg);
    vertical-align: middle;
    opacity: 1;
}

.white_btn_back::after {
    display: inline;
    position: absolute;
    content: '';
    height: 0.6em;
    width: 0.6em;
    /* max-width: 12px;
    max-height: 12px; */
    left: 10%;
    border-bottom: 2px solid #1E3575;
    border-left: 2px solid #1E3575;
    transform: rotate(45deg) skew(8deg, 8deg) translate(100%, -50%);

    vertical-align: middle;
}


.blue_on_white_button:disabled {
    background-color: gray;
    border-color: gray;
    color: white;
    pointer-events: none;
}

.white_btn:disabled::before {
    opacity: 0;
    pointer-events: none;
}

.btn_arrow.pink_btn::after {
    position: absolute;
    content: '';
    right: 8%;
    width: 9px;
    height: 9px;
    top: 40%;
    border-top: 2px solid #1E3575;
    border-right: 2px solid #1E3575;
    transform: rotate(45deg) skew(8deg, 8deg);
    opacity: 1;
}

.next_button_disable.pink_btn::after {
    opacity: 0;
}

.blue_btn {
    background: #1E3575;
    color: #ffffff;
}

.blue_btn:hover {
    background: #6e7fac;
    cursor: pointer;
}

.dull_blue_btn{
    background: #4C7CB4;
    color: #ffffff;
}

.dull_blue_btn:hover {
    background: #608ab9;
    cursor: pointer;
}

.orange_btn {
    background: #EF810F;
    color: #ffffff;
}

.orange_btn:hover {
    background: #f7a566;
    cursor: pointer;
}

.pink_btn {
    background: #DB8DAE;
    color: #1E3575;
}

.field_btn {
    background: rgb(176 47 105);
    color: #FFFFFF;
}

.field_btn:hover {
    background: rgb(205, 98, 146);
    cursor: pointer;
}

.pink_btn:hover {
    background: #e1a9c1;
    cursor: pointer;
}

.white_btn,
.white_btn_back {
    background-color: #E4E4E4;
    color: #1E3575;
    border: 2px solid #1E3575;
}

.white_btn:hover,
.white_btn_back:hover {
    opacity: 0.7;
    cursor: pointer;
}

.header_button.white_btn:hover {
    opacity: 0.9;
}

.header_button.admin_white_btn:hover {
    opacity: 1;
    cursor: unset;
}

.breadcrumb {
    margin: auto auto 3px 10px;
    height: 24px;
    color: #AAAAAA;
}

.breadcrumb_text {
    text-align: left;
    color: #AAAAAA;
    letter-spacing: 1.2px;
    opacity: 1;
}

.breadcrumb_text:hover {
    text-align: left;
    color: #1E3575;
    letter-spacing: 1.2px;
    opacity: 1;
}

.breadcrumb_text_end {
    text-align: left;
    color: #1E3575;
    letter-spacing: 1.2px;
    opacity: 1;
}

.arrange_row {
    display: flex;
}

/* text */
.text-white {
    color: #FFFFFF;
}

.page_back{
    position: relative;
    bottom: 2px;
    overflow: hidden;
    border-radius: 10px;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 0.75rem 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    background-color: #FFFFFF;
    vertical-align: middle;
    border: 2px solid #1E3575;
    width: 6em;
    height: 2.5em;
    padding-bottom: 0px;
    cursor: pointer;
}

.page_back::after{
    display: inline;
    position: absolute;
    content: '';
    height: 0.6em;
    width: 0.6em;
    left: 10%;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
    transform: rotate(45deg) skew(8deg, 8deg) translate(100%, -50%);
    vertical-align: middle;
}

.back_text{
    display: inline-block;
    position: relative;
    left: 17%;
    font-size: 120%;
    letter-spacing: 1.2px;
}

.back{
    display: flex;
    border-bottom: solid #ccc;
    height: 50px;
    margin-bottom: 18px;
    background-color: #ffffff;
}

.breadcrumb_back_button {
	display: flex;
	/* height: 10vh; */
	margin-left: 5vw;
	text-align: right;
	justify-content: flex-end;
	right: 0;
}

.breadcrumb_log{
    font-size: large;
    margin-top: 12px;
    position: relative;
    top: 2px;
    display: flex;
    white-space: nowrap;
    border-left: solid #ccc;
    height: 25px;
}

.header_demo_account_icon{
    display: inline-block;
    margin: 0px 0px 0px 10px;
    padding: 8px 4px; /* ラベル内側の余白 */
    background-color: rgb(225, 80, 80);
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    vertical-align: middle;
}

.sidebar_button:hover{
    cursor: pointer;
    opacity: 0.7;
}

.sidebar_button_area{
    display: block;
    font-size: 90%;
}

@media screen and (max-width: 1383px) {
    /* html {
        display: flex;
        flex-direction: column;
        height: 100vh;
        justify-content: center;
        overflow-x: hidden;
    } */

    body {
        width: 100vw;
        height: 0;
        /* dummy */
    }

    .app_container {
        height: calc(100% - 80px - 12px);
        overflow-x: scroll;
    }

    /* .all_contents {
        height: 100%;
    }

    .all_contents > form {
        height: 100%;
    } */
}
