* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    background-color: #ffffff;
    padding: 20px 10px;
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    background-color: #f8f6f2;
    padding-bottom: 50px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 250%;
    padding: 50px 0 30px;
    color: #666666;
    font-family: serif;
    font-weight: 500;
}

.main-title span {
    font-size: 70%;
}

.subtitle {
    font-size: 150%;
    margin-bottom: 8px;
    color: #666666;
}

.level-box {
    padding: 35px 35px;
    width: 80%;
    margin: 0 auto 30px;
    background-color: #ffffff;
    border-radius: 20px;
}

.level-title {
    font-size: 160%;
    color: #8b6931;
    text-align: center;
    margin-bottom: 15px;
}

span.level1{
    background-color: #a7e475;
    padding: 4px 16px 4px;
    border-radius: 50px;
    margin-bottom: 10px;
    display: block;
    font-size: 80%;
}

span.level2{
    background-color: #f5e318;
    padding: 4px 16px 4px;
    border-radius: 50px;
    margin-bottom: 10px;
    display: block;
    font-size: 80%;
}


span.level3{
    background-color: #fbcc70;
    padding: 4px 16px 4px;
    border-radius: 50px;
    margin-bottom: 10px;
    display: block;
    font-size: 80%;
}

span.level4{
    background-color: #d5ba91;
    padding: 4px 16px 4px;
    border-radius: 50px;
    margin-bottom: 10px;
    display: block;
    font-size: 80%;
}

.content-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.image-area {
    flex-shrink: 0;
    width: 39%;
    height: 180px;
    background-color: #c8c8c8;
}

.image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-area {
    flex: 1;
    font-size: clamp(12px, 2.8vw, 14px);
}

.how-to-use {
    text-align: center;
    margin: 20px 0 12px;
    font-size: 130%;
    font-family: "EB Garamond", serif;
    color: #cca874;
}

.method-box {
    background-color: #ffffff;
    color: #666666;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 150%;
    border: #e2c8a2 solid 1px;
    border-radius: 50px;
}

.method-box span {
    font-size: 80%;
}

.method-box a {
    color: #666666;
    text-decoration: none;
}

.method-box a:hover {
    text-decoration: underline;
}

.method-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 130%;
    text-align: center;
    color: #222;
}

.skincare-steps {
    font-size: clamp(12px, 2.8vw, 14px);
    line-height: 1.9;
}

.skincare-steps strong {
    font-weight: bold;
}

/* LEVEL04専用のスタイル */
.level4-content-with-products {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.level4-left-content {
    flex: 1;
}

.level4-product-images {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
    align-items: flex-start;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.product-item .product-image {
    width: 50px;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    padding: 3px;
    background-color: #ffffff;
}

.product-label {
    font-size: 10px;
    color: #666666;
    text-align: center;
    line-height: 1.3;
}

/* 「こんな使い方も！」専用のスタイル */
.extra-content-with-images {
    display: flex;
    gap: 20px;
    align-items: anchor-center;
}

.extra-left-content {
    flex: 1;
}

.extra-illust-images {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.illust-image {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* タブレット対応 */
@media (max-width: 768px) {
    body {
        padding: 15px 8px;
    }

    .container {
        padding: 30px 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .level-box {
        padding: 15px 12px;
        margin-bottom: 25px;
        width: 90%;
    }

    .image-area {
        width: 140px;
        height: 100px;
    }

    .level4-content-with-products {
        gap: 15px;
    }

    .level4-product-images {
        gap: 10px;
    }

    .product-item .product-image {
        width: 45px;
    }

    .product-label {
        font-size: 9px;
    }

    .extra-content-with-images {
        gap: 15px;
    }

    .extra-illust-images {
        gap: 10px;
    }

    .illust-image {
        width: 50px;
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    body {
        padding: 10px 5px;
    }

    .container {
        border-width: 1px;
        padding: 20px 12px;
    }

    .header {
        margin-bottom: 25px;
    }

    .main-title {
        margin-bottom: 15px;
        font-size: 200%;
        padding: 30px 0 20px;
    }

    .subtitle {
        font-size: 120%;
    }

    .level-box {
        border-width: 1px;
        padding: 12px 10px;
        margin-bottom: 20px;
        width: 95%;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .image-area {
        width: 100%;
        height: 150px;
        max-width: 280px;
        margin: 0 auto;
    }

    .text-area {
        text-align: left;
    }

    .method-box {
        padding: 8px;
        margin-bottom: 12px;
        font-size: 120%;
        border-radius: 10px;
    }

    .method-title {
        margin-bottom: 8px;
    }

    /* LEVEL04のスマホ対応：画像を上部に配置 */
    .level4-content-with-products {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .level4-product-images {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-bottom: -10px;
    }

    .product-item .product-image {
        width: 50px;
    }

    .product-label {
        font-size: 10px;
    }

    /* 「こんな使い方も！」のスマホ対応：画像を上部に配置 */
    .extra-content-with-images {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .extra-illust-images {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-bottom: -10px;
    }

    .illust-image {
        width: 60px;
    }
}
