@charset "UTF-8";

:root{
    /* カラー */
    --color-red:#ce5858;
    --color-primary:#387d5c;
    --color-white:#ffffff;
    --color-text:#333;
    --color-gray:#959595;
    --color-accent:#c60000;
    --color-link:#006ad6;
    /* レイアウト */
    --width-content:1200px;
    --space-unit:15px;
    --width-narrow:770px;
    --space-section:45px;
    /* その他 */
    --flex-gap:30px;
    --duration:0.7s;
}

/* 共通設定 */
body{
    font-family: "游ゴシック体", "Yu Gothic", Yugothic, sans-serif;
    overflow-x: hidden;
}

img{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.wrapper{
    max-width: var(--width-content);
    box-sizing: border-box;
    padding: 0 var(--space-unit);
    margin: 0 auto;
    position: relative;
}

.sec-title{
    font-size: 28px;
    font-weight: bold;
    padding-bottom: var(--space-section);
    text-align: center;
}

.lead{
    font-size: 14px;
    text-align: center;
    line-height: calc(26 / 14);
    padding-bottom: var(--space-section);
}
/* ボタン共通 */
.btn{
    font-weight: bold;
    display: block;
    text-align: center;
    transition: all var(--duration);
    margin: 0 auto;
    border-radius: 5px;
}
/* プライマリーボタン */
.btn-primary{
    height: 55px;
    width: 290px;
    background: var(--color-primary);
    color: var(--color-white);
    line-height: 55px;
    
}
/* セカンダリーボタン */
.btn-secondary{
    font-size: 15px;
    line-height: 45px;
    width: 150px;
    height: 45px;
    box-shadow: 0px 2px 3.6px 2.4px rgba(0, 0, 0, 0.16);
    margin-top: 45px;
    color: var(--color-text);
}
/* ページトップボタン */
.pagetop{
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    height: 50px;
    width: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 1;
}

.pagetop:before{
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    border-top: 3px solid var(--color-white);
    border-right: 3px solid var(--color-white);
    translate: 0 20%;
    rotate: -45deg;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
}

.pagetop:hover{
    transition: all var(--duration);
}

/* ホバー制御 */
@media (hover: hover) and (pointer: fine){
    .btn-primary:hover,
    .btn-secondary:hover,
    .pagetop a:hover {
        opacity:0.7;
    }
}

@media (hover: none) or (pointer: coarse){
    /* タッチデバイスでの即時反応 */
    .btn-primary:active,
    .btn-secondary:active,
    .pagetop a:hover {
        opacity:1;
    }
}

/* ヘッダー */
header{
    padding-bottom: var(--space-unit);
}

header .wrapper{
    display: flex;
    justify-content: space-between;
    height: 120px;
    align-items: center;
}

.logo img{
    margin: 0;
}

.search{
    position: relative;
}

.search input{
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    width: 230px;
    height: 40px;
    padding-left: 30px;
    font-size: 20px;
    box-sizing: border-box;
}
.search-sp{
    display: none;
}

.search-icon{
    position: absolute;
    left: 10px;
    top: 10px;
}

/* グローバルナビ */
.nav{
    background-color: var(--color-red);
}

.nav-list{
    display: flex;
    justify-content: space-between;
    max-width: 1170px;
    gap: var(--flex-gap);
    margin: 0 auto;
}
.nav-list > li{
    width: calc((100% - var(--flex-gap) * 4) / 5);
}

.nav-link{
    color: var(--color-white);
    display: block;
    line-height: 60px;
    height: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.5s;
}

.nav-link:hover{
    background:var(--color-accent);
    color: var(--color-white);
}

/* ハンバーガーメニュー */
.menu{
    display: none;
}

/* mv */
.slider{
    margin-bottom:  var(--space-section);
}

.slider img{
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

/* スライダー矢印カスタマイズ */
.slick-prev{
    left: 20px;
    z-index: 1;
    transform: rotateY(180deg);
}

.slick-next{
    right: 20px;
}

.slick-prev:before,
.slick-next:before{
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    content: "\f578";
}

/* セクション01 */
.sec-01{
    padding-bottom: var(--space-section);
}

.card-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 calc(-1 * var(--space-unit));
    padding-bottom: var(--space-section);
}

.card{
    width: 400px;
    box-sizing: border-box;
    padding: 0 var(--space-unit);
}

.card img{
    padding-bottom: var(--space-unit);
}

.card-title{
    font-size: 18px;
    font-weight: bold;
    line-height: calc(30 / 18);
    padding-bottom: var(--space-unit);
    text-align: center;
}

.card-text{
    font-size: 14px;
    line-height: calc(26 / 14);
}
/* movie */
.movie{
    padding-bottom: var(--space-section);
}

.image-video{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* セクション02 */
.sec-02{
    background-image: url(../img/sec02-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: var(--space-section) 0;
    color: var(--color-white);
}

.box{
    background-color: white;
    display: flex;
    margin-bottom: 30px;
    align-items: stretch;
    width: calc(50% - var(--space-unit));
    
}

.box-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.box-img{
    width: 30%;
}

.box-img img{
    width: 100%;
    object-fit: cover;
}

.box-content{
    padding: 0 var(--space-unit);
    display: flex;
    align-items: center;
    width: 70%;
    color: var(--color-text);
}
.box-title{
    font-size: 18px;
    font-weight: bold;
    padding-bottom: var(--space-unit);
}

.box-text{
    font-size: 14px;
    line-height: calc(26 / 14);
}

/* セクション03 */
.sec-03{
    padding: var(--space-section) 0;
}

.sec-03 .wrapper{
    width: var(--width-narrow);
}

.news-list{
    padding-bottom: 30px;
}

.news-list dt{
    position: absolute;
    padding: var(--space-unit) 0;
    font-size: 14px;
}

.news-list dd{
    border-bottom: 1px dotted var(--color-text);
    padding: var(--space-unit) 0 var(--space-unit) 10em;
    font-size: 14px;
}

.news-list dd a{
    text-decoration: none;
    color: var(--color-link);
}

.news-list dd a:hover{
    text-decoration: underline;
    color: var(--color-text);
}

.new{
    display: inline-block;
    width: 37px;
    height: 19px;
    line-height: 19px;
    border-radius: 3px;
    background-color: var(--color-accent);
    text-align: center;
    font-size: 12px;
    color: var(--color-white);
    margin-left: 10px;
}

/* フッター */
footer{
    background-color: var(--color-red);
}

footer .wrapper{
    display: flex;
    padding: var(--space-section) 15px;
    gap: var(--flex-gap);
    justify-content: space-between;
    align-items: flex-start;
}

address{
    width: 200px;
    font-size: 15px;
}

.footer-title{
    font-weight: bold;
    padding-bottom: var(--space-unit);
}

.address address{
    line-height: calc(24 / 15);
}

.footer-nav{
    display: flex;
    width: calc(100% - 200px);
    gap: var(--flex-gap);
    max-width: 870px;
    justify-content: space-between;
}

.footer-nav ul{
    width: calc((100% - var(--flex-gap) * 3) / 4);
}

.footer-nav li{
    font-size: 15px;
    line-height: 1.4;
}

.footer-nav li + li{
    margin-top: 8px;
}

.footer-nav a{
    color: var(--color-white);
    text-decoration: none;
}

.footer-nav a:hover{
    text-decoration:  underline;
}

.copyright{
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: brown;
    color: var(--color-white);
    font-size: 12px;
}

/* アニメーション関連のCSS */
.f-up{
    opacity: 0;
}

.f-up.fadeup{
    animation:fadeupanime 1s forwards;
}

@keyframes fadeupanime {
    from{
        opacity: 0;
        transform: translateY(50px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* タブレットはこちら */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .wrapper{
        width: 768px;
    }

    .nav-list{
        width: 100%;
    }

    .card{
        width: 33.3333%;
    }

    .box-list{
        justify-content: center;
    }

    .box{
        width: 80%;
    }

    .sec-03 .wrapper{
        width: 100%;
    }

    .footer-nav{
        width: calc(100% - ((var(--flex-gap) + 200px)));
    }
}

/* レスポンシブモバイル */
@media screen and (max-width: 767px) {
    .wrapper{
        width: 100%;
    }

    .sec-title{
        font-size: 24px;
        padding-bottom: var(--space-unit);
    }

    .lead{
        text-align: left;
    }

    /* ヘッダー（SP） */
    .header .wrapper{
        padding: 0 var(--space-unit);
        display: block;
        height: auto;
    }

    .logo{
        margin: 10px 0;
    }

    .search{
        display: none;
    }

    /* 検索フォーム */
    .search-sp{
        display: flex;
        justify-content: center;
        position: relative;
        padding: var(--space-unit);
    }

    .search-sp input{
        width: 230px;
        height: 37px;
        border-radius: 5px;
        border: 1px solid var(--color-gray);
        box-sizing: border-box;
        font-size: 20px;
        padding-left: 30px;
        background: var(--color-white);
    }

    .search-sp input:focus{
        outline: none;
        border: 1px solid var(--color-accent);
    }

    .search-sp .search-icon{
        position: absolute;
        top: calc(50% - 8px);
        left: calc(50% - 108px)
    }

    /* ナビゲーション（SP） */
    .nav{
        height: 100%;
        display: none;
    }

    .nav-list{
        width: 100%;
        flex-direction: column;
    }

    .nav-list > li{
        width: 100%;
    }

    /* ハンバーガーメニュー */
    .menu{
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .menu span{
        display: block;
        height: 3px;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        transition: 0.5s ease-in-out;
        border-radius: 3px;
    }

    .menu span:nth-child(1){
        top: 5px;
    }

    .menu span:nth-child(2){
        top: 15px;
    }

    .menu span:nth-child(3){
        top: 25px;
    }

    .open .menu span:nth-child(1){
        top: 12px;
        rotate: 135deg;
    }

    .open .menu span:nth-child(2){
        width: 0;
        left: 50%;
    }

    .open .menu span:nth-child(3){
        top: 12px;
        rotate: -135deg;
    }

    /* セクション01（SP） */
    .sec-01{
        padding-bottom: 30px;
    }

    .card-list{
        flex-direction: column;
        padding-bottom: 30px;
    }

    .card{
        width: 100%;
    }

    .card + .card{
        padding-top: 30px;
    }

    /* movie(SP) */
    .movie{
        padding-bottom: 30px;
    }

    /* セクション02 */
    .sec-02{
        padding:30px 0;
    }

    .box{
        width: 100%;
        margin-bottom: var(--space-unit);
    }

    .box:last-of-type{
        margin-bottom: 30px;
    }

    .box-title{
        font-size: 14px;
    }

    .box-text{
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* セクション03（SP） */
    .sec-03{
        width: 100%;
        padding: 30px var(--space-unit);
        box-sizing: border-box;
    }

    .sec-03 .wrapper{
        width: 100%;
    }

    .news-list dd{
        padding-left: 6rem;
    }

    /* フッター（SP） */
    .footer .wrapper{
        padding-left: var(--space-unit);
        padding-right: var(--space-unit);
    }

    .footer-nav{
        display: none;
    }
    
    /* ページトップ（SP） */
    .pagetop{
        bottom: 20px;
        right: 5px;
    }

    /* スライダー（SP） */
    .slick-slide{
        padding: 0;
    }
}