/* =====================================
style.css
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: serif;
    background: #f5f2ec;
    color: #333;
}

img {
    width: 100%;
    display: block;
}

.lc-logo {
    width: 30%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================
HEADER
===================================== */

header {
    background: white;
    border-bottom: 1px solid #ddd;
}

.header-inner {

    width: 100%;
    max-width: 1200px;

    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px;
}

header h1 {
    font-size: 28px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 14px;
    letter-spacing: 2px;
}

/* =====================================
PAGE TITLE
===================================== */

.page-title {
    text-align: center;
    padding: 60px 20px;
}

.page-title h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.page-title p {
    color: #777;
}

/* =====================================
PRODUCT LIST
===================================== */

.products {

    width: 100%;
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;

    padding: 0 20px 80px;
}

.product-card {

    background: white;

    padding: 15px;

    transition: 0.3s;

    border-radius: 10px;

    overflow: hidden;
}

.product-card:hover {

    transform: translateY(-5px);
}

.product-card img {

    height: 300px;

    object-fit: cover;

    border-radius: 5px;
}

.product-card h3 {

    margin-top: 15px;

    font-size: 20px;
}

.price {

    margin-top: 10px;

    font-weight: bold;

    font-size: 18px;
}

/* =====================================
DETAIL
===================================== */

.detail-container {

    width: 100%;
    max-width: 1200px;

    margin: 60px auto;

    display: flex;

    gap: 50px;

    padding: 0 20px;
}

.detail-images {

    width: 50%;
}

.main-image {

    height: 600px;

    object-fit: cover;

    border-radius: 10px;
}

.thumbs {

    display: flex;

    gap: 10px;

    margin-top: 10px;
}

.thumbs img {

    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 5px;
}

.detail-info {

    width: 50%;
}

.detail-info h2 {

    font-size: 36px;

    margin-bottom: 20px;
}

.detail-price {

    font-size: 32px;

    margin-bottom: 30px;

    font-weight: bold;
}

.description {

    line-height: 2;

    color: #555;
}

.buy-buttons {

    margin-top: 40px;

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.buy-buttons a {

    background: #3b2b20;

    color: white;

    padding: 18px;

    text-align: center;

    border-radius: 5px;

    transition: 0.3s;
}

.buy-buttons a:hover {

    opacity: 0.8;
}

/* =====================================
FOOTER
===================================== */

footer {

    background: #2a1f18;

    color: white;

    text-align: center;

    padding: 30px;
}

/* =========================
検索エリア
========================= */

.search-area {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto 50px auto;

    padding: 0 20px;

    box-sizing: border-box;
}

.search-area form {

    display: flex;

    gap: 15px;

    justify-content: flex-end;

    align-items: center;

    flex-wrap: wrap;
}

.search-area input {

    flex: 1;

    min-width: 250px;

    max-width: 500px;

    padding: 12px 15px;

    border: 1px solid #ccc;

    background: white;

    font-size: 16px;

    box-sizing: border-box;
}

.search-area select {

    width: 180px;

    padding: 12px;

    border: 1px solid #ccc;

    background: white;

    font-size: 16px;

    box-sizing: border-box;
}

.search-area button {

    padding: 12px 25px;

    border: none;

    background: #3b2b20;

    color: white;

    font-size: 14px;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s;
}

.search-area button:hover {

    opacity: 0.8;
}

.product-image-wrap,
.main-image-wrap {
    position: relative;
    overflow: hidden;
}

.soldout-ribbon {
    position: absolute;
    top: 22px;
    left: -48px;

    width: 180px;

    background: rgba(42, 31, 24, 0.9);
    color: white;

    text-align: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;

    padding: 8px 0;

    transform: rotate(-45deg);
    z-index: 2;
}

.detail-ribbon {
    top: 35px;
    left: -55px;
    width: 220px;
    font-size: 16px;
    padding: 10px 0;
}

.stock-text {
    margin: 10px 0 20px;
    font-weight: bold;
    color: #555;
}

.breadcrumb {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    font-size: 13px;
    color: #777;
}

.breadcrumb a {
    color: #3b2b20;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =====================================
レスポンシブ対応
===================================== */

@media screen and (max-width:768px) {

    /*
    -------------------------
    共通
    -------------------------
    */

    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        display: block;
    }

    .lc-logo {
        width: 40%;
    }

    /*
    -------------------------
    ヘッダー
    -------------------------
    */

    .header-inner {

        width: 100%;

        flex-direction: column;

        align-items: center;

        gap: 20px;

        padding: 20px;
    }

    nav {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }

    /*
    -------------------------
    タイトル
    -------------------------
    */

    .page-title {

        padding: 40px 20px;
    }

    .page-title h2 {

        font-size: 28px;
    }

    /*
    -------------------------
    商品一覧
    -------------------------
    */

    .products {

        width: 100%;

        grid-template-columns: 1fr;

        gap: 20px;

        padding: 0 15px 50px;
    }

    .product-card {

        width: 100%;
    }

    .product-card img {

        width: 100%;

        height: auto;

        aspect-ratio: 1 / 1;

        object-fit: cover;
    }

    .product-card h3 {

        font-size: 18px;
    }

    .price {

        font-size: 16px;
    }

    /*
    -------------------------
    商品詳細
    -------------------------
    */

    .detail-container {

        width: 100%;

        flex-direction: column;

        gap: 30px;

        padding: 15px;

        margin: 30px auto;
    }

    .detail-images,
    .detail-info {

        width: 100%;
    }

    .main-image {

        width: 100%;

        height: auto;

        aspect-ratio: 1 / 1;

        object-fit: cover;
    }

    /*
    -------------------------
    サムネイル
    -------------------------
    */

    .thumbs {

        display: flex;

        flex-wrap: wrap;

        gap: 10px;
    }

    .thumbs img {

        width: 70px;
        height: 70px;

        object-fit: cover;
    }

    /*
    -------------------------
    詳細情報
    -------------------------
    */

    .detail-info h2 {

        font-size: 28px;
    }

    .detail-price {

        font-size: 24px;
    }

    .description {

        line-height: 1.8;
    }

    /*
    -------------------------
    購入ボタン
    -------------------------
    */

    .buy-buttons {

        display: flex;

        flex-direction: column;

        gap: 15px;
    }

    .buy-buttons a {

        width: 100%;

        text-align: center;

        padding: 15px;
    }

    /*
    -------------------------
    フッター
    -------------------------
    */

    footer {

        padding: 20px;
    }

    /* =========================
検索エリア
========================= */

    .search-area form {

        flex-direction: column;

        align-items: stretch;
    }

    .search-area input,
    .search-area select,
    .search-area button {

        width: 100%;

        max-width: 100%;
    }

}