/*
当サイトは、モバイルファースト方式とする
スマホ用のCSSはメデイアクエリの外に記述する
*/

:root {
    /* 背景色：ベースカラー */
    --bg-base-color: white;
    /* 背景色：メインカラー */
    --bg-main-color: royalblue;
    /* 背景色：アクセントカラー */
    --bg-accent-color: silver;
    /* フォント：ベースカラー */
    --font-base-color: dimgray;
    /* フォント：メインカラー */
    --font-main-color: white;
}

body {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    margin: 0px;
    background-color: var(--bg-base-color);
    font-family: 'Noto Sans JP', sans-serif;
}

/*-------------------------
ヘッダーエリア
--------------------------*/
#HeaderArea {
    position: fixed;
    width: 100%;
    background: linear-gradient(var(--bg-main-color) 75%, white);
    z-index: 10;
}

.HeaderContent {
    display: flex;
    width: 100%;
    height: 70px;
    align-items: center;
    text-align: center;
}

.title {
    position: absolute;
    font-size: 16pt;
    color: var(--font-main-color);
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    font-family: 'Noto Sans JP', sans-serif;
}

/*-------------------------
メインエリア
--------------------------*/
#MainArea {
    flex: 1;
    width: 100%;
    margin-top: 70px;
    margin-bottom: 80px;
    text-align: center;
    z-index: 0;
}

.PageTitle {
  font-size: large;
  font-weight: bold;
}

/*-------------------------
フッターエリア
--------------------------*/
#FooterArea {
  width: 100%;
  height: 150px;
  background-color: var(--bg-main-color);
}

.FooterContent {
    position: absolute;
    width: 95%;
    height: 150px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.FooterContent ul {
    list-style: none;
}

.FooterContent li {
    margin-bottom: 5px;
}

a:link, a:visited, a:hover, a:active {
    color: var(--font-main-color);
    text-decoration: none;
}

.FooterContent a:hover {
    color: var(--font-main-color);
    text-decoration: underline;
}

.copyright {
    position: absolute;
    left: 50%;
    width: 100%;
    bottom: 10px;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    text-align: center;
}

.copyright label {
    color: var(--font-main-color);
    font-size: small;
}

/*-------------------------
ハンバーガーナビエリア
--------------------------*/
/*============
nav
=============*/
nav {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    background: var(--bg-main-color);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: all .5s;
    z-index: 15;
    opacity: 0;
  }
  .open nav {
    left: 0;
    opacity: 1;
  }
  nav .inner {
    padding: 25px;
  }
  nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav .inner ul li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid white;
  }
  nav .inner ul li a {
    display: block;
    color: var(--font-main-color);
    font-size: 14px;
    padding: 1em;
    text-decoration: none;
    transition-duration: 0.2s;
  }
  nav .inner ul li a:hover {
    background: var(--bg-main-color);
  }
  @media screen and (max-width: 767px) {
    nav {
      left: -220px;
      width: 220px;
    }
  }
  /*============
  .toggle_btn
  =============*/
  .toggle_btn {
    display: block;
    position: fixed;
    top: 20px;
    left: 30px;
    width: 30px;
    height: 30px;
    transition: all .5s;
    cursor: pointer;
    z-index: 15;
  }
  .open .toggle_btn {
    left: 330px;
  }
  .toggle_btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--bg-base-color);
    border-radius: 4px;
    transition: all .5s;
  }
  .toggle_btn span:nth-child(1) {
    top: 4px;
  }
  .toggle_btn span:nth-child(2) {
    top: 14px;
  }
  .toggle_btn span:nth-child(3) {
    bottom: 4px;
  }
  .open .toggle_btn span {
    background-color: #fff;
  }
  .open .toggle_btn {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  .open .toggle_btn span:nth-child(1), .open .toggle_btn span:nth-child(3) {
    width: 16px;
  }
  .open .toggle_btn span:nth-child(1) {
    -webkit-transform: translate(-1px,4px) rotate(-45deg);
    transform: translate(-1px,4px) rotate(-45deg);
  }
  .open .toggle_btn span:nth-child(3) {
    -webkit-transform: translate(-1px,-4px) rotate(45deg);
    transform: translate(-1px,-4px) rotate(45deg);
  }
  @media screen and (max-width: 767px) {
    .open .toggle_btn {
      left: 250px;
    }
  }
  /*============
  #mask
  =============*/
  #mask {
    display: none;
    transition: all .5s;
  }
  .open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .8;
    z-index: 12;
    cursor: pointer;
  }

/*=====================================
481px以上に適用されるCSS（タブレット用）
======================================*/
@media screen and (min-width: 481px) {
    /*-------------------------
    ハンバーガーメニュー
    --------------------------*/
    #navArea {
        visibility: hidden;
        display: none;
    }
    /*-------------------------
    ヘッダーエリア
    --------------------------*/
    .title {
        font-size: x-large;
        left: 20px;
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
    }
    /*-------------------------
    メインエリア
    --------------------------*/
    .MainArea {
        padding-top: 0px;
    }
    .MainContent img {
        height: 400px;
        object-position: 0 80%;
    }
    .MainContent_navList_item img {
      max-height: 200px;
    }
}

/*=====================================
960px以上に適用されるCSS（PC用） 
======================================*/
@media screen and (min-width: 960px) {
    /*-------------------------
    メインエリア
    --------------------------*/
    .HeaderContent {
        height: 70px;
    }
    .MainContent img {
        height: 500px;
        object-position: 0 80%;
    }
    /*-------------------------
    フッターエリア
    --------------------------*/
    .FooterContent {
        height: 100px;
    }
    .links li {
        display: inline;
        margin-right: 10px;;
    }
    .copyright label {
        font-size: medium;
    }

}