

/* ---- スコープ限定リセット ---- */
#menuBtn,
#menuBtn2,
#menuPlate,
#menuMark,
#navAll,
#navAll * {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

#navAll ul {
  list-style: none outside none;
}

#navAll a {
  text-decoration: none;
  transition: all 0.3s ease;
}


/* ============================================================
   Menu (Desktop / 画面幅 769px 以上)
============================================================ */
@media screen and (min-width: 769px) {

  #menuBtn {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 250;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    background: url("img/icon_menu.png") no-repeat left;
    background-size: cover;
    cursor: pointer;
  }

  #menuBtn2 {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 255;
    display: none;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    background: url("img/icon_close.png") no-repeat left;
    background-size: cover;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  #menuBtn2:hover {
    transform: rotateZ(90deg);
  }

  #menuPlate {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 240;
    width: 60px;
    height: 100%;
    background: #c40000;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
  }

  #navAll {
    position: fixed;
    top: 0;
    left: 60px;
    z-index: 239;
    display: none;
    opacity: 0;
    width: 375px;
    height: 100%;
    background: #c40000 url("img/bg_nav.jpg") no-repeat center top;
    background-size: cover;
    border-left: 2px solid #000;
    border-right: 1px solid #c40000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, .6);
    transition: opacity 0.3s ease;
  }

  #menu {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 202;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
  }

  #menu ul {
    position: relative;
  }

  #menu ul li {
    width: 100%;
    margin: 0 auto;
    background: #eee;
    border-bottom: 1px solid #c40000;
    font-family: "LINE Seed JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    transform: translateX(-100%);
    animation: menuanm 1s cubic-bezier(0, .64, .41, 1) .5s forwards;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
  }
  #menu ul li.nav_ttl{
    height: 80px;
  }
  #menu ul li.notice{
    height: 40px;
  }
  #menu ul li.strong{
   height: 50px;
   background: #eeeeee;
  }

  #menu ul li a {
    display: block;
    width: 100%;
    height: 100%;
    color: #c30000;
    padding:5px;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    display:flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  #menu ul li.nav_ttl a{
    background: #000000;
    color: #fff;
    font-weight: 700;
  }
  #menu ul li.notice a{
    background: #ffffff;
    color: #000000;
    font-size: 90%;
  }
  #menu ul li.strong a{
   font-weight: 900;
  }
  #menu ul li a:hover {
    background: #fff000;
    color: #000000;
    opacity: 1;
  }
  #menu ul li.nav_ttl a:hover{
    background: #c30000;
    color: #fff;
  }
  #menu ul li.notice a:hover{
    background: #fff000;
    color: #000000;
  }

  .linetop {
    border-top: 1px solid #c40000;
  }

  .lineLeft {
    border-left: 1px solid #c40000;
  }
}

/* ============================================================
   Menu (Mobile / 画面幅 768px 以下)
============================================================ */
@media screen and (max-width: 768px) {

  #menuBtn {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 250;
    width: 50px;
    height: 50px;
    background: url("img/icon_menu.png") no-repeat left;
    background-size: cover;
    cursor: pointer;
  }

  #menuBtn2 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 255;
    display: none;
    width: 50px;
    height: 50px;
    background: url("img/icon_close.png") no-repeat left;
    background-size: cover;
    cursor: pointer;
  }

  #menuPlate {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 249;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(158deg, #c40000, #a80000);
    line-height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  }


  #navAll {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 240;
    display: none;
    opacity: 0;
    width: 100%;
    height: 100%;
    background: #c40000 url("img/bg_nav.jpg") no-repeat center top 40px;
    background-size: cover;
    overflow-x: hidden;
    overflow-y: auto;
    transition: opacity 0.3s ease;
  }

  #menu {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 202;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
  }

  #menu ul {
    position: relative;
  }

  #menu ul li {
    width: 100%;
    margin: 0 auto;
    background: #eee;
    border-bottom: 1px solid #c40000;
    font-family: "LINE Seed JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-style: normal;
    transform: translateX(-100%);
    animation: menuanm 1s cubic-bezier(0, .64, .41, 1) .5s forwards;
    -webkit-user-select: none;
    user-select: none;
  }


  #menu ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 0;
    color: #000;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
        display:flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  #menu ul li.nav_ttl a{
    background: #000000;
    color: #ffffff;
  }
  #menu ul li.notice a{
    background: #fff;
    color: #000000;
  }
  #menu ul li.strong a{
  font-weight: 900;
   color: #c40000;
  }
  .linetop {
    border-top: 1px solid #c40000;
  }

  .lineLeft {
    border-left: 1px solid #c40000;
  }
}

/* ============================================================
   アニメーション（共通）
============================================================ */
@keyframes menuanm {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

#menu ul li:nth-child(1) { animation-delay: 0.05s; }
#menu ul li:nth-child(2) { animation-delay: 0.1s; }
#menu ul li:nth-child(3) { animation-delay: 0.15s; }
#menu ul li:nth-child(4) { animation-delay: 0.2s; }
#menu ul li:nth-child(5) { animation-delay: 0.25s; }
#menu ul li:nth-child(6) { animation-delay: 0.3s; }
#menu ul li:nth-child(7) { animation-delay: 0.35s; }
#menu ul li:nth-child(8) { animation-delay: 0.4s; }
#menu ul li:nth-child(9) { animation-delay: 0.45s; }
#menu ul li:nth-child(10) { animation-delay: 0.5s; }
#menu ul li:nth-child(11) { animation-delay: 0.55s; }
#menu ul li:nth-child(12) { animation-delay: 0.6s; }
#menu ul li:nth-child(13) { animation-delay: 0.65s; }
#menu ul li:nth-child(14) { animation-delay: 0.7s; }
#menu ul li:nth-child(15) { animation-delay: 0.75s; }
#menu ul li:nth-child(16) { animation-delay: 0.8s; }


/* ============================================================
   アイコン
============================================================ */

i.police{
  background: url(img/icon_police.svg) no-repeat;
  height:25px;
  width: 25px;
}
i.filesearch{
  background: url(img/icon_akapen.svg) no-repeat;
  height:20px;
  width: 20px;
}


a.anchor{
    display: block;
    padding-top: 0px;
    margin-top: -0px;
}
