/************************************************
 * cffcms.css
 * システム標準のスタイルシートです.
 * カラーリングや見た目のスタイルは、user.cssに書き加えてください.
 * 
 * Copyright © 2019 coffy
 * coffy.tailslab.net
 ************************************************/

/*----------------------------------------------*/
/* サイト全体のスタイル */
/*----------------------------------------------*/
html {
    /* フォントファミリー（ゴシック系） */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* 余計な余白をなくす */
* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
}

/* 謎の余白を削除 */
img {
    vertical-align: bottom;
}

/*----------------------------------------------*/
/* フレックスボックス関連 */
/*----------------------------------------------*/
/* フレックスボックス（横並び） */
.flexbox {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
}

/* フレックスボックス（縦並び） */
.flexbox.row {
    flex-direction: column;
    -webkit-flex-direction: column;
}

/* 折り返しを許可 */
.flexbox.wrap {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* 中央揃え */
.flexbox.center {
    justify-content: center;
    align-items: center;
}

/* 下揃え */
.flexbox.bottom {
    /* justify-content: center; */
    align-items: flex-end;
}

.flexbox.reverse {
    flex-flow: row-reverse;
}

/* フレックスアイテム（伸縮する） */
.flexitem-fill {
    flex-grow: 1;
    flex: 1;
}

/* 縦並び中央揃えのとき、要素がはみ出る不具合を修正 */
.flexbox.row.center * {
    max-height: 100%;
}

/* 余白 */
.flexbox.gap {
    gap: 0.5em;
}

/*----------------------------------------------*/
/* ページングセクションのスタイル */
/*----------------------------------------------*/
pager {
    text-align: center;
}

pager ul {
    padding: 0;
}

pager li {
    display: inline-block;
    margin: 0 1rem;
    list-style-type: none;
}

/*----------------------------------------------*/
/* CSSアニメーション */
/*----------------------------------------------*/
/* フェードイン */
.fadein {
    animation: fadein 1s ease 0s 1 normal;
    -webkit-animation: fadein 1s ease 0s 1 normal;
}

@keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@-webkit-keyframes fadein {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

/*----------------------------------------------*/
/* メニューボタン */
/*----------------------------------------------*/
.menu-btn {
    z-index: 100000;
    position: fixed;
    top: 10px;
    right: 10px;
    height: 50px;
    width: 50px;
    /* 中央揃え */
    display: flex;
    justify-content: center;
    align-items: center;
    /* メニューボタンの非表示 */
    display: none;
    /* 見た目 */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid lightgray;
    border-radius: 10px;
    /* マウスカーソル */
    cursor: pointer;
}

.menu-btn:before,
.menu-btn:after {
    content: '';
    position: absolute;
    display: block;
    width: 25px;
}

.menu-btn:before {
    top: 13px;
    height: 20px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.menu-btn:after {
    border-top: 1px solid black;
}

/*----------------------------------------------*/
/* 先頭に戻るボタン */
/*----------------------------------------------*/
.page_top {
    z-index: 100000;
    display: block;
    width: 50px;
    height: 50px;
    position: fixed;
    right: 10px;
    bottom: 10px;
    transition: 0.3s;
    /* 見た目 */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid lightgray;
    border-radius: 50%;
}

.page_top::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 14px;
    height: 14px;
    margin: auto;
    transform: rotate(-45deg);
    border-top: 1px solid black;
    border-right: 1px solid black;
}

/*----------------------------------------------*/
/* メディアクエリ */
/*----------------------------------------------*/
/* ↓縦向きの場合のスタイル  */
@media screen and (orientation: portrait) {

    /* ナビゲーションセクションを隠す */
    nav {
        position: fixed !important;
        top: 0;
        right: -100vh;
        height: 100vh;
        overflow-y: auto;
        transition: 0.3s;
        z-index: 100;
    }

    /* メニューボタンの表示 */
    .menu-btn {
        display: flex;
    }

    /* メニューボタン押下時のメニュー表示 */
    #menu-trigger:checked~nav {
        right: 0;
    }
}