@charset "UTF-8";

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Shippori Mincho', serif;
    color: #000000;
    background-color: #fdfdfd;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Container */
.container {
    display: flex;
    max-width: 1480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Sidebar (Vertical Writing) */
/* Sidebar (Vertical Writing) */
.sidebar {
    width: 400px;
    background-color: #f4f4f4;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Fully opaque per request, can adjust if too strong */
}

.site-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.3em;
    font-size: 1.5rem;
    color: #000000;
    padding: 2rem 0;
    /* Add padding around text */
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Keep text above image */
    z-index: 1;
}

.sub-title {
    font-size: 0.9rem;
    /* Becomes top margin in vertical mode */
    color: #000000;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: #ffffff;
    padding: 10px 5px;
    opacity: 0.8;
}

/* Decorative corner lines from wireframe */
.sidebar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 1px;
    background-color: #ccc;
    transform: rotate(-45deg);
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 1px;
    background-color: #ccc;
    transform: rotate(45deg);
    /* Adjusted to match design */
}


/* Main Content */
.content {
    flex-grow: 1;
    padding: 4rem 3rem;
}

/* Product Grid */
.product-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
}

/* Product Item */
.product-item {
    display: flex;
    align-items: flex-start;
    /* Align top */
    gap: 1.5rem;
}

.image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Circle shape */
    overflow: hidden;
    /* Soft shadow for the image like in the sample */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .image-wrapper img {
    transform: scale(1.1);
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #000000;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-name .small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #000000;
}

.rating {
    font-size: 0.7rem;
    color: #ffeb00;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.description {
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.8;
    text-align: justify;
}

/* 
   Responsive Design 
   Tablet: 768px - 1024px
   Mobile: < 768px
*/

@media screen and (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: 200px;
        /* Ensure visible area */
        padding: 0;
        flex-direction: column;
        background-color: #f9f9f9;
        /* Image is absolute, so flex direction technically doesn't affect it, but affects content */
    }



    .site-title {
        writing-mode: horizontal-tb;
        /* Reset to horizontal */
        width: 100%;
        height: auto;
        padding: 1.5rem;
        flex-direction: column-reverse;
        /* Subtitle below main title */
        text-align: center;
        letter-spacing: 0.1em;
        justify-content: center;
        align-items: center;
    }

    .sub-title {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
    }

    .sidebar::before,
    .sidebar::after {
        display: none;
        /* Hide decorative lines on mobile for cleaner look */
    }

    .content {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .product-list {
        grid-template-columns: 1fr;
        /* Single column layout */
        gap: 2.5rem;
    }

    .product-item {
        margin-bottom: 1rem;
        border-bottom: 1px dashed #eee;
        padding-bottom: 2rem;
    }

    .product-item:last-child {
        border-bottom: none;
    }
}

/* Shop Info Section */
.shop-info-container {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 3px dotted #eee;
    gap: 3rem;
    color: #000000;
}

.shop-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #cb473f;
}

.shop-address,
.shop-phone {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.shop-instagram {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #cb473f;
}

.shop-instagram i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.shop-instagram:hover {
    opacity: 0.7;
}

.shop-map {
    flex: 1;
    height: 300px;
    background-color: #f0f0f0;
    /* Fallback */
}

.shop-map iframe {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 900px) {
    .shop-info-container {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .shop-map {
        height: 250px;
    }
}