@charset "UTF-8";

/*============================
loading
============================*/

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background-color: #fff;
}

.loader,
.loader:after {
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -30px;
}

.loader {
    position: relative;
    text-indent: -9999em;
    border-top: 5px solid #59b55b;
    border-right: 5px solid #59b55b;
    border-bottom: 5px solid #59b55b;
    border-left: 5px solid #ea68a2;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*============================
トップ共通
============================*/

/*============================
top_img
============================*/
#top_img {
    width: 100%;
    /*装飾の基準*/
    position: relative;
    height: 673px;
}

#top_img .photo {
    overflow: hidden;
    position: absolute;
}

#top_img .left_photo {
    width: 75%;
    border-radius: 0 10px 10px 0;
    left: 0;
    bottom: 0;
    height: 526px;
}

#top_img .right_photo {
    width: 30%;
    border-radius: 10px 0 0 10px;
    top: 0;
    right: 0;
    height: 440px;
}

#top_img .mark {
    width: 220px;
    position: absolute;
    left: 71.85%;
    bottom: 40px;
}

#top_img .photo img,
#top_img .mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*文字*/

h1 {
    width: 1040px;
    margin: 10px auto 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    color: #59b55b;
    line-height: 1.5;
}

h1 .ja {
    font-size: 36px;
    font-weight: 900;
}

h1 .eng {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
}

@media only screen and (max-width: 768px) {
    #top_img {
        height: 400px;
    }

    #top_img .left_photo {
        width: 75%;
        height: 230px;
    }

    #top_img .right_photo {
        width: 30%;
        height: 200px;
    }

    #top_img .mark {
        width: 100px;
        position: absolute;
        left: 71.85%;
        bottom: 20%;
    }

    /*文字*/

    h1 {
        width: 60%;
        margin: 10px auto 0 4.6875%;
        position: absolute;
    }

    h1 span {
        display: block;
    }

    h1 .ja {
        font-size: 22px;
    }

    h1 .eng {
        font-size: 20px;
        line-height: 1.2;
        padding-top: 5px;
    }
}

/*============================
container
============================*/

.container {
    position: relative;
}

.primary {
    width: 100%;
    float: none;
    overflow: hidden;
}

.primary > article {
    padding: 100px 0 100px;
}

.primary .inner {
    width: 1040px;
    margin: auto;
}

@media only screen and (max-width: 768px) {
    .primary > article {
        padding: 50px 0;
    }

    .primary .inner {
        width: 90.625%;
    }
}


/*============================
h2
============================*/

h2 {
    margin-bottom: 30px;
}

.lead {
    font-weight: 600;
    font-size: 18px;
}

@media only screen and (max-width: 768px) {
    h2 {
        margin-bottom: 15px;
    }

    .lead {
        font-size: 16px;
    }
}

/*============================
h3
============================*/

h3 {
    font-size: 18px;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    h3 {
        font-size: 16px;
    }
}

/*============================
service
============================*/

#service {
    background: #FFFFFF;
    padding-bottom: 40px;
}

#service .inner {
    position: relative;
}

#service h2,
#service .text {
    width: 320px;
}

#service .photo {
    width: 680px;
    position: absolute;
    top: 0;
    right: 0;
}

#service .type {
    margin-bottom: 20px;
}

#service .type li {
    background: #e4f0fb;
    width: 100px;
    position: relative;
    color: #59b55b;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    line-height: 43px;
    border-radius: 10px;
}

#service .type li:not(:first-child) {
    padding-left: 20px;
}

#service .type li::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 6px;
    display: block;
    position: absolute;
    top: calc(50% - 6px);
    left: 10px;
}

@media only screen and (max-width: 768px) {
    #service {
        padding-bottom: 40px;
    }

    #service h2,
    #service .text {
        width: 100%;
    }

    #service .photo {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    #service .type {
        margin-bottom: 15px;
    }

    #service .type li {
        width: calc(100%/3 - 10px);
        line-height: 45px;
    }
}

/*============================
news
============================*/
#news {
    background: #f0fada;
    padding-top: 0;
}

#news .inner {
    position: relative;
    overflow: visible;
}

#news .inner::before {
    content: "";
    background: url(../images/home/town_illust.png)no-repeat center center;
    background-size: 100%;
    width: 584px;
    height: 60px;
    position: absolute;
    top: -155px;
    right: 0;
}

