/* #wpadminbar {
    display: none;
} */

[x-cloak] {
    display: none !important;
}

.car-spec-wrap {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;

    @media not all and (min-width: 768px) {
        flex-direction: column;
    }
}

.car-spec-wrap .vehicle-image {
    max-width: 430px;
    margin: 10px;
}

.car-spec-wrap .vehicle-image img {
    width: 100%;
}

.car-spec-wrap .row-img {
    margin: wrap;
}

.car-spec-wrap .spec {
    max-width: 430px;
    width: 100%;
}

.car-spec-wrap .spec h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.car-spec-wrap .reserve-period-datetime {
    text-align: center;
    padding-top: 10px;
}

.car-spec-wrap .spec .row-spec {
    margin-bottom: 5px;
    display: flex;
    font-weight: bold;
}

.car-spec-wrap .spec .row-spec:nth-child(even) div:first-child {
    background: #f2f6fa;
    padding: 16px 12px;
    width: 25%;
    margin-right: 2px;
}

.car-spec-wrap .spec .row-spec:nth-child(even) div:last-child {
    background: #f2f6fa;
    padding: 16px 12px;
    width: 75%;
}

.car-spec-wrap .spec .row-spec:nth-child(odd) div:first-child {
    background: #fff;
    padding: 16px 12px;
    width: 25%;
    margin-right: 2px;
}

.car-spec-wrap .spec .row-spec:nth-child(odd) div:last-child {
    background: #fff;
    padding: 16px 12px;
    width: 75%;
}

.comment h4,
.rental-car-charge h4 {
    font-weight: bold;
}

.comment p {
    font-weight: 600;
    font-size: 14.5px;
}

.car-charge-wrap {
    margin-top: 30px;
    font-weight: bold;
}

.car-charge-wrap .row-even,
.car-charge-wrap .row-odd {
    display: flex;
    margin-bottom: 5px;
}

.car-charge-wrap .row-even div:first-child {
    background: #f3f6fa;
    padding: 16px 12px;
    width: 50%;
    margin-right: 2px;
}

.car-charge-wrap .row-even div:last-child {
    background: #f3f6fa;
    padding: 16px 12px;
    width: 50%;
}

.car-charge-wrap .row-odd div:first-child {
    background: #fff;
    padding: 16px 12px;
    width: 50%;
    margin-right: 2px;
}

.car-charge-wrap .row-odd div:last-child {
    background: #fff;
    padding: 16px 12px;
    width: 50%;
}

.mtsrcb-page-block {
    margin-top: 40px;
}

.mtsrcb-page-block .description {
    font-size: 1.25rem;
    color: #fff;
    background-color: #00529f;
    padding: 0.25rem 0.5rem;
    margin-top: 2rem;
    font-weight: bold;
    font-family: 'Cardo';
}

.rental-date-box-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    @media not all and (min-width: 768px) {
        flex-direction: column;
    }
}

.rental-date-box {
    flex: 1 0 45%;
    margin-bottom: 0.7em;
    margin-top: 30px;
}

.rental-date-box label {
    color: #333;
    display: block;
    font-weight: 800;
    margin-bottom: 0.5em;
    font-size: 1rem;
    line-height: 1.5;
}

.date-box-date,
.date-box-time {
    margin-bottom: 0.3em;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='range'],
input[type='date'],
input[type='month'],
input[type='week'],
input[type='time'],
input[type='datetime'],
input[type='datetime-local'],
input[type='color'],
textarea {
    color: #666;
    background: #fff;
    background-image: -webkit-linear-gradient(
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0)
    );
    border: 1px solid #bbb;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    display: block;
    padding: 0.7em;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.rental-date-box button,
.rental-date-box input,
.rental-date-box select,
.rental-date-box textarea {
    font-size: 16px;
    font-size: 1rem;
    line-height: 1.5;
}

.rental-date-box select {
    border: 1px solid #bbb;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    height: 3em;
    max-width: 100%;
    padding: 0 15px 0 5px;
    cursor: pointer;
}

