
body{
    font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.login, .member{
    .logo{
        text-align: center;
        margin: 50px 0 20px;
        font-size: 36px;
        font-weight: bold;
        color: #0d6efd;
    }
}

.bg-light-gray{
    background-color: #f0f4f8;
}
.input-group {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    position: relative;
}

.input-group .form-control,
.input-group .btn {
    border-radius: 0 !important;
}
    
.input-group .form-control:first-child {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
}

.input-group .btn:last-child {
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}
.input-group.password:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    z-index: 3; 
}
    
.input-group.password:focus-within .form-control,
.input-group.password:focus-within .btn {
    border-color: #86b7fe !important; 
}
    
.input-group.password:focus-within .form-control:focus {
    box-shadow: none !important;
}

.input-group.password .form-control{
    border-right: 0;
}
.input-group.password .btn-outline-secondary {
    border-color: var(--bs-border-color);
    background-color: transparent;
    border-left: 0;
}
.input-group.password .btn-outline-secondary:focus,
.input-group.password .btn-outline-secondary:active {
    border-color: #86b7fe !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important; 
}
    
.input-group.password .btn-outline-secondary:hover{
    color: #333;
}
.input-group.password:focus-within .btn {
    border-color: #86b7fe !important;
    box-shadow: none !important;
}
.input-group.password:focus-within .btn:hover,
.input-group.password:focus-within .btn:active {
    border-color: #86b7fe !important;
    background-color: transparent !important;
    color: var(--bs-body-color) !important; 
}
#map {
    height: 60vh;
    width: 100%;
}

