/*
	Theme Name: JuntechTheme1
	Theme URI: 
	Description: 
	Version: 1
	Author: 
	Author URI: 
*/

body{
    background-color: #EEEEEE !important;
}

.field-wrapper{
    height: 100px;
    color: #365334;
}

.field-wrapper .eyecatch-image-wrapper{
    text-align: center;
    background-color: #DDDDDD;
    overflow: hidden;
}

.field-wrapper .eyecatch-image-wrapper img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.field-wrapper .field-name{
    font-size: 16px;
    font-weight: bold;
}

.field-wrapper .address-short{
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-wrapper .field-status-list{
    list-style: none;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.field-wrapper .field-status{
    float: left;
    border-radius: 10px;
    font-size: 12px;
    background-color: #365334;
    color: white;
    margin: 0 0.1rem;
    padding: 0 0.5rem;
}

.field-wrapper .field-status-closed{
    background-color: #FFD9E1;
    color: #E50012;
}

/* 製品一覧 */
.product-wrapper{
    overflow: hidden;
    height: 240px;
    color: #365334;
}

.product-wrapper:hover{
    color: #365334;
}

.product-wrapper .eyecatch-image-wrapper{
    padding-top: 15px;
    height: 100px;
    overflow: hidden;
    text-align: center;
    background-color: #DDDDDD;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-wrapper .eyecatch-image-wrapper img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.product-wrapper .product-summary-wrapper {
    height: 135px;
    overflow: hidden;
    background-color: #DDDDDD;
}

.product-wrapper .image-supplier{
    font-size: 9px;
    margin: 0;
    text-align: right;
    width: 100%;
}

.product-wrapper .product-features-list, .product-wrapper .product-retailers-list{
    list-style: none;
}

.product-wrapper .product-feature-icon{
    float: left;
    border-radius: 10px;
    font-size: 11px;
    background-color: #365334;
    color: white;
    margin: 0 0.1rem;
    padding: 0 0.5rem;
}

.product-wrapper .product-maker-name{
    font-size: 12px;
}

.product-wrapper .product-name{
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-wrapper .prooduct-prices__regular{
    padding-top: 2px;
    font-size: 12px;
    color: #959595;
    text-decoration: line-through;
}
.product-wrapper .prooduct-prices__retail{
    font-size: 14px;
    color: #E50012;
}

.product-wrapper .product-retailer-icon{
    float: left;
    border-radius: 10px;
    font-size: 11px;
    color: white;
    margin: 0 0.1rem;
    padding: 0 0.5rem;
}

/* 製品詳細 */
.detail-container .maker-name a{
    text-decoration: underline;
}

.detail-container .product-name{
    padding: 0.5rem;
    font-weight: bold;
    font-size: 18px;
    margin:0;
    padding-top: 0;
}

.detail-container .product-eyecatch-img-wrapper{
    width: 100%;
    overflow: auto;
    aspect-ratio: 16 / 10;
}

.detail-container .product-eyecatch-img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.detail-container .product-retailer-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0px;
    gap: 10px;
}

.detail-container .product-retailer-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 0px;
    gap: 10px;
    color: #fff;
    border-radius: 5px;
    box-shadow: none;
    text-decoration: none;
    font-size: 16px;
    width: 85%;
    margin: auto;
    margin-bottom: 10px;
}

.detail-container .product-retailer-button:hover{
    color: white;
}

.detail-container .product-retailer-button .btn-text{
    line-height: 18px;
    text-align: center;
    padding: 2px 10px;
}

.detail-container .product-retailer-button .material-icons{
    vertical-align: middle;
}

.detail-container .product-detail-label{
    width: 90%;
    margin: auto;
    font-weight: bold;
    font-size: 16px;
    padding: 0 !important;
}

.detail-container .product-spec__table{
    width: 90%;
    margin: auto;
    border: 1px solid #365334;
}

.detail-container .product-spec__label{
    background-color: #365334;
    color: white;
    font-weight: normal;
    line-height: 24px;
}

.detail-container .product-spec__value{
    white-space: inherit;
}

.detail-container .related-video-wrapper{
    width: 90%;
    margin: auto;
}

.detail-container .related-video-wrapper iframe{
    width: 100%;
    aspect-ratio: 16 / 10;
}

.detail-container .related-video-wrapper .video-title{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.detail-container .related-video-wrapper .video-description {
    display: flex;
    justify-content: space-between;
}

.detail-container .twitter-timeline{
    min-width: 100%;
    padding: 5% 5% 2% 5%;
}

#row-twitter:has(.twitter-timeline-loading){
    height: 0;
    overflow: hidden;
    margin: 0 !important;
}

/* 一覧ページ共通 */

#filterSortButton{
    float: right;
    display: inline-flex;
    padding: 5px;
    align-items: center;
    gap: 2px;
    border-radius: 5px;
    border: 1px solid #365334;
    background: #FFF;
}
#filterSortButton>.material-icons {
    font-size: 20px;
}
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pagenation{
    height: 42px;
    line-height: 36px;
    overflow: inherit;
}
.pagenation>div{
    height: 100%;
    text-align: center;
}
.pagenation .pagenation-btn{
    height: 100%;
    width: 90%;
    display: block;
    background-color: #365334;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    /* line-height: 28px;
    padding-top: 5px;
    padding-bottom: 5px; */
}
.pagenation .pagenation-btn:hover{
    color: white;
}
.pagenation .pagenation-btn>span{
    font-size: 32px;
    vertical-align: middle;
}