#rental-date-arrow {
    display: block;
    flex: 1 0 10%;
    width: 100%;
    font-size: 1.5em;
    text-align: center;
    align-self: center;
    margin: 0;

    @media not all and (min-width: 768px) {
        transform: rotate(90deg);
    }
}

.date-entry.focused {
    background-color: #f3f6fa;
}

.date-box-time .form-addchr {
    padding: 0 5px;
}

.submit-btn-wrap {
    display: flex;
    justify-content: center;
}

.submit-btn-wrap .submit-btn {
    max-width: 250px;
    width: 100%;
    margin: 30px auto 20px;
    letter-spacing: 0.1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #85291c;
    background-image: url(../../../sub2017/img/icon_arrow-r.png);
    background-position: center right 10px;
    background-repeat: no-repeat;
    padding: 0.5rem 0.75rem;
    border: none;
    display: flex;
    justify-content: center;
    cursor: pointer;
    font-size: 130%;
    padding-right: 3%;
}
.submit-btn-wrap .submit-btn:hover {
    opacity: 0.8;
}

.submit-btn-fl {
    margin-top: 50px;
}

.submit-btn-fl .submit-btn {
    margin: 10px;
}

.submit-btn-fl .return-btn {
    background-color: #eeeeee;
    color: #000;
}

#change-calendar-pain {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
    margin-bottom: 0;
}

#change-calendar-pain #calendar-link-prev {
    margin-right: 7px;
}

#change-calendar-pain #change-prev,
#change-calendar-pain #change-next {
    padding: 10px 20px;
    max-width: 60px;
    width: 100%;
    height: 48px;
    cursor: pointer;
    background: #f3f6fa;
    border: none;
}

#change-calendar-pain #calendar-link-title {
    display: none;
}

#change-calendar-pain #calendar-link-next {
    margin-left: 7px;
}

#schedule-calendar-pain {
    overflow: auto;
}

#schedule-calendar-pain table {
    margin-top: 0;
    width: 100%;
    max-width: unset;
    border-bottom: 1px solid #eee;
}

#schedule-calendar-pain table .caption-title {
    padding-bottom: 5px;
}

#schedule-calendar-pain table .week-row-thead th {
    background-color: #fff;
}

#schedule-calendar-pain table .week-row-thead th:not(.sat):not(.sun) {
    color: #0c0c0c !important;
}

#schedule-calendar-pain table .week-row-thead .sat {
    color: blue;
}

#schedule-calendar-pain table .week-row-thead .sun {
    color: red;
}

#schedule-calendar-pain table th,
#schedule-calendar-pain table td,
#schedule-calendar-pain table table td {
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    margin: 0;
    padding: 5px;
    width: 14%;
}

#schedule-calendar-pain table .available {
    cursor: pointer;
}

#schedule-calendar-pain table .no-day {
    background-color: #e8e8e8;
}

#schedule-calendar-pain table .day-number {
    text-align: right;
}

#schedule-calendar-pain table .sat .day-number-str {
    color: blue;
}

#schedule-calendar-pain table .sun .day-number-str {
    color: red;
}

#schedule-calendar-pain table .day-note {
    font-size: 0.5rem;
    color: #9d9c9c;
}

.comment p {
    text-align: justify;
}

.vehicle-image-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.vehicle-image-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 10px;
}

.vehicle-image-box .top-vehicle-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
    cursor: zoom-in;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;

    &:hover {
        opacity: 0.5;
    }
}

.vehicle-image-box .top-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-image-box .child-vehicle-image {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
}

.vehicle-image-box .active {
    opacity: 0.3;
}

.vehicle-image-box .child-car-image {
    cursor: zoom-in;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    aspect-ratio: 1/1;

    &:hover {
        opacity: 0.5;
    }
}

.vehicle-image-box .child-car-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}

.row-detail-spec-wrap {
    padding-top: 10px;
}

.row-detail-spec {
    display: flex;
    padding: 8px 15px;
    align-items: center;
}

