/*================================================
  mainvisual
================================================*/

.mainvisual {
    position: relative;
    /* height: 100vh; */
    height: calc(100vh - var(--layout-header-size));
}

.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100vh; */
    height: 100%;
    overflow: hidden;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-slide li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: scale(1);
    /* transition: opacity 3s ease, transform 5s ease; */
}

.main-slide .main-slide-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    /* font-size: 2.1rem; */
    /* font-size: clamp(2rem, 1.2rem + 4vw, 6rem); */
    font-size: clamp(1.8rem, 0.96rem + 4.2vw, 6rem);
    font-weight: 900;
    color: var(--color-white);
    text-shadow: 0 0 15px rgba(var(--color-black-rgb), 0.8);
    line-height: 1.5;
    padding: 20px;
}

.main-slide .main-slide-text .main-text {
    display: block;
}

.main-slide .main-slide-text .inner-text{
    padding-inline: 0.25em;
    display: inline-block;
}
.main-slide .main-slide-text .yellow {
    color: var(--color-primary-second);
    display: inline-block;
}

.main-slide .main-slide-text .sub-text {
    font-size: 55%;
    display: block;
    margin-top: 0.25em;
}
.main-slide li.active img {
    animation: fade 15s infinite;
}

.main-slide li.active {
    opacity: 1;
}


