@charset "UTF-8";
/* --- modal --- */

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 137, 41, 0.90);
	overflow: auto;
	transition: 0.3s;
	visibility: hidden;
	opacity: 0;
	text-align: center;
    z-index: 103;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
	z-index: 104;
}

.modal-box {
	position: relative;
	display: inline-block;
    width: calc(100% - 40px);
    max-width: 900px;
	background-color: #fff;
	border-radius: 5px;
	margin: 100px 20px;
	padding: 25px 20px 30px;
	text-align: center;
	vertical-align: middle;
	box-sizing: border-box;
}

.modal-inner {
    max-width: 680px;
    margin: 0 auto;
}

.js-close-btn {
    transform: scale(0.5);
}

.js-close-btn {
	position: absolute;
	top: -60px;
	right: 0;
	width: 40px;
	height: 40px;
    border: 2px solid #fff;
	cursor: pointer;
    transform: scale(1);
    transition: scale 0.3s ease-out;
}

.js-close-btn span {
    display: block;
    position: absolute;
    top: 4px;
    left: 2px;
    width: 32px;
    height: 2px;
    background-color: #fff;
}

.js-close-btn span:nth-child(1) {
    margin-top: 13px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.js-close-btn span:nth-child(2) {
    margin-top: 13px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* --- お気に入り店舗 --- */
.favorite-stores-modal .modal-box {
    padding: 25px 20px 30px;
}

.store-selection-form .title {
    color: var(--color-deep-green);
    font-size: 2.0rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.store-selection-form .text {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 10px 0 0;
    line-height: 1.6;
    text-align: left;
}

.store-selection-list {
    max-width: 700px;
    margin: 35px auto 30px;
    border-bottom: 1px solid #707070;
    text-align: left;
}

.store-selection-list .wrap {
    margin: 0 0 25px;
}

.store-selection-list h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.store-selection-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.store-selection-list ul li {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.6;
}

.store-selection-list input,
.store-selection-list label {
    cursor: pointer;
}

.store-selection-list input[type="checkbox"]{
    position: relative;
    width: 18px;
    height: 18px;
    top: .2em;
    margin: 0 10px 0 0;
    padding: 0;
    border: 1px solid #707070;
    border-radius: 2px;
    background: #EBEBEB;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.store-selection-list input[type="checkbox"]:before,
.store-selection-list input[type="checkbox"]:after {
    position: absolute;
    content: "";
    width: 18px;
    height: 18px;
    transition: background-color 0.3s ease;
}

.store-selection-list input[type="radio"]:checked::before,
.store-selection-list input[type="checkbox"]:checked::before {
    background: var(--color-deep-green);
}

.store-selection-list input[type="radio"]:checked::after,
.store-selection-list input[type="checkbox"]:checked::after {
    left: 5px;
    top: 2px;
    width: 7px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- 新規会員登録　確定 --- */

.modal-logout .modal-inner,
.modal-confirm .modal-inner {
    margin: 0 auto;
}

.modal-logout .modal-title,
.modal-confirm .modal-title {
    color: var(--color-deep-green);
    font-size: 2.0rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.6;
    text-align: center;
}

.modal-logout .text,
.modal-confirm .text {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 10px 0 34px;
    text-align: left;
    line-height: 1.6;
}

.modal-logout .text {
    text-align: center;
}

.modal-logout .wrap-btn-modal,
.modal-confirm .wrap-btn-modal {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0 24px;
    margin: 0 auto;
    align-items: center;
}

.modal-logout .wrap-btn-modal {
    max-width: 404px;
}

.modal-confirm .wrap-btn-modal {
    width: 100%;
}

.wrap-btn-modal .btn-border.btn-inline:not() {
    position: absolute;
}

.modal-logout .wrap-btn-modal .btn-inline {
    width: calc((100% - 24px) /2);
}

.btn-inline {
    padding-bottom: 5px;
}

/* --- Calender Modal --- */
.calendar-card {
    text-align: left;
}

.calendar-card .course-label {
    display: flex;
    align-items: center;
}

.calendar-card .course-label p {
    min-width: 100px;
    padding: 4px 10px;
    border-radius: 2px;
    box-sizing: border-box;
    text-align: center;
}

.calendar-card .course-label p + p {
    margin: 0 0 0 8px;
}

.calendar-card .course-status.bg-gray {
    color: #fff;
    border: 1px solid #666;
    background-color: #666;
}

.calendar-card .course-type.bg-blue {
    border: 1px solid blue;
    background-color: #87cefa;
}

.calendar-card .course-status.bg-green {
    color: #fff;
    border: 1px solid #98fb98;
    background-color: #98fb98;
}

.calendar-card .course-status.bg-red {
    color: red;
    border: 1px solid red;
    background-color: #fff;
}

.calendar-card .title {
    font-weight: bold;
    margin: 20px auto 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #333;
    line-height: 1.5;
}

.calendar-card .detail {
    margin: 0 0 20px;
}

.calendar-card .detail tr {
    display: block;
    margin: 10px 0 0;
    line-height: 1.5;
}

.calendar-card .detail th,
.calendar-card .detail td {
    display: inline;
}

.calendar-card .detail .map {
    display: block;
}

.calendar-card .detail .map span {
    position: relative;
    display: inline-block;
    color: #008929;
    font-size: 1.3rem;
    margin: 10px 0 0;
    padding: 1px 30px 1px 5px;
    border: 1px solid #008929;
    background-color: #fff;
    transition: background-color 0.5s ease;
}

.calendar-card .detail .map span::after {
    position: absolute;
    content: "";
    top: 3px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-image: url(/images/svg/arrow_green.svg);
    background-size: contain;
}

.calendar-card .detail .map span:hover {
    color: #fff;
    background-color: #008929;
}

.calendar-card .detail .map:hover span::after {
    background-image: url(/images/svg/arrow_white.svg);
}

.calendar-card .detail .inline-th {
    display: block;
    font-weight: bold;
    margin: 10px 0 0;
}

.calendar-card .instructor-wrap {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
}

.calendar-card .instructor-wrap .photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #333;
    background-color: #008929;
}

.calendar-card .instructor {
    margin: 0 5px 0 5px;
    padding: 2px 5px;
    border: 1px solid #333;
}

.notes-wrap {
    margin: 20px 0 0;
}

.notes-wrap .notes {
    text-align: center;
}

.notes-wrap .text {
    line-height: 1.4;
    margin: 10px 0;
    text-align: left;
}

.notes-wrap p + p {
    margin: 10px 0 0;
}

.calendar-card .bottom-info {
    background-color: #f2f6e1;
}

/* --- Calender Modal --- */

.modal-calendar-box {
    position: relative;
	display: inline-block;
    max-width: 1000px;
	background-color: #fff;
	border-radius: 0 5px 5px 5px;
    margin: 100px 20px;
    text-align: left;
	padding: 20px 20px 30px;
	box-sizing: border-box;   
}

.modal-calendar-box .modal-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.modal-calendar-box .member-name {
    position: absolute;
    top: -34px;
    left: 0;
    color: var(--color-deep-green);
    font-size: 1.8rem;
    font-weight: 600;
    height: 34px;
    padding: 4px 16px 4px 42px;
    border-radius: 7px 7px 0 0;
    background-color: #fff;
    letter-spacing: 0.05em;
    line-height: 1.389;
}

.modal-calendar-box .member-name span {
    display: block;
}

.modal-calendar-box .member-name::before {
    position: absolute;
    content: "";
    top: 5px;
    left: 10px;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-image: url(../images/common/person_green.png);
    background-size: cover;
}

.modal-calendar-box.course-list .course-box {
    border: none;
    border-radius: 0;
    margin: 0;
    background: none;
}

.modal-calendar-box.course-list .course-body {
    padding: 0;
}

.modal-calendar-box.course-list .notice {
    margin-bottom: 0;
}

.modal-calendar-box.course-list .course-action .caution {
    text-align: center;
}

.modal-calendar-box .course-action {
    display: flex;
    flex-direction: column;
    background-color: #E1F8C2;
    border: 1px solid #71BC31;
    padding: 15px 13px;
    font-size: 1.5rem;
    line-height: 1.6;
    border-radius: 3px;
    margin-top: 30px;
}

.modal-calendar-box .course-action .explain {
    padding-bottom: 17px;
}

.modal-calendar-box .course-action .explain strong {
    display: block;
    font-weight: 500;
    font-size: 1.6rem;
    text-align: center;
}

.modal-calendar-box .course-action .align {
    text-align: center;
}

/* --- Small Calender Modal  --- */
.small-modal-calendar .modal-title {
    color: var(--color-deep-green);
    font-size: 2.0rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.small-calendar {
    margin: 20px auto 25px;
}

.timeoff-edit-calendar .small-calendar {
    margin: 10px auto 25px;
}

.small-calendar .table-wrap {
    margin: 0 auto;
    border-radius: 5px;
    border: 1px solid #707070;
    overflow: hidden;
}

.small-calendar .table-wrap .head {
    padding: 10px 16px;
    background: #EBEBEB;
}

.small-calendar .calendar-head-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.small-calendar .head {
    position: relative;
}
.small-calendar .head .calendar-head-prev,
.small-calendar .head .calendar-head-next {
    position: absolute;
    display: inline-block;
    top: 0;
    width: 40px;
    height: 38px;
    cursor: pointer;
    transition: opacity 0.2s ease-in;
}

.small-calendar .head .calendar-head-prev:hover,
.small-calendar .head .calendar-head-next:hover {
    opacity: 0.6;
}

.small-calendar .head .calendar-head-prev {
    left: 0;
}
.small-calendar .head .calendar-head-next {
    right: 0;
}
.small-calendar .head .calendar-head-prev::before,
.small-calendar .head .calendar-head-next::before {
    position: absolute;
    content: "";
    top: 50%;
    width: 10px;
    height: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}
.small-calendar .head .calendar-head-prev::before {
    left: 15px;
    background-image: url(../images/common/arrow_prev.svg);
}
.small-calendar .head .calendar-head-next::before {
    right: 15px;
    background-image: url(../images/common/arrow_next.svg);
}
.small-calendar table {
    width: 100%; /* テーブルの幅を全体に広げる */
    border-collapse: collapse;/* 枠線を重ねて表示 */
    table-layout: fixed; /* 列幅を均等にする */ 
}
.small-calendar th {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 7px 0;
    border-top: none;
    letter-spacing: 0.02em;
}
.small-calendar td {
    padding: 5px 3px;
    border-right: none;
}
.small-calendar th,
.small-calendar td {
    border: 1px solid rgba(112, 112, 112, 0.7);
}
.small-calendar td {
    position: relative;
    height: 46px;
    padding: 8px 0 4px;
    border-right: none;
}
.small-calendar td.disabled .day {
    color: rgba(23, 23, 23, 0.45);
}
.small-calendar th:first-child,
.small-calendar td:first-child {
    border-left: none;
}
.small-calendar tr:first-child th,
.small-calendar tr:first-child td,
.small-calendar tr:last-child th,
.small-calendar tr:last-child td {
    border-right: none;
    border-bottom: none;
}
.small-calendar td .day  {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    width: 26px;
    height: 26px;
    margin: 0 auto 7px;
    letter-spacing: 0.02em;
}
.small-calendar td.today .day {
    position: relative;
}
.small-calendar td.today .day::before {
    position: absolute;
    content: "";
    top: -4px;
    left: 50%;
    width: 26px;
    height: 26px;
    background-color: rgba(255, 172, 172, 1);
    border-radius: 100%;
    transform: translateX(-50%);
    mix-blend-mode: multiply;
}
.small-calendar td.start-day,
.small-calendar td.end-day {
    background-color: rgba(253, 150, 10, 1);
}
.small-calendar td.start-day .text,
.small-calendar td.end-day .text {
    position: absolute;
    width: 100%;
    left: 50%;
    bottom: 4px;
    color: #fff;
    font-size: 1.0rem;
    font-weight: 500;
    transform: translateX(-50%);
}
.small-calendar td.during {
    background-color: rgba(253, 150, 10, 0.15);
}
.small-modal-calendar .period-text {
    display: flex;
    flex-direction: row;
    margin: 20px auto 10px;
}
.small-modal-calendar .period-text p {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 0 4px;
    text-align: left;
    line-height: 1.4;
}
.small-modal-calendar .period-text span {
    display: inline-block;
    width: 35px;
    height: 17px;
    border: 1px solid var(--color-dark-gray);
    background-color: rgba(253, 150, 10, 0.15);
}

/* --- instructor --- */

.instructor.btn-modal {
    width: fit-content;
    cursor: pointer;
}

.modal-instructor .modal-contents {
    font-size: 1.5rem;
    text-align: left;
    line-height: 1.5;
}

.modal-instructor .modal-contents .instructor {
    margin: 0 0 20px;    
}

.modal-instructor .modal-contents .instructor .photo {
    width: 95px;
    height: 95px;
}

.modal-instructor .modal-contents .instructor-name .label {
    padding: 0 7px;
}

.modal-instructor .modal-contents strong {
    font-weight: 400;
}

.modal-instructor .modal-contents p {
    font-weight: 300;
    margin-top: 5px;
}

.modal-instructor .modal-contents .block + .block {
    margin-top: 20px;
}

.instructor.btn-modal .photo img{
    transition: transform 0.2s ease-out;
}

.instructor.btn-modal:hover .photo img {
    transform: scale(1.05);
}


@media screen and (min-width: 744px) {
    /* --- modal --- */
    .modal-box {
        margin: 100px 40px;
        padding: 30px 12% 40px;
    }
    .js-close-btn {
        top: -69px;
        width: 55px;
        height: 55px;
        border: 4px solid #fff;
    }
    .js-close-btn span {
        top: 8px;
        width: 42px;
        height: 4px;
    }
    /* --- 新規会員登録　お気に入り店舗選択 --- */
    .favorite-stores-modal .modal-box {
        width: calc(100% - 80px);
        padding: 30px 60px 40px;
    }
    .store-selection-form .title {
        font-size: 2.4rem;
    }
    .store-selection-form .text {
        font-size: 1.6rem;
        text-align: center;
    }
    .store-selection-list {
        margin: 58px auto 40px;
        padding: 0 0 10px;
    }
    .store-selection-list h3 {
        font-size: 2.0rem;
        margin: 0 0 8px;
    }
    .store-selection-list ul li {
        font-size: 1.8rem;
    }

    .store-selection-list input[type="checkbox"] {
        top: .15em;
    }

    /* --- 新規会員登録　確定 --- */

    .modal-logout .modal-box,
    .modal-confirm .modal-box {
        width: calc(100% - 80px);
        margin: 100px 40px;
        padding: 30px 60px 40px;
    }

    .modal-instructor .modal-box {
        width: calc(100% - 80px);
        margin: 100px 40px;
        padding: 30px 50px 40px;
    }

    .modal-logout .modal-inner,
    .modal-confirm .modal-inner {
        max-width: 680px;
    }

    .modal-logout .modal-title,
    .modal-confirm .modal-title {
        font-size: 2.4rem;
    }  

    .modal-logout .text,
    .modal-confirm .text {
        font-size: 1.6rem;
        margin: 30px auto 50px;
    }

    .modal-logout .wrap-btn-modal {
        max-width: 476px;
        gap: 0 40px;
    }

    .modal-logout .wrap-btn-modal .btn-inline,
    .modal-confirm .wrap-btn-modal a {
        width: 218px;
        height: 50px;
    }

    .modal-confirm .wrap-btn-modal .btn-confirm {
        padding: 10px 0 0;
    }

    .modal-confirm .wrap-btn-modal a.btn-border {
        width: 91px;
        height: 46px;
    }

    /* --- Calender Modal --- */
    .modal-calendar-box {
        margin: 150px 40px;
        padding: 30px 50px 40px;
    }
    .modal-calendar-box .member-name {
        font-size: 2.0rem;
        top: -49px;
        height: 49px;
        padding: 10px 18px 10px 62px;
    }
    .modal-calendar-box .member-name::before {
        width: 34px;
        height: 34px;
        top: 8px;
        left: 18px;
    }
    .modal-calendar-box .map {
        display: inline-block;
        margin: 0 0 0 10px;
    }
    .modal-calendar-box.course-list .notice .explain {
        flex-direction: column;
    }
    .modal-calendar-box .course-action {
        font-size: 1.6rem;
        padding: 15px 30px;
    }
    .modal-calendar-box .course-action .explain strong {
        font-size: 1.8rem;
        text-align: left;
    }
    .modal-calendar-box.course-list .notice .btn-course-detail {
        margin-top: 15px;
    }

    /* --- Small Calender Modal  --- */
    .small-modal-calendar .modal-box {
        width: calc(100% - 80px);
        margin-top: 100px;
        margin-bottom: 40px;
        padding: 30px 0 40px;
    }
    .small-calendar {
        width: 100%;
        max-width: 532px;
        margin: 30px auto 50px;
    }
    .small-modal-calendar .modal-title {
        font-size: 2.4rem;
    }
    .small-calendar .table-wrap .head {
        padding: 15px 20px;
    }
    .small-calendar .calendar-head-title {
        font-size: 2.0rem;
    }
    .small-calendar .head .calendar-head-prev, 
    .small-calendar .head .calendar-head-next {
        height: 52px;
    }  
    .small-calendar th {
        font-size: 2.0rem;
        padding: 13px 0;
    } 
    .small-calendar td {
        height: 69px;
        padding: 21px 0 3px;
    }
    .small-calendar td .day {
        font-size: 2.0rem;
    }
    .small-calendar td.today .day::before {
        width: 28px;
        height: 28px;
    }
    .small-calendar td.start-day .text,
    .small-calendar td.end-day .text {
        font-size: 1.4rem;
        bottom: 6px;
    }
    .small-modal-calendar .period-text {
        width: 100%;
        max-width: 532px;
    }
    .small-modal-calendar .period-text span {
        width: 44px;
        height: 20px;
    }

    .small-modal-calendar .period-text p {
        margin: 0 0 0 7px;
    }

    /* --- instructor --- */

    .modal-instructor .modal-contents {
        font-size: 1.6rem;
    }
    
    .modal-instructor .modal-inner {
        max-width: none;
    }
}
@media screen and (min-width: 1000px) {
    .modal-box {
        width: 900px;
        padding: 30px 110px 40px;
    }
    .favorite-stores-modal .modal-box {
        width: 900px;
        padding: 30px 110px 40px;
    }

    /* --- Calender Modal --- */
    .modal-calendar-box {
        margin: 150px 50px;
        padding: 30px 50px;
    }
    .modal-calendar-box.course-list .notice .explain {
        flex-direction: row;
        justify-content: space-between;
        gap: 0 25px;
    }
    .modal-calendar-box .course-action .explain {
        padding: 0;
    }
    .modal-calendar-box.course-list .notice .btn-course-detail {
        margin-top: 0;
    }
    .modal-calendar-box.course-list .course-action .caution {
        padding: 4px 0 0;
    }
    .modal-calendar-box .course-action {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* --- Small Calender Modal  --- */
    .small-modal-calendar .modal-box {
        width: 900px;
        padding: 30px 0 40px;
    }
    
}
@media screen and (min-width: 1200px) {
    .modal-box {
        padding: 30px 110px 40px;
    }
    .favorite-stores-modal .modal-box {
        padding: 30px 110px 40px;
    }
}