@media screen and (max-width: 768px) {
  body {
    min-width: 425px;
  }

  /* top-page */

  .top-page #header,
  .sub-page #header {
    position: sticky;
    top: 0;
    min-width: 425px;
    opacity: 1;
    animation: none;
  }

  .top-page #header .header-inner {
    padding: 0;
    background: #fff;
  }

  .top-page #header .header-inner .topbar {
    height: 50px;
  }

  .top-page #header .header-inner .logo #logotitle {
    font-size: 1.2rem;
    color: inherit;
  }

  .top-page #header .header-inner .pc-nav {
    display: none;
  }

  #header .header-inner .sp-nav {
    display: block;
  }

  #header .header-inner .sp-nav .sp-menu {
    height: calc(100vh - 50px);
  }

  #header .header-inner .navbar a {
    color: #06156e;
    font-size: 16px;
  }

  #header .header-inner .navbar a:hover {
    text-decoration: underline;
  }

  .body-inner #first-veiw .mask {
    height: 400px;
  }

  .body-inner #first-veiw {
    height: 400px;
    background-size: cover;
  }

  .body-inner #first-veiw img.message {
    width: 50%;
  }

  #product .product-inner {
    padding-top: 40px;
  }

  #product .product-inner .product-title h2 {
    font-size: 1.4rem;
  }

  #product .product-inner .product-category {
    grid-template-columns: repeat(2, 1fr);
  }

  #product .product-inner .product-category > div:nth-child(3) {
    border-left: none;
  }

  .contents {
    flex-wrap: wrap;
    width: 100%;
  }

  #news .news-inner .news-list dt,
  #news .news-inner .news-list dd,
  #news-page .news-list dt,
  #news-page .news-list dd {
    width: 100%;
  }

  #news .news-inner .news-list dt,
  #news-page .news-list dt {
    padding: 1rem 0 0.5rem 1rem;
    border-bottom: none;
  }

  #news .news-inner .news-list dd,
  #news-page .news-list dd {
    padding: 0 0 1rem 1rem;
  }

  .body-inner aside {
    display: none;
  }

  .top-page .footer .footer-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0;
  }

  .top-page .footer .footer-inner .footer-nav {
    justify-content: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
  }

  .top-page .footer .footer-inner .copy {
    background-color: #fdc217;
    padding: 1em 0;
  }

  /* sub-page */

  .sub-page #header {
    height: 50px;
    padding: 0;
  }

  .sub-page #header .header-inner,
  .sub-page #header .header-inner h1,
  .sub-page #header .header-inner h1 a {
    height: 100%;
  }

  .container.wrapper {
    padding-right: 0;
  }

  .sub-page .contents-page {
    overflow-x: scroll;
  }

  .sub-page .contents-page .contents .main-inner .container,
  .sub-page .contents-page .contents .main-inner .box-container,
  #contact-page .contents-page main .main-inner .container {
    max-width: none;
    padding: 2rem 1rem 1rem;
  }

  .sub-page .contents-page #side ul {
    margin-left: 20px;
  }

  #recruit-page .contents-page main .main-inner p.info {
    font-size: 13px;
  }

  #contact-page .contents-page main .main-inner form .button-box span {
    padding: 8px 8px 8px 25px;
  }

  #contact-page #form-reset,
  #contact-page #submit,
  #contact-page .contents-page .agree-box a,
  #contact-page .contents-page main.request .main-inner .button-box span.btn {
    font-size: 12px;
  }

  .sub-page .footer .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .sub-page .footer .footer-inner ul {
    max-width: none;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  .top-page #product .product-inner .product-category {
    grid-template-columns: 1fr;
  }

  .sub-page .contents-page {
    flex-direction: column;
    padding: 0;
    overflow: inherit;
  }

  .sub-page .contents-page main {
    margin-bottom: 50px;
  }

  .sub-page .contents-page main h2 {
    font-size: 26px;
  }

  .sub-page .contents-page main .main-inner .img {
    height: 200px;
  }

  #IR-page .contents-page main .main-inner > .container {
    padding-top: 0;
  }

  .sub-page .contents-page .contents .main-inner .box-container {
    grid-template-columns: 1fr;
  }

  .sub-page .contents-page .contents .main-inner .box-container a {
    padding: 1.4rem;
  }

  .sub-page .contents-page .contents .main-inner .box-container a .name-box {
    margin-bottom: 1rem;
  }

  .sub-page
    .contents-page
    .contents
    .main-inner
    .box-container
    a
    .name-box::before {
    top: 2rem;
  }

  .sub-page
    .contents-page
    .contents
    .main-inner
    #news
    .news-inner
    .news-list
    dt,
  .sub-page
    .contents-page
    .contents
    .main-inner
    #news
    .news-inner
    .news-list
    dd {
    width: 100%;
  }

  .sub-page
    .contents-page
    .contents
    .main-inner
    #news
    .news-inner
    .news-list
    dt {
    border-bottom: none;
  }

  #maint-page.sub-page
    .contents-page
    .contents
    .main-inner
    .box-container
    a
    .name-box::before {
    top: 2rem;
  }

  #recruit-page .contents-page main .main-inner a.btn {
    font-size: 1rem;
    padding: 10px;
  }

  #contact-page .contents-page main .main-inner .form-box label,
  #contact-page .contents-page main .main-inner .form-box label {
    font-size: 0.9rem;
  }

  #contact-page .contents-page main .main-inner .form-box td {
    min-width: 300px;
  }

  #contact-page .contents-page main.request .main-inner .button-box {
    width: 230px;
  }

  #contact-page .contents-page main .main-inner .button-box a {
    padding: 5px;
  }

  .sub-page .footer {
    padding: 0;
  }

  .sub-page .footer .footer-inner .footer-nav {
    display: none;
  }

  .sub-page .footer .footer-inner .copy {
    background-color: #fdc217;
    padding: 1em 0;
    margin: 0;
  }

  #site-map-page .contents-page .main-inner .container {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}
