/*
Theme Name: Ricollo Shop Theme
Author: Kazuyoshi Korosue
Version: 0.1
*/

/* # Kashi kobo site common */
body {
    margin: 0px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0,8rem;
    color: #101010;
}

.top-line {
    background-color: #101010;
    width: 100%;
    height: 12px;
}

.header-content {
    display: flex;
    flex-direction: row;
    padding: 0.5rem 0.5rem;
    width: 100%;
    height: 64px;
    align-items: center;
    box-sizing: border-box;;
}

.header-content>* {
    flex: 1;
}

.header-logo {
    text-align: center;
    flex: 100px 0;
}

.header-logo img {
    width: 80px;
}

.header-menu, .header-select {
    box-sizing: border-box;
    padding: 0 24px;
}

.header-select ul {
    display: flex;
    padding: 0;
    justify-content: flex-start;
}

.header-menu ul {
    display: flex;
    padding: 0;
    justify-content: flex-end;
}

.header-menu li, .header-select li {
    font-size: 0.8em;
    list-style-type: none;
    margin: 0rem 0.5rem;
}

header li a:active {
    opacity: 0.3;
}
header li a:link,
header li a:visited
{
    color:#101010;
    text-decoration: none;
}
header li a:hover {
    color: gray;
}

.header-menu input[type=checkbox] {
    display:none;
}

.header-menu .sub-menu
 {
    display:none;
    flex-direction:column;
    background-color:white;
    box-shadow: 1px 1px 5px 0px #00000020;
    position:absolute;
    z-index:500;
    padding: 0px 8px 8px;
 }

 .header-menu .sub-menu-item {
     line-height: 2em;
 }


 .header-menu input[type=checkbox]:checked+.sub-menu {
    display:flex;
 }

.page-section {
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.shop-content h2, .about-content h2 {
    font-size: 1em;
    font-weight: 400;
    width: 100%;
    background-color: #606060;
    padding-left: 1rem;
    margin-top: 1rem;
    color:#f0f0f0;
}

.shop-content img, .about-content img {
    height: unset;
}

.span-50 {
    width: 48%;
    margin: 1%;
}

.text-script {
    width: 100%;
}
.text-script::after {
    content: "";
    display:block;
    clear:both;
}

.float-left {
    float:left;
    width: 46%;
    margin: 16px 16px 16px 0px;
}

.float-left img {
    display: block;
    width: 100%;
}

.float-right {
    float:right;
    width: 46%;
    margin: 16px 0px 16px 16px;
}

.float-right img {
    display: block;
    width: 100%;
}

/* ## Main content */
.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 0rem auto;
    padding-bottom: 4rem;
}

/* ## footer */
footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
}

.footer-content {
    background-color: #101010;
    color: #f0f0f0;
    height: 3.5rem;
    font-size: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.footer-content .footer-menu {
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    width:100%;
    max-width:1280px;
    margin:0 auto;
}

.footer-content a:link, 
.footer-content a:visited,
.footer-content a:active,
.footer-content a:hover {
    color:#f0f0f0;
    text-decoration: none;
}

.footer-content #copyright {
    text-align:center;
}

/* # Top Page */
/* ## Slide show */

