@charset "utf-8";

/* wrap */
.wrap {
    overflow: hidden;
    color: #333;
}

/* mv */
.mv {
    position: relative;
    z-index: 1;
}
.mv_bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    position: absolute;
    top: 0;
    left: 0;
}
.mv_inner {
    position: relative;
    margin: auto;
    z-index: 2;
    height: 100%;
}
.mv_ttl_wrap {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    translate: 0 -50%;
}
.mv_ttl {
    background-color: #fff;
    color: #12b155;
    display: inline-block;
    line-height: 1;
}
.mv_person_wrap {
    display: flex;
    justify-content: center;
}
.mv_person_inner {
    background-color: #12b155;
    color: #fff;
    display: flex;
}
.mv_person_name,
.mv_person_post {
    display: block;
    line-height: 1;
}
.mv_scroll {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: center;
}
.mv_scroll_line {
    position: relative;
    background-color: #fff;
}
.mv_scroll_line::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    transform-origin: top;
    transform: scaleY(0);
    animation:  scrollbar 1.7s cubic-bezier(.6,0,.4,1) infinite;
}
.mv_caption {
    position: absolute;
    z-index: 2;
}
@media (min-width: 751px) {
    .mv {
        min-height: 7rem;
        height: 100vh;
    }
    .mv_inner {
        max-width: 12rem;
    }
    .mv_ttl {
        font-size: 0.56rem;
        padding: 0.08rem 0.2rem;
    }
    .mv_person_wrap {
        margin-top: 0.16rem;
    }
    .mv_person_inner {
        padding: 0.08rem 0.26rem;
    }
    .mv_person_name {
        font-size: 0.4rem;
    }
    .mv_person_post {
        font-size: 0.16rem;
        margin-top: 0.08rem;
    }
    .mv_person_cross {
        width: 0.59rem;
        margin: 0 0.1rem;
    }

    .mv_scroll_txt {
        font-size: 0.16rem;
    }
    .mv_scroll_line {
        width: 0.01rem;
        height: 0.64rem;
        margin: 0.03rem auto 0;
    }
    .mv_caption {
        font-size: 0.16rem;
        bottom: 0.22rem;
        left: 0.24rem;
    }
}
@media (max-width: 750px) {
    .mv {
        height: 75rem;
    }
    .mv_ttl {
        font-size: 4.8rem;
        padding: 0.8rem 2rem;
    }
    .mv_person_wrap {
        margin-top: 0.8rem;
    }
    .mv_person_inner {
        padding: 0.6rem 2rem;
    }
    .mv_person_name {
        font-size: 4rem;
    }
    .mv_person_post {
        font-size: 2rem;
        margin-top: 0.8rem;
        letter-spacing: 0;
    }
    .mv_person_cross {
        width: 3.8rem;
        margin: -2rem -1rem 0;
    }
    .mv_scroll {
        right: 1.4rem;
    }
    .mv_scroll_txt {
        font-size: 2.4rem;
        -webkit-text-stroke:0.2rem #fff;
    }
    .mv_scroll_txt::before {
        content: 'Scroll';
        -webkit-text-stroke:0;
        position: absolute;
    }
    .mv_scroll_line {
        width: 0.2rem;
        height: 6.4rem;
        margin: 0.2rem auto 0;
    }
    .mv_caption {
        font-size:2.4rem;
        bottom: 1.2rem;
        left: 1.6rem;
        -webkit-text-stroke:0.2rem #fff;
    }
    .mv_caption::before {
        content: '東和薬品 山形工場';
        -webkit-text-stroke:0;
        position: absolute;
    }
}

@keyframes scrollbar {
    0% {
        transform: scaleY(0);
        transform-origin: center top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: center top;
    }
    52% {
        transform: scaleY(1);
        transform-origin: center bottom;
    }
    100% {
        transform-origin: center bottom;
        transform: scaleY(0);
    }
}

/* mv animation */
.animation_ready .mv_ttl,
.animation_ready .mv_person_wrap {
    transition: clip-path 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}
.animation_loaded .mv.is_animated .mv_ttl,
.animation_loaded .mv.is_animated .mv_person_wrap {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
}
  

/* lead */
.lead_inner {
    margin-inline: auto;
    background-color: rgba(255,255,255,0.7);
}
.lead_txt {
    text-align: center;
    line-height: 2.666;
}
.lead_green {
    color: #129249;
}
@media (min-width: 751px) {
    .lead {
        padding: 1.6rem 0;
    }
    .lead_inner {
        width: 12rem;
        padding: 1.4rem 0;
    }
    .lead_txt {
        font-size: 0.24rem;
        letter-spacing: 0.08em;
    }
}
@media (max-width: 750px) {
    .lead {
        padding: 16rem 4rem;
    }
    .lead_inner {
        padding: 9.7rem 0em;
    }
    .lead_txt {
        font-size: 2.8rem;
        letter-spacing: 0em;
        line-height: 2.57;
    }
}

