@charset "UTF-8";

.book_contents{
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-around;
    gap: 20px;
}
@media (max-width:480px){
    .book_contents{
        flex-direction: column;
        align-items: center;
    }
}
.thumb{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* 狭くなっても縮まないようにする */
}
.thumb p{
    max-width: 240px;
    color: var(--main-color-1);
}
.book_thumb{
    display: block;
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: whitesmoke;
}
.detail{
    flex: 1;
    display: block;
    max-width: 560px;
}
.book_contents h3, .book_contents h3:before{ all: initial; }
.book_contents h3{
    font-size: 20px;
    font-weight: bold;
}
.price{
    margin: 10px auto;
}
.price span{
    font-family: "arial black";
    font-size: 24px;
    color: var(--main-color-1);
}
.price .bt01{
    display: inline-block;
    margin-left: 1em;
}

.detail dl dt{
    color: var(--main-color-1);
}



/**********************************************
  本の一覧
**********************************************/
.books{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    overflow-x: auto;
}
@media (max-width:899px){
    .books{
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }
}
.books .book{
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: whitesmoke;
    padding: 1em;
    box-sizing: border-box;
}
.books .book:hover img{
    transform: scale(1.1);
}
.books .book img{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
    margin-bottom: 1rem;
    transition: 0.3s;
}
.books .book .booktitle{
    color: #333;
    font-weight: bold;
}
.books .book .bookauthor{
    color: #444;
    margin-bottom: 2em;
}
.books .book .bookprice{
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
}
.bt_more{
    all: initial;
    display:block;
    width: fit-content;
    margin: 10px 0 10px auto;
    font-size:1.1em;
    color: var(--main-color-1);
    text-align:right;
    cursor: pointer;
}

/**********************************************
  カート追加完了案内表示
**********************************************/
#cart_in_ok{
    /* display: none; */
    position: fixed;
    top: 0px; left: 0px;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}
#cart_in_ok .wrap{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    min-width: 200px;
    max-width: 260px;
    padding: 20px 25px;
    background-color: white;
    border: 3px solid var(--main-color-3);
    border-radius: 10px;
}
#cart_in_ok .wrap .cartin_caption{
    font-size: 1.1em;
    font-weight: bold;
}
#cart_in_ok .wrap .cartin_info{
    display: flex;
    flex-direction: column;
}
#cart_in_ok .wrap .cartin_info span{
    margin-left: 1em;
}
#cart_in_ok .wrap .cartin_info span:before{
    content: attr(data-label);
    display: block;
    margin-left: -1em;
    font-size: 0.9em;
    color: var(--main-color-1);
}
#cart_in_ok .wrap .bt_continue{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}
#cart_in_ok .wrap .bt_continue .bt01{
    padding: 2px 8px;
}
#cartin_close{
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: black;
    cursor: pointer;
    user-select: none;
}
#cartin_close div{
    position: absolute;
    top: 50%; left: 50%;
    width: 60%;
    height: 3px;
    background-color: white;
}
#cartin_close div:nth-child(1){ transform: translate(-50%, -50%) rotate(45deg); }
#cartin_close div:nth-child(2){ transform: translate(-50%, -50%) rotate(-45deg); }