:root {
    --main-color: #333333;
    --sub-color: #CB024F;
    --accent-color: #f8f8ff;
    --detail-color: #f0f0f0;
    --xl-margin: 120px;
    --l-margin: 80px;
    --o-margin: 64px;
    --m-margin: 40px;
    --s-margin: 24px;
    --xs-margin: 16px;
    --xl-text: 2.5rem;
    --l-text: 2rem;
    --o-text: 1.5rem;
    --m-text: 1rem;
    --s-text: .8rem;
}

@font-face {
    font-family: "myfont";
    src: url('../font/corporate-logo-medium.woff2') format("woff2");
    font-weight: normal;
}

@font-face {
    font-family: "myfont";
    src: url('../font/corporate-logo-bold.woff2') format("woff2");
    font-weight: bold;
}

html {
    height: 100%;
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "myfont", sans-serif;
    color: var(--main-color);
    background-color: var(--accent-color);
    overflow-x: hidden;
    animation: fade 1s linear 1;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 2px;
}

a {
    text-decoration: none;
    display: inline-block;
    color: var(--main-color);
}

span {
    display: inline-block;
    color: var(--main-color);
    font-weight: normal;
}










/* きょうつう */
main,
footer {
    max-width: 1100px;
    margin: 0 auto;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.sec-ttl h3 {
    font-size: var(--xl-text);
}

#index .first-view div p,
.menu-content ul li a p:first-child,
.job-people h4 {
    font-size: var(--l-text);
}

.sec-ttl h4,
/* footer nav, */
.sec-btn,
.top-name div p:first-of-type,
.sub-ttl,
.mikulife-message h4,
.business-description .sec-content div p:first-of-type,
.flow li,
.flow .entry-btn a {
    font-size: var(--o-text);
}

.menu-content ul li a p:first-child,
footer nav,
.job-people p:first-of-type,
.sec-btn,
.top-name,
.sub-ttl,
.what .sec-content p:first-of-type,
.job-vision p,
.business-description .sec-content div p:first-of-type,
.main-job dt,
.description dt,
.flow li,
.flow .entry-btn a {
    font-weight: bold;
}

.sec-ttl p {
    letter-spacing: var(--m-text);
}

.line-height {
    line-height: 2;
}

.main-job dt,
.main-job dl,
.description dt,
.description dd {
    line-height: 1.7;
}

section,
footer,
.mikulife-message .sec-content,
.business-description .sec-content div,
.flow li,
.flow .entry-btn a {
    margin-top: var(--m-margin);
}

footer nav,
.sec-content,
.job-people p:last-of-type,
#top .container,
#top .container p,
.top-name,
.main-job dt,
.ideal-profile p,
.description-img,
.description dt {
    margin-top: var(--s-margin);
}

footer nav li,
.mikulife-message div,
.what .sec-content,
.what .sec-content p:last-of-type,
.job-schedule dl div,
.job-people p:first-of-type,
nav .entry-btn-box {
    margin-top: var(--xs-margin);
}

#top .top-name p,
.business-description .sec-content :first-child {
    margin-top: 0;
}

footer,
.sec-ttl {
    padding-top: var(--m-margin);
}

.sec-ttl h3,
.sec-ttl p,
.sec-ttl h4 {
    padding: 8px 0 8px 5%;
}

section,
footer,
.menu-content ul li:first-child,
#top .sec-content:nth-of-type(2) {
    border-top: 1px solid var(--main-color);
}

.sec-ttl h3,
.sec-ttl h4 {
    background: linear-gradient(90deg, transparent, rgba(203, 2, 79, .5) 100%);
}

.top-img,
.employee-img {
    max-width: 400px;
    margin: auto;
}

.fade_target {
    opacity: 0;
    transition: opacity 1.5s;
}

.fade_target.fade {
    opacity: 1;
}






/* へっだー */
h1 {
    position: fixed;
    z-index: 999;
    width: 100dvw;
    padding: 10px;
    background-color: var(--accent-color);
}