#news .inner-bg {
    width: 820px;
    height: 180px;
    background: #fff;
    padding: 25px 40px;
    border-radius: 10px;
}

#news .box a {
    display: block;
    padding: 10px 0;
}

#news .box a:not(:last-child) {
    border-bottom: 1px solid #f0fada;
}

#news .box a p span {
    color: #ea68a2;
    margin-right: 20px;
}

.small_link a {
    padding: 5px 50px 5px 0;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.small_link a::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #59b55b;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.small_link a::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 18px;
    margin: auto;
    z-index: 10;
}

#news .small_link {
    position: absolute;
    left: 0;
    bottom: 0;
}

/*トラック*/
/* 道の設定（背景） */
.road {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #fff 0%, #fff 58px, #f0fada 58px, #f0fada 100%);
}

/* トラックの基本設定 */
.truck {
    position: absolute;
    top: 0;
    /* 画面の左外からスタート */
    left: -100px;
    /* アニメーションの適用 */
    animation: drive 5s linear infinite;
}

.truck img {
    width: 180px;
    height: 97px;
    position: relative;
    z-index: 10;
}

/* アニメーションの定義 */
@keyframes drive {
    0% {
        /* スタート位置 */
        left: -100px;
    }

    100% {
        /* 画面の右端（画面外）まで移動 */
        left: 100%;
    }
}

@media only screen and (max-width: 768px) {

    #news .inner::before {
        /*70％の大きさ*/
        width: 409px;
        height: 42px;
        top: -90px;
        right: 0;
    }

    #news .inner-bg {
        width: 100%;
        padding: 15px 30px;
        height: auto;
    }

    #news .box a p span {
        margin-right: 0;
        display: block;
    }

    #news .small_link {
        position: static;
        margin-top: 15px;
        text-align: right;
    }

    /*トラック*/
    /* 道の設定（背景） */
    .road {
        width: 100%;
        height: 70px;
        position: relative;
        overflow: hidden;
        margin-bottom: 20px;
        background: linear-gradient(180deg, #fff 0%, #fff 40px, #f0fada 40px, #f0fada 100%);
    }

    /* トラックの基本設定 */
    .truck {
        position: absolute;
        top: 0;
        /* 画面の左外からスタート */
        left: -100px;
        /* アニメーションの適用 */
        animation: drive 5s linear infinite;
    }

    .truck img {
        /* 70％の大きさ*/
        width: 126px;
        height: 68px;
    }
}


/*============================
blog
============================*/

#blog {
    padding: 0;
}

#blog .inner {
    overflow: visible;
}

#blog .inner.flex {
    align-items: stretch;
}

#blog .blog_box {
    width: 658px;
    background: #fdf3f8;
    padding: 60px 0;
    padding-right: 60px;
    position: relative;
}

#blog .inner .blog_box::before {
    content: "";
    background: #fdf3f8;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -100%;
    margin: auto;
    z-index: -1;
}

#blog .blog_box .flex {
    margin-bottom: 40px;
    height: 315px;
}

#blog .blog_box .flex .box {
    width: 280px;
}

.blog_box a .photo {
    border-radius: 10px 10px 0 0;
    height: 244px;
}

.blog_box a p {
    background: #FFF;
    padding: 10px 15px;
    border-radius: 0 0 10px 10px;
}

.blog_box a p span.eng {
    display: block;
    color: #ea68a2;
}

.blog_box .small_link {
    text-align: right;
}

#blog .insta_box {
    width: 382px;
    background: #e4f0fb;
    padding: 60px 0;
    padding-left: 60px;
    position: relative;
}

#blog .inner .insta_box::after {
    content: "";
    background: #e4f0fb;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: -100%;
    margin: auto;
    z-index: -1;
}

#blog .insta_box .widget {
    width: 100%;
	/*修正_追加*/
    /* ウィジェットの推奨サイズに合わせる */
    max-width: 321px;
}

#blog .insta_box iframe {
    /* HTMLのstyle属性を上書き */
    width: 100% !important;
    /* 正方形を維持 */
    aspect-ratio: 1 / 1;
    height: auto !important;
}

#blog .insta_box .widget .thumbnail-wrapper {
    border-radius: 5px;
	overflow: hidden;
}