.filter-condition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%!important;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10;
}

.filter-condition-modal .filter-condition-container{
    margin: auto;
    width: 100%;
    overflow: scroll;
    color: #365334;
    font-size: 14px;
    border: none;
    height: 100%;
    padding-bottom: 120px;
}

.filter-condition-modal .filter-condition-container::-webkit-scrollbar{
    display: none;
}

.filter-condition-modal .filter-condition-close{
    line-height: 20px;
    text-align: right;
    padding-top: 5px;
    padding-right: 14px;
    display: block;
}

.filter-condition-modal .filter-condition-close .material-icons{
    font-size: 36px;
    color: white;
}

.filter-condition-container .search-panel-footer {
    position: fixed;
    width: 100%;
    bottom: 15px;
}

.field-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%!important;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
}

.field-detail-modal .detail-container{
    margin: auto;
    width: 95%;
    overflow: scroll;
    height: calc(100% - 55px);
    color: #365334;
    font-size: 14px;
}

.field-detail-modal .field-detail-close{
    line-height: 40px;
    text-align: right;
    padding-top: 5px;
    padding-right: 14px;
    display: block;
}

.field-detail-modal .field-detail-close .material-icons{
    font-size: 36px;
    color: white;
}

/* フィールド詳細 */
.detail-container .field-details-label{
    padding: 0.5rem;
    font-weight: bold;
    font-size: 18px;
    margin:0
}

.detail-container .field-details-sublabel{
    padding: 0.5rem;
    font-weight: bold;
    font-size: 16px;
    margin:0
}

.detail-container .field-address-short{
    padding-left: 0.5rem;
    font-size: 14px;
    margin:0;
}

.detail-container .field-eyecatch-img-wrapper{
    width: 100%;
    overflow: auto;
    aspect-ratio: 16 / 10;
}

.detail-container .field-eyecatch-img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.detail-container .field-eyecatch-movie{
    width: 100%;
    aspect-ratio: 16 / 10;
}

.detail-container .field-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 95%;
    background: #FFD9E1;
    margin: 10px 0;
    margin: 10px auto;
    padding: 5px 0;
    color: #E50012;
}

.detail-container .field-warning .material-icons {
    font-size: 18px;
}

.detail-container .field-sns-wrapper{
    width: fit-content;
}

.detail-container .field-details-wrapper{
    margin-top: 10px;
    border-top: solid 1px #BBBBBB;
}

.detail-container .field-details-wrapper p{
    padding: 0.5rem;
    margin: 0;
}

.detail-container table{
    margin: auto;
}

.detail-container table thead{
    background-color: #365334;
    color: white;
    font-size: 12px;
}

.detail-container table tbody{
    font-size: 14px;
}

.detail-container table tr{
    border-bottom: 1px solid #365334;
}

.detail-container table th, .detail-container table td{
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    border-left: 1px solid #365334;
}

.detail-container table th:nth-last-child(1), .detail-container table td:nth-last-child(1){
    border-right: 1px solid #365334;
}

.detail-container .field-address-iframe-wrapper {
    width: 100%;
    text-align: center;
}

