@charset "utf-8";
/* 卒業制作Web用CSS */
/* RESET */
* {
    margin: 0;
    padding: 0;
    line-height: 1.5;
/*    outline: 2px solid red;*/
}
li {
    list-style-type: none;
}
a {
    text-decoration: none;
}
/* ブラウザ自動付与アウトライン非表示 */
:focus {
    outline: none;
}

/* ローディング画面の記述ここから↓↓↓ */
#loadingScreen {
    position: fixed;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f29438;
    z-index: 9999;
    transition: 0.4s;
    box-sizing: border-box;
}

.loadingEffect {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: url("img/running_woman.png") no-repeat;
    background-size: contain;
    animation: loadingAnime 2s infinite;
}

.loadingEffect::after {
    content: "Loading...";
    color: #fff;
    display: block;
    position: relative;
    margin-left: 20px;
    right: -2em;
    bottom: 3px;
}

@keyframes loadingAnime {
    0%,  50%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }    
}

.loaded {
    opacity: 0;        /* ロード完了した際に若干の動きを加えながらローディング画面を非表示にしたいため、display:none ではないのかも */
    visibility: hidden;
}

/* ローディング画面の記述ここまで↑↑↑ */

/* 便宜上配置用ダミーフォト */
.dummy {
    width: 100%;
    height: 200px;
    background: #ccc;
    color: #fff;
}

.firstview {
    max-width: 960px;
    height: auto;
}

.smartPhoneView {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.desktopView {
    display: none;
}

body {
    font-family: "fot-chiaro-std", sans-serif;
    font-weight: 700;
    font-style: normal;
    /*background: #ffcbac;*/
    background: #ddd;
    color: #444;
}

#wrap {
    /*min-width: 375px;*/
    margin: 0 auto;
    /*padding-right: 20px;
    padding-left: 20px;*/
    background: #fff;
    text-align: center;
    box-sizing: border-box;
}

header {
    width: 100%;
    height: 90px;
    background: #f9f0d4;    
}

.headerArea {
/*    height: 100%;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#headerNav {
    display: none;
}

main {
    width: calc(100% - 40px);    /* #wrapの左右padding=20pxを引いた幅にすればいい？ */
    margin: 0 auto 30px;
    position: relative;
}

h1 {
    width: calc(100% - 68px - 20px);   /* ハンバーガーアイコンと被ってしまわないように対策 */
    /*min-width: 300px;*/
    max-height: 90px;
    overflow: hidden;
    padding: 10px;
}

h1 a {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
    font-size: 20px;
    max-height: 70px;
/*    line-height: 70px;*/
    letter-spacing: -0.1em;
    color: #f29438;
}

h1 img {
    
}

h2 {
    font-size: 30px;
    line-height: 1.5em;
    margin: 30px auto 15px;
}

h2:first-of-type {
    margin-top: 10px;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

#faq h3 {
    font-size: 18px;
}

p, dt, dd, small {
    font-family: "noto-sans-cjk-jp", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

small {
    font-size: 14px;
}

p.button {
    max-width: 250px;
    background: #f9f0d4;
    box-shadow: 3px 3px #f29438;
    margin: 90px auto 30px;    /* before要素でボタンの上に文字列表示しているので、上のボタンとかぶらないようにマージン調整。（スマホ版のみ） */
    transition: 0.4s;
    position: relative;
}

p.button.facilityButton {
    margin-top: 20px;
}

p.button a {
    color: #f29438;
    display: block;
    padding: 10px;
    transition: 0.4s;
}

p.button a:hover {
    opacity: 0.6;
    background: #fff;
}

p.button a:active {
    position: relative;
    transform: translate(3px, 3px);
}

p.button.planButton::before {
    content:"各プランの説明と\a料金一覧はこちら";
    white-space: pre;
    display: block;
    text-align: center;
    margin: 10px auto;
    position: absolute;
    bottom: 2.8em;
    left: calc(50% - 64px);
}

p.button.faqButton::before {
    content:"お問い合わせの多い質問を\aまとめました";
    white-space: pre;
    display: block;
    text-align: center;
    margin: 10px auto;
    position: absolute;
    bottom: 2.8em;
    left: calc(50% - 96px);
}


p.button.contactButton::before {
    content:"施設見学予約・\aお問い合わせはこちら";
    white-space: pre;
    display: block;
    text-align: center;
    margin: 10px auto;
    position: absolute;
    bottom: 2.8em;
    left: calc(50% - 80px);
}

.firstview {
    width: 100%;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#top section {
    margin: 40px auto;
}

.notice {
    width: 80%;
    margin: 10px auto;
    max-width: 750px;
    height: calc((24px + 10px) * 3);    /* dt, ddのフォントサイズ+padding×3行分 */
    border: 1px dotted #999;
    overflow-y: scroll;
}

.notice dt, .notice dd {
    font-size: 14px;
    box-sizing: border-box;
    padding: 5px;
}

.notice dt {
    width: calc(45% - 20px);
/*    width: calc(50% - 20px);*/
    text-align: center;
/*    padding-right: 2em;*/
}

.notice dd {
    width: calc(55% - 20px);
/*    width: calc(50% - 20px);*/
    text-align: left;
}

.campaignImage {
    display: block;
    margin: 0 auto 20px;
    box-shadow: 0 0 2px #aaa;
}

footer {
    background: #f9f0d4;
    color: #f29438;
    padding: 10px;
}

footer a {
    color: #f29438;
}

#footerLogo {
    position: relative;
    margin-bottom: 10px;
}