@keyframes fade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    15% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    45% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.slide-dots {
    position: absolute;
    top: 102%;
    left: 50%;
    transform: translateX(-50%);
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.slide-dots li {
    width: 15px;
    height: 15px;
    margin-inline: calc(var(--layout-gap) / 2.5);
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    box-shadow: inset 0 3px 6px rgba(var(--color-black-rgb), 0.16);
    cursor: pointer;
}

.slide-dots li.active {
    background-color: var(--color-dots);
}

@media print,
screen and (min-width: 769px) {
    .main-slide .main-slide-text {
        font-size: 3.4rem;
    }

    .slide-dots li {
        width: 20px;
        height: 20px;
        margin-inline: calc(var(--layout-gap) / 2);
    }
}

@media print,
screen and (min-width: 1200px) {
    .main-slide .main-slide-text {
        /* font-size: 6.5rem; */
        font-size: 6rem;
    }

    .slide-dots li {
        width: 29px;
        height: 29px;
        margin-inline: calc(var(--layout-gap) / 1.2);
    }
}

/*================================================
  main-lead
================================================*/

.main-lead {
    margin-top: calc(var(--layout-gap) * 2);
    text-align: center;
    margin-bottom: calc(var(--layout-gap) / 2);
}

.main-lead h2 {
    font-weight: bold;
    font-size: 2.4rem;
    line-height: 1.5;
    margin-bottom: calc(var(--layout-gap) / 1.5);
}

.main-lead h2 span {
    background-color: var(--color-primary);
    color: var(--color-primary-second);
    padding: calc(var(--layout-gap) / 12);
    position: relative;
    display: inline-block;
    margin-top: calc(var(--layout-gap) / 2);
}

.main-lead h2 span::before {
    content: '';
    position: absolute;
    top: -22px;
    right: -10px;
    width: 27.85px;
    height: 28.125px;
    background-image: url(../../image/common/decoration.png);
    background-size: contain;
}

.main-lead p {
    font-size: 1.8rem;
    font-weight: 400;
}

@media print,
screen and (min-width: 769px) {
    .main-lead h2 span::before {
        width: 55.7px;
        height: 56.25px;
        top: -45px;
        right: -20px;
    }

    .main-lead h2 br {
        display: none;
    }

    .main-lead p {
        font-size: 2.1rem;
    }
}

@media print,
screen and (min-width: 1200px) {
    .main-lead {
        margin-top: calc(var(--layout-gap) * 4);
    }

    .main-lead h2 span {
        padding: calc(var(--layout-gap) / 8);
    }

    .main-lead h2 {
        font-size: 3.2rem;
        line-height: 1.5;
    }

    .main-lead p {
        font-size: 2.4rem;
    }
}

/*================================================
  about
================================================*/

.about {
    background-image: url(../../image/home/about-bg.jpg);
    background-size: cover;
    padding-block: calc(var(--layout-gap) * 2);
    overflow: hidden;
}

.about-logo img {
    height: 94px;
    object-fit: contain;
}

.about .wrapper {
    position: relative;
    padding:0.5em 0.25em;
}

.about-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-item {
    position: absolute;
}

.about-item:nth-child(1) {
    top: 0px;
    left: 0;
    /* left: 10px; */
}

.about-item:nth-child(2) {
    top: -10px;
    right: 0;
    /* right: 20px; */
}

.about-item:nth-child(3) {
    bottom: -30px;
    left: 0;
    /* left: 20px; */
}

.about-item:nth-child(4) {
    bottom: -10px;
    right: 0;
    /* right: 10px; */
}

.about-item.text-label {
    font-size: clamp(1.2rem, 0.96rem + 1.2vw, 2.4rem);
}

.text-label:nth-child(1)::before {
    transform: rotate(90deg);
    right: 5px;
    bottom: 5px;
}

.text-label:nth-child(2)::before {
    transform: rotate(-180deg);
    left: 5px;
    bottom: 5px;
}

.text-label:nth-child(3)::before {
    right: 5px;
    top: 5px;
}

.text-label:nth-child(4)::before {
    transform: rotate(-90deg);
    left: 5px;
    top: 5px;
}

.about .link-btn {
    margin-top: calc(var(--layout-gap) * 2);
}

@media print,
screen and (min-width: 769px) {
    .about {
        padding-block: calc(var(--layout-gap) * 3);
    }

    .about-item:nth-child(1) {
        top: 10px;
        left: 0;
    }

    .about-item:nth-child(2) {
        top: 0;
        right: 20px;
    }

    .about-item:nth-child(3) {
        bottom: 0;
        left: 0;
    }

    .about-item:nth-child(4) {
        bottom: 10px;
        right: 0;
    }

}

/*================================================
  page-link
================================================*/

.page-link {
    margin-top: calc(var(--layout-gap) * 2.5);
}

.page-link-item {
    margin-bottom: calc(var(--layout-gap));
}

.page-link-img {
    width: 90%;
    position: relative;
}

.page-link-item:nth-child(even) .page-link-img {
    margin-left: auto;
}

.page-link-img h2 {
    position: absolute;
    top: 50%;
    /* right: 50px; */
    right: 2em;
    transform: translateY(-50%);
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(var(--color-black-rgb), .4);
    font-size: 3rem;
    font-weight: 900;
    z-index: 1;
}

.page-link-item:nth-child(even) .page-link-img h2 {
    right: auto;
    /* left: 50px; */
    left: 2em;
}

.page-link-img::before {
    content: '';
    display: block;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-top-right-radius: 446px;
    border-bottom-right-radius: 446px;
}

.page-link-img::after {
    content: '';
    display: block;
    height: 150px;
    width: 100%;
    background-color: rgba(var(--color-black-rgb), .3);
    position: absolute;
    top: 0;
    left: 0;
    border-top-right-radius: 446px;
    border-bottom-right-radius: 446px;
}

.page-link-item:nth-child(even) .page-link-img::before {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 446px;
    border-bottom-left-radius: 446px;
}

.page-link-item:nth-child(even) .page-link-img::after {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 446px;
    border-bottom-left-radius: 446px;
}

.page-link-text {
    padding-inline: calc(var(--layout-gap) / 1.5);
    /* padding-top: calc(var(--layout-gap) / 4); */
    padding-top: calc(var(--layout-gap) / 2);
    line-height: 1.5;
}

.page-link-text-lead {
    font-weight: 800;
    margin-bottom: 1em;
}

.page-link-text ul {
    font-size: 1.4rem;
    font-weight: 600;
    margin-block: calc(var(--layout-gap) / 4) var(--layout-gap);
    line-height: 2;
}

.page-link-item:nth-of-type(1) .page-link-img::before {
    background-image: url(../../image/home/page-link-img1.jpg);
}

.page-link-item:nth-of-type(2) .page-link-img::before {
    background-image: url(../../image/home/page-link-img2.jpg);
}

.page-link-item:nth-of-type(3) .page-link-img::before {
    background-image: url(../../image/home/page-link-img3.jpg);
}

@media print,
screen and (min-width: 640px) {
    .page-link-item {
        display: flex;
        margin-bottom: calc(var(--layout-gap) * 2.5);
    }

    .page-link-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .page-link-text {
        width: 55%;
        /* width: 50%; */
        /* margin-left: auto; */
        margin-right: auto;
        padding-block: calc(var(--layout-gap) * 3) var(--layout-gap);
    }
    .page-link-item:nth-child(even) .page-link-text {
        margin-left: auto;
        margin-right: 0;
    }

    .page-link-item:nth-child(even) .page-link-img {
        margin-left: 0;
    }

    .page-link-img {
        width: 45%;
    }
    .page-link-img h2 {
        font-size: 4rem;
    }
    .page-link-img::after {
        height: 100%;
    }
    .page-link-img::before {
        height: 100%;
    }
    .page-link-text ul {
        font-size: 1.6rem;
        margin-block: calc(var(--layout-gap) / 4) calc(var(--layout-gap) * 2);
    }
}


@media print,
screen and (min-width: 960px) {

    .page-link-img h2 {
        right: 2.5em;
    }

    .page-link-item:nth-child(even) .page-link-img h2 {
        left: 2.5em;
    }
    .page-link-text {
        padding-left: 50px;
    }
    .page-link-item:nth-child(even) .page-link-text {
        padding-left: 50px;
    }
}

@media print,
screen and (min-width: 1200px) {
    .page-link {
        margin-top: calc(var(--layout-gap) * 4);
    }
    .page-link-img h2 {
        font-size: 5rem;
    }
    .page-link-text {
        width: 50%;
        max-width: 580px;
        padding-left: 60px;
        padding-right: 0;
    }
    .page-link-item:nth-child(even) .page-link-text {
        padding-right: 60px;
        padding-left: 1em;
    }
    .page-link-img {
        width: 50%;
    }
}
@media print,
screen and (min-width: 1600px) {
    .page-link-text-lead {
        font-size: 2.4rem;
    }
    .page-link-text {
        max-width: 690px;
    }
}


/*================================================
  recruit
================================================*/

.recruit {
    text-align: center;
    background-color: var(--color-gray);
    padding-block: var(--layout-gap);
}

.title {
    font-size: 2.4rem;
    color: var(--color-primary);
    font-weight: bold;
    line-height: 1.1;
    border-bottom: 5px solid var(--color-primary);
    display: inline-block;
    margin-bottom: calc(var(--layout-gap) / 2);
    padding-block: calc(var(--layout-gap) / 4);
}

.recruit-lead {
    font-weight: 900;
    margin-bottom: calc(var(--layout-gap) / 2);
}

.recruit-content img {
    width: 100%;
}

.recruit-label {
    position: relative;
    margin-inline: auto;
    margin-top: -10%;
    max-width: 600px;
    aspect-ratio: 646.74 / 143.46;
    /* padding-inline: calc(var(--layout-gap) / 2); */
}

.recruit-label::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url(../../image/home/recruit-label.png);
    background-size: contain;
}