h1 img {
    width: 72px;
}

#menu-btn-check {
    display: none;
}

.menu-btn {
    width: 40px;
    height: 40px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--main-color);
    position: absolute;
    right: 0;
    transition: all .3s;
}

.menu-btn span::before {
    bottom: 8px;
    width: 32px;
}

.menu-btn span::after {
    top: 8px;
    width: 16px;
}

#menu-btn-check:checked~.menu-btn span {
    background-color: transparent;
}

#menu-btn-check:checked~.menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
    width: 24px;
}

#menu-btn-check:checked~.menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    width: 24px;
}

.menu-content {
    position: fixed;
    top: -100%;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.5s;
}

#menu-btn-check:checked~.menu-content {
    top: 0;
}

.menu-content ul {
    margin-top: var(--o-margin);
}

.menu-content ul li {
    border-bottom: 1px solid var(--main-color);
}

.menu-content ul li a {
    display: block;
    color: var(--main-color);
    padding: 1rem 0 1rem 1rem;
}

nav .entry-btn-box {
    display: flex;
    justify-content: space-between;
    padding: 0 .5rem;
}

nav .entry-btn {
    width: 49%;
}

nav .entry-btn a {
    font-size: var(--s-text);
    padding: var(--xs-margin);
    background: none;
}

nav .entry-btn a::after {
    width: 32px;
    height: 8px;
}






/* ふったー */
footer h3 img {
    width: 180px;
}

footer h3 span {
    display: block;
    font-size: var(--s-text);
}

footer p {
    padding: var(--s-margin);
    text-align: center;
}










/* とっぷぺーじ */
#waveCanvas1,
#waveCanvas2,
#waveCanvas3,
#waveCanvas4 {
    width: 100%;
}

.first-view {
    width: 100%;
    height: 50dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#index .first-view {
    height: 100dvh;
    position: relative;
    z-index: 2;
}

#index .first-view::before {
    content: "";
    display: block;
    height: 100dvh;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#index .first-view::after {
    content: "";
    display: block;
    height: 100dvh;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-image: linear-gradient(0deg, #CB024F, #f8f8ff);
}

.first-view h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    writing-mode: vertical-rl;
    font-size: 4rem;
    color: var(--accent-color);
}

#index .first-view div {
    display: flex;
    overflow: hidden;
}

#index .first-view div p {
    line-height: 3;
    flex: 0 0 auto;
    animation: text-slide 30s linear infinite;
}