.gm-ui-hover-effect {
 display: none !important;
}
body{
    overflow-x: hidden;
}
.traceability{
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
}
ul.traceability-list{
    margin: 0;
    padding: 0;
}
ul.traceability-list li{
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 20px;

    P{
        margin: 0;
        padding: 0;
    }
    .img{
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
    .img i{
        position: absolute;
        top: 8px;
        right: 8px;
        color:#fff;
        font-size: 16px;
        z-index: 10;
        text-shadow:
            rgba(0,0,0,0.02) 2px 0px 2px, rgba(0,0,0,0.02) -2px 0px 2px,
            rgba(0,0,0,0.02) 0px -2px 2px, rgba(0,0,0,0.02) -2px 0px 2px,
            rgba(0,0,0,0.02) 2px 2px 2px, rgba(0,0,0,0.02) -2px 2px 2px,
            rgba(0,0,0,0.02) 2px -2px 2px, rgba(0,0,0,0.02) -2px -2px 2px,
            rgba(0,0,0,0.02) 1px 2px 2px, rgba(0,0,0,0.02) -1px 2px 2px,
            rgba(0,0,0,0.02) 1px -2px 2px, rgba(0,0,0,0.02) -1px -2px 2px,
            rgba(0,0,0,0.02) 2px 1px 2px, rgba(0,0,0,0.02) -2px 1px 2px,
            rgba(0,0,0,0.02) 2px -1px 2px, rgba(0,0,0,0.02) -2px -1px 2px,
            rgba(0,0,0,0.02) 1px 1px 2px, rgba(0,0,0,0.02) -1px 1px 2px,
            rgba(0,0,0,0.02) 1px -1px 2px, rgba(0,0,0,0.02) -1px -1px 2px;
    }
    .img img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .txt{
        width: 100%;
        margin: 10px 0 0 0;
        font-size: 14px;
    }

    &:last-child{
        border-bottom: 0;
    }
}
header .container {
    width: 100%;
    max-width: 1600px;
}
.header-inner{
    max-width: 1400px;
    margin: auto;
}
@media (min-width: 768px) {
    header .container{
        width: 95%;
    }
}
.base .container{
    width: 100%;
    max-width: 1600px !important;
}

.base-items-container{
    column-gap: 1.2rem;
    row-gap: 1rem;
    position: relative;
    max-width: 1400px;
    justify-content: center;
    margin: auto;
}

.base-item{
    position: relative;
    background: #fff;
    width: calc((100% - 1.2rem) / 2);
    border-radius: 10px;

    .icon-scroll-container{
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding: 2px;
        scrollbar-width: none;
    }
    .icon-scroll-container::-webkit-scrollbar{
        display: none;
    }

    .icon-circle{
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 1px #fff, 0 0 0 2px #ccc;
        flex-shrink: 0;
    }

    .icon-circle img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .icon-name{
        font-size: 12px;
        font-weight: bold;
        margin-left: 5px;
    }

    .base-photo{
        width: 100%;
        height: 150px;
        overflow: hidden;
    }

    .base-photo img{
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
    }

    .base-name{
        font-size: 12px;
        margin: 0;
        padding: 10px;
        line-height: 1.5;
        text-align: left;
    }
    .base-text{
        font-size: 10px;
        margin: 0;
        padding: 0 10px 10px 10px;
        line-height: 1.5;
        color: #666;
        text-align: left;
    }

    .bese-msg{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 30px 10px;
        text-align: center;
        color: #666;
        word-wrap: break-word;
        font-size: 10px;
    }
}

.base-item:not(:last-child) .base-photo a{
    cursor: default;
}

.base-item:not(:last-child)::after{
    content: '';
    position: absolute;
    right: -40px;
    top: 33%;
    width: 60px;
    height: 19px;
    background: url('../img/traceability-arrow.svg') no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
    z-index: 10;
}
.base-item:nth-child(2n)::after{
    right: -18px;
}

.base-item:not(:last-child)::before{
    content: none;
}

@media (min-width: 768px) {
    .base .container{
        width: 95%;
    }
    .base-item .base-name{
        font-size: 15px;
    }
    .base-item .base-text {
        font-size: 14px;
    }
    .base-item .base-photo,
    .base-item .base-photo img {
        height: 200px;
    }
    .base-item .bese-msg{
        padding: 30px 20px;
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .base-items-container{
        column-gap: 2.2rem;
    }
    .base-item {
        width: calc((100% - 6.6rem) / 4);
    }
    .base-item:not(:last-child)::after{
        top: 32%;
        right: -60px;
        width: 80px;
        height: 25px;
    }
    .base-item .icon-name{
        font-size: 14px;
    }
}

@media (min-width: 1400px) {
    .base-item .base-photo,
    .base-item .base-photo img {
        height: 250px;
    }
}
.table-traceability{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
    border: solid 2px #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;

    tr:first-child th{
        width: 36px;
        background-color: #f8f9fa;
        text-align: center;
    }

    td{
        padding: 0 10px;
    }
}
#error {
 border: 2px solid #cc0000;
 border-radius: 3px;
 padding: .5em 1em .4em 1em;
 color: #cc0000;
 font-weight: bold;
}
#success {
 border: 2px solid #009933;
 border-radius: 3px;
 padding: .5em 1em .4em 1em;
 color: #009933;
 font-weight: bold;
}
.post-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    visibility: hidden;
    display: flex;
}
.post-modal.active{
    visibility: visible;
}
.modal-content{
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    margin: auto;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.post-modal.active .modal-content{
    opacity: 1;
    transform: scale(1);
}
.modal-left{
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}
.modal-left img{
    max-width: 100%;
    max-height: 60vh;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.modal-arrow{
    position: absolute;
    top: 50%;
    background: transparent;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-arrow i{
    color: rgba(255,255,255,0.8);
    font-size: 24px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}
.modal-arrow.prev{
    left: 0px;
}
.modal-arrow.next{
    right: 0px;
}
.modal-right{
    width: 100%;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    box-sizing: border-box;
}
.modal-right p:first-child{
    margin-top: 0;
}
.modal-right p:last-child{
    margin-bottom: 0;
}
.modal-right .msg,
.modal-right .url{
    font-size: 14px;
}
.modal-close{
    position: absolute;
    top: 10px;
    right: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.modal-close i{
    color: rgba(255,255,255,0.8);
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@media (min-width: 768px) {
    .modal-content{
        flex-direction: row;
        width: auto;
        max-width: 90%;
        height: 90vh;
    }
    .modal-left{
        width: auto;
        flex: 0 1 auto;
        height: 100%;
    }
    .modal-left img{
        width: auto;
        max-height: 100%;
    }
    .modal-right{
        width: 350px;
        flex-shrink: 0;
        max-height: 90vh;
    }
    ul.traceability-list li{
        flex-direction: row;
    }
    ul.traceability-list li .img{
        width: 150px;
        height: 150px;
    }
    ul.traceability-list li .txt{
        width: calc(98% - 100px);
        margin: 0 0 0 2%;
    }
}
@media (min-width: 1400px) {
    .modal-content{
        max-width: 1200px;
    }
}

.base-item .icon-scroll-wrapper{
    position: relative;
}
.base-item .icon-scroll-wrapper.has-scroll .icon-scroll-container{
    padding-left: 20px;
    padding-right: 20px;
    margin: .5rem auto !important;
}
.base-item .icon-scroll-wrapper.has-scroll .icon-scroll-arrow{
    display: flex;
}
.base-item .icon-scroll-arrow{
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    padding: 0 1px 0 0;
    margin: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
    color: #999;
    height: 38px;
}
.base-item .icon-scroll-arrow.left{
    left: 0;
}
.base-item .icon-scroll-arrow.right{
    right: 0;
}

.icon-circle-add{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: solid 2px #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}
.btn-remove-file{
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    text-align: center;
    border-width: 2px;
    border-color: #999;
    color: #999;
    font-size: 16px;
    line-height: 16px;
    
    &:hover{
        background-color: #999;
        border-color: #999;
        color: #fff;
    }
}