.row-detail-spec div:first-child {
    width: 25%;
    padding-right: 20px;
}

.row-detail-spec div:last-child {
    width: 75%;
}

.reserve-vehicle-name {
    font-size: 16px;
    padding: 10px 0 0 5px;
}

.rental-reserve-charge {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.rental-reserve-charge > div {
    background: #f3f6fa;
    padding: 10px;
    width: 50%;
}

.rental-reserve-charge > div:first-child {
    margin-right: 2px;
}

.option-list-wrap .option-list-item-wrap {
    display: flex;
    margin-bottom: 5px;
}

.option-list-wrap .option-list-item-wrap .option-list-item-ttl,
.option-list-wrap .option-list-item-wrap .option-list-item-select {
    display: flex;
    padding: 10px;
    width: 50%;
}

.option-list-wrap .option-list-item-wrap .option-list-item-ttl {
    margin-right: 2px;
}

.option-list-wrap .option-list-item-wrap:nth-child(odd) .option-list-item-ttl {
    background: #eeeeee;
}

.option-list-wrap
    .option-list-item-wrap:nth-child(odd)
    .option-list-item-select {
    background: #eeeeee;
}

.sec-margtop {
    margin-top: 70px;
}

.customer-form-wrap .customer-form-item {
    padding: 10px 0;
}

.customer-form-wrap .customer-form-item .customer-form-item-ttl {
    padding-bottom: 5px;
}

.customer-form-wrap .customer-form-item input {
    line-height: 1.5;
    padding: 0.2em 0.5em !important;
}

.customer-form-wrap .customer-form-item .customer-name-box {
    width: 49.7%;
    margin-right: 0;
}

.customer-form-wrap .customer-form-item #customer-postcode {
    width: 49.7%;
}

.customer-form-wrap .customer-form-item #customer-pref {
    width: 49.4%;
    padding: 0.5em;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.customer-form-wrap .customer-form-item dl dd {
    margin: 5px 0 20px 0 !important;
}

.customer-form-wrap .customer-form-item dl dd:last-child {
    margin-bottom: 0 !important;
}

.charge-list-item-wrap {
    display: flex;
    margin-bottom: 5px;
}

.charge-list-item-wrap .charge-list-item-ttl,
.charge-list-item-wrap .charge-list-item-price {
    padding: 10px;
    width: 50%;
}

.charge-list-item-wrap .charge-list-item-ttl {
    margin-right: 2px;
}

.charge-list-wrap .charge-list-item-wrap:nth-child(odd) .charge-list-item-ttl {
    background: #f3f6fa;
}

.charge-list-wrap
    .charge-list-item-wrap:nth-child(odd)
    .charge-list-item-price {
    background: #f3f6fa;
}

.charge-list-wrap .charge-list-item-wrap .price-total {
    color: red;
    font-size: 16px;
    font-weight: bold;
}

.charge-list .rental-currency {
    padding-right: 2px;
}

.customer-confirm-item-wrap {
    display: flex;
    margin-bottom: 5px;
}

.customer-confirm-item-wrap .customer-confirm-item-ttl,
.customer-confirm-item-wrap .customer-confirm-item-txt {
    padding: 10px;
    width: 50%;
}

.customer-confirm-item-wrap .customer-confirm-item-ttl {
    margin-right: 2px;
}

.customer-confirm-wrap
    .customer-confirm-item-wrap:nth-child(odd)
    .customer-confirm-item-ttl {
    background: #eeeeee;
}

.customer-confirm-wrap
    .customer-confirm-item-wrap:nth-child(odd)
    .customer-confirm-item-txt {
    background: #eeeeee;
}

.no-input {
    background-color: lightgray !important;
    opacity: 1;
    cursor: not-allowed;
}

.alert-mes-container {
    text-align: center;
    margin: 2rem;
}

.alert-mes-container p.alert-mes {
    color: #ad0024;
    font-size: 1rem;
    font-weight: bold;
}

.rsv-message {
    text-align: center;
    font-size: 16px;
}

