body {
    background: linear-gradient(270deg, #c3d9cb, #e6c1ac);
    transition: background 0.5s cubic-bezier(0.4, 0.4, 0, 1);
}

.index-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.index-title {
    height: auto;
    margin: 50px 0px 0px 0px;
    width: 319px;
    max-width: 100%;
}

.index-p {
    color: #fcfcfc;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 500;
    height: auto;
    letter-spacing: 0.03em;
    line-height: 2;
    margin: 30px 0px 0px 0px;
    text-align: left;
    text-shadow: 0px 6px 24px rgba(71, 79, 85, 0.2);
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.index-a {
    color: #fcfcfc;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    height: auto;
    letter-spacing: 0.03em;
    line-height: 2;
    margin: 30px 0px 0px 0px;
    text-align: left;
    text-shadow: 0px 6px 24px rgba(71, 79, 85, 0.2);
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.index-img {
    height: auto;
    width: calc(100% - 100px);
    margin: 50px 50px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.27);
}



@media screen and (max-width: 840px) {
    .index-title {
        width: 30%;
        max-width: 30%;
    }
    .index-p, .index-a {
        font-size: 16px;
    }
    .index-img {
    width: calc(100% - 50px);
    margin: 4px 25px 25px 25px;
    }
}

@media screen and (max-width: 420px) {
    .index-p, .index-a {
        font-size: 14px;
    }
    .index-img {
        width: calc(100% - 24px);
        margin: 7px 12px 0px 12px;
    }
}

@media screen and (max-width: 360px) {
    .index-img {
        width: calc(100% - 16px);
        margin: 9px 8px 0px 8px;
    }
}