* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

a:hover,
a:active {
    opacity: 0.8;
}

li {
    list-style: none;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.46;
    color: #593511;
}

.br-sp {
    display: none;
}

.marker {
    display: inline;
    padding: 0 10px 0;
    margin: 0 -10px;
    background-image: url(img/marker.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 5px;
}

.main-inner {
    max-width: 1040px;
    margin: auto;
    padding: 60px 79px 65px;
}

.main-title {
    text-align: center;
    margin-bottom: 1.2em;
    font-family: "Shippori Mincho", serif;
    font-weight: 800;
}

.main-title span {
    padding: 0 0.1em;
}

.main-text {
    margin-bottom: 1.875em;
}

.section-title {
    position: relative;
    font-family: "Shippori Mincho", serif;
    font-size: 35px;
    font-weight: 800;
    color: #533705;
    margin-bottom: 1.1em;
    padding-left: 1em;
}

.section-title::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: -35px;
    width: 1.71em;
    transform: translateY(-50%);
    background-image: url(img/key.png);
    background-size: cover;
    aspect-ratio: 60 / 24;
}

.section-title::after {
    content: "";
    display: inline-block;
    width: 100%;
    position: absolute;
    bottom: -7px;
    left: 0;
    background-image: url(img/line.svg);
    background-size: cover;
    aspect-ratio: 900 / 3;
}

.present-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 55px;
}

.present-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 43px;
}

.button {
    text-align: center;
}

.book-img-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.book-img {
    position: absolute;
    top: 0;
    left: 0;
    width: fit-content;
    max-width: 180px;
}

.caption {
    font-family: "Shippori Mincho", serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #593511;
    white-space: nowrap;
    margin-top: 0.3em;
}

.footer {
    text-align: center;
    font-family: "Shippori Mincho", serif;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

@media screen and (max-width: 940px) {
    .br-sp {
        display: block;
    }

    .book-img-wrapper {
        text-align: center;
    }

    .book-img {
        position: static;
        margin: 20px auto 0;
    }
}

@media screen and (max-width: 767px) {
    .br-pc {
        display: none;
    }

    body {
        font-size: 16px;
    }

    .main-title {
        font-size: clamp(2.063rem, 0.807rem + 5.36vw, 3.375rem);
    }

    .main-inner {
        padding: 35px 3% 50px;
    }

    .section-title {
        font-size: clamp(1.5rem, 0.842rem + 2.81vw, 2.188rem);
        padding-left: 2em;
    }

    .section-title::before {
        left: 0;
    }

    .present-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 35px;
    }

    .present-item-img img {
        width: 40px;
    }

    .present-item:nth-of-type(2) .present-item-img img {
        width: 60px;
    }

    .present-number {
        font-size: 40px;
    }

    .present-item-text {
        padding-bottom: 0.5em;
    }

    .button-wrapper {
        margin-bottom: 30px;
    }

    .book-img {
        display: block;
        text-align: center;
    }

    .caption {
        font-size: 16px;
    }

    .footer {
        font-size: 16px;
        margin-bottom: 10px;
    }
}