* {
  box-sizing: border-box;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

#header ul li p {
  display: none;
}
#header .header_menu_sub {
  display: none;
}
#header .header_smenu {
  display: none;
}

#side-sp {
  display: none;
}

#bcWrap h2 span {
  display: none;
}

@media screen and (max-width: 767px) {
  img {
    max-width: 100%;
  }
  body {
    min-width: auto;
    width: 100%;
  }
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  #bcList {
    width: 100%;
    padding: 10px 10px 8px;
  }
  #contents {
    width: 100%;
    padding: 30px 20px;
  }
  #main {
    float: none;
    width: 100%;
  }
  #main h3 {
    margin-bottom: 20px;
  }
  #main h4 {
    position: relative;
    background: none;
    border: solid 1px #ccc;
    font-size: 18px;
  }
  #main h4::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    width: 12px;
    height: 4px;
    background: #ea7e04;
  }
  #main h5 {
    font-size: 17px;
  }
  #main .txt_box {
    margin-bottom: 30px;
    font-size: 16px;
  }
  #side {
    float: none;
    width: 100%;
  }
  #side-sp {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0 20px 30px;
  }
  #side-sp li {
    position: relative;
  }
  #side-sp li:nth-child(1) {
    grid-area: 1/1/2/2;
  }
  #side-sp li:nth-child(2) {
    grid-area: 1/2/2/3;
  }
  #side-sp li:nth-child(3) {
    grid-area: 2/1/3/3;
  }
  #side-sp li:nth-child(4) {
    grid-area: 3/1/4/3;
  }
  #side-sp li.half {
    width: 100%;
    height: 90px;
  }
  #side-sp li.half.request {
    background: #0071bc url("../images/btn_request_sp.png") no-repeat center center;
    background-size: 100%;
  }
  #side-sp li.half.cancel {
    background: #0071bc url("../images/btn_cancel_sp.png") no-repeat center center;
    background-size: 100%;
  }
  #side-sp li.half a {
    position: absolute;
    width: 132px;
    height: 32px;
  }
  #side-sp li.half a span {
    background: #fff;
    width: 100%;
    font-size: 16px;
    color: #0071bc;
  }
  #side-sp li.half a.pdf {
    top: 44px;
    left: 57px;
  }
  #side-sp li.half a.excel {
    top: 44px;
    left: 196px;
  }
  #headerWrap {
    position: relative;
    z-index: 99;
  }
  #header {
    background: #ea7e04;
    position: absolute;
    top: 0;
    z-index: 5;
    width: 100%;
  }
  #header h1 {
    background: #f59739;
    float: none;
    padding-left: 20px;
  }
  #header ul {
    float: none;
  }
  #header .header_wrap_btn {
    cursor: pointer;
    display: block;
    height: 35px;
    width: 35px;
    position: absolute;
    top: 10px;
    right: 20px;
    margin: auto;
    z-index: 170;
  }
  #header .header_wrap_btn span {
    background: #fff;
    bottom: 0;
    display: block;
    height: 4px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.5s linear;
    -webkit-transition: 0.5s linear;
    -moz-transition: 0.5s linear;
    -o-transition: 0.5s linear;
    -ms-transition: 0.5s linear;
    width: 35px;
  }
  #header .header_wrap_btn span:before, #header .header_wrap_btn span:after {
    background: #fff;
    content: "";
    display: block;
    height: 4px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    transition: 0.2s linear;
    -webkit-transition: 0.2s linear;
    -moz-transition: 0.2s linear;
    -o-transition: 0.2s linear;
    -ms-transition: 0.2s linear;
    width: 35px;
  }
  #header .header_wrap_btn span:before {
    top: -11px;
  }
  #header .header_wrap_btn span:after {
    bottom: -11px;
  }
  #header .header_wrap_btn.close span {
    background: transparent !important;
  }
  #header .header_wrap_btn.close span:before {
    top: 0;
    transform: rotate(45deg);
  }
  #header .header_wrap_btn.close span:after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  #header .header_box {
    display: none;
  }
  #header .header_menu {
    margin: 0 20px;
  }
  #header .header_menu li {
    float: none;
  }
  #header .header_menu li img {
    display: none;
  }
  #header .header_menu li a {
    position: relative;
    display: block;
    text-decoration: none;
    padding-right: 40px;
  }
  #header .header_menu li a p {
    display: block;
    padding: 15px;
    font-size: 18px;
    color: #fff;
  }
  #header .header_menu li a::before, #header .header_menu li a::after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    content: "";
    vertical-align: middle;
  }
  #header .header_menu li a::before {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    width: 6px;
    height: 6px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  #header .header_menu li.floor > a {
    pointer-events: none;
  }
  #header .header_menu > li:first-child {
    display: none;
  }
  #header .header_menu > li:nth-child(2) > a::before {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    right: 14px;
  }
  #header .header_menu > li:nth-child(2).open > a::before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 10px;
  }
  #header .header_menu > li:not(:nth-child(2)) {
    border-top: solid #fff 1px;
  }
  #header .header_menu > li:last-child {
    border-bottom: solid #fff 1px;
  }
  #header .header_menu_sub {
    display: none;
    border-top: solid #fff 1px;
  }
  #header .header_menu_sub li {
    border-bottom: dotted #fff 1px;
  }
  #header .header_menu_sub li a {
    padding: 15px 15px 15px 30px;
    font-size: 15px;
    color: #fff;
  }
  #header .header_menu_sub li a br {
    display: none;
  }
  #header .header_menu_sub li:last-child {
    border-bottom: none;
  }
  #header .header_smenu {
    display: block;
    padding: 20px 20px 35px;
  }
  #header .header_smenu a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
  }
  #header .header_smenu a + a {
    margin-top: 6px;
  }
  #header #bottomWrap {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
  #bcWrap h2 {
    position: relative;
    background: none;
    width: 100%;
    height: 120px;
    overflow: hidden;
    object-fit: cover;
  }
  #bcWrap h2 img {
    width: 100%;
  }
  #bcWrap h2 span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
  }
  #side {
    display: none;
  }
  #fMenu {
    height: auto;
  }
  #fMenu ul {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  #fMenu ul li a {
    font-size: 14px;
  }
  #fMenu ul li:nth-child(-n+5) {
    display: none;
  }
  #footerWrap {
    margin-bottom: 20px;
  }
  #footerWrap #footer {
    width: 100%;
  }
  #footerWrap #footer #map, #footerWrap #footer #fInfo {
    float: none;
    width: 100%;
    height: auto;
  }
  #footerWrap #footer #map {
    height: 200px;
  }
  #footerWrap #footer #map iframe {
    width: 100%;
    height: 100%;
  }
  #footerWrap #footer #fInfo {
    padding: 15px;
  }
  #footerWrap #footer #fInfo .fInfoL {
    float: none;
    padding: 0;
  }
  #footerWrap #footer #fInfo .fInfoR {
    float: none;
    padding: 0;
  }
  #footerWrap #footer #fInfo .fName {
    margin: 0 0 0px;
    line-height: 1;
    font-size: 18px;
  }
  #footerWrap #footer #fInfo .fName a {
    color: #262626;
    font-weight: bold;
    text-decoration: none;
  }
  #footerWrap #footer #fInfo .fName a img {
    margin: 0 0 0 5px;
    vertical-align: middle;
  }
  #footerWrap #footer #fInfo .fAdd {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 22px;
  }
  #footerWrap #footer #fInfo .fNum {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: bold;
    line-height: 28px;
    color: #C1272D;
  }
  #footerWrap #footer #fInfo .fNum td {
    font-size: 22px;
    font-weight: bold;
    line-height: 28px;
    color: #C1272D;
  }
  #footerWrap #footer #fInfo .fCopy {
    font-size: 11px;
    line-height: 1;
    text-align: left;
  }
  #bottomWrap {
    position: relative;
    height: auto;
    left: inherit;
    bottom: inherit;
    padding: 0 20px 20px 20px;
  }
  #bottomWrap #bottom {
    width: 100%;
  }
  #bottomWrap #bottom ul {
    position: relative;
    top: inherit;
    right: inherit;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
  }
  #bottomWrap #bottom ul li {
    float: none;
  }
  #bottomWrap #bottom ul li:first-child {
    grid-area: 1/1/2/2;
  }
  #bottomWrap #bottom ul li:nth-child(2) {
    grid-area: 1/2/2/3;
  }
  #bottomWrap #bottom ul li:nth-child(3) {
    grid-area: 2/1/3/3;
  }
  #bottomWrap #bottom table {
    margin: 0 auto;
  }
  #bottomWrap #bottom table td {
    display: block;
    padding: 15px;
    text-align: center;
  }
  #bottomWrap #bottom table td:first-child {
    padding: 30px 15px 0;
  }
  #lightbox-container-image-box {
    max-width: 98%;
    min-height: 200px;
    height: auto !important;
  }
  #lightbox-container-image-data-box {
    max-width: 98%;
  }
  #pagetop {
    right: 20px;
    bottom: 20px;
    z-index: 88;
  }
}