.top-image-base {
    width: 100%;
    height: 320px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-image-box {
    width: 100%;
    height: 280px;
    /*background-color: rgb(32, 17, 0);*/
    margin: 0 auto;
    position: relative;
}

.slider-image-set {
    position: relative;
    width: 600px;
    height: 280px;
    margin: 0 auto;
}
.slider-image {
    position: absolute;
}

.slider-image img {
    width: 594px;
    height: 280px;
}

.slider-image img:hover {
    opacity: 0.6;
}

.slider-nav-box {
    margin-top: 12px;
}

.slider-navi-set {
    display:flex;
    flex-direction: row;
    justify-content: center;

}

.slider-prev {
    position: absolute;
    z-index: 100;
    left: 50%;
    margin-left: -220px;
    top: 180px;
    color:#f0f0f0;
    font-size: 2.5em;
    opacity: 0;
}

.slider-next {
    position: absolute;
    z-index: 100;
    right: 50%;
    margin-right: -220px;
    top: 180px;
    color:#f0f0f0;
    font-size: 2.5em;
    opacity: 0;
}

.slider-nav-btn {
    width: 6px;
    height: 6px;
    border: 1px solid gray;
    border-radius: 3px;
    margin: 0 5px;
    cursor: pointer;
}

.slider-nav-btn[data-selected] {
    background-color: gray;
}


/* ## Main content */
.title {
    margin: 0.8rem auto;
    font-size: 0.8rem;
    width: 70%;
    text-align: center;
}

.cardset {
    display: grid;
    display: -ms-grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: min-content min-content min-content;
    -ms-grid-columns: 1fr 1fr 1fr;
    -ms-grid-rows: 1fr 1fr max-content;
    margin: 0 auto;
    justify-content: center;
}

.card {
    margin: 1%;
    box-sizing: border-box;
    position: relative;
    overflow:hidden;
}

.card-crayon {
    grid-column: 1/2;
    grid-row: 1/2;
    -ms-grid-column: 1;
    -ms-grid-row: 1;
}

.card-twitter {
    grid-column: 3/4;
    grid-row: 1/4;
    -ms-grid-column: 3;
    -ms-grid-row: 1;
    -ms-grid-row-span: 3;
    height: fit-content;
}
.card-onlineshop {
    grid-column: 2/3;
    grid-row: 1/2;
    -ms-grid-column: 2;
    -ms-grid-row: 1;
}
.card-bottle {
    grid-column: 2/3;
    grid-row: 1/2;
    -ms-grid-column: 2;
    -ms-grid-row: 1;
}
.card-shops {
    grid-column: 1/2;
    grid-row: 2/3;
    -ms-grid-column: 1;
    -ms-grid-row: 2;
}
.card-about {
    grid-column: 2/3;
    grid-row: 2/3;
    -ms-grid-column: 2;
    -ms-grid-row: 2;
}

.card-border, .twitter-timeline{
    border: 1px solid lightgray;
}
.card img {
    width: 100%;
    opacity: 1.0;
    transition: opacity 0.3s ease-out;
    /* height:100%; */
    /* object-fit:cover; */
}

.card>a:visited,
.card>a:link {
    color: inherit;
    text-decoration: none;
}

.card-title {
    position: absolute;
    display:block;
    text-align:center;
    font-size: 1.1em;
    width:100%;
    top: 50%;
    left:-300px;
    transition: left 0.3s ease-out
}

.card-title-j {
    position: absolute;
    display:block;
    text-align:center;
    font-size: 0.7em;
    width:100%;
    top: 50%;
    margin-top: 1.5rem;
    right:-300px;
    transition: right 0.3s ease-out
}

.card:hover img {
    opacity: 0.3;
}

.card:hover .card-title {
    left: 0px;
}

.card:hover .card-title-j {
    right: 0px
}

/* ## footer overwrite*/
.home footer {
    position: initial;
}

/* # Shops site */
.shops {
    font-size: 0.8em;
}

.shops .main-content {
    max-width: 800px;
}

.shops .shop-category {
    width: 100%;
    background-color: gray;
    color: #f0f0f0;
    margin-top: 3rem;
}

.shops .shop-category-summary {
    margin-top: 1rem;
    padding-left: 1rem;
    width: 100%;
}

.shops .shop-list {
    margin-top: 1rem;
    padding-left: 1rem;
}
.shops .shop-list .shop-info {
    border-top: 1px dotted gray;
}

.shops .shop-list .shop-info:first-of-type {
    border-top: none;
}

.shops .shop-address {
    padding-left: 2rem;
}

/* # Sweets site */
.sweets {
    font-size: 0.8em;
}

.sweets-content {
    max-width: 800px;
}

.sweets-content img {
    height: unset;
}

.sweets .pdt-box {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content: center;
    padding-bottom: 6rem;
}

.sweets-content .pdt-header {
    margin: 0px auto 16px;
    width:100%;
}

.sweets-content .pdt-header:before {
    content: "";
    display:block;
    width: 100%;
    height: 12px;
    background-color: #101010;
}

.sweets-content .pdt-header img {
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
}

.sweets .pdt-content {
    width: 90%;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.sweets .shell-delimiter {
    display:flex;
    flex-direction:row;
    justify-content: space-around;
    width:100%;
    margin-top: 1rem;
    margin-bottom:2rem;
}

.sweets .shell-end {
    display:flex;
    flex-direction:row;
    justify-content: space-around;
    width:100%;
    margin-top: 1rem;
    margin-bottom:1rem;
}

.sweets .shell-delimiter img,
.sweets .shell-end img {
    width: 24px;
}
/* # About site */

.about {
    font-size: 0.8em;
}
.about .main-content {
    max-width: 800px;
}

.crayon-desc {
    display:flex;
    flex-direction: row;
    align-items:center;
}
.crayon-desc::before {
    content: "";
    background-position: center;
    background-size:contain;
    background-repeat: no-repeat;
    display:block;
    width: 3em;
    height: 2.5em;
}
.crayon-desc-plain::before {
    background-image:url("./images/crayon_plain.png");
}
.crayon-desc-cocoa::before {
    background-image:url("./images/crayon_cocoa.png");
}
.crayon-desc-greentea::before {
    background-image:url("./images/crayon_greentea.png");
}
.crayon-desc-purple::before {
    background-image:url("./images/crayon_purple.png");
}
.crayon-desc-strawberry::before {
    background-image:url("./images/crayon_strawberry.png");
}
.crayon-desc-caramel::before {
    background-image:url("./images/crayon_caramel.png");
}

.single-bottle {
    width: 100%;
    max-width: 800px;
    margin:16px auto;
}

.single-bottle-name {
    font-size: 1.5em;
    font-weight: 600;
}

.single-bottle-photo {
    width: 46%;
    margin: 0 16px;
    float:left;
}

.single-bottle-photo img{
    width: 100%;
}

.single-bottle:nth-child(even) .single-bottle-photo{
    float:right;
}

.single-bottle::after {
    clear:both;
    display:block;
    content: "";
}

.single-other {
    width: 100%;
    max-width: 800px;
    margin:16px auto;
}

.single-other-name {
    font: 1.2em;
    font-weight: 600;
}

.single-other-photo {
    width: 46%;
    margin: 0 16px;
    float:left;
}

.single-other-photo img{
    width: 100%;
}

.single-other:nth-child(even) .single-other-photo{
    float:right;
}

.single-other::after {
    clear:both;
    display:block;
    content: "";
}

.top-carousel-wrapper {
    width:100%;
    overflow-x: hidden;
}
.top-carousel {
    width:3000px;
    margin: 0 calc(50vw - 1500px);
}

@media screen and (max-width:960px) {
    .cardset {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: min-content min-content min-content min-content;
        -ms-grid-columns: 1fr 1fr;
        -ms-grid-rows: 1fr 1fr 1fr max-content;
    }
    .card-crayon {
        grid-column: 1/2;
        grid-row: 1/2;
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    }
    
    .card-twitter {
        grid-column: 2/3;
        grid-row: 2/5;
        -ms-grid-column: 2;
        -ms-grid-row: 2;
        -ms-grid-row-span: unset;
        /* height: fit-content; */
    }
    .card-onlineshop {
        grid-column: 2/3;
        grid-row: 1/2;
        -ms-grid-column: 2;
        -ms-grid-row: 1;
    }
    .card-bottle {
        grid-column: 2/3;
        grid-row: 1/2;
        -ms-grid-column: 2;
        -ms-grid-row: 1;
    }
    .card-shops {
        grid-column: 1/2;
        grid-row: 2/3;
        -ms-grid-column: 1;
        -ms-grid-row: 2;
    }
    .card-about {
        grid-column: 1/2;
        grid-row: 3/4;
        -ms-grid-column: 1;
        -ms-grid-row: 3;
    }
}
@media screen and (max-width:600px) {
    .top-carousel {
        width:100%;
        margin:0 0;
    }
    .cardset {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .card {
        width: 98%;
    }
    .header-content {
        padding: 0.5em 0;
    }
    .header-menu {
        padding: 0 8px;
    }
    .header-menu li, .header-select li {
        font-size: 0.8em;
        list-style-type: none;
        margin: 0rem 0.2rem;
    }
    .header-menu .first-char {
        color: rgb(136, 66, 0);
        /* font-weight: 600; */
    }
    
    header .header-select {
        display:none;
    }
    header .header-logo {
        flex: 55px 0;
    }
    header .header-logo img {
        width: 50px;
    }

    .card-title{
        display: block;
        position: absolute;
        left: 0px;
        top: 50%;
        width: 100%;
        text-align: center;
        color:#f0f0f0;
        text-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3);
    }
    .card-title-j {
        display: block;
        position: absolute;
        left: 0px;
        top: 50%;
        width: 100%;
        text-align: center;
        color:#f0f0f0;
        text-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3);
    }
    .top-image-base {
        width: 100%;
        height: 60vw;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .slider-image-box {
        width: 100vw;
        height: 46.6vw;
        margin: 0 auto;
        position: relative;
    }
    
    .slider-image-set {
        position: relative;
        width: 100vw;
        height: 46.6vw;
        margin: 0 auto;
    }
    
    .slider-image {
        position: absolute;
    }
    
    .slider-image img {
        width: 100vw;
        height: 46.6vw;
    }
    .span-50 {
        width: 98%;
    }
}