.rental-reserve-plan {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.plan-checks-explain {
    text-align: center;
    margin-top: 20px;
}

.mandatory-cdtn-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap: 1rem;
    }
}

.mandatory-cdtn-container .mandatory-cdtn-wrap {
    width: 50%;

    @media screen and (max-width: 768px) {
        width: 100%;
    }
}

.mandatory-cdtn-container .mandatory-cdtn-box {
    border: 2px solid #ad0024;
    border-radius: 4px;
    padding: 1.5rem;
}

.mandatory-cdtn-container .mandatory-cdtn-title {
    color: #ad0024;
    font-size: 20px;
    font-weight: bold;
    border-bottom: solid;
    text-align: center;
    margin-bottom: 1rem;
}

.mandatory-cdtn-wrap .mdty-cdtn-desc-container {
    margin-bottom: 2rem;
}

.mandatory-cdtn-wrap .mdty-cdtn-desc-text {
    font-size: 14px;
    font-weight: 500;
}

.mandatory-cdtn-list {
    list-style: none;
    padding: 0 0.5rem;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.mandatory-cdtn-list span {
    font-weight: bold;
}

.mandatory-cdtn-item {
    margin-bottom: 1.5rem;
    font-weight: bold;

    &:last-child {
        margin-bottom: 0;
    }
}

.txtred {
    color: red;
}

.col-red {
    color: #ad0024;
}

.vehicle-image {
    background-color: #fff;
    border: none;
}

.rental-car-charge .car-name {
    display: none;
}

#mtsrcb-entry-vehicle .rental-vehicle-name {
    display: none;
}

.booking-link {
    display: none;
}

.wkly-mtly-box {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 3rem;
    width: 100%;
    margin: 1.5rem 0;

    @media not all and (min-width: 768px) {
        flex-direction: column;
        gap: 1rem;
    }
}

label.wkly-mtly-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 20px;
    background: #f3f6fa;
    border-radius: 5px;
    transition: all 0.3s ease;

    & input {
        display: none;
        opacity: 0;
    }

    & span.checkmark {
        width: 15px;
        height: 15px;
        border-radius: 2px;
        position: relative;
        background-color: #eee;
        transition: 0.3s;
        margin-right: 5px;
    }

    & span.checkmark:after {
        display: none;
        content: '';
        position: absolute;
        left: 4px;
        top: -2px;
        width: 5px;
        height: 12px;
        border: solid white;
        border-width: 0 3px 3px 0;
        border-radius: 2px;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    & input:checked ~ span.checkmark {
        background-color: #00529f;
        border-color: #00529f;
    }

    & input:checked ~ span.checkmark:after {
        display: block;
    }
}

.selected-date-range {
    background-color: rgba(255, 0, 0, 0.2) !important;
}

.day-status {
    font-family: sans-serif;
    font-size: 30px;
    padding-bottom: 14px;
}

.entry-content .schedule-calendar caption,
.schedule-calendar caption {
    margin: 0 0 0.5em;
    text-align: center;
    font-weight: bold;
}

#mtsrcb-entry-date > form#mtsrcb-entry-form {
    padding: 0 1rem;
}

.lightbox-close {
    position: relative;
}

.close-button {
    position: absolute;
    right: 30px;
    top: 20px;
    color: #fff;
    cursor: pointer;
    opacity: 1;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0);

    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.close-button span {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.close-button:after,
#close-button:before {
    display: block;
    content: ' ';
    position: absolute;
    top: 12px;
    left: 21px;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #fff;
    -webkit-transition: background 0.2s ease-in-out;
    transition: background 0.2s ease-in-out;
}