.insta_box .insta_link {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 5px;
    background: #59b55b;
    padding: 10px 0;
    font-size: 28px;
    color: #fff;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insta_box .insta_link i {
    margin-right: 10px;
}

/*リンクさせない*/
.insta_box iframe {
  pointer-events: none;
}

@media only screen and (max-width: 768px) {

    #blog .inner.flex {
        width: 100%;
    }

    #blog .blog_box {
        width: 100%;
        padding: 50px 0;
        padding-right: 0;
    }

    #blog .inner .blog_box::before {
        content: none;
    }

    #blog .inner .blog_box .blog_box_inner {
        width: 90.625%;
        margin: 0 auto;
    }

    #blog .blog_box .flex {
        margin-bottom: 20px;
        height: auto;
    }

    #blog .blog_box .flex .box {
        width: 100%;
    }

    #blog .blog_box .flex .box:not(:last-child) {
        margin-bottom: 20px;
    }

    .blog_box a .photo {
        border-radius: 10px 10px 0 0;
        width: 100%;
        height: 0;
        padding-top: 80%;
        position: relative;
    }

    .blog_box a .photo img,
    .blog_box a .photo .img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .blog_box a p {
        background: #FFF;
        padding: 10px 15px;
        border-radius: 0 0 10px 10px;
    }

    .blog_box a p span.eng {
        display: block;
        color: #ea68a2;
    }

    .blog_box .small_link {
        text-align: right;
    }

    #blog .insta_box {
        width: 100%;
        background: #e4f0fb;
        padding: 50px 0;
        padding-left: 0;
        position: relative;
    }

    #blog .inner .insta_box::after {
        content: none;
    }
	
	#blog .insta_box .widget {
        /* スマホでは横いっぱいに */
        max-width: 100%;
        margin: 0 auto;
    }

    #blog .inner .insta_box .insta_box_inner {
        width: 90.625%;
        margin: 0 auto;
    }

    .insta_box .widget,
    .insta_box .widget img {
        width: 100%;
    }

    .insta_box .insta_link {
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 5px;
        background: #59b55b;
        padding: 10px 0;
        font-size: 28px;
        color: #fff;
        margin-top: 6px;
        letter-spacing: 0.06em;
    }

    .insta_box .insta_link i {
        margin-right: 10px;
    }
}

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

#recruit {
    background: #fff;
}

#recruit .inner {
    position: relative;
}

#recruit .lead {
    margin-bottom: 60px;
    overflow: hidden;
}

#recruit h2 {
    font-size: 36px;
    color: #59b55b;
    font-weight: 900;
    margin-bottom: 20px;
    width: 750px;
    margin-left: auto;
	padding-left: 45px;
    position: relative;
}

#recruit h2::before {
    content: "\f184";
    color: #ea68a2;
    position: absolute;
    top: 3px;
    left: 0;
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

#recruit .lead img {
    float: left;
    width: 250px;
    margin-top: -40px;
    margin-right: 40px;
}

/*流れるスライダー*/

/*IE11対策
-----------------------------*/

_:-ms-lang(x)::-ms-backdrop,
.slide {
    display: -ms-grid;
    overflow: hidden;
}

/*----------------------------*/

.slide_wrap {
    display: flex;
    overflow: hidden;
    margin-bottom: 100px;
}

.slide_list {
    display: flex;
    list-style: none;
}

.rigth-to-left {
    animation: infinity-scroll-left 90s infinite linear 0.5s both;
}

/*右から左へ*/

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

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

.slide_item {
    width: 100%;
    min-width: 400px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 40px;
}

.slide_item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media only screen and (max-width: 768px) {

    #recruit .lead {
        margin-bottom: 15px;
        overflow: hidden;
    }

    #recruit h2 {
        font-size: 24px;
        margin-bottom: 15px;
        width: 100%;
        margin-left: auto;
		padding-left: 30px;
    }

    #recruit .lead img {
        float: none;
        width: 200px;
        margin-top: 0;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 15px;
    }

    /*流れるスライダー*/

    .slide_wrap {
        margin-bottom: 30px;
    }

    .slide_item {
        width: 100%;
        min-width: 260px;
        height: 200px;
        margin-right: 20px;
    }

}