@media screen and (min-width: 641px) {
    .primary-menu ul li:hover .sub-menu {
        display: block;
    }
}
@media only screen and (max-width: 860px) {
    .member-content .sample-link {
        justify-content: left;
    }

    .member-content .sample-link a {
        margin-right: 0;
    }

    .service-cnt ul li {
        width: calc((100% - 40px) / 2);
    }

    .member-content {
        display: block;
    }

    .member-img {
        text-align: right;
    }

    .member-img img {
        margin-top: -132px;
        margin-bottom: 70px;
        margin-left: auto;
        margin-right: -30px;
        max-width: 160px;
    }
}

@media only screen and (max-width: 640px) {
    .sp_only {
        display: block;
    }

    .pc_only {
        display: none;
    }

    .primary-menu {
        position: absolute;
        height: calc(100svh - 92px);
        background: #fff;
        padding: 85px 35px 85px;
        transform: translateX(100%);
        opacity: 0;
        right: 0;
        transition: all 0.3s;
    }
    .primary-menu.__show {
        transform: translateX(0);
        opacity: 1;
    }
    .menu-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(35.93deg);
    }

    .menu-toggle.active span:nth-child(2) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-35.93deg);
    }

    .menu-toggle.active span:nth-child(3) {
        opacity: 0;
    }

    .header-inner {
        justify-content: center;
        flex-direction: column;
    }

    .site-branding {
        align-self: center;
    }

    .site-branding img {
        height: 92px;
    }

    #header .container {
        padding: 0;
    }

    .primary-menu {
        width: 250px;
    }

    .primary-menu ul {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .primary-menu ul li {
        display: block;
        width: 100%;
        text-align: left;
    }

    .sec-member .member-img {
        width: auto;
    }

    .primary-menu ul li a {
        color: #000;
        display: block;
        padding: 10px 0;
        font-size: 24px;
    }

    .submenu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        transform: translateY(-50%);
        right: 20px;
        width: 40px;
        height: 40px;
        background: url(../images/submenu_icon.svg) no-repeat center center;
        background-size: 18px auto;
        transition: all .3s;
    }
    .submenu-toggle.active {
        transform: rotate(180deg);
        top: 5px;
        transform-origin: center center;
    }
    .primary-menu ul li .sub-menu {
        position: relative;
        top: 0;
        left: 10px;
        width: 100%;
        max-height: unset !important;
        padding-top: 0 !important;
    }
    .primary-menu ul li .sub-menu li {
        border-bottom: none;
        background: transparent;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-right: 0 !important;
        padding-left: 10px !important;
    }
    .primary-menu ul li .sub-menu li:first-child,
    .primary-menu ul li .sub-menu li:last-child {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .primary-menu ul li .sub-menu li a {
        font-weight: normal;
        color: #111111;
        font-size: 13px;
    }
    .primary-menu ul li.contact_link a {
        text-indent: 0;
        width: auto;
        height: auto;
    }
    .primary-menu ul li.contact_link a svg {
        display: none;
    }
    /* common */
    .sec-ttl {
        gap: 5px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: start;
        position: relative;
        left: 15px;
    }

    .sec-ttl .txt-en {
        font-size: 73px;
        letter-spacing: 0.02em;
    }

    .sec-ttl .txt-jp {
        font-size: 13px;
        padding-left: 15px;
    }

    .sec-ttl .txt-jp::before {
        top: 7px;
        width: 6px;
        height: 6px;
    }
    .contact-page {
        padding: 40px 0 60px;
        min-height: calc(100svh - 200px);
    }
    .contact-page .sec-ttl {
        margin-bottom: 37px;
    }
    .contact-link a,
    .sample-link a {
        font-size: 11px;
        padding: 10px 65px 11px 42px;
        width: 180px;
        background-size: 26px auto;
        background-position: right 35px top 50%;
    }
    .contact-link a {
        margin: 40px auto 0;
    }
    .contact-link a:hover,
    .sample-link a:hover {
        background-position: right 45px top 50%;
    }
    .contact-row {
        flex-direction: column;
        gap: 5px;
    }
    .contact-lbl,
    .contact-data {
        width: 100%;
    }
    .show_sp {
        display: block;
    }

    .show_pc {
        display: none;
    }

    #header {
        height: 92px;
    }

    #footer {
        height: 108px;
    }

    #footer a {
        width: 70px;
    }

    #footer img {
        height: auto;
        width: 70px;
        vertical-align: top;
    }

    #main {
        padding-top: 92px;
    }

    .menu-toggle {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 28px;
        width: 50px;
        height: 50px;
        background: #fff;
        border-radius: 50%;
        border: none;
    }

    .menu-toggle span {
        position: absolute;
        left: 50%;
        top: 50%;
        transform-origin: center;
        transform: translate(-50%, -50%);
        display: block;
        width: 23px;
        border-top: 1px solid #000;
        transition: top 0.3s, transform 0.3s, opacity 0.3s;
    }

    .menu-toggle span:nth-child(1) {
        top: 19px;
    }

    .menu-toggle span:nth-child(2) {
        top: 31px;
    }

    /* Top page */
    .home .banner {
        background: url(../images/banner_img_sp.png) no-repeat center;
        background-size: cover;
        width: 100%;
        height: calc(100svh - 92px);
    }

    .home .banner:before {
        content: '';
        display: none;
        width: 172px;
        height: 243px;
        position: absolute;
        top: 0;
        left: 0;
        background: url(../images/banner_line.png) no-repeat center;
    }

    .home .banner:after {
        content: '';
        display: none;
        width: 165px;
        height: 232px;
        position: absolute;
        bottom: 0;
        right: 0;
        background: url(../images/banner_line.png) no-repeat center;
    }

    .home .banner-inner .group-typing .typing {
        font-size: 35px;
        letter-spacing: 5px;
        padding-left: 30px;
    }

    .sec-about {
        padding: 140px 0;
    }

    .about-content {
        padding: 0;
    }

    .about-content li .about-ttl h4 {
        font-size: 52px;
        margin-bottom: 20px;
    }

    .about-content li {
        display: block;
        border-radius: 62px;
        min-height: 270px;
        margin-bottom: 46px;
        position: relative;
        background: none !important;
        z-index: 1;
        position: sticky;
        top: 95px;
        transform-origin: top right;
    }

    .about-content li.mission:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: -20px;
        background: url(../images/about_bg_01_sp.png);
        background-size: 100% 100%;
        z-index: -1;
    }

    .about-content li.vision:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: -20px;
        background: url(../images/about_bg_02_sp.png) no-repeat;
        background-size: 100% 100%;
        z-index: -1;
    }

    .about-content li.value:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: -20px;
        background: url(../images/value_sp.png) no-repeat;
        background-size: 100% 100%;
        z-index: -1;
    }

    .about-content li .about-des {
        font-size: 24px;
        line-height: 30px;
    }

    .sec-member {
        padding: 100px 0 115px;
    }

    .sec-member::after,
    .sec-member::before {
        background-size: auto 100%;
        height: 78px;
    }

    .sec-member::before {
        top: 52px;
    }

    .sec-member::after {
        bottom: 103px;
    }
    .member-content {
       padding: 0 25px 0 15px;
    }
    .member-content .sec-ttl {
        left: 0;
    }
    .member-content .sec-ttl .txt-jp {
        margin-bottom: 25px;
    }

    .member-img img {
        margin-top: -145px;
    }

    .sec-service {
        padding: 15px 0 30px;
    }

    .sec-service .sec-ttl {
        padding: 0 10px;
        margin-bottom: 35px;
        left: 0;
    }

    .service-cnt ul li {
        width: 100%;
    }

    .service-cnt ul li a .service-ttl {
        font-size: 18px;
    }

    .service-cnt ul li a .service-detail {
        font-size: 11px;
        line-height: 19px;
        font-family: "Hiragino-W4";
        letter-spacing: 0.03em;
    }

    .service-cnt ul li a {
        min-height: 163px;
        padding-top: 62px;
    }

    .service-cnt ul {
        gap: 23px;
    }

    .service-cnt ul li.service-item-1 {
        background-image: url(../images/service_img01_sp.png);
    }

    .service-cnt ul li.service-item-2 {
        background-image: url(../images/service_img02_sp.png);
    }

    .service-cnt ul li.service-item-3 {
        background-image: url(../images/service_img03_sp.png);
    }

    .service-cnt ul li.service-item-4 {
        background-image: url(../images/service_img04_sp.png);
    }

    .service-cnt ul li.service-item-5 {
        background-image: url(../images/service_img05_sp.png);
    }

    .new-cnt-flex {
        display: block;
    }

    .new-cnt-flex .sec-ttl::after {
        content: '';
        position: absolute;
        width: 53px;
        height: 119px;
        background: url(../images/news_line_sp.svg) no-repeat top left;
        top: 45px;
        right: 130px;
    }
    .new-cnt-flex .sec-ttl::before {
    }

    .new-cnt-flex .sec-ttl {
        width: auto;
        margin: 0 -20px 80px;
        padding: 25px 35px 0;
        height: 137px;
    }
    .sec-news {
        overflow: hidden;
    }
    .sec-news .sample-link {
        justify-content: center;
    }

    .new-cnt-flex .news-list a {
        background: url(../images/news_arrow.png) no-repeat right 14px bottom 10px !important;
        background-size: 40px auto !important;
        padding-top: 10px;
        padding-left: 15px;
        padding-bottom: 5px;
    }

    .new-cnt-flex .news-list a .news-link {
        font-size: 13px;
    }

    .new-cnt-flex .news-list a .news-date {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .new-cnt-flex .news-list li {
        margin-bottom: 20px;
        padding-bottom: 0;
        border-bottom: 1px solid rgba(2, 2, 2, 0.56);
    }

    .sec-news {
        padding: 136px 0 115px;
    }

    .new-cnt-flex .news-list ul {
        gap: 0;
    }

    .new-cnt-flex .news-list span {
        white-space: unset;
        overflow: unset;
        text-overflow: unset;
    }
    
    .company-infor,
    .company-details {
        width: calc(100% + 20px);
        margin-right: -20px;
    }
    .map-infor {
        padding-right: 35px;
    }
    .map-infor ul {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .map-infor ul li .map-img iframe {
        height: 180px;
    }

    .infor-list {
        padding-left: 15px;
    }

    .infor-list li .name-text.--bottom-padding {
        padding-bottom: 0;
    }

    .map-infor ul li {
        width: 100%;
        padding-left: 20px;
    }
    .infor-list li .name-text.--short-border:before {
        top: 70px;
    }

    .map-infor ul li .map-ttl {
        font-size: 15px;
    }

    .map-infor ul li .map-des {
        font-size: 12px;
    }

    .map-infor ul li::before {
        width: 11px;
        height: 11px;
        top: 6px;
    }

    .company-details h4 {
        padding-right: 20px;
        font-size: 22px;
        margin-bottom: 40px;
    }
    .company-details .col2 {
        display: block;
        padding: 0;
    }

    .company-details .col2 ul {
        width: 100%;
        margin-bottom: 64px;
    }

    .company-details .col2 ul:last-child {
        margin-bottom: 40px;
    }

    .infor-list .name-text {
        font-size: 13px;
    }

    .infor-list li {
        margin-bottom: 16px;
    }

    .sec-contact {
        padding: 140px 0 100px;
    }

    .contact-list {
        padding: 0 15px;
    }

    .contact-list ul li .label {
        font-size: 14px;
    }

    .contact-list ul li .flex {
        gap: 30px;
    }
    .contact-list ul li .flex p {
        width: calc((100% - 30px) / 2);
    }

    .contact-list ul li input {
        font-size: 13px;
        height: 35px;
    }

    /* end Top page */
    .content-page {
        padding-top: 55px;
        padding-bottom: 111px;
    }

    .custom-page .container {
        padding: 0 36px;
    }

    .breadcrumbs_inner {
        padding-left: 0;
    }

    .sec-breadcrumbs {
        font-size: 10px;
        margin-bottom: 18px;
        padding: 24px 0;
    }

    .sec-breadcrumbs a {
        padding-right: 26px;
        margin-right: 6px;
    }

    .common-ttl-page h1 {
        font-size: 26px;
        line-height: 34px;
        letter-spacing: 0.1em;
        margin-bottom: 18px;
        padding: 0 15px;
    }

    .service-content {
        padding: 0 15px;
    }

    .service-content h2 {
        font-size: 15px;
        line-height: 28px;
        margin-bottom: 27px;
        letter-spacing: 1px;
    }

    .service-content h2 span {
        left: -9px;
    }

    .service-content .description {
        font-size: 13px;
        line-height: 25px;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }
    .service-content .img {
        margin-top: 40px;
    }
    .service-content .img.__scroll {
        margin-top: 100px;
        width: calc(100% + 70px);
        overflow: auto;
        position: relative;
        left: -35px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .service-content .__scroll-slide {
        display: flex;
        justify-content: end;
        align-items: flex-end;
    }
    .service-content .img.__scroll::-webkit-scrollbar {
        height: 6px;
        width: 318px;
    }

    .service-content .img.__scroll::-webkit-scrollbar-track {
        background: #0b1f4a;
        border-radius: 999px;
        width: 318px;
    }

    .service-content .img.__scroll::-webkit-scrollbar-thumb {
        background: #fff;
        border-radius: 999px;
        border: 1px solid #0b1f4a;
    }
    .service-content .img.__scroll img {
        min-width: 550px;
    }
    .fixed-page-ttl h1 {
        padding: 35px 0 256px 0;
        font-size: 25px;
        background-size: 100% auto;
    }
    .page-content-title {
        max-width: 287px;
        font-size: 25px;
        line-height: calc(33 / 25);
    }
    .page-content-title span {
        font-size: 10px;
    }
    .member-title {
        font-size: 68px;
        display: inline-block;
        margin-bottom: 40px;
    }
    .page-content-block {
        padding: 70px 35px 65px;
    }
    .fixed-page {
        padding-bottom: 90px;
    }
    .page-content-block.__long-padding {
        padding-bottom: 110px;
    }
    .member-list {
        flex-direction: column;
        gap: 50px;
    }
    .member-list .member-item {
        width: 100%;
    }
    .member-thumb img {
        width: 190px;
        margin: 0 auto;
    }
    .member-name {
        font-size: 41px;
    }
    .member-info {
        font-size: 18px;
    }
    .member-info small {
        font-size: 11px;
    }
    .member-text {
        font-size: 10px;
    }
    .news-page-list {
        padding-top: 30px;
    }
    .news-page-item {
        padding: 0 60px 10px 10px;
        font-size: 12px;
    }
    .news-page-item:after {
        right: 10px;
    }
    .news-page-date {
        font-size: 11px;
    }
    .news-page-item:after {
        top: 5px;
    }
    .__single-page h1 {
        font-size: 15px;
    }
    .__single-page {
        padding-bottom: 90px;
        padding-left: 30px;
        padding-right: 30px;
    }
    .news-page-content-group {
        font-size: 13px;
    }
    .contact-link.contact-flex a:nth-child(1) {
        background-size: 26px auto;
        background-position: left 35px top 50%;
    }
    .contact-lbl,
    .contact-data,
    .contact-txt {
        font-size: 14px;
    }
    .contact-content {
        padding: 0 15px;
    }
    .new-cnt-flex .news-list {
        width: 100% !important;
    }
}