.detail-container .field-address-iframe-wrapper iframe {
    width: 100%;
    height: 240px;
}

.detail-container .wp-block-button a{
    background-color: #365334;
}

.detail-container .wp-block-button a:hover{
    color: white
}

.detail-container .wp-block-button span{
    vertical-align: middle;
}

.detail-container .slick-slide{
    margin: 0 !important;
}

.detail-container .slick-arrow:not(.slick-disabled){
    display: block !important;
    height: 80px;
    width: 30px;
    background: white;
    opacity: 0.4;
    z-index: 999;
    overflow: hidden;
}
.detail-container .slick-prev{
    left: 0;
    border-radius: 0 5px 5px 0;
}
.detail-container .slick-next{
    right: 0;
    border-radius: 5px 0 0 5px;
}
.detail-container .slick-prev::before{
    position: absolute;
    top: 30%;
    left: -8px;
    content: '〈';
    font-size: 28px;
    opacity: 0.5;
    color: black;
}
.detail-container .slick-next::before{
    content: '〉';
    font-size: 28px;
    opacity: 0.5;
    color: black;
    padding-left: 10px;
}

/* 検索バー */
.filter-condition-search-icon{
    background-color: white !important;
    padding: 0.375rem 0.5rem !important;
    color: gray !important;
}
.filter-condition-filter-icon{
    background-color: #365334 !important;
    color: white !important;
    padding: 0.375rem 0.5rem !important;
}
.filter-bar input, .filter-condition-bar input{
    border-left: none;
    padding-left: 0;
}

.filter-bar input:focus, .filter-condition-bar input:focus{
    box-shadow: none;
    border-color: #ced4da;
}

/* 検索パネル */
/* Field Tab*/
.tabs {
    display: inline-flex;
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 45px;
    padding-top: 10px;
    background-color: white;
    border-radius: 0.3rem 0.3rem 0 0;
    border-bottom: 1px solid #365334;
    align-items: center;
}

.tab {
    border-bottom: 3px solid white;
}
.tab:has(.tablinks.active) {
    border-bottom: 3px solid #365334;
}

.tablinks {
    background-color: white;
    border: none;
    margin: 5.5px 0;
    padding: 0 7px;
    cursor: pointer;
    color: #365334;
    font-size: 14px;
    line-height:19px;
    border-right: 1px solid #365334;
}

.tablinks:focus, .tablinks:focus-visible {
    outline: none;
}

.tabcontent {
    margin-top: 40px;
    display: none;
}

.tabcontent h3 {
margin-top: 0;
}

#tab1 .input-group-text{
    background-color: #365334;
    color: white;
    padding: 0.375rem 0.375rem;
}

.filter-condition-shortcut{
    display: flex;
    justify-content: space-between;
}

#tab-other-filter .filter-condition-shortcut {
    border-bottom: solid 1px rgba(0,0,0,.125);
}

.filter-condition-label{
    font-size: 14px;
}
.filter-condition-container .list-group-item{
    padding: 0.75rem;
}

.form-checkbox-label-parent{
    font-size: 18px;
    vertical-align: middle;
    margin: 0;
}
.form-checkbox-list{
}
.form-checkbox-list {
    accent-color: #365334;
}
.form-checkbox-list:indeterminate{
    accent-color: rgba(53, 84, 51, 0.5);
}


.form-list-item-parent::before {
    display: none;
    width: 12px;
    height: 3px;
    position: absolute;
    left: 14.5px;
    top: 24px;
    border-radius: 1px;
    box-sizing: border-box;
    opacity: 0;
    content: '';
    background-color: white;
    z-index: 999;
    pointer-events: none;
}

.form-checkbox-list {
    vertical-align: middle;
	display: none;
		+ label {
			padding-left: 25px;
			position: relative;
			&::before {
				display: block;
				width: 18px;
				height: 18px;
				position: absolute;
				top: 50%;
				left: 0px;
				box-sizing: border-box;
				content: '';
				background: #FFF;
				border: 1px solid #365334;
				border-radius: 2px;
				transform: translateY(-50%);
			}
			&::after {
				display: block;
				width: 7px;
				height: 12px;
				position: absolute;
				left: 5.5px;
				box-sizing: border-box;
				opacity: 0;
				content: '';
				border-right: 3px solid #FFF;
				border-bottom: 3px solid #FFF;
				transform: translateY(-50%) rotate(40deg);
			}
		}
        &:indeterminate + label::before {
        }
        &:checked + label::before {
            background-color: #365334;
        }
        &:checked + label::after {
        opacity: 1;
    }
}
.form-checkbox-label-parent::after{
    top: 12px;
}
.form-checkbox-label-child::after {
    top: 11px;
}
.form-list-item-parent.indeterminate .form-checkbox-list + label::before{
    background-color: rgb(54, 83, 52, 0.5);
}
.form-list-item-parent.indeterminate::before{
    opacity: 1;
    display: block;
}

