.about-yuusou-kaitori {
    font-size: 15px;
    font-weight: 500;
    color: var(--txt-gray-dark)!important;
    border: 1px solid var(--bd-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}
.about-yuusou-kaitori img {
    width: 24px;
}

.page-info.tentou {
    display: grid;
    gap: 12px;
    margin-block: 16px;
}
.page-info.tentou .ttl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 4px;
    color: var(--txt-black);
    border-bottom: 1px solid var(--bd-gray);
}
.page-info.tentou .ttl span {
    margin-top: -5px;
}
.page-info.tentou .ttl img {
    width: 22px;
}
.page-info.tentou .desc {
    font-size: 14px;
}
.page-info.tentou .updated {
    font-size: 13px;
    font-weight: bold;
    color: var(--txt-gray-dark);
}

.page-info.yuusou {
    border: 0.5px solid #E6AB09;
    background: #FDFAE2;
    color: #AC7600;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    padding: 12px 10px;
    margin-block: 16px 24px;
}

.filter-panel {
    flex-shrink: 0;
    background: var(--white);
}
.filter-panel .filter-head {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding-block: 18px;
    border-bottom: 1px solid #CBCFD2;
    line-height: 1;
    position: relative;
}
.filter-panel .filter-head .filter-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}
.filter-panel .filter-block {
    padding-block: 32px;
    border-bottom: 1px solid var(--bd-gray);
}
.filter-panel .filter-block.price .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-panel .filter-block.price .filter-name {
    margin-bottom: 0;
}
.filter-panel .filter-block.price input {
    width: 72px;
    height: 36px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 5px;
    border: 1px solid var(--bd-gray);
    text-align: center;
    padding-inline: 0;
}
.filter-panel .filter-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1;
}
.filter-panel .search-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    bottom: 0;
    padding: 24px 12px;
    background: var(--white);
}
.filter-panel .search-btn .btn {
    font-weight: bold;
}

.control-btns {
    display: grid;
    justify-items: start;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
}
.control-btns .sort-btn, 
.control-btns .filter-btn,
.fix-contents .filter-btn {
    color: var(--red);
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
    padding-block: 8px;
    display: flex;
    gap: 6px;
}
.control-btns .sort-btn {
    position: relative;
}
.control-btns .sort-btn::before {
    content: '';
    width: 26px;
    height: 17.5px;
    content: url(../img/kaitori/icon-sort.svg);
}
.control-btns .sort-btn select {
    position: absolute;
    padding-top: 7.5px;
    opacity: 0;
    padding-inline: 11px;
    z-index: 2;
}
.control-btns .sort-btn select option{ 
    font-size: 14px;
    color: var(--txt-gray-dark);
}
.control-btns .filter-btn,
.fix-contents .filter-btn {
    align-items: center;
    padding-inline: 12px;
    border-radius: 5px;
    border: 1px solid var(--red);
    justify-self: end;
}
.control-btns .filter-btn::before,
.fix-contents .filter-btn::before {
    content: '';
    width: 19px;
    height: 19px;
    display: inline-block;
    background: url(../img/kaitori/icon-filter.svg);
}
.control-btns .filter-open-only {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    grid-column: 2 / 2;
    justify-self: end;
    font-size: 14px;
}

.fix-contents {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9997;
    width: 100%;
    background: var(--white);
    padding: 16px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    justify-content: space-between;
    align-items: center;
    display: none;
}
.fix-contents input {
    max-width: 213px;
}

.item-count {
    margin-bottom: 8px;
    font-weight: 600;
}

.tab__body {
    margin-top: 24px;
}

.list {
    line-height: 1.2;
    font-size: 12px;
}
.list .name {
    letter-spacing: 1.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}
.list .tag {
    font-weight: 600;
}
.list .price {
    font-weight: 800;
}
.list .price span {
    font-size: 10px;
}
.list .stock {
    color: var(--red);
    font-weight: 800;
}

