@media screen and (min-width: 751px) and (max-width: 1281px) {
  .under #main .case_search::before, .under #main .about_message::before {
    width: 1300px;
    left: calc(50% - 650px)
  }
}
@media screen and (min-width: 751px) {
  .lightbox, .lightboxOverlay {
    min-width: 1200px;
  }
  .under #main .flex_col li:nth-child(3n + 3), .under #main .flex_2col li:nth-child(2n + 2), .under #main .bnn_list ul li:nth-child(3n + 3), .under #main .related_post ul li:nth-child(3n + 3), .under #main .case_list ul li:nth-child(4n + 4), .under #main .story_list dl:nth-child(3n + 3) {
    margin-right: 0
  }
  .under #main .flex_2col li:nth-child(3n + 3) {
    margin-right: 40px;
  }
  .under #main table.tb_border td .arr:hover, .under #main .story_list dt a:hover, /* .under #main .case_search dt:hover, */ .under #main .case_list ul li .img:hover, .under #main .related_post ul li .img a:hover {
    opacity: 0.7
  }
  .under #main .bnn_list ul li a:hover {
    color: #fff;
  }
  .under #main .flex_list dd a.out.hover_no:hover, .under #main .flex_list dd a:hover, .under #main .faq_list li .faq_ask:hover, .under #main .bd_none:hover, .under #main .story_year a:hover, .under #main .story_list p a:hover, .under #main .case_search p a:hover, .under.case_page #main .tag a:hover, .under #main .news_list dd a:hover, .under #main .news_cate a:hover, .under #main .case_search dd a:hover, .under #main .list_link a:hover {
    color: #000;
    text-decoration: underline;
  }
  .under #main .btn input:hover, .under #main .btn_w a:hover, .under #main .btn a:hover {
    background: #000;
    color: #fff;
  }
  .under #main .flex_list dd a.out:hover, .under #main a:hover {
    text-decoration: none
  }
  .under #main a.hover_no.gray:hover {
    color: #808080;
    text-decoration: none;
  }
}
@media screen and (max-width: 750px) {
  .under #main #topic_path {
    padding: 0 15px
  }
  .under #main {
    margin: 100px 0 0
  }
  .under #main .sm {
    color: #999
  }
  .under #main .section {
    padding: 0 0 50px;
    box-sizing: border-box;
  }
  .under #main .inner {
    padding: 0 15px;
    width: 100%
  }
  .under #main h2 {
    margin-bottom: 25px;
  }
  .under #main h3 {
    padding-bottom: 10px;
  }
  .under #main h5 {}
  .under #main h6 {}
  .under #main p.mb05 {}
  .under #main .sm {
    margin-bottom: 15px;
    font-size: 12px;
    color: #999;
  }
  .under #main .big {
    font-size: 20px
  }
  .under #main .bold {
    font-size: 16px
  }
  .under #main .center_sp {
    text-align: center
  }
  /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  /* table scroll                                                        */
  /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  .under #main .tb_scroll {
    overflow: scroll;
    margin-bottom: 10px
  }
  .under #main .tb_scroll table {
    width: 720px;
  }
  .under #main .txt_note {
    font-size: 12px;
    color: #AFAFAF;
    display: block;
  }
  .under #main .inner {
    margin-bottom: 50px
  }
  /* TABLE  */
  .under #main table.tb_block tr th, .under #main table.tb_block tr th + th {
    display: block !important;
    width: 100% !important;
  }
  .under #main table.tb_block tr th.box_pc {
    display: none !important
  }
  .under #main table.tb_block tr td {
    display: block !important;
    width: 100% !important;
  }
  .under #main table.tb_block tr th:last-child {
    border-bottom: none
  }
  .under #main table.tb_border th {
    width: 50px;
    padding: 10px 0
  }
  .under #main table.tb_border td {
    padding: 10px 0
  }
  .under #main table.tb_border td .arr {
    padding-right: 25px;
  }
  .under #main table.tb_border td .arr::before {
    top: 15px;
  }
  .under #main table.tb_border td img {
    margin-right: 0;
    margin-bottom: 30px
  }
  .under #main table.tb_border td img:last-child {
    margin: 0
  }
  .under #main .history_tb dt {
    width: 50px;
    padding: 10px 0
  }
  .under #main .history_tb dd {
    padding: 10px 0;
    width: calc(100% - 50px)
  }
  .under #main .history_tb dd .arr {
    padding-right: 25px;
  }
  .under #main .history_tb dd .arr::before {
    top: 15px;
  }
  .under #main .history_tb dd img {
    margin-right: 0;
    margin-bottom: 30px
  }
  .under #main .history_tb dd img:last-child {
    margin: 0
  }
  .under#company #main table th {
    border: none
  }
  /* BANNER LIST */
  .under #main .bnn_list {
    margin-top: 50px;
    padding: 30px 0 15px
  }
  .under #main .bnn_list ul {
    justify-content: center;
  }
  .under #main .bnn_list ul li {
    margin: 0 5px 15px
  }
  .under #main .frame01, .under #main .frame01.fr_big {
    padding: 15px;
    width: 100%
  }
  .under #main .frame01 p {
    margin-bottom: 15px
  }
  .under #main .frame01.fr_big li {
    width: 100%;
  }
  .under #main .flex_col {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px
  }
  .under #main .flex_col:last-child {
    margin-bottom: 0
  }
  .under #main .flex_col li {
    margin-right: 0
  }
  .under #main .flex_col li:last-child {
    margin-bottom: 0
  }
  .under #main .flex_2col {}
  .under #main .flex_2col li {
    width: 100%;
    margin-bottom: 40px;
  }
  .under #main .flex_2col li:last-child {
    margin-bottom: 0
  }
  .under #main .flex_list {}
  .under #main .flex_list dl {
    flex-direction: column;
    padding: 0;
    border: unset;
  }
  .under #main .flex_list dt {
    width: 100%;
  }
  .under #main .flex_list dt img {
    width: 100%
  }
  .under #main .flex_list dd {
    width: 100%;
    padding: 30px 0;
  }
  .under #main .case_list ul {
    justify-content: space-between;
  }
  .under #main .case_list ul li {
    width: 48%;
    margin: 0 0 40px
  }
  .under #main .case_list ul li .img {
    width: 100%;
    margin: 0 auto 10px;
    overflow: hidden;
  }
  .under #main .case_list ul li .tag {
    max-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: pre-wrap
  }
  /* STORY PAGE */
  .under #main .story_list dl {
    width: 100%;
    margin-right: 0
  }
  .under #main .story_list dl:first-child dt, .under #main .story_list dt {
    width: 300px;
    height: 200px;
    margin: 0 auto 20px
  }
  /* NEWS PAGE */
  .under #main .news_list dl {
    flex-wrap: wrap
  }
  .under #main .news_list dt {
    width: 100%;
    margin: 0
  }
  .under #main .news_list dd {
    width: 100%;
  }
  .under #main .news_list dd span {
    font-size: 12px;
  }
  /* RECRUIT PAGE */
  .under #main .section.about_message {
    padding: 30px 0 60px
  }
  .under #main .recruit_ct dl {
    flex-wrap: wrap;
    margin-bottom: 50px
  }
  .under #main .recruit_ct dt {
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
  }
  .under #main .recruit_ct dd {
    width: 100%;
  }
  .under #main .recruit_list li {
    padding: 15px 0
  }
  /* RELATED POST */
  .under #main .related_post ul li {
    width: 100%;
    margin-right: 0;
  }
  .under #main .related_post ul li .img {
    margin: 0 auto 15px;
  }
  /* CONTACT PAGE */
  .under #main .section.contact_field {
    padding: 30px 0;
    margin-bottom: 50px;
  }
  .under #main .contact_field dl {
    flex-wrap: wrap
  }
  .under #main .contact_field dl dt {
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px
  }
  .under #main .contact_field dl dd {
    width: 100%
  }
  .under #main .contact_col dl {
    flex-wrap: wrap;
    margin-bottom: 50px
  }
  .under #main .contact_col dt {
    width: 100%;
    margin-bottom: 20px;
    font-size: 16px
  }
  .under #main .contact_col dd {
    width: 100%
  }
  .under #main .contact_form th {
    border-bottom: none;
    margin-bottom: 5px;
  }
  .under #main .contact_form td {
    border-bottom-width: 15px
  }
  .under #main .contact_form input[type="text"] {
    width: 100%;
  }
  .under #main .contact_form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .under#contact #main .btn input {
    margin: 0 auto
  }
  .under #main .contact_form .center_sp {
    text-align: center
  }
  .under #main .contact_form .btn a, .under #main .btn_w a {
    margin: 0 auto;
  }
  /* FRAME */
  .under #main .frame02 {
    padding: 30px 15px
  }
  .under #main .frame02 p span {
    line-height: 2.5em;
  }
  .under #main .img_full {
    margin: 0 -15px 30px;
  }
  .under #main .btn_green a {
    margin: 0 auto;
  }
  /* CSS PAGE */
  .under #main .box_mess_l, .under #main .box_ca_r {
    width: 100%;
    float: none;
    margin-bottom: 30px
  }
  .under #main .box_mess_r, .under #main .box_ca_l {
    width: 100%;
    float: none;
    text-align: center
  }
  .under #main .checkbox_p {
    display: inline-block;
    margin: 0 0 30px;
  }
  .popup_ct {
    padding-top: 80px;
  }
  .popup_ttl {
    font-size: 20px;
    padding: 5px 0
  }
  .popup_form {
    width: 90%;
    height: 400px;
  }
  .popup_content {
    height: 300px;
    padding: 15px
  }
  .popup_form .close {
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
  }
  .popup_form .close::after {
    width: 14px;
    height: 14px;
    top: calc(50% - 7px);
    left: calc(50% - 7px)
  }
}
@media screen and (max-width: 560px) {
  .under #main .case_list ul li {
    width: 100%;
  }
  .under #main .next_prev_post {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .under #main .next_prev_post p {
    margin: 0 0 15px
  }
  .under #main .next_prev_post p:last-child {
    margin: 0
  }
  .under #main .list_btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .under #main .list_btn .btn {
    margin: 0 0 15px
  }
  .under #main .list_btn .btn:last-child {
    margin: 0
  }
  .under #main .contact_form input[type="text"], .under #main .contact_form input[type="email"], .under #main .contact_form input[type="tel"] {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .under #main .recruit_list li {
    flex-wrap: wrap;
  }
  .under #main .recruit_list li .recruit_img {
    margin: 0 auto 15px;
  }
  .under #main .recruit_list li .recruit_txt {
    width: 100%
  }
}
@media screen and (max-width: 420px) {
  .under #main .story_list dl:first-child dt, .under #main .story_list dt {
    height: calc((100vw - 30px) * 2 / 3);
    width: 100%;
  }
}
@media screen and (max-width: 380px) {}
/* 2022,07,06追記(Amazing Day) */
@media screen and (max-width: 750px) {
/* メールフォーム */
.under #main .checkbox_p {
    margin-top: 20px;
  }
  .under #main .contact_form .center_sp {
    text-align: left;
    display: flex;
    align-items: flex-start;
  }
  .under #main .checkbox_p .checkbox-939 {
    margin: 0 5px 0 0;
  }
  .under #main .checkbox_p input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 5px 0 0 0;
  }
  .wpcf7 form.invalid .wpcf7-response-output {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.25;
  }
  .under #main a.popup {
    font-size: 0.8rem;
    margin-top: -2px;
    line-height: 1.5;
  }
  .wpcf7-not-valid-tip {
    margin-top: 5px;
    min-width: 35px;
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0;
  }
}