.recruit-label p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.6;
    text-align: left;
    color: var(--color-primary);
    width: 90%;
    padding-inline: calc(var(--layout-gap) / 4);
}

@media print,
screen and (min-width: 769px) {
    .recruit {
        padding-block: calc(var(--layout-gap) * 2);
    }

    .title {
        font-size: 3.2rem;
        margin-bottom: var(--layout-gap);
    }

    .recruit-label p {
        font-size: 2.1rem;
    }

    .recruit-label {
        max-width: 700px;
    }
}

@media print,
screen and (min-width: 1200px) {
    .title {
        font-size: 4.2rem;
    }

    .recruit-label p {
        font-size: 2.4rem;
    }

    .recruit-label {
        width: 646.74px;
        height: 143.46px;
    }
}

/*================================================
  news
================================================*/
.news {
    text-align: center;
    padding-block: var(--layout-gap);
}

/* .news .title {
    border-bottom: none;
    border-top: 5px solid var(--color-primary);
} */

.news-wrapper {
    max-width: 1400px;
    padding-inline: calc(var(--layout-gap) / 1.5);
    margin-inline: auto;
}

.news-content {
    box-shadow: 0 5px 15px rgba(var(--color-black-rgb), 0.2);
    padding-block: var(--layout-gap);
}

.news-list {
    text-align: left;
    margin-bottom: var(--layout-gap);
}
.news-item {
    box-shadow: 1px 1px 1px rgba(var(--color-black-rgb), .16);
}
.news-item .date {
    line-height: 1;
    /* font-size: 1.8rem; */
    font-weight: 500;
    display: block;
    text-align: left;
    padding:calc(var(--layout-gap) / 2) calc(var(--layout-gap) / 3) 0 ;
}
.news-item .detail {
    padding: calc(var(--layout-gap) / 3);
}
.news-title {
    padding-block: calc(var(--layout-gap) / 4);
    /* font-size: 1.8rem; */
    font-weight: 500;
    line-height: 1.5;
}

.news-text {
    margin-block: 0.5em;
}


@media print,
screen and (min-width: 769px) {
    .news {
        padding-block: calc(var(--layout-gap) * 2);
    }

    .news-content {
        padding-inline: calc(var(--layout-gap) /2);
    }

    .news-item {
        display: flex;
    }
    .news-item .date {
        font-size: 2.1rem;
        width: 25%;
        line-height: 1.5;
        text-align: center;
        padding: calc(var(--layout-gap) / 2);
        border-right: 1px solid  rgba(var(--color-black-rgb),0.2);
        /* box-shadow: 1px 1px 1px rgba(var(--color-black-rgb), .16); */
    }

    .news-item .detail  {
        font-size: 2.1rem;
        width: 75%;
        margin-bottom: 0;
        padding: calc(var(--layout-gap) / 2);
    }

    .news-title {
        padding-block: 0;
    }
    .news-text {
        margin-block: 1em 0;
    }
}

@media print,
screen and (min-width: 1200px) {

    .news-content {
        padding-inline: calc(var(--layout-gap) * 2);
    }
    .news-item .date {
        font-size: 2.5rem;
        width: 20%;
    }

    .news-item .detail  {
        width: 80%;
    }

    .news-title {
        font-size: 2.5rem;
    }
}