#footerLogo a {
    display: block;
}

#footerLogo a p {
    font-family: "fot-chiaro-std", sans-serif;
}

#footerLogo::after {
    content: "";
    display: block;
    position: relative;
    width: 33vw;
    min-width: 200px;
    height: 1px;
    background: #f29438;
    margin: 0 auto;
    top: 3px;
}

#footerInfo dt {
    font-size: 12px;
}

#footerInfo dd {
    font-size: 16px;
    margin-bottom: 8px;
}

/* モバイルではフッターナビを表示しない */
#footerNav {
    display: none;
}

.kaku {
    animation: blinkEffect 2s infinite;
    color: red;
}

@keyframes blinkEffect {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* モバイルとデスクトップでの画像の切り替え */
.smartPhoneImg {
    display: inline;
}
    
 .desktopImg {
    display: none;
}

/*----------------------------------------------------------*/
/* 要素を浮遊させる記述ここから↓↓↓ */
/*----------------------------------------------------------*/
.fuyuAnime {
    animation: fuyu 3s infinite;
}

@keyframes fuyu {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}
/*----------------------------------------------------------*/
/* 要素を浮遊させる記述ここまで↑↑↑ */
/*----------------------------------------------------------*/

/*----------------------------------------------------------*/
/* ページトップの記述ここから↓↓↓ */
/*----------------------------------------------------------*/
#pageTop {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 10px;
    bottom: 20px;
    z-index: 3;
    display: grid;
    place-items: center;
    transform: translateY(100px);
    opacity: 0;
}

#pageTop a {
    display: block;
    width: 100%;
    height: 100%;
    background: url("img/dumbbell_retina2x.png");
    background-repeat: no-repeat;
    background-size: cover;
    transition: 0.2s;
}

#pageTop a:hover,
#pageTop a:active {
    transform: scale(1.2,1.2);
}

/* アニメーション */
/* UpMoveクラス付与時の動作 */
#pageTop.UpMove {
    animation: upAnimation 0.5s forwards;
}

@keyframes upAnimation {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DownMoveクラス付与時の動作 */
#pageTop.DownMove {
    animation: downAnimation 0.5s forwards;
}

@keyframes downAnimation {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/*----------------------------------------------------------*/
/* ページトップの記述ここまで↑↑↑ */
/*----------------------------------------------------------*/


/*----------------------------------------------------------*/
/* モーダルウィンドウの記述ここから↓↓↓  */
/*----------------------------------------------------------*/
/* 最初は非表示 */
#shosai {
    display: none;
}
/*モーダルの横幅を変更*/
.modaal-container{
    max-width: 95%;
}
/*----------------------------------------------------------*/
/* モーダルウィンドウの記述ここまで↑↑↑  */
/*----------------------------------------------------------*/



/*----------------------------------------------------------*/
/* ハンバーガーメニューの記述ここから↓↓↓  */
/*----------------------------------------------------------*/
#hamburgerNav {
    width: 100%;
    background-color: rgba(242,148,56,0.9);
    position: fixed;
    z-index: 2;
    top: 0;
    opacity: 0;
    transform: translateX(200%);
    transition: ease 0.4s;
}

#hamburgerNav ul li {
    height: 10vh;
    display: grid;
    align-items: center;    /* display:gridと組み合わせてaをliの上下左右中央に配置する */
}

#hamburgerNav ul li a {
    display: block;
    height: 100%;
    font-size: 24px;
    color: #fff;
    transition: 0.4s;
    line-height: 10vh;    /* line-heightを親要素liと同じにすることでliのalign-itemsが効くようになる */
}

#hamburgerNav ul li a:hover {
    background-color: rgba(249,240,212,0.85);
    color: #f29438;
}

/* ハンバーガーアイコンエリアの幅指定 */
.hamburger {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border-color: transparent;
}

.hamburger span {
    width: 48px;
    height: 2px;
    background: #444;
    position: fixed;
    display: block;
    transition: ease 0.4s;
    z-index: 3;
}

/* 三本線の見た目作り */
.hamburger span:first-child {
    top: 20px;
    right: 20px;
}

