@media screen and (max-width: 1279px) {
  body {
    max-width: 100%;
  }

  .pc_display {
    display: none;
  }

  .sp_display {
    display: inherit;
  }

  #sp_h1 {
    position: absolute;
    z-index: 4;
  }
  #sp_h1 h1 {
    max-width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    padding: 0;
    margin: 0;
    transform: translateY(-50%) translateX(-50%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 8rem;
    line-height: 1.0;
    text-align: left;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #dd3642;
    transform: skewX(-18deg);
  }

  #sp_h2 {
    position: absolute;
    bottom: 0;
    z-index: 3;
  }
  #sp_h2 div {
    width: 100%;
    height: auto;
    top: 75%;
    left: 50%;
    transform: translateY(-75%) translateX(-75%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 8rem;
    line-height: 1.0;
    text-align: left;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #3b3b9e;
    transform: skewX(18deg);
  }

  #sp_h3 {
    position: absolute;
    bottom: 0;
    z-index: 3;
  }
  #sp_h3 div {
    width: 100%;
    height: auto;
    top: 75%;
    left: 50%;
    transform: translateY(-75%) translateX(-75%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 8rem;
    line-height: 1.0;
    text-align: right;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #fff;
    transform: skewX(-18deg);
  }

  header {
    padding: 20px 0 0 0;
    position: absolute;
    top: 10%;
  }
  header h2 {
    position: fixed;
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    top: 1px;
    left: 15px;
    padding: 0;
    margin: 0;
    z-index: 1020;
    color: #eeefe4;
  }
  header .header_logo {
    top: 30px;
    left: 25px;
    width: 50px;
    height: 50px;
    z-index: 1010;
    position: fixed;
  }

  .border_t {
    height: 15px;
    width: 100%;
    background: #dd3642;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
  }

  .border_b {
    height: 15px;
    width: 100%;
    background: #dd3642;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 998;
  }

  .border_l {
    height: 100%;
    width: 15px;
    background: #dd3642;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
  }

  .border_r {
    height: 100%;
    width: 15px;
    background: #dd3642;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 998;
  }

  .formtable {
    width: 90%;
    margin: 0 auto 20px auto;
    border-spacing: 0;
  }
  .formtable th {
    border-bottom: solid 2px #3b3b9e;
    padding: 10px 5px 5px 5px;
    text-align: center;
    vertical-align: middle;
  }
  .formtable td {
    border-bottom: solid 1px #11110f;
    text-align: left;
    padding: 10px 5px 5px 5px;
  }

  .sns_nav {
    display: none;
  }

  #news {
    position: absolute;
    width: 80%;
    height: 28px;
    background-color: #fff;
    border: solid 3px #11110f;
    border-radius: 3px;
    overflow: hidden;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    font-size: 0.8rem;
  }
  #news span {
    display: block;
    position: absolute;
    width: auto;
    height: 100%;
    padding: 4px 10px;
    text-align: center;
    background-color: #11110f;
    color: #eeefe4;
    vertical-align: text-bottom;
    z-index: 2;
  }
  #news p {
    display: inline-block;
    vertical-align: middle;
    width: 80%;
    height: auto;
    white-space: nowrap;
    padding: 0;
    margin-left: 20%;
    animation: news_topic 10s infinite linear;
    vertical-align: text-bottom;
    z-index: 1;
  }

  section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .link_btn {
    display: inline-block;
    padding: 3px 20px;
    margin: 0 0 20px 0;
    background-color: #dd3642;
    color: #fff;
    border-radius: 15px;
    transition: ease .2s;
    font-weight: 900;
  }
  .link_btn:hover {
    background-color: #11110f;
  }
  .link_btn a {
    display: block;
    color: #fff;
  }
  .link_btn a:hover {
    color: #fff;
  }

  .contents_box {
    width: 90%;
    height: 100%;
    margin: auto 5% 15px 5%;
    position: inherit;
    z-index: 1;
    font-size: 0.8rem;
  }
  .contents_box h3 {
    width: 100%;
    height: 100%;
    padding: 0 0 10px 0;
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    z-index: 4;
  }
  .contents_box h4 {
    font-family: corporate-logo-ver2, sans-serif;
    font-size: 2.0rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
  }
  .contents_box #home {
    width: 100%;
    height: auto;
    position: absolute;
    z-index: -1;
    top: inherit;
    bottom: 20%;
    right: 0;
  }
  .contents_box #home img {
    width: 100%;
    height: auto;
  }
  .contents_box .flex_box {
    width: 96%;
    height: auto;
    margin: 0 auto;
    display: block;
    padding: 30px 20px;
  }
  .contents_box .flex_bg {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
  }
  .contents_box .text_box {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .contents_box .text_box p {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    font-family: source-han-sans-cjk-ja, sans-serif;
    font-style: normal;
    line-height: 1.5;
  }
  .contents_box .text_box h5 {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 1.5;
    font-weight: 900;
    background-color: rgba(255, 255, 255, 0);
    color: #11110f;
    padding: 5px 0;
    border-radius: 0;
    margin-bottom: 10px;
  }

  #getyourefun {
    position: absolute;
    bottom: 7%;
    right: 30px;
    width: auto;
    height: auto;
    text-align: right;
    font-weight: 900;
    font-size: 5.2rem;
    line-height: 1.0;
    white-space: pre-wrap;
    color: #dd3642;
    transform: skewX(-18deg);
    z-index: -1;
    overflow: hidden;
  }

  #maki_banaba {
    background-image: url("../images/maki_banana.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 100px;
  }

  .service_box1 {
    display: inherit;
    justify-content: center;
    align-items: flex-start;
    align-content: space-between;
    width: 96%;
    height: auto;
    overflow: hidden;
    margin: 0 auto 10px auto;
  }
  .service_box1 .web_box, .service_box1 .graphic_box {
    width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    background-color: #dd3642;
    padding: 20px 20px 10px 20px;
    border-radius: 10px;
    align-content: space-between;
  }
  .service_box1 .web_box h3, .service_box1 .graphic_box h3 {
    margin: 10px 0 3px 0;
    padding: 0;
    font-size: 2.0rem;
    line-height: 1.0;
    font-family: corporate-logo-ver2, sans-serif;
    color: #fff;
    text-align: center;
  }
  .service_box1 .web_box h4, .service_box1 .graphic_box h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",  "Hiragino Sans",  Meiryo, sans-serif;
    color: #fff;
    text-align: center;
  }
  .service_box1 .web_box img, .service_box1 .graphic_box img {
    width: 80%;
    height: auto;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .service_box1 .web_box p, .service_box1 .graphic_box p {
    width: 96%;
    margin: 10px auto;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px 25px;
  }

  .service_box2 {
    display: inherit;
    justify-content: space-between;
    align-items: flex-start;
    width: 96%;
    height: auto;
    overflow: hidden;
    margin: 0 auto 10px auto;
  }
  .service_box2 .public_box, .service_box2 .event_box {
    width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    background-color: #3b3b9e;
    padding: 20px 20px 10px 20px;
    border-radius: 10px;
    align-content: space-between;
  }
  .service_box2 .public_box h3, .service_box2 .event_box h3 {
    margin: 10px 0 3px 0;
    padding: 0;
    font-size: 2.0rem;
    line-height: 1.0;
    font-family: corporate-logo-ver2, sans-serif;
    color: #fff;
    text-align: center;
  }
  .service_box2 .public_box h4, .service_box2 .event_box h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",  "Hiragino Sans",  Meiryo, sans-serif;
    color: #fff;
    text-align: center;
  }
  .service_box2 .public_box img, .service_box2 .event_box img {
    width: 80%;
    height: auto;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .service_box2 .public_box p, .service_box2 .event_box p {
    display: flex;
    flex-direction: row;
    width: 96%;
    margin: 10px auto;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px 25px;
  }

  .works_title {
    border: solid 10px #3b3b9e;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .works_box {
    width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
  }
  .works_box h5 {
    font-family: corporate-logo-ver2, sans-serif;
    font-size: 2.0rem;
  }

  figure {
    position: relative;
    -webkit-perspective: 600px;
    perspective: 600px;
    -webkit-perspective-origin: 0 50%;
    perspective-origin: 0 50%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  figure div {
    overflow: hidden;
  }
  figure img {
    height: 100%;
    object-fit: cover;
  }

  figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-origin: 0;
    transform-origin: 0;
    -webkit-transform: rotateY(-90deg);
    transform: rotateY(-90deg);
    -webkit-transition: -webkit-transform .4s, opacity .1s .3s;
    transition: transform .4s, opacity .1s .3s;
    opacity: 0;
  }

  figcaption h3,
  figcaption p {
    font-size: 1.2rem;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
    opacity: 0;
  }

  figure:hover figcaption {
    -webkit-transform: rotateY(0);
    transform: rotateY(0);
    -webkit-transition: -webkit-transform .4s, opacity .1s;
    transition: transform .4s, opacity .1s;
    opacity: 1;
  }

  figure:hover figcaption h3,
  figure:hover figcaption p {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 50px;
    align-items: center;
    justify-content: center;
    -webkit-transition-delay: .4s;
    transition-delay: .4s;
    opacity: 1;
  }

  ul#protectionpolicy {
    width: 80%;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
  }
  ul#protectionpolicy .sub_title {
    font-size: 1.2rem;
  }
  ul#protectionpolicy li {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
  }
  ul#protectionpolicy li span {
    display: block;
    width: 90%;
    height: auto;
    font-weight: bold;
    border-bottom: solid 1px #000;
    padding: 0 0 5px 0;
    margin: 0 auto 30px auto;
  }
  ul#protectionpolicy li p {
    width: 100%;
    height: auto;
    margin: 0 auto 15px auto;
  }
  ul#protectionpolicy li ul {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
  }
  ul#protectionpolicy li ul li {
    margin: 0 0 5px 0;
    padding: 0;
    list-style: disc;
  }

  footer {
    font-size: 0.6rem;
  }
  footer ul {
    display: none;
  }

  .company_table {
    width: 100%;
    height: auto;
    line-height: 1.5;
  }
  .company_table th {
    width: 35%;
    white-space: normal;
    padding: 5px 5px 10px 5px;
    text-align: left;
    border-bottom: 2px solid #dd3642;
    font-weight: 300;
  }
  .company_table td {
    padding: 10px 5px;
    border-bottom: 1px dotted #11110f;
    font-weight: 300;
  }

  #copyright {
    font-size: 0.65rem;
  }

  #contact_now {
    width: 200px;
    height: 146px;
    position: fixed;
    bottom: 3%;
    right: 3%;
    background-image: url("../images/contact_bg.png");
    background-position: center;
    background-size: cover;
    animation-name: Contact_now;
    animation-fill-mode: backwards;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-delay: 30s;
    animation-direction: normal;
    text-align: center;
    padding: 10px 0 0 0;
  }
  #contact_now h5 {
    font-size: 1.0rem;
  }
  #contact_now p {
    font-size: 0.6rem;
    line-height: 1.0;
  }
  #contact_now #box_tips {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 2.0rem;
    font-weight: 900;
    cursor: pointer;
  }
  #contact_now #contact_now_btn {
    display: inline;
    background-color: #11110f;
    padding: 2px 10px;
    font-family: corporate-logo-ver2, sans-serif;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  #contact_now #contact_now_btn a {
    color: #fff;
  }
  #contact_now #contact_now_btn::befor {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: Contact_now_btn 3s ease-in-out infinite;
  }
}
@media screen and (max-width: 399px) {
  #sp_h1 {
    position: absolute;
    z-index: 4;
  }
  #sp_h1 h1 {
    max-width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    padding: 0;
    margin: 0;
    transform: translateY(-50%) translateX(-50%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 7rem;
    line-height: 1.0;
    text-align: left;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #dd3642;
    transform: skewX(-18deg);
  }

  #sp_h2 {
    position: absolute;
    bottom: 0;
    z-index: 3;
  }
  #sp_h2 div {
    width: 100%;
    height: auto;
    top: 75%;
    left: 50%;
    transform: translateY(-75%) translateX(-75%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 7rem;
    line-height: 1.0;
    text-align: left;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #3b3b9e;
    transform: skewX(18deg);
  }

  #sp_h3 {
    position: absolute;
    bottom: 0;
    z-index: 3;
  }
  #sp_h3 div {
    width: 100%;
    height: auto;
    top: 75%;
    left: 50%;
    transform: translateY(-75%) translateX(-75%);
    animation-duration: 0.2s;
    animation-delay: 1s;
    font-weight: 900;
    font-size: 7rem;
    line-height: 1.0;
    text-align: right;
    color: rgba(0, 0, 0, 0);
    -webkit-text-stroke: 2px #fff;
    transform: skewX(-18deg);
  }

  #news {
    position: absolute;
    width: 80%;
    height: 28px;
    background-color: #fff;
    border: solid 3px #11110f;
    border-radius: 3px;
    overflow: hidden;
    bottom: 5px;
    left: 30px;
    z-index: 5;
    font-size: 0.8rem;
  }

  #getyourefun {
    position: absolute;
    bottom: 7%;
    right: 40px;
    width: auto;
    height: auto;
    text-align: right;
    font-weight: 900;
    font-size: 5.0rem;
    line-height: 1.0;
    white-space: pre-wrap;
    color: #dd3642;
    transform: skewX(-18deg);
    z-index: -1;
    overflow: hidden;
  }
}