.list--card {
    display: grid;
    column-gap: 16px;
    row-gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
}
.list--card .item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.list--card .card {
    position: relative;
    max-width: 79px;
    margin-inline: auto;
}
.list--card .card::before {
    content: "募集中";
    color: var(--white);
    background: var(--bg-black);
    border-radius: 3px;
    padding: 2px 4px;
    position: absolute;
    right: 0;
    transform: translateX(12px);
}
.list--card .item.closed .card::before {
    content: "受付終了";
    background: var(--red);
}
.list--card .name {
    margin-top: 4px;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
}
.list--card .tag {
    border-radius: 3px;
    color: #634B03;
    background: #FFEC6C;
    display: inline-block;
    padding: 2px 4px;
    margin: 8px 0;
}
.list--card .price {
    margin-bottom: 6px;
    font-size: 15px;
}
.list--card .price span {
    font-size: 10px;
}
.list--card .stock {
    margin-bottom: 12px;
}
.list--card .add-btn {
    height: 29px;
    font-size: 15px;
    margin-top: auto;
    margin-bottom: 4px;
}
.list--card .add-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url(../img/kaitori/icon-cart.svg);
    background-size: 100%;
}

.list--text {
    display: none;
}
.list--text .item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid #CBCFD2;
}
.list--text .item:nth-child(odd) {
    background: #F8F9FA;;
}
.list--text .name {
    flex-grow: 1;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
}
.list--text .tag {
    flex-basis: 51px;
    flex-shrink: 0; 
}
.list--text .stock {
    flex-basis: 56px;
    flex-shrink: 0; 
}
.list--text .price {
    flex-basis: 109px;
    flex-shrink: 0; 
    text-align: right;
    font-size: 13px;
}
.list--text .name, 
.list--text .price {
    padding-left: 8px;
    padding-right: 8px;
}
.list--text .tag, 
.list--text .stock {
    padding-left: 6px;
    padding-right: 6px;
}

.modal .list--card {
    display: block;
}
.modal .list--card .item {
    display: grid;
    justify-items: center;
    row-gap: 8px;
    text-align: center;
}
.modal .list--card .card {
    max-width: 112px;
}
.modal .list--card .card::before {
   font-size: 14px;
}
.modal .list--card .name {
    font-size: 16px;
    font-weight: bold;
    margin-top: 16px;
    line-height: 1.5;
}
.modal .list--card .tag {
    font-size: 14px;
}
.modal .list--card .price {
    font-size: 22px;
}
.modal .list--card .price span {
    font-size: 14px;
}
.modal .list--card .stock {
    font-size: 15.5px;
}
.modal .list--card .amount {
    margin-block: 24px;
    justify-content: center;
}
.modal .list--card .add-btn {
    font-size: 18px;
    height: 48px;
}

@media screen and (min-width:768px) {
    .page-info {
        margin-block: 24px;
    }
    .page-info .ttl {
        font-size: 24px;
    }
    .page-info.yuusou {
        margin-top: 28px;
    }
    .pc-wrapper {
        display: flex;
        gap: 24px;
        margin-top: 24px;
    }
    .filter-panel {
        width: 270px;
    }
    .control-btns {
        margin-bottom: 18px;
    }
    .control-btns .filter-btn {
        display: none;
    }
    .fix-contents {
        display: none!important;
    }
    .list--card {
        column-gap: 18px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .filter-panel .search-btn {
        padding-inline: 0;
        padding-block: 24px 32px;
    }
}
@media screen and (max-width:767px) {
    .filter-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999;
        overflow-y: scroll;
        transition: 0.7s;
        transform: translateX(100%);
        max-width: 85%;
        height: 100%;
    }
    .filter-panel.open {
        right: 0;
        transform: translateX(0);
    }
    .filter-panel.open + .filter-overlay {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9998;
        background: rgba(0,0,0,0.3);
    }
    .filter-panel .filter-block .inner {
        padding-inline: 15px;
    }
    .filter-panel .search-btn {
        position: sticky;
        padding-block: 20px;
    }
    .control-btns {
        margin-top: 14px;
    }
}