/* loop */
.loop_txt {
    display: flex;
}
.loop_txt_img {
    width: 100%;
    display: flex;
    will-change: transform;
}
@keyframes loop {
    0% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(-150%);
    }
}
@media (min-width: 751px) {
    .loop_txt {
        width: 148%;
    }
    .loop_txt_1 {
        animation: loop 20s -10s infinite linear;
    }
    .loop_txt_2 {
        animation: loop 20s 0s infinite linear;
    }
}
@media (max-width: 750px) {
    .loop_txt {
        width: 100%;
    }
    .loop_txt_img {
        height: 15em;
    }
    [class].loop_txt_img img {
        height: 100%;
        width: auto;
    }
    .loop_txt_1 {
        animation: loop 16s -8s infinite linear;
    }
    .loop_txt_2 {
        animation: loop 16s 0s infinite linear;
    }
}

.article {
    background-color: rgba(255,255,255,0.7);
}
.article_listitem {
    position: relative;
}
.article_item_inner {
    text-decoration: none;
    color: #333;
}
.article_new .article_ttl::before{
    text-align: center;
    background: rgb(18,177,85);
    background: linear-gradient(0deg, rgba(18,177,85,1) 0%, rgba(210,227,23,1) 100%);
    content: 'NEW';
    display: inline-block;
    writing-mode: horizontal-tb;
    color: #fff;
}
.article_num {
    position: absolute;
    z-index: 2;
    line-height: 1;
    pointer-events: none;    
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    color: transparent;    
    background-color: #333;
}
.article_num::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    background: url(../images/common/gradation.png) no-repeat 0 0;
    animation: flashing 8s linear infinite;
    background-size: contain;
}
@keyframes flashing {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.article_num_1 {
    -webkit-mask-image: url(../images/common/ttl_1.svg);
    mask-image: url(../images/common/ttl_1.svg);
}
.article_num_2 {
    -webkit-mask-image: url(../images/common/ttl_2.svg);
    mask-image: url(../images/common/ttl_2.svg);
}
.article_num_3 {
    -webkit-mask-image: url(../images/common/ttl_3.svg);
    mask-image: url(../images/common/ttl_3.svg);
}
.article_num_4 {
    -webkit-mask-image: url(../images/common/ttl_4.svg);
    mask-image: url(../images/common/ttl_4.svg);
}
.article_num_5 {
    -webkit-mask-image: url(../images/common/ttl_5.svg);
    mask-image: url(../images/common/ttl_5.svg);
}

.article_ttl {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    position: absolute;
    z-index: 2;
}
.article_ttl_line {
    background-color: #fff;
}
.article_img_wrap {
    position: relative;
}
.article_img_wrap img,
.loop_txt_img img {
    width: 100%;
    height: auto;
} 
.article_comingsoon .article_img_wrap::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(128,128,128,0.7);
}
.article_comingsoon .article_img_wrap::after {
    z-index: 2;
    content: 'Coming \ASoon';
    white-space: pre;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    margin: auto;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.04em;
}
.article_btn {
    background-color: #fff;
    color: #12b155;
    margin-inline: auto;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.article_btn_bg {
    width: 100%;
    height: 100%;
    background-color:#12b155;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
}
.article_btn_arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #12b155;
    margin: auto;
}
.article_btn_arrow::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
}
.article_btn_txt {
    position: relative;
    z-index: 1;
}
@media (min-width: 751px) {
    .article {
        padding: 2rem 0 1.6rem;
        margin-top: 0.73rem;
    }
    .article_list {
        width: 10rem;
        margin-inline: auto;
    }
    .article_listitem + .article_listitem {
        margin-top: 2rem;
    }
    .article_listitem:nth-child(odd)  .article_img_wrap {
        clip-path:polygon(1.6rem 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0 1.6rem);
    }
    .article_listitem:nth-child(even)  .article_img_wrap {
        clip-path: polygon(0 0, 8.4rem 0, 100% 1.6rem, 100% 100%, 0 100%);
    }
    .article_txt {
        font-size: 0.2rem;
        padding: 0 1rem;
        line-height: 1.8;
        margin-top: 0.29rem;
    }
    .article_new .article_ttl::before{
        margin-bottom: -0.11rem;
        font-size: 0.2rem;
        width: 0.71rem;
        height: 0.71rem;
        line-height: 0.66rem;
        border: 0.02rem solid #fff;
        position: absolute;
        top: 0;
    }
    .article_listitem.article_new:nth-child(odd) .article_ttl::before{
        right: 0;
    }
    .article_listitem.article_new:nth-child(even) .article_ttl::before{
        right: 0.17rem;
    }
    .article_num {
        font-size: 1.6rem;
        top: -0.62rem;
    }
    .article_num::before {
        width: 2.38rem;
        height: 2.38rem;
    }
    .article_num_1::before {
        top: -1.14rem;
        left: -0.69rem;
    }
    .article_num_2::before {
        top: 0.65rem;
        left: 0;
    }
    .article_num_3::before {
        top: 0;
        left: 0.80rem;
    }
    .article_num_4::before {
        top: 0.55rem;
        left: -0.30rem;
    }
    .article_num_5::before {
        top: -1.10rem;
        left: 0.60rem;
    }
    
    .article_listitem:nth-child(odd) .article_num {
        left: -0.36rem;
    }
    .article_listitem:nth-child(even) .article_num {
        right: -0.36rem;
    }
    .article_listitem:nth-child(odd) .article_ttl {
        right: 0.4rem;
    }
    .article_listitem:nth-child(even) .article_ttl {
        left: 0.4rem;
    }
    .article_listitem:nth-child(odd) .article_ttl_line {
        margin-left: 0.17rem;
    }
    .article_listitem:nth-child(even) .article_ttl_line {
        margin-right: 0.17rem;
    }
    .article_new .article_ttl {
        padding-top: 0.7rem;
    }
    .article_ttl {
        top: -0.4rem;
        font-size: 0.4rem;
    }
    .article_ttl_line {
        display: inline-block;
        padding: 0.21rem 0.075rem;
    }
    .article_comingsoon .article_img_wrap::after {
        font-size: 0.8rem;
    }

    .deco_1,
    .deco_2,
    .deco_3 {
        position: absolute;
    }
    .deco_1 {
        width: 1.6rem;
        height: 1.6rem;
    }
    .deco_2 {
        width: 0.8rem;
        height: 0.8rem;
    }
    .deco_3 {
        width: 0.4rem;
        height: 0.4rem;
    }
    .deco_1_1 {
        background: url(../images/top/circle_1_1.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_1_2 {
        background: url(../images/top/circle_1_2.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_1_3 {
        background: url(../images/top/circle_1_3.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_2_1 {
        background: url(../images/top/circle_2_1.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_2_2 {
        background: url(../images/top/circle_2_2.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_2_3 {
        background: url(../images/top/circle_2_3.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_3_1 {
        background: url(../images/top/circle_3_1.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_3_2 {
        background: url(../images/top/circle_3_2.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_3_3 {
        background: url(../images/top/circle_3_3.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_4_1 {
        background: url(../images/top/circle_4_1.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_4_2 {
        background: url(../images/top/circle_4_2.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_4_3 {
        background: url(../images/top/circle_4_3.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_5_1 {
        background: url(../images/top/circle_5_1.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_5_2 {
        background: url(../images/top/circle_5_2.png) no-repeat 0 0;
        background-size: contain;
    }
    .deco_5_3 {
        background: url(../images/top/circle_5_3.png) no-repeat 0 0;
        background-size: contain;
    }
    .article_listitem:nth-child(odd) .deco_1 {
        top: -1.34rem;
        right: -1.72rem;
    }
    .article_listitem:nth-child(odd) .deco_2 {
        top: 0.55rem;
        right: -1.72rem;
    }
    .article_listitem:nth-child(odd) .deco_3 {
        top: 1.46rem;
        right: -0.82rem;
    }
    .article_listitem:nth-child(even) .deco_1 {
        top: -1.34rem;
        left: -1.72rem;
    }
    .article_listitem:nth-child(even) .deco_2 {
        top: 0.55rem;
        left: -1.72rem;
    }
    .article_listitem:nth-child(even) .deco_3 {
        top: 1.46rem;
        left: -0.82rem;
    }
    .article_img_wrap img {
        transition: transform .6s;
        transform: scale(1);
    }

    .article_item_inner:hover .article_img_wrap img  {
        transform: scale(1.05);
    }

    .article_btn {
        font-size: 0.2rem;
        margin-top: 0.3rem;
        width: 4rem;
        height: 0.8rem;
        border-radius: 0.4rem;
        border: 0.01rem solid #12b155;
        transition: border .3s;
        box-shadow: 0px 0.08rem 0.16rem 0px rgba(0, 0, 0, 0.3);
    }
    .article_btn_arrow {
        right: 0.4rem;
        width: 0.15rem;
        height: 1px;
        transition: right .3s,width .3s,background .12s;
    }
    .article_btn_arrow::before {
        width: 0.08rem;
        height: 0.08rem;
        border-top: 1px solid #12b155;
        border-right: 1px solid #12b155;
        transition: border .12s ;
    }
    .article_btn_bg  {
        transition: transform .3s;
        border-radius: 0.4rem;
    }
    .article_btn:hover {
        border-color: #fff;
    }
    .article_btn:hover .article_btn_bg {
        transform: translateX(0%);
    }
    .article_btn:hover .article_btn_txt {
        color: #fff;
    }
    .article_btn:hover .article_btn_arrow {
        background-color: #fff;
        width: 0.3rem;
        right: 0.24rem;
    }
    .article_btn:hover .article_btn_arrow::before {
        border-color: #fff;
    }
}
@media (max-width: 750px) {
    .article {
        padding: 18rem 4rem 16rem;
        margin-top: 5.6rem;
    }
    .article_listitem + .article_listitem {
        margin-top: 18rem;
    }
    .article_listitem:nth-child(odd)  .article_img_wrap {
        clip-path:polygon(10.6rem 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0 10.6rem);
    }
    .article_listitem:nth-child(even)  .article_img_wrap {
        clip-path: polygon(0 0, 56.5rem 0, 100% 10.6rem, 100% 100%, 0 100%);
    }
    .article_txt {
        font-size: 2.4rem;
        line-height: 1.666;
        margin-top: 2.8rem;
    }
    .article_new .article_ttl {
        padding-top: 7.1rem;
    }
    .article_new .article_ttl::before{
        font-size: 2rem;
        width: 7.1rem;
        height: 7.1rem;
        line-height: 6.6rem;
        border: 0.2rem solid #fff;
        position: absolute;
        top: 0rem;
    }
    .article_listitem.article_new:nth-child(odd) .article_ttl::before{
        right: 0;
    }
    .article_listitem.article_new:nth-child(even) .article_ttl::before{
        right: 1.5rem;
    }
    .article_num {
        font-size: 12rem;
        top: -3.5rem;
    }
    .article_num::before {
        width: 23.8rem;
        height: 23.8rem;
    }
    .article_num_1::before {
        top: -13rem;
        left: -4.9rem;
    }
    .article_num_2::before {
        top: 3rem;
        left: -3.8rem;
    }
    .article_num_3::before {
        top: -1rem;
        left: 7rem;
    }
    .article_num_4::before {    
        top: 3.5rem;
        left: -9.5rem;
    }
    .article_num_5::before {
        top: -14.2rem;
        left: 4rem;
    }

    .article_listitem:nth-child(odd) .article_num {
        left: -1.6rem;
    }
    .article_listitem:nth-child(even) .article_num {
        right: -1.6rem;
    }
    .article_listitem:nth-child(odd) .article_ttl {
        right:2.4rem;
    }
    .article_listitem:nth-child(even) .article_ttl {
        left:2.4rem;
    }
    .article_listitem:nth-child(odd) .article_ttl_line {
        margin-left: 1.6rem;
    }
    .article_listitem:nth-child(even) .article_ttl_line {
        margin-right: 1.6rem;
    }
    .article_ttl {
        top: -1.6rem;
        font-size: 4rem;
    }
    .article_ttl_line {
        display: inline-block;
        padding: 2rem 0.65rem;
    }
    .article_comingsoon .article_img_wrap::after {
        font-size: 6.4rem;
        letter-spacing: 0;
    }
    .article_btn {
        font-size: 2.8rem;
        margin-top: 5.3rem;
        height: 9.6rem;
        width: 40rem;
        border-radius: 4.8rem;
        border: 0.2rem solid #12b155;
        box-shadow: 0px 0.8rem 1.6rem 0px rgba(0, 0, 0, 0.3);
    }
    .article_btn_arrow {
        right: 4.2rem;
        width: 1.8rem;
        height: 0.2rem;
    }
    .article_btn_arrow::before {
        width: 1.2rem;
        height: 1.2rem;
        border-top: 0.2rem solid #12b155;
        border-right: 0.2rem solid #12b155;
    }
}


.animation_ready .article_ttl_line,
.animation_ready .article_ttl::before {
    transition: clip-path 0.8s 0.25s cubic-bezier(0.86, 0, 0.07, 1);
    clip-path: polygon(100% 100%, 100% 100%, 100% 0, 100% 0);
}
.animation_loaded .article_listitem .is_animated .article_ttl_line,
.animation_loaded .article_listitem .is_animated .article_ttl::before {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
}