.close-button:before {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.close-button:after {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

@media screen and (max-width: 768px) {
    .car-spec-wrap .spec {
        max-width: unset;
        width: 100%;
    }
    .entry-content .schedule-calendar caption,
    .schedule-calendar caption {
        text-align: left;
        padding-left: 5px;
    }
    .schedule-calendar table {
        line-height: 1em;
    }
    .day-status {
        font-size: 20px;
    }
    #schedule-calendar-pain table th,
    #schedule-calendar-pain table td,
    #schedule-calendar-pain table table td {
        min-width: 65px;
    }
    .rental-date-box {
        margin-top: 10px;
        margin-bottom: 0;
    }
    .sec-margtop {
        margin-top: 40px;
    }
}

@media screen and (max-width: 500px) {
    .day-status {
        padding-top: 5px;
    }
    #schedule-calendar-pain table th,
    #schedule-calendar-pain table td,
    #schedule-calendar-pain table table td {
        min-width: 50px;
    }
}

/* モーダル関連のスタイル */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.modal-dialog {
    position: relative;
    width: 50%;
    margin: 5rem auto;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .modal-dialog {
        width: 100%;
    }
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
}

.modal-header .close {
    padding: 1rem 1rem !important;
    margin: -1rem -1rem -1rem auto;
    float: right;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    border: 0;
    appearance: none;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.modal-close:hover {
    color: black;
}

.difficulty-levels {
    margin-bottom: 20px;
}

.level {
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .level {
        margin-bottom: 10px;
    }
}

.level-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.level-title-container {
    display: flex;
    align-items: center;
    background-color: #00529f;
    margin-bottom: 5px;
    padding: 0.25rem 0.5rem;
}

.level-description {
    font-size: 1.1rem;
}

.note {
    font-style: italic;
    color: #666;
    margin: 15px 0;
}

#new_rental_submit_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#new_rental_submit_btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.modal-vehicle-level-stars {
    display: inline;
    max-width: 7rem;
    width: 100%;
    height: auto;
}

.ml-1rem {
    margin-left: 1rem;
}

.vehicle-level-stars {
    display: inline;
    max-width: 12rem;
    width: 100%;
    height: auto;
}

.vehicle-level-description {
    font-size: 1rem;
    margin-top: 1rem;
    text-decoration: underline;
    cursor: pointer;
}

.vehicle-level-modal-link {
    text-decoration: underline;
}

.terms-agreement-block {
    margin-top: 30px;
    text-align: center;
}

.terms-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.terms-checkbox:disabled {
    cursor: not-allowed;
}

.terms-link {
    text-decoration: underline;
}

/* --- YouTube動画用スタイル --- */
.youtube-container {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}
.youtube-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.youtube-box {
    width: 100%;
}
.youtube-box-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}
.youtube-iframe-wrap {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.18),
        0 1.5px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.25s cubic-bezier(0.4, 2, 0.6, 1),
        box-shadow 0.25s;
    margin-bottom: 1.5rem;
    position: relative;
}
.youtube-iframe-wrap:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.22),
        0 3px 12px rgba(0, 0, 0, 0.13);
    z-index: 2;
}
.youtube-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}
@media screen and (max-width: 900px) {
    .youtube-iframe-wrap {
        max-width: 100%;
        min-width: 180px;
    }
}
@media screen and (max-width: 600px) {
    .youtube-iframe-wrap {
        width: 100%;
        min-width: unset;
        max-width: 100vw;
        aspect-ratio: 16/9;
    }
}

/* 車両画像ギャラリー */
.lightbox {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lightbox-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lighbox-container * {
    max-width: 100%;
}

.lightbox-container img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* ライトボックスナビゲーションボタン */
.lightbox-container .prev-button,
.lightbox-container .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10001; /* 画像の上にボタンを表示 */
    transition: background-color 0.3s ease;
}

.lightbox-container .prev-button:hover,
.lightbox-container .next-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-container .prev-button {
    left: 20px;
}

.lightbox-container .next-button {
    right: 20px;
}

/* 必要に応じて小さい画面用にボタンの位置を調整 */
@media (max-width: 768px) {
    .lightbox-container .prev-button,
    .lightbox-container .next-button {
        padding: 8px 12px;
        font-size: 20px;
    }

    .lightbox-container .prev-button {
        left: 10px;
    }

    .lightbox-container .next-button {
        right: 10px;
    }
}
