﻿@media screen and (max-width: 768px) {
  .mbox {
    border: 1px solid #2ba252;
    padding: 15px 19px;
    width: calc(100% - 40px);
  }
  #top_image {
    width: 100%;
    z-index: -999999;
  }
  #flash {
    position: relative;
    overflow: hidden;
    height: 80vh;
  }
  .textbox {
    position: absolute;
    top: 25%;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: auto;
  }
  #s4u_2 {
    display: none;
  }
  #s4u_2sp {
    display: block;
  }
  #s4u {
    display: none;
    position: absolute;
    top: 25%;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    height: auto;
  }
  .grid-item {
    transition: 0.3s ease-in-out;
    width: calc(100% - 30px) !important;
    font-size: 12px;
    background: #fff;
    padding: 10px 10px 10px;
    margin-left: 5px;
    margin-right: 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 0 0px 1px;
  }
  .section_box_text_r,
  .section_box_text_l {
    display: -webkit-flex;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    margin: 0 auto;
  }
  .section_box_text_box {
    width: calc(100% - 40px);
    vertical-align: middle;
    padding: 20px 20px;
  }
  .section_box_img {
    flex: 1;
  }
  .section_box_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .flex_bx_2,
  .flex_bx_3,
  .flex_bx_4 {
    display: block;
  }
  .flex_bx_2 .bx {
    width: 100%;
  }
  .flex_bx_3 .bx {
    width: calc(100% - 0px);
  }
  .flex_bx_3 .bx:last-child {
    border-right: 0px solid #aaa;
  }
  .flex_bx_4 .bx {
    width: calc(100% - 0px);
  }
  .flex_bx_4 .bx:last-child {
    border-right: 0px solid #aaa;
  }
  .flex_bx_2 .bx,
  .flex_bx_3 .bx,
  .flex_bx_4 .bx {
    margin-bottom: 20px;
    padding: 0 0px;
    position: relative;
    border-right: 0px solid #ccc;
  }
  .newsbox {
    flex-direction: column;
    color: #fff !important;
  }
  .news-ttl {
    width: 100% !important;
    border-right: 0px solid #2ba252;
    border-bottom: 1px solid #fff;
    padding: 5px 0;
    text-align: center;
  }
  .news-ttl span {
    font-size: 1.2rem !important;
  }
  .news-bx {
    flex: 1;
    width: calc(100% - 0px);
    padding: 0 0px;
  }
  .scrbr {
    width: 100%;
    padding: 15px 0px;
    max-height: 100px;
    overflow-y: scroll;
    overflow-x: hidden;
  }
  #flash {
    width: 100%;
    min-width: 100%;
    position: relative;
  }
  .flashimg {
    max-width: 100%;
    width: 100%;
    height: 70px;
    position: absolute;
    padding: 15px 0;
    text-align: center;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    z-index: 5000;
  }
  body {
    font-size: 1.3rem;
  }
  header {
    height: 65px;
  }
  #head .logo {
    margin-top: 28px;
  }
  #head .logo img {
    height: 23px;
  }
  footer {
    padding: 20px 0;
    margin: 0;
    min-width: 100%;
    text-align: center;
  }
  #footer {
    padding: 0px;
    margin: 0 auto 0;
    text-align: center;
  }
  #contentwrap {
    width: 100%;
  }
  #contentwrap p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .list-bnr li {
    width: calc(100% - 5px);
  }
  .scrollbar-x {
    height: auto;
    overflow-x: scroll;
    overflow-y: hidden;
  }
  .scrollbar-x table {
    width: 960px;
  }
  .sp {
    display: block !important;
    text-align: center;
    margin: 0 auto;
  }
  .pc {
    display: none !important;
    text-align: center;
  }
  .tcenter_sp {
    text-align: left;
  }
  .map {
    width: 100%;
    height: 300px;
  }
  .mttl_cl {
    font-size: 2.3rem;
    letter-spacing: 1px;
  }
  .mttl_cl span {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .mttl_cl2 {
    font-size: 2.3rem;
    letter-spacing: 1px;
  }
  .mttl_cl2 span {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .youtube_vd {
    margin-top: 20%;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .youtube_vd iframe {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: block;
  }
  #singlepage p img,
  #main p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .single {
    width: 95%;
    margin: 0 auto;
    padding: 25px 0px;
  }
  .lmain,
  .rmain {
    float: none;
    width: 100%;
  }
  .lsingle,
  .rsingle {
    float: none;
    width: 100%;
  }
  .form dl {
    margin: 10px 0;
  }
  .form dt {
    float: none;
    width: 100%;
    height: 20px;
    line-height: 20px;
    padding-top: 10px;
  }
  .form dd {
    width: 100% !important;
    padding-left: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 0px solid #eee;
  }
  .form dd:last-child {
    border-bottom: 0px;
    margin-bottom: 0px;
  }
  .textarea,
  textarea {
    width: 93% !important;
    font-size: 1.6rem;
  }
  .dropdown {
    font-size: 1.6rem;
  }
  .fm-text {
    text-align: left;
  }
  .mtext1 {
    font-size: 1.8rem;
  }
  .news {
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 0;
  }
  .news dt {
    float: none;
    width: auto;
    padding-top: 5px;
    line-height: 1.6;
    text-align: center;
  }
  .news dt:after {
    content: none;
    margin-left: 0;
  }
  .news dd {
    padding-left: 0;
    padding-bottom: 5px;
    padding-top: 5px;
    line-height: 1.3;
  }
  .news-bl dt {
    float: none;
    width: 100%;
    color: #fff;
    margin: 2px 0 0;
  }
  .news-bl dd {
    padding-left: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 5px 0;
  }
  #title {
    padding: 120px 0 50px;
  }
  #title h2 {
    font-size: 2.5rem;
  }
  table {
    font-size: 1.1rem !important;
    margin: 15px 0;
  }
  table th {
    vertical-align: middle;
    padding: 2px 5px;
    font-weight: bold;
    line-height: 1.5;
  }
  table td {
    padding: 5px 5px;
    vertical-align: middle;
    border: #aaa 1px solid;
  }
  .none,
  #nav-f,
  #menuA,
  #menu,
  #seoA,
  #pankuzu,
  #navi,
  .seo,
  #fmenu,
  #tnavi,
  .tbnr,
  .pc {
    display: none;
  }
  #head,
  header,
  #footer,
  footer,
  #wrap,
  #nav,
  #wrapA,
  #seo,
  #title {
    width: 100%;
    min-width: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .flink0,
  .flink1,
  .flink2 {
    width: 100%;
    margin-bottom: 20px;
  }
  .flink0 ul,
  .flink1 ul,
  .flink2 ul {
    margin-right: 0;
    margin-bottom: 0;
    text-align: center;
  }
  .flink0 li,
  .flink1 li,
  .flink2 li {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
  }
  .flink0 li img,
  .flink1 li img,
  .flink2 li img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .fleft0,
  .fleft1,
  .fleft2,
  .fright0,
  .fright1,
  .fright2 {
    float: none;
  }
  .fleft0,
  .fleft1,
  .fleft2,
  .fright0,
  .fright1,
  .fright2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}
