/* layout
#009944/#ffe100/#014DFF

Orange: (Hex: #EE996B, RGB: 238, 153, 107)
Yellow: (Hex: #F9E7AD, RGB: 249, 231, 173)
Green: (Hex: #548135, RGB: 84, 129, 53)
= = = = = = = = = = = = = = = =  */

.fade-in {
    animation: fadein 3s forwards;
}

@keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}


/*text animetions*/
@keyframes showTextFromLeft {
    0% {
        transform: translateX(-140%);
    }

    100% {
        transform: translateX(0px);
    }
}

/*blur -- text animetions*/
@keyframes showTextFromBottom {
    0% {
        transform: translateY(100%);
        filter: blur(20px);
    }

    100% {
        transform: translateY(0px);
        filter: blur(0);
    }
}

/* p.txt-slide.displayed>span:nth-child(15) {
    display: block;
} */

p.txt-slide.displayed>span>span {
    animation: showTextFromBottom .3s backwards;
}

.txt-slide.displayed span {
    animation: showText .5s backwards;
    display: inline-block;
}


.txt-slide.displayed>span {
    overflow: hidden;
    font-style: italic;
    margin-left: -10px;
    padding-right: 10px;
}

h2.txt-slide.displayed>span>span {
    animation: showTextFromLeft 0.25s backwards;
}



div.bg_wrap:nth-last-child(2n) {
    width: 100vw;
    margin-left: calc((100vw - 100%) * -.5);
    background-color: #333;
    color: white;
    padding: 3rem 2rem;
}

/* image */
#service img {
    object-fit: cover;
    width: -webkit-fill-available;
    object-position: -1.5rem;
}

/* .img_flr {
    float: right;
    margin: 0 0 1em 1em;
}

.img_fll {
    float: left;
    margin: 0 1em 1em 0;
}

.service_liul {
    clear: both;
} */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    font-family: stevie-sans, sans-serif;
}

p.totop a {
    display: none;
}

/* footer */
footer {
    width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
    background-color: #333;
    color: white;
}


/* header */
header {
    width: 100%;
    min-height: 6rem;
    position: fixed;
    z-index: 5;
    background-color: white;
    box-shadow: 0 0 6px #888;
}

header section.header_inner {
    width: 100%;
    margin: 0 auto;
}

.header_inner h1 {
    padding-top: 1.5rem;
    text-align: center;
}

.header_nav {
    position: absolute;
    background-color: #ffffffee;
    width: 100%;
    font-size: 2rem;
    text-align: center;
    left: 0;
    padding: 1em 0;
    transition: all .3s ease;
    z-index: 90;
}

.header_nav li a {
    display: block;
    border-bottom: 1px dashed #ccc;
    line-height: 1.8em;
    padding: 0 1em;
    position: relative;
}

.header_nav li a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: .2rem;
    background: #333;
    bottom: 0;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.15s;
    z-index: -1;
}

.header_nav li a:hover {
    opacity: 1;
}

.header_nav li a:hover::after {
    transform: scale(1, 1);
}

section#top_image {
    height: auto;
    min-height: 25rem;
    width: 100vw;
    left: calc((100vw - 100%) / -2);
    top: -3em;
    position: relative;
    /* background-image: url(../img/LastMeister_top_image.webp); */
    background-image: url(../img/lm-logo.webp);
    background-repeat: no-repeat;
    background-size: auto 50%;
    background-position: top;
    background-color: #f0f8ff;
}

section#top_image h1 {
    text-align: center;
    width: 100%;
    position: absolute;
    top: 40%;
    display: none;
}

section#top_image p {
    word-break: auto-phrase;
    text-align: center;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 5%;
    font-size: max(1.6vw, 2.2rem);
    font-weight: bold;
    padding: .5em .5em 0;
}

/* section#top_image h1,
section#top_image p {
    color: white;
} */

/* nav */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 100;
    cursor: pointer;
    top: 0;
    right: 0;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #333;
    transition: 0.5s;
    position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}

/* ハンバーガーメニュー クリック */
#drawer_input:checked~.drawer_open span {
    background: rgba(255, 255, 255, 0);
}

#drawer_input:checked~.drawer_open span:before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span:after {
    top: 0;
    transform: rotate(-45deg);
}


#drawer_input:not(:checked)~.header_nav {
    opacity: 0;
    margin-top: -23em;
}

