main {
    max-width: 990px;
    margin: 0 auto;
}
body {
    background-image: url(../img/background_edit_small.png);
    background-repeat: no-repeat;
    background-size: cover;
}
.question {
    margin-bottom: 2rem;
}
.choices button {
    margin: 5px;
}
.hidden {
    display: none;
}
#start-screen,
#diagnosis,
h1 {
    text-align: center;
}
h1 {
    font-size: 36px;
    margin-top: 6%;
}

button {
    border: 1px solid #42210B;
    width: 320px;
    padding: 14px 16px 16px;
    font-size: 1rem;
    border-radius: 100px;
    background-color: #fff;
    transition: all .2s;
}
h1,h2,p,button {
    color: #42210B;
}
#diagnosis {
    width: 90%;
    margin: 0 auto 2rem;
    border-radius: 100px;
    padding: 50px 0px 40px;
    box-shadow: 0px 0px 15px -5px #777777;
}
#question-container {
    font-size: 1.5rem;
    font-weight: 700;
    color: #42210B;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 1.5rem;
}
#choices-container {
    display: grid;
    justify-content: center;
    row-gap: 16px;
}
#back-button,
#reset-button {
    width: 230px;
    border: none;
    background-color: #42210b;
    color: #fff;
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
#reset-button {
    margin-top: 0;
}
.reset-btn-area {
    text-align: center;
    margin-bottom: 150px;
}


/*button hover*/
button:hover {
    background-color: #cba8a2;
}
#reset-button:hover,
#back-button:hover {
    opacity: .7;
    background-color: #856551;
}


@media (max-width: 768px) {
    body {
        background-image: url(../img/background_edit_sp_small.png);
    }
    #diagnosis {
        border-radius: 23px;
    }
    button:hover {
        background-color: inherit;
    }
    #reset-button:hover,
    #back-button:hover {
        opacity: 1;
    }
}

/*==========カスタムCSS==========*/
/*診断開始画面・質問画面*/
#start-screen {
    color: #fff;
    padding: 60px 0;
    /*
    background-color: #fff;
    background-image: url(../img/sindan_top-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    */
    box-shadow: 0px 0px 15px -5px #777777;
    border-radius: 50px;
    width: 90%;
    margin: 0 auto;
}
.img-box__top {
    width: 321px;
    margin: 0 auto 20px;
}
.p__top {
    margin-bottom: 44px;
}
.result-img {
    margin: 0 auto;
}
.result-box img {
    border-radius: 12px;
    width: 100%;
}
.result-box2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.result-link {
    font-size: 16px;
    background-color: burlywood;
    padding: 12px 72px 14px;
    border-radius: 60px;
    box-shadow: 4px 4px 9px -5px #777777;
}
.item-btn {
    margin-top: 2.5rem;
    text-align: center;
}
a:hover {
    opacity: .7;
}

#start-button {
    width: 280px;
}

@media (max-width: 768px) {
    .p__top {
        font-size: 1rem;
        width: 90%;
        margin: 0 auto 44px;
    }
    #start-screen {
        border-radius: 23px;
    }
}
@media (max-width: 430px) {
    .img-box__top {
        width: 80%;
    }
    button:active {
        background-color: #fff; /* クリックしても色が変わらないようにする */
    }
}
@media (max-width: 375px) {
    #start-button {
        width: 85%;
    }
    .choices button {
        width: 290px;
    }
}
@media (max-width: 350px) {
    .choices button {
        width: 270px;
    }
}

/*===画像付き質問画面===*/
.image-question {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.type-table th,
.type-table td {
    border: 1.5px solid #42210B;
    padding: 0.3125rem;
    background-color: #fff;
}
.type-table {
    border-collapse: collapse;
    width: 90.4%;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}
.marudou-box,
.hiradou-box {
    margin-bottom: 1rem;
}
.image-question img {
    width: 80%;
}
.image-question button {
    width: 70%;
}
@media (max-width: 580px) {
    .image-question {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .image-question img {
        width: 90%;
    }
    .image-question button {
        width: 90%;
    }
    th {
        font-size: 1rem;
    }
}
@media (max-width: 430px) {
    .type-table {
        width: 100%;
    }
    .image-question img {
        width: 100%;
    }
    .image-question button {
        width: 100%;
    }
}

/*診断結果ページ*/
.result-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
}
.result-box h3 {
    font-weight: 400;
    line-height: 1.4;
    font-size: 1.5rem;
    margin-top: 0;
}
.result-box .rec-bra {
    font-weight: 700;
}
.result-box p {
    font-weight: 400;
    line-height: 1.6;
}
.result-t-box {
    text-align: left;
}
.result-t-box span {
    font-weight: 700;
}
.item-btn-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
}
.item-btn-box .result-link {
    padding: 12px 52px 14px;
}

@media (max-width: 910px) {
    .pc-br {
        display: none;
    }
    .item-btn-box .result-link {
        padding: 12px 32px 14px;
    }
}
@media (max-width: 768px) {
    .result-box {
        grid-template-columns: 1fr;
    }
    .result-t-box p {
        font-size: 1rem;
    }
    .pc-br {
        display: block;
    }
    .item-btn {
        margin-bottom: 3rem;
    }
    .result-box h3 {
        text-align: center;
    }
    .item-btn-box {
        gap: 0;
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    .item-btn-box .result-link {
        padding: 22px 82px 24px;
    }
    .item-btn-box .item-btn {
        margin-bottom: 2rem;
    }
}
@media (max-width: 530px) {
    .item-btn-box .result-link {
        padding: 22px 62px 24px;
    }
}
@media (max-width: 480px) {
    .item-btn-box .result-link {
        padding: 22px 42px 24px;
    }
}
@media (max-width: 430px) {
    .pc-br {
        display: none;
    }
    .result-box h3 {
        text-align: left;
    }
    .item-btn-box .result-link {
        padding: 22px 14% 24px;
    }
    .item-btn-box .item-btn a {
        font-size: 4vw;
    }
}
@media (max-width: 390px) {
    .item-btn-box .result-link {
        padding: 22px 27px 24px;
    }
}
@media (max-width: 375px) {
    .result-link {
        padding: 12px 60px 14px;
    }
    .pc-br {
        display: none;
    }
    .item-btn-box .result-link {
        padding: 17px 10% 19px;
    }
    .item-btn {
        margin-top: 1.5rem;
    }
    .item-btn-box {
        margin-top: 3rem;
    }
    .item-btn-box .item-btn {
        width: 90%;
    }
}
@media (max-width: 330px) {
    .result-link {
        padding: 12px 40px 14px;
        font-size: 5vw;
    }
}

/*==============アニメーション==============*/
/*質問画面のふわっと演出*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*診断結果画面のふわっと演出*/
.fade-target-result {
    opacity: 0;
    transform: translateY(20px);
}
.fade-in-result {
    animation: fadeInUpResult 0.7s ease forwards;
}
@keyframes fadeInUpResult {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*画像付き質問画面のふわっと演出*/
.fade-target-img {
    opacity: 0;
    transform: translateY(20px);
}

.fade-img-move {
    animation: fadeInUpImg 0.7s ease forwards;
}
@keyframes fadeInUpImg {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.index-function-img {
    width: 100%;
    max-width: 660px;
}
.index-function-img img {
    width: 100%;
    height: auto;
    display: block;
}