.filter-condition-area-accordion-icon{
    float: right;
}
.form-list-item-parent[aria-expanded="false"] .material-icons {
    transform: rotate(0deg);
    transition: 0.5s;
}

.form-list-item-parent[aria-expanded="true"] .material-icons {
    transform: rotate(180deg);
    transition: 0.5s;
}
.form-list-item-child{
    padding-left: 2rem !important;
    margin: 0;
}
.form-checkbox-label-child{
    font-size: 16px;
    vertical-align: middle;
    margin: 0;
}

.filter-condition-card-detailed-row{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.filter-condition-submit-button{
    background-color: #365334;
}
.filter-condition-submit-button:hover{
    color: white;
}

.filter-condition-card-detailed{
    width: 45%;
    padding: 0.75rem 0 0.75rem 1rem;
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
}

.filter-condition-card-detailed__long {
    width: 93%;
}

.filter-condition-card-detailed.checked{
    background-color: rgba(53, 84, 51, 0.2);
}


.filter-condition-card-detailed input{
    margin-right: 0.25rem;
    vertical-align: middle;
    height: 18px;
    width: 18px;
    accent-color: #365334;
}

.filter-condition-card-detailed label{
    font-size: 18px;
    vertical-align: middle;
    margin: 0;
}

/* ラジオボタン */
.form-radio-list {
    accent-color: #365334;
    display: none;
}

.form-radio-list + label {
    padding-left: 25px;
    position: relative;
    &::before {
        display: block;
        width: 18px;
        height: 18px;
        position: absolute;
        top: 50%;
        left: 0;
        content: '';
        background: #FFF;
        border: 1px solid #365334;
        border-radius: 50%; /* 円形に */
        transform: translateY(-50%);
    }

    &::after {
        display: block;
        width: 10px;
        height: 10px;
        position: absolute;
        left: 4px;
        top: 50%;
        content: '';
        background: #365334;
        border-radius: 50%; /* 円形に */
        transform: translateY(-50%);
        opacity: 0;
    }
}

.form-radio-list:checked + label::before {
    background-color: #FFF; /* 選択されたときの外側の丸の背景を白に */
    border: 1px solid #365334; /* 選択されたときの外側の丸の枠線を維持 */
}

.form-radio-list:checked + label::after {
    opacity: 1;
}

/* For Desktop,Tablet */
@media screen and (min-width: 576px) {
    .detail-container .field-address-iframe-wrapper iframe {
        width: 100%;
        height: 400px;
    }
    .detail-container .related-video-wrapper .video-description {
        justify-content: flex-start;
        gap: 10px;
    }
    .detail-container .twitter-timeline{
        min-width: 100%;
        padding: 2% 10% 0% 10%;
    }
    .field-detail-modal {
        width: 100%;
    }
    .field-detail-modal .detail-container {
        width: 600px;
        margin: auto;
    }
    .field-detail-modal .field-detail-close{
        padding-right: 100px;
    }
    .filter-condition-modal .filter-condition-container,
    .filter-condition-modal .filter-condition-container .tabs,
    .filter-condition-modal .filter-condition-container .search-panel-footer {
        width: 80%;
    }
    .filter-condition-modal .filter-condition-container .filter-condition-card-detailed-row {
        row-gap: 10px;
    }
    .filter-condition-modal .filter-condition-container .list-group-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .filter-condition-modal .filter-condition-container .form-list-item-child{
        justify-content: flex-start;
    }
    .filter-condition-modal .filter-condition-container .form-inline label {
        justify-content: flex-start;
    }
}

/* モーダルのページリンク化ができるまではページ遷移にしておく */
.field-wrapper{
    display: block;
    text-decoration: none;
    overflow: hidden;
}
.field-wrapper:hover{
    color: inherit;
}
