@charset "UTF-8";

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    line-height: 1.5;
    color: #4b1900;
    background-color: #015551;
    margin: 0;
}
a {
    text-decoration: none;
    color: #4b1900;
}

.page-top {
    color: #FDFBEE;
}
.text-center {
    text-align: center;
}

/* ----- header ----- */

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-header {
    position: sticky;
    top: 0;
    padding: .5rem 1rem;
    background-color: #FDFBEE;
}
.logo {
    width: 115px;
    padding-top: 10px;
}
.main-nav {
    display: flex;
    gap: 1rem;
    list-style: none;
}
.main-nav a {
    color: #560d04;
}
.main-nav a:hover {
    color: #5f3830;
}

/* ----- main ----- */

.main-margin {
    margin-top: 3rem;
}
.welcome-text {
    font-size: 1.8rem;
    text-align: center;
    padding: .5rem;
    white-space: nowrap;
    font-family: "DotGothic16", sans-serif;
    font-style: normal;  
}
.main-visual {
    margin: 1rem auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: url(../img/main-visual.png);
    background-position: center;
    background-size: cover;
}

/* about */

.about-title {
    font-weight: normal;
    white-space: nowrap;
}
.about-text::after {
    content: url(../img/about.png);
    position: absolute;
    top: 550px;
    left: 240px;
    transform: translate(-50%, 50%);
    z-index: -1;
    white-space: nowrap;
}
.about-text {
    margin-top: .6rem;
    font-size: .9rem;
    line-height: 1.6;
}

/* Dx-btn */

.aptitude-dx {
    margin: 4rem auto;
    width: 250px;
    height: 50px;
    border-radius: 50px;
    background-color: #FDFBEE;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.aptitude-dx a {
    color: #4b1900;
}

/* JOB */

.sec-title {
    font-weight: normal;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
#job .sec-title::after {
    content: url(../img/job.png);
    position: absolute;
    top: 940px;
    left: 265px;
    transform: translate(-50%, 50%);
    z-index: -1;
    white-space: nowrap;
}
.content {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
}
.job-name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
}
.job-text {
    font-size: .9rem;
    width: 60%;
    line-height: 1.4;
    margin-left: 1rem;
}
.adventurer {
    background-color: #FF5938;
    box-shadow: 0 4px 4px #FF0000;
}
.adventurer:hover {
    background-color: #FF0000;
}
.adventurer .job-name {
    width: 90px;
    height: 90px;
    background-image: url(../img/adventurer.png);
    background-position: center;
    background-size: contain;
}
.merchant {
    background-color: #57B4BA;
    box-shadow: 0 4px 4px #00ACB8;
    padding-left: 1.8rem;
}
.merchant:hover {
    background-color: #00ACB8;
}
.merchant .job-name {
    width: 65px;
    height: 65px;
    background-image: url(../img/merchant.png);
    background-position: center;
    background-size: contain;
}
.artist {
    background-color: #e1eec1;
    box-shadow: 0 4px 4px #abc379;
}
.artist:hover {
    background-color: #abc379;
}
.artist .job-name {
    width: 80px;
    height: 80px;
    background-image: url(../img/artist.png);
    background-position: center;
    background-size: contain;
}
.others {
    background-color: #8490c8;
    box-shadow: 0 4px 4px #5D79B6;
}
.others:hover {
    background-color: #5D79B6;
}
.others .job-name {
    font-size: 1.4rem;
}

/* Q&A */

#qanda {
    margin-top: 4rem;
    padding-bottom: 4rem;
}
#qanda .sec-title::after {
    content: url(../img/sword.png);
    position: absolute;
    top: 1600px;
    left: 90px;
    transform: translate(-50%, 50%);
    z-index: -1;
    white-space: nowrap;
}
.qa {
    width: 300px;
    margin: .8rem auto;
    border: none;
    border-radius: 15px;
    background-color: #FDFBEE;
}
.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 3em;
    font-weight: bold;
}
.question::before,
.answer::before {
    position: absolute;
    left: 1em;
    font-weight: bold;
    font-size: 1.3rem;
}
.question::before {
    color: #57B4BA;
    content: "Q";
}
.question::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #560d04;
    border-right: 3px solid #560d04;
    content: '';
    transition: transform .5s;
}
.qa[open] .question::after {
    transform: rotate(225deg);
}
.answer {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3em 1.5em;
    transition: transform .5s, opacity .5s;
}
.qa[open] .answer {
    transform: none;
    opacity: 1;
}
.answer::before {
    color: #FF5938;
    line-height: 1.2;
    content: "A";
}
#qanda::after {
    content: url(../img/witch-hat.png);
    position: absolute;
    top: 2050px;
    left: 320px;
    transform: translate(-50%, 50%);
    z-index: -1;
    white-space: nowrap;
}

.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #FDFBEE;
    background-color: #560d04;
}
.scroll-top:hover {
    color: #560d04;
    background-color: #FDFBEE;
}

/* ----- footer ----- */

.page-footer {
    background-color: #FDFBEE;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ---------- デスクトップ版 ---------- */

@media (min-width: 450px) {
    body {
        max-width: 375px;
        margin: 0 auto;
        position: relative;
        background-image: url(../img/main_visual.png);
        background-position: center;
        background-size: cover;
        background-attachment: fixed;
        background-color: rgba(255,255,255,0.3);
        background-blend-mode: lighten;
    }
    .dt-bgc {
        position: fixed;
        width: 375px;
        height: 100%;
        margin: 0 auto;
        top: 0;
        background-color: #015551;
        z-index: -2;
    }
}