@keyframes text-slide {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.wave {
    padding: var(--m-margin) 0;
}

.sec-btn {
    width: fit-content;
    margin-left: auto;
    margin-right: 70px;
}

.sec-btn a {
    position: relative;
}

.sec-btn a::after {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 3px;
    left: 100%;
    width: 50px;
    height: 16px;
    border-bottom: 5px solid var(--main-color);
    border-right: 5px solid var(--main-color);
    transform: skew(45deg);
}










/* かそうぺーじ */
.page-ttl {
    width: 100%;
}





/* とっぷめっせーじ */
.top-name div {
    display: flex;
    align-items: baseline;
    gap: var(--m-margin);
}










/* みくらいふについて */
.job-vision {
    position: relative;
    height: 100dvw;
    min-height: 350px;
    max-height: 700px;
    max-width: 750px;
}

.job-vision div {
    position: absolute;
    width: 35dvw;
    min-width: 130px;
    max-width: 245px;
    height: 35dvw;
    min-height: 130px;
    max-height: 245px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(var(--accent-color), rgba(203, 143, 2, 0.2) 100%);
}

.job-vision div:nth-last-of-type(1) {
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.job-vision div:nth-last-of-type(2) {
    top: 25%;
    z-index: 2;
}

.job-vision div:nth-last-of-type(3) {
    right: 0;
    top: 25%;
    z-index: 2;
}

.job-vision div:nth-last-of-type(4) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.job-vision div:nth-last-of-type(5) {
    bottom: 0;
    left: 30%;
    transform: translateX(-50%);
    z-index: 2;
}

.job-vision div:nth-last-of-type(6) {
    left: 70%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 2;
}

.job-vision p {
    font-size: clamp(1rem, 0.741rem + 1.1vw, 1.5rem);
}

.business-description .sec-content div p:first-of-type {
    border-bottom: 1px solid var(--sub-color);
}










/* しゃいんしょうかい */
.job-schedule dl {
    font-size: var(--m-text);
}

.job-schedule dl div {
    display: flex;
    align-items: center;
    background-color: var(--detail-color);
    padding: var(--xs-margin);
}

.job-schedule dt {
    width: 60px;
    margin-left: var(--xs-margin);
    font-weight: bold;
}

.job-schedule dt:has(img) {
    width: 24px;
    margin-left: 0;
}









/* ぼしゅうようこう */
.description dt,
.description dd {
    padding: var(--xs-margin);
}

.description dt {
    background-color: var(--detail-color);
}

.flow ol {
    text-align: center;
}

.flow li {
    position: relative;
    border: 1px solid var(--main-color);
    padding: var(--xs-margin);
}

.flow li::before,
.flow li::after {
    position: absolute;
}

.flow li::before {
    left: var(--xs-margin);
}

.flow li:first-child::before {
    content: "01";
}

.flow li:nth-child(2)::before {
    content: "02";
}

.flow li:nth-child(3)::before {
    content: "03";
}

.flow li:nth-child(4)::before {
    content: "04";
}

.flow li:nth-child(5)::before {
    content: "05";
}

.flow li::after {
    content: "";
    display: inline-block;
    height: 41px;
    width: 1px;
    background-color: var(--main-color);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.flow li:last-child:after {
    display: none;
}

.entry-btn a {
    width: 100%;
    padding: var(--xs-margin) var(--s-margin);
    border: 1px solid var(--main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(275deg, transparent, rgba(203, 2, 79, .5) 100%);
    background-size: 200% auto;
    background-position: 100% 51%;

}

.entry-btn a::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 16px;
    border-bottom: 2px solid var(--main-color);
    border-right: 2px solid var(--main-color);
    transform: skew(45deg);
}















@media (min-width:744px) {

    :root {
        --m-margin: 56px;
        --s-margin: 32px;
        --xs-margin: 24px;
    }

    body p {
        line-height: 1.7;
    }

    body p,
    dl,
    .job-schedule dl {
        font-size: 1.2rem;
    }

    nav .entry-btn-box {
        padding: 0 1rem;
    }

    nav .entry-btn a {
        font-size: var(--o-text);
        font-weight: bold;
    }

    footer nav {
        margin-top: var(--xs-margin);
    }

    footer nav ul {
        display: flex;
        justify-content: space-between;
    }

    .sp {
        display: none;
    }

    .top-message .sec-content:first-of-type,
    .employee .sec-content {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 5%;
    }

    .top-img,
    .employee-img {
        width: 50%;
        margin: 0;
    }

    .job-schedule dt {
        width: 100px;
    }

    .flow li::after {
        height: 58px;
    }

    .entry-btn-box {
        display: flex;
        justify-content: space-between;
    }

    .entry-btn {
        width: 49%;
    }
}





/* ほばー */
@media (hover: hover) {

    .menu-content a,
    .entry-btn a,
    .entry-btn a::after {
        transition: all .3s;
    }

    .sec-btn a::after {
        transition: all .5s;
    }

    .menu-content a:hover {
        color: var(--accent-color);
        background-color: rgba(203, 2, 79, .5);
    }

    .sec-btn a:hover::after {
        left: 105%;
    }

    .entry-btn a:hover {
        color: var(--accent-color);
        background-position: 0% 50%;
        border: 1px solid var(--accent-color);
    }

    .entry-btn a:hover::after {
        border-bottom: 2px solid var(--accent-color);
        border-right: 2px solid var(--accent-color);
    }
}