#sp_icon,
#humberger {
  display: none;
}
#page {
  padding: 0;
  position: relative;
  z-index: 2;
  left: 0;
  -webkit-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -moz-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -o-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -moz-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -o-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
}

.icon-menu {
  padding: 0;
  margin: 0 auto;
  height: 7px;
  text-align: center;
  width: 35px;
}
.icon-bar {
  height: 2px;
  background: #fff;
  display: block;
  margin-bottom: 6px;
  -webkit-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -moz-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -o-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -moz-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -o-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
}
.fixed-content {
  right: inherit;
  width: 100%;
  -webkit-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -moz-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -o-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -moz-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -o-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
}
#overlay {
  display: none;
  z-index: -1;
  opacity: 0;
  background: #000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  -webkit-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -moz-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -o-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -moz-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -o-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
}
#drawernav{
  display: none;
}
@media (max-width: 768px) {
  #sp_icon {
    background: #2ba252;
    position: fixed;
    top: 2px;
    right: 62px;
    z-index: 999999;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  #sp_icon li {
    font-size: 2.2rem;
    display: block;
    width: 30px;
    height: 30px;
    padding: 13px 15px 17px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    margin-right: 2px;
    position: relative;
    border-radius: 100%;
  }
  #sp_icon li span {
    font-size: 1.3rem;
    display: block;
  }
  #sp_icon li a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: -999px;
  }
  #humberger {
    background: #2ba252;
    display: block;
    position: fixed;
    top: 8px;
    right: 2px;
    width: 65px;
    height: 65px;
    padding: 15px;
    cursor: pointer;
    z-index: 99999;
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    border-radius: 100%;
  }
  .drawer-opened #page {
    left: -240px;
    box-shadow: 1px 0 2px #000;
  }
  .drawer-opened .fixed-content {
    left: -240px;
  }
  .drawer-opened #drawernav {
    right: 0;
  }
  .drawer-opened #humberger {
    background: none;
  }
  .drawer-opened #humberger .icon-bar {
    background: #fff;
  }
  .drawer-opened #humberger :nth-child(1) {
    transform: translate(0, 8px) rotate(45deg);
  }
  .drawer-opened #humberger :nth-child(2) {
    transform: translate(-20px, 0);
    opacity: 0;
  }
  .drawer-opened #humberger :nth-child(3) {
    transform: translate(0, -8px) rotate(-45deg);
  }
  #humberger :nth-child(3) {
    margin-bottom: 0px;
  }
  .drawer-opened #humberger .icon-menu {
    opacity: 0;
  }
  .icon-menu {
    padding: 0 1px;
    margin: 0 auto;
    height: 10px;
    text-align: center !important;
    width: 50px;
    font-size: 1.1rem;
  }
  .drawer-opened #humberger .icon-menu {
    opacity: 0;
  }
  .drawer-opened #overlay {
    display: initial;
    opacity: 0.5;
    left: -240px;
    position: fixed;
    z-index: 9999999;
    width: 100%;
    height: 100%;
  }
  .fixed {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #drawernav {
    display: block;
  background: #2ba252;
  overflow: auto;
  position: fixed;
  top: 0;
  right: -240px;
  width: 240px;
  height: 100%;
  color: #fff;
  z-index: 99998;
  box-shadow: rgba(0, 0, 0, 0.2) -3px 0 2px 0;
  -webkit-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -moz-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -o-transition: all 400ms cubic-bezier(1, 0, 0, 1);
  transition: all 400ms cubic-bezier(1, 0, 0, 1);
  -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -moz-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  -o-transition-timing-function: cubic-bezier(1, 0, 0, 1);
  transition-timing-function: cubic-bezier(1, 0, 0, 1);
}