#drawer_input:has(checked)~.header_nav {
    opacity: 1;
    margin-top: 0;
}

/* /header **********/

/* main */
main {
    padding: 10rem 2rem 0;
    position: relative;
    width: 100%;
}

/* /main **********/

/* article */
article {
    padding: 0;
}

/* section */
.fst_sec {
    margin: 0 auto;
    padding: 0 1rem 6rem;
}

.fst_sec h2 {
    /* font-size: 4.2rem; */
    font-size: 5rem;
    margin: .25em 0;
    text-align: center;
    position: relative;
    /* font-style: italic; */
}

.fst_sec h2::after {
    content: '';
    height: .5rem;
    width: 40%;
    border: none;
    /* background: linear-gradient(to right, #00994400, #00994477, #fff462 40%, #fff462 60%, #00994477, #00994400); */
    background: linear-gradient(to right, #00994400, #548135, #F9E7AD 25%, #EE996B 45%, #EE996B 55%, #F9E7AD 75%, #548135, #00994400);
    position: absolute;
    bottom: 2rem;
    left: 30%;
}

#service.fst_sec h3 {
    font-size: 2.2rem;
    margin: 1em 0;
    padding: .5rem 0 0;
    background-color: #333;
    color: white;
    text-indent: .5em;
}

.fst_sec p {
    text-indent: .8em;
    margin-bottom: .8em;
}

p.annotation {
    clear: both;
    font-size: 80%;
    text-indent: 0;
    margin: 0.5em 0;
    color: #666;
}

/* mission */
.sec_mission p,
.sec_vision p {
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: min(4.75vw, 2.7rem);
    font-weight: bold;
    text-align: center;
    /* line-height: 1.8; */
    margin-bottom: 2em;
}

.sec_vision p.normal_text {
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: min(3.2vw, 1.9rem);
    font-weight: normal;
}

/* message */
.sec_message p.signature {
    margin-top: 3rem;
    text-align: right;
}

/* service */
.sec_service>ul>li {
    margin: 3rem 0 6em;
    border: 1px solid #665;
    padding: 0 2rem 2rem;
    border-radius: 0.8rem;
}

.sec_service ul li ul {
    list-style-type: circle;
    list-style-position: outside;
    padding-left: 3rem;
}

.sec_service ul li ul li {
    margin-bottom: .25em;
}

figure.img_fl_l {
    width: 100%;
}

figure.img_fl_l img {
    width: 100%;
    object-fit: contain;
}

figure.img_fl_l figcaption {
    text-align: center;
    font-size: 90%;

}

section.sec_career {
    margin: 0 auto;
    padding-top: 10rem;
    width: fit-content;
}

/*  ul -> dl */
section.sec_career dl {
    display: flex;
    flex-wrap: wrap;
}

section.sec_career dt,
section.sec_career dd {
    width: 100%;
    margin-bottom: 1em;
    border-bottom: 1px dashed #ccc;
}

section.sec_career dt {
    border: none;
    margin: .5em 0;
}

section.sec_career dt:nth-last-child(2) {
    display: none;
}


.sec_company table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    color: #333;
}

.sec_company table td,
.sec_company table th {
    display: block;
    border: 1px solid #ccc;
    text-align: center;
}

.sec_company table th {
    background-color: #ddd;
    font-weight: normal;
    padding: .5em 1rem;
}

.sec_company table td {
    padding: 2rem 1rem;
}

/* /section **********/

/* /article **********/

/* footer */
footer {
    padding: 2rem 0;
}

footer nav.footer_nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem 3rem;
    flex-wrap: wrap;
}

footer p.copyright {
    margin: 3rem 0 0;
    text-align: center;
}

/* /footer **********/

/* effects */
.is-hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 1s, visibility 1s, transform 1s;
}

.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* /effects **********/

/* = = = = = = = = = = = = = */
/* inquiry */
section#inquiry p {
    text-indent: initial;
}

section#inquiry form {
    margin: 6rem auto;
    font-size: 120%;
}

section#inquiry label {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 140%;
}

section#inquiry form input,
section#inquiry form textarea {
    width: 100%;
    padding: .5rem 0 .3rem 1rem;
    font-size: 100%;
}

section#inquiry form label.label_pp {
    width: 100%;
}

section#inquiry form textarea {
    height: 10em;
}

section#inquiry p.privacy {
    margin: 6rem auto;
    text-align: center;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    width: 80%;
}

