body,
h1,
p,
ul,
li,
input,
button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.main {
    padding: 0;
}

.tabs-container {
    margin-top: 10px;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

.tabs {
    display: flex;
    margin-left: 10%;
    font-size: 20px;
    font-weight: bold;
    gap: 7%;
    padding-top: 10px;
}

.tab-link {
    color: #000;
    text-decoration: none;
}

.tab-link.active {
    color: red;
    font-weight: bold;
}

/* 商品一覧 */
.item-list.grid-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 50px;
    padding: 0 16px;
    margin: 50px auto;
    max-width: 95%;
}

.item {
    text-align: center;
    position: relative;
}

.item-image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.item-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 20px;
}

.item-name {
    color: #333;
    text-align: left;
    text-decoration: none;
}

a {
    text-decoration: none;
}

/* タブレット用 */
@media (max-width: 1024px) and (min-width: 768px) {
    .item-list.grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px;
    }
}

/* スマホ用 */
@media (max-width: 767px) {
    .item-list.grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 8px;
        margin: 20px auto;
    }

    .tabs {
        margin-left: 5%;
        gap: 10%;
        font-size: 16px;
    }

    .item-info {
        font-size: 16px;
    }
}