@charset "utf-8";

/* ----変数定義 */

:root {
    /* カラー */
    --color-primary: #009944;
    --color-secondary: #d6a89e;
    --color-accent: #981111;
    --color-text: #333;
    --color-link: #006ad6;
    --color-white: #fff;
    --color-gray: #959595;
    --color-footer: #4c3f3f;

    /* レイアウト */
    --width-content: 1200px;
    --width-narrow: 770px;
    --space-unit: 15px;
    --space-section: 45px;

    /* その他 */
    --flex-gap: 30px;
    --duration: 0.7s;
}

/* ーーーーーーーーーーーーーーベースーーーーーーーーーーーーーー */
body {
    font-family: "Yu Gothic", "游ゴシック Medium", YuGothic, "游ゴシック体","ヒラギノ角ゴ Pro W3", sans-serif;
    overflow-X: hidden;
}

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

/* ーーーーーーーーーーーーーーーレイアウトーーーーーーーーーーーーーーー */
.wrapper {
    width: var(--width-content);
    margin: 0 auto;
    position: relative;
    padding: 0 var(--space-unit);
    box-sizing: border-box;
}

/* 共通のもの */
.sec-ttl {
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    padding-bottom: var(--space-section);

}

.lead {
    font-size: 14px;
    line-height: calc(26 / 14);
    text-align: center;
    padding-bottom: var(--space-section);
}

/* ボタン */
.btn {
    display: block;
    text-align: center;
    font-weight: bold;
    transition: all var(--duration);
    margin: 0 auto;
}

/* プライマリーボタン */
.btn-primary {
    width: 290px;
    height: 55px;
    line-height: 55px;
    background: var(--color-primary);
    color: #fcf0a4;
    border-radius: 5px;
}
/* セカンダリーボタン */
.btn-secondary {
    width: 150px;
    height: 45px;
    line-height: 45px;
    border-radius: 5px;
    box-shadow: 0px 2px 3.6px 2.4px rgba(0, 0, 0, 0.16);
    font-size: 15px;
    color: var(--color-text);
}

/* ページボタン */
.pagetop {
    /* ボタンを隠しておく */
    display: none;
    /* 右下にずっと固定 */
    position: fixed;
    /* 右下からの距離 */
    bottom: 15px;
    right: 15px;
    /* 一番前に出ておく */
    z-index: 9999;
    /* 大きさは50Pxの正方形 */
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    /* 正方形を真ん丸にする */
    border-radius: 50%;
    /* 透明はなし */
    opacity: 1;
}

.pagetop:before {
    /* 親の緑の〇の基準の位置を決める */
    position: absolute;
    /* 疑似要素を作るためのおまじない */
    content: "";
    /* 小さい箱を作る10px */
    height: 10px;
    width: 10px;
    /* 箱の上と右だけに白い線を引く */
    border-top: 3px solid var(--color-white);
    border-right: 3px solid var(--color-white);
    transition: all 0.3s;
    /* その形を反時計回りに45度回転させると↑ができる */
    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: var(--space-unit);
}

.header .wrapper {
    /* ロゴと検索ボタンを中央配置、両端に揃える間隔上げる表示 */
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.logo img {
    margin: 0;
}
/* 検索フォーム */
.search {
    position: relative;
}
.search input {
    width: 230px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid var(--color-gray);
    box-sizing: border-box;
    font-size: 20px;
    /* ここにはアイコンがくるから書かないでねというスペース確保 */
    padding-left: 30px;
}

.search-sp {
    display: none;
}

.search-icon {
    position: absolute;
    /* 位置を指定している上から10px 左端から10pxの場所において！ */
    top: 10px;
    left: 10px;
}

/* グローバルナビ */
.nav {
    background: var(--color-secondary);
}
.nav-list {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--flex-gap);
}

.nav-list > li {
    width: calc((100% - var(--flex-gap) * 4) / 5);
    /* フレックスギャップ30pxのメニューを✖️４を先に計算させて、５つのものを並べていくれる。崩れないように計算式を入れている。 */
}
.nav-link {
    display: block;
    height: 60px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    line-height: 60px;
    transition: all 0.5s;
}

.nav-link:hover {
    /* みんなに見やすいように作る。 */
    background: var(--color-accent);
    color: var(--color-white);
}

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

/* ------------main visual-------- */
.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: "\f1bb";
}

/* /-----------------* sec01 *------------------/ */
.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-ttl {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    line-height: calc(30 / 18);
    padding-bottom: var(--space-unit);
}

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

/* --------------------movie----------------------- */
    /* movieのタグ自体がインライン要素であり、枠からはみ出す場合があるのでしっかり収めるようにしておく */
.movie {
    padding-bottom: var(--space-section);
}

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


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

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

.box {
    /* 計算式のやり方がある 引き算して15*/
    width: calc(50% - var(--space-unit));
    display: flex;
    /* 上下ぴったりになるように設定 stretch */
    align-items: stretch;
    margin-bottom: 30px;
    background: var(--color-white);
    padding-left: 0;
}

.box-img {
    width: 30%;
    /* margin: 0%; */
}
/* .box-img img { */
    /* width: 100%; */
    /* 親要素の30%の幅いっぱいにひろげる */
    /* height: 100%; */
    /* 親の高さに合わせる */
    /* object-fit: cover; */
    /* 画像が縦長になっても歪まないようにトリミング */
    /* margin: 0; */
    /* 全体の中央寄席を打ち消して左寄せにする */
    /* フォトショップ画像imgの中身の写真を200%してると左にきちんと収まる表記になる */
/* } */

.box-content {
    display: flex;
    align-items: center;
    padding: 0 var(--space-unit);
    width: 70%;
    color: var(--color-text);
}

.box-ttl {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: var(--space-unit);
}

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

/* ----------------section03----------------- */
.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);
    font-size: 14px;
}

.news-list dd {
    padding: var(--space-unit) 0 var(--space-unit) 10em;
    border-bottom: 1px dotted var(--color-text);
    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------------- */
.footer {
    background-color: var(--color-secondary);
}
.footer .wrapper {
    padding: var(--space-section) 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap:var(--flex-gap);
}

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

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

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

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

.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-text);
    text-decoration: none;
}

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

.copyright {
    height: 30px;
    line-height: 30px;
    background: var(--color-footer);
    color: var(--color-white);
    text-align: center;
    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-ttl {
        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;
    }

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

.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%;
    }

    /* ハンバーガーメニュー sp*/
    .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;
    }
    
    /* ↓の表記で3本のハンバガーがつき、10pxの行間でならぶ */
    .menu span:nth-child(1) {
        top: 5px
    }

    .menu span:nth-child(2) {
        top: 15px;
    }
    .menu span:nth-child(3) {
        top:25px;
    }
    /* ↓の表記でハンバガーを開いたときにバッテンになり、真ん中2がなくなり、棒がかさなりあう。 */
    .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 {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .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-ttl {
        font-size: 14px;
    }
    .box-txt {
        font-size: 14px;
    }
    .box-txt {
        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;
    }

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


}

