.sp {
    display: block;
}

.pc {
    display: none;
}

.bg {
    /* background: #6489ad; */
    font-family: "Shippori Mincho", serif;
    box-sizing: content-box;
    position: relative;
    min-height: 300vh;
}

.main {
    position: relative;
    height: 100vh;
}

/*back*/
.fade-background {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    top: 0;
    left: 0;
}

.fade-background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* visibility: hidden; */
    transition: opacity 3s ease-in-out, visibility 1s ease-in-out;
}

.fade-background img.active {
    opacity: 1;
}

.kenburns-bottom-left {
    -webkit-animation: kenburns-bottom-left 5s ease-out both;
    animation: kenburns-bottom-left 5s ease-out both;
}

.box {
    position: relative;
    padding: 3em 1em;
    color: white;
    z-index: 1;
    width: 120%;
}

.box svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.box rect {
    fill: none;
    stroke: white;
    stroke-width: 1;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 5s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}


/* テキスト　*/

.mincho {
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-style: normal;
}

.txt_intro {
    z-index: 10;
    position: absolute;
    top: 20%;
    left: 45%;
    transform: translate(-45%, -50%);
    margin: 0;
    padding: 0;
}

.txt_intro h1 {
    color: #fff;
    text-align: center;
    font-size: 2em;
}

.txt_scroll {
    width: 90%;
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

.txt_scroll p {
    font-size: 1.8em;
    color: #fff;
    text-align: center;
    line-height: 1;
    margin: 1em 0;
}

.fadein {
    opacity: 0;
    animation: fadein 2s ease forwards;
}

@keyframes fadein {
    100% {
        opacity: 1;
    }
}


/*以下遅延の指定*/
.txt01 {
    animation-delay: 1s;
}

.txt02 {
    animation-delay: 2s;
}

.txt03 {
    animation-delay: 3s;
}

.txt04 {
    animation-delay: 4s;
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-element.active {
    opacity: 1;
    transform: translateY(0);
}

.text-focus-in {
    -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

/*scroll */
.scroll {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scroll-text a {
    color: #fff;
    text-decoration: none;
}

.scroll-text {
    color: #fff;
    font-size: 16px;
    text-align: center;
    transform: rotate(90deg);
}

.scroll-border {
    position: relative;
    top: 50px;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.scroll-border::before {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 40px;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    animation: scrollbar 2.0s ease-in-out infinite;
    margin: auto;
}

@keyframes scrollbar {
    0% {
        height: 0;
        top: 0;
    }

    30% {
        height: 100%;
    }

    100% {
        top: 100%;
    }
}

.wrap {
    background-color: rgba(255, 255, 255, 0.85);
    width: 100%;
    margin: 2em auto;
    padding: 2em 2em 4em;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.bg_wrap h2 {
    font-size: 2.2em;
    margin: 0.5em 0;
    font-weight: bold;
}

.bg_wrap h3 {
    font-size: 1.8em;
    margin: 2em 0;
    font-weight: bold;
}

.bg_wrap p {
    font-size: 1.6em;
    margin: 1em 0;
    padding: 1em;
}

.line {
    border: 1px solid #000;
    padding: 5px;
    margin: 1em 0;
}

.line p {
    font-size: 1.6em;
    font-weight: bold;
}

.tarm p {
    font-size: 1.7em;
}

.att ul {
    list-style-type: none !important;
    font-size: 1.4em;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.att ul li {
    margin-bottom: 0.5em;
}

.white-box {
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 2em auto;
}

.bg_wrap h4 {
    font-size: 1.6em;
    font-weight: normal;
}

#step dl {
    margin-bottom: 1.6em;
    width: 100%;
    font-size: 1.6em;
}

#step dl dt em {
    font-weight: bold;
    font-size: 2em;
}

#step dl dd {
    text-align: center;
    margin: 1em 0 2em;
}

#step dl dd img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

.tips_wrap {
    text-align: center;
    margin: 3em auto;
}

.tips_wrap dl {
    width: 100%;
    margin: 0 auto;
}

.tips_wrap dl dt {
    margin-top: 2em;
    line-height: 1.2;
    font-size: 1.8em;
}

.tips_wrap dl dt span {
    font-size: 80%;
}

.tips_wrap dl dd {
    text-align: center;
    margin-inline-start: 0px;
    margin-top: 1em;
}

.tips_wrap dl dd img {
    width: 90%;
}


.CV {
    padding: 2em 0 10em;
    text-align: center;
}

.cvp_wrap {
    padding: 0 0 2em;
}

.cvp_wrap p {
    font-size: 1.6em;
    color: #fff;
    font-weight: bold;
    line-height: 2;
}

.btn {
    margin: 0 auto;
    width: 90%;
    text-align: center;
}

.btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 5% 3% 5%;
    font-size: 1.6em;
    text-decoration: none;
}

.btn a span {
    display: block;
    text-align: center;
    line-height: 1;
    color: #fff;
}

.btn a:after {
    display: block;
    transform: rotate(45deg);
    content: "";
    border-top: #FFF 1px solid;
    border-right: #FFF 1px solid;
    width: 16px;
    height: 16px;
    position: relative;
    right: 0%;
    top: 3px;
}

/* スクロールによるフェード*/
.fade {
    opacity: 0;
    transform: translateY(0);
    transform: translateY(20px);
    /* transition: all 0.5s ease-out; */
}

.inview {
    opacity: 1;
    animation-duration: 0.6s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    transform: none;
}

.fade-in.inview {
    animation-name: fadeInUp;
}

.fade-left.inview {
    animation-name: fadeInLeft;
}

.fade-right.inview {
    animation-name: fadeInRight;
}


/* アニメーション定義 */
@keyframes fadeInUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* PC */
@media screen and (min-width: 768px) {
    .pc {
        display: block;
    }

    .sp {
        display: none;
    }

    .tips_wrap {
        display: flex;
    }

    #tips dl {
        width: 33%;
    }

    .CV {
        width: 960px;
        margin: 0 auto;
    }

    #step dl dd img {
        width: 60%;
        display: block;
        margin: 0 auto;
    }

    .box {
        padding: 3em 2em;
        width: 100%;
    }

    .txt_intro {
        left: 48%;
        transform: translate(-50%, -48%);
    }

    .txt_intro h1 {
        font-size: 2em;
    }

    .txt_scroll {
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        line-height: 1.5;
    }

    .txt_scroll p {
        font-size: 1.6em;
        line-height: 1;
    }

    .wrap {
        width: 960px;
        padding: 2em 2em 4em;
        margin: 0 auto 3em;
    }

    .bg_wrap h2 {
        font-size: 1.4em;
        margin: 2em 0;
    }

    .bg_wrap h3 {
        font-size: 1.5em;
        margin: 2em 0;
    }

    .bg_wrap p {
        font-size: 1em;
    }

    .line p {
        font-size: 1.2em;
    }

    .tarm p {
        font-size: 1.3em;
    }

    .att ul {
        font-size: 1em;
        text-align: center;
    }

    #step dl {
        font-size: 1.2em;
    }

    .bg_wrap h4 {
        font-size: 1.2em;
    }

    #tips dl dt {
        margin-top: 1.6em;
        font-size: 1.2em;
    }

    .tips_wrap dl dt span {
        font-size: 80%;
    }

    .btn a {
        font-size: 1.2em;
        padding: 3% 3% 3%;
    }
}