.hamburger span:nth-child(2) {
    top: 38px;
    right: 20px;
}

.hamburger span:last-child {
    top: 56px;
    right: 20px;
}

/* jsによってactiveクラスが付与された時の見た目を記述 */
#hamburgerNav.active {
    transform: translateX(0);
    opacity: 1;
}

.hamburger.active span:first-child {
    top: 36px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    top: 36px;
    transform: rotate(-45deg);
}

/*----------------------------------------------------------*/
/* ハンバーガーメニューの記述ここまで↑↑↑  */
/*----------------------------------------------------------*/

/*----------------------------------------------------------*/
/* スライダーの記述ここから↓↓↓ */
/*----------------------------------------------------------*/
.bannerSlider {
    width: 100%;
    margin: 20px auto;
}

.bannerSlider img {
    width: 100%;    /* img自体は親要素の100%表示になるように指定 */
    height: auto;
    transition: 0.3s;
}

.bannerSlider img:hover {
    opacity: 0.8;
}

/* js内で実装される.slick-slideに対してmargin指定することで前後の画像との余白ができる */
.slider .slick-slide {
    margin:0 10px;
}

/*----------------------------------------------------------*/
/* スライダーの記述ここまで↑↑↑  */
/*----------------------------------------------------------*/

/*----------------------------------------*/
/* 要素をふわっと表示させるための記述ここから */
/*----------------------------------------*/
/* 下からふわっと */
.fadeUp{
    animation-name:fadeUpAnime;
    animation-duration:0.8s;
    animation-fill-mode:forwards;
    opacity:0;
    }
    
@keyframes fadeUpAnime{
    from {
    opacity: 0;
    transform: translateY(100px);
    }

    to {
    opacity: 1;
    transform: translateY(0);
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
 
.fadeUpTrigger{
    opacity: 0;
}
/*----------------------------------------*/
/* 要素をふわっと表示させるための記述ここまで↑↑↑ */
/*----------------------------------------*/


/* デスクトップ表示用 */
@media screen and (min-width:768px) {
    /* ファーストビュー切り替え */
    .smartPhoneView {
        display: none;
    }
    
    .desktopView {
        display: block;
        max-width: 960px;
        margin: 0 auto;
}
    
     .desktopFlex {
        display: flex;
        flex-wrap:wrap; 
    }
    
    .desktopFlex.around {
        justify-content: space-around;
    }
    
    h1 {
        width: calc(100% - 68px); 
        font-size: 22px;
    }
    
    p.button {
        width: calc(33% - 40px);
        margin-top: 20px;
    }
    
    p.button.facilityButton {
        margin-bottom: 80px;
    }
    
    .campaignImage {
        width: calc(100% / 2);
        max-width: 400px;
        max-height: 400px;
    }
    
    /* デスクトップ表示では不要な改行の削除 */
    .smartPhoneBreak {
        display: none;
    }
    
    /* 表示画像の切り替え */
    .smartPhoneImg {
        display: none;
    }
    
    .desktopImg {
        display: inline;
    }
    
    #pageTop {
    width: 80px;
    height: 80px;
    }
    
    #pageTop a {
        background: url("img/dumbbell2.png");
        background-size: cover;
    }
    
    /* デスクトップではフッターナビを表示する */
    #footerNav {
        display: block;
    }
    
    #footerLogo {
        display: grid;
        place-items: center;
    }
        
    /* フッターナビの装飾 */
    #footerNav li {
        margin-top: 5px;
        margin-bottom: 5px;
        min-width: 6rem;
    }
    
    #footerNav li a {
        text-decoration: underline;
    }
    
    footer a {
        color: #f29438;
    }
    
    /* フッターに集められた要素の横並び */
    #footerLogo,
    #footerNav {
         width: calc(33% - 40px);
    }
    
    #footerInfo {
        width: calc(36% - 40px);
    }
    
    /* モバイル表示で出現するロゴ下のアンダーラインを削除 */
    #footerLogo::after {
        content: none;
    }

}

/* 画面幅960px以上の端末にのみ、ヘッダーナビを表示させる */
@media screen and (min-width:960px) {
    h1 {
        width: 33%;
    }
    
   header {
/*        display: flex;*/
        justify-content: space-between;
/*        align-items: center;*/
    }
    
    #headerNav {
        width: 50%;
        display: block;
        margin-right: 70px;
    } 
    
    #headerNav ul {
        display: flex;
        align-items: center;
    }
    
    #headerNav ul li {
        margin: 0 10px;
        width: 100%;
/*        padding-bottom: 10px;*/
        
    }
    
    #headerNav ul li a {
        display: block;
        height: 100%;
/*        padding: 10px 0;*/
        font-size: 15px;
        color: #f29438;
        transition: 0.4s;
    }
    
    #headerNav ul li a:hover {
        color: #fff;
    }
}