#drawernav ul {
  list-style: none;
  padding: 0;
}

#drawernav ul:first-child {
  margin-top: 60px;
}

#drawernav ul li a {
  background: #2ba252;
  color: #fff;
  font-size: 1.3rem;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#drawernav ul li a:hover {
  color: #fff;
}

#drawernav ul li a:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0da";
  margin-right: 10px;
}

/* 子メニュー（画像アイコン前提） */
#drawernav li ul li a {
  font-size: 1.1rem;
  color: #fff;
  display: flex;                /* ← アイコンとテキストを横並びに */
  align-items: center;          /* 垂直センター */
  gap: 8px;                     /* アイコンと文字の間 */
  padding: 8px 20px;
  text-decoration: none;
  border-top: none;
  border-bottom: none;
  background: #008eb6;
}

/* 子メニューの疑似要素は削除 */
#drawernav li ul li a:before {
  content: none; /* ← ここで無効化 */
}

/* 子メニュー内のアイコン画像 */
#drawernav li ul li a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* ← 初期白：背景が青のため */
  transition: filter 0.2s;
}

/* ホバー時のアイコン色（白のまま or 別色に可能） */
#drawernav li ul li a:hover img {
  filter: brightness(0) invert(1); /* 必要なら変更可能 */
}
}

/*# sourceMappingURL=sp.css.map */