section#inquiry p.privacy input[type="checkbox"],
section#inquiry p.privacy label {
    display: inline-block;
    width: fit-content;
    text-indent: 0;
}

section#inquiry p.privacy label {
    text-align: initial;
    font-size: 100%;
    vertical-align: top;
}

section#inquiry p.submit_btn {
    text-align: center;
}

section#inquiry p.submit_btn input[type="submit"] {
    border-radius: 0.8rem;
    border: 1px solid #555;
    background-color: #888;
    color: white;
    cursor: pointer;
    width: min(400px, 50%);
    padding: .5em 0;
}

section#inquiry p.submit_btn input[type="submit"]:hover {
    opacity: .8;
}

input:required {
    position: relative
}

.required:after {
    content: "*";
    padding: 0 .5rem;
    color: red;
}

/* thank */
section#thanks p {
    text-align: center;
}

/* /inquiry **********/


/*
Media query
************************ */
@media screen and (min-width: 765px) {
    section#top_image {
        height: 30vw;
        min-height: 25rem;
        width: 100vw;
        left: calc((100vw - 100%) / -2);
        top: -3em;
        position: relative;
        background-image: url(../img/lm-logo.webp);
        background-repeat: no-repeat;
        background-size: auto 90%;
        background-position: 15% bottom;
        background-color: #f0f8ff;
    }

    section#top_image p {
        word-break: auto-phrase;
        text-align: center;
        width: 47.5%;
        position: absolute;
        top: calc(50% - .5em);
        left: 45%;
        font-size: max(1.6vw, 2.6rem);
        font-weight: bold;
        padding: .5em .5em 0;
    }



    p#totpo {
        display: none;
    }

    p.totop>a {
        display: block;
        position: fixed;
        bottom: 3rem;
        border: 0.2rem solid #ccc;
        padding: 2rem 0.8rem;
        border-radius: 0.8rem;
        background-color: #eee;
        z-index: 5;
        margin-left: min(1100px, 78%);
    }

    section.sec_career dt,
    section.sec_career dd {
        margin: .5em 0;
        padding: .25em 0;
    }

    section.sec_career dt {
        border-bottom: 1px dashed #ccc;
        width: 7em;
    }

    section.sec_career dd {
        width: calc(100% - 7em);
    }

    section.sec_career dt:nth-last-child(2) {
        display: block;
    }

    #service img {
        width: revert-layer;
        object-position: center;
    }

    .img_flr {
        float: right;
        margin: 0 0 1em 1em;
    }

    .img_fll {
        float: left;
        margin: 0 1em 1em 0;
    }

    .service_liul {
        clear: both;
    }

}

@media screen and (min-width: 980px) {
    body {
        width: min(80%, 1200px);

    }

    /* header */
    header {
        width: 100vw;
        left: calc((100vw - 100%) / 2);
    }

    header section.header_inner {
        padding: 1rem;
        width: min(80%, 1200px);
    }

    header section.header_inner h1 {
        font-size: 2.4rem;
        margin: 0 0 1rem;
        text-align: initial;
    }

    header section.header_inner nav.header_nav ul {
        display: flex;
        /* gap: 0 2rem; */
        justify-content: center;
    }

    /* section#top_image p {
        top: 50%;
    } */

    .drawer_open {
        display: none;
    }

    #drawer_input:not(:checked)~.header_nav {
        opacity: 1;
        margin-top: 0;
        background: initial;
        position: initial;
        padding: 0;
    }

    #drawer_input:not(:checked)~.header_nav a {
        border: none;
        padding: 0 .5em;
    }

    .fst_sec {
        width: min(1200px, 90%);
        padding: 3rem 8% 10rem;
    }

    /* company */
    .sec_company table td,
    .sec_company table th {
        display: table-cell;
    }

    .sec_company table td {
        text-align: initial;
    }

    /* inquiry */
    section#inquiry label {
        width: 10em;
        display: inline-block;
        text-align: right;
        padding-right: 0.5em;
        vertical-align: top;
        font-size: 100%;
        ;
    }

    section#inquiry form input,
    section#inquiry form textarea {
        width: calc(100% - 13em);
        padding: .5rem 0 .3rem 1rem;
        font-size: 100%;
    }

}

@media screen and (min-width:768px) and (max-width:1400px) {
    section#top_image p {
        width: 14em;
        font-size: 3rem;
        top: calc(50% - 1em);
    }
}