/*
Theme Name: TGS Theme
Theme URI: 
Author: inkfree
Author URI: 
Description: TGS corporate website theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tgs
*/

body,html {
    padding: 0;
    margin: 0;
    background-color: #fff;
}

p,h1,h2,h3,label{
    font-family: "Hira Kaku Std N";
    margin: 0;
}

a {
    text-decoration: none;
}

a:hover,button:hover {
    opacity: 0.8;
}

.logo {
    width: 12.4vw;
    margin-left: 1.41vw;
    margin-top: 0.94vw;
}

.header-content {
    overflow: hidden;
    width: 100%;
}

.header-nav nav{
    position: absolute;
    top: 4.43vw;
    right: 3.44vw;
    border-radius: 0.21vw;
    background-color: #f0f0f0;
    z-index: 10;
}

.header-nav nav ul{
    display: flex;
    gap: 2.60vw;
    margin: 0;
    padding-left: 1.52vw;
}

.menu-trigger {
    display: none;
    position: fixed;
    top: 2.67vw;
    right: 5.33vw;
    width: 12.67vw;
    z-index: 20;
    cursor: pointer;
}

.close-trigger {
    display: none;
    position: fixed;
    top: 2.67vw;
    right: 5.33vw;
    width: 6.67vw;
    height: 6.67vw;
    z-index: 999999999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-nav{
    background-color: #6c96ca;
    color: #ffffff;
    padding-left: 0.52vw;
    border-radius: 0.21vw;
    padding-right: 0.52vw;
}

.company-nav{
    padding-right: 1.52vw;
}

.contact-nav a{
    color: #ffffff !important;
}

.header-nav nav ul li{
    font-size: 0.94vw;
    list-style: none;
    color: #0a0a0a;
    display: flex;
    align-items: center;
}

.header-nav nav ul li a{
    color: #0a0a0a;
    height: 2.60vw;
    display: flex;
    align-items: center;
}

.header-content-text {
    margin-left: 4.17vw;
    position: relative;
    z-index: 10;
}

.header-content h2 {
    font-size: 4.48vw;
    line-height: 6.77vw;
    color: #000000;
    margin-top: 4.17vw;
    margin-bottom: 2.60vw;
}

.header-content p {
    font-size: 1.35vw;
    color: #000000;
}

footer {
    background-color: #223451;
    padding: 6.25vw 9.38vw 4.17vw 9.38vw;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content-left h2 {
    font-size: 3.18vw;
    color: #ffffff;
    font-weight: 500;
}

.footer-content-left-subtitle {
    font-size: 0.94vw;
    color: #ffffff;
    margin-bottom: 1.04vw;
}

.footer-content-left-text {
    font-size: 0.83vw;
    color: #ffffff;
}

.footer-content-bottom {
    display: flex;
    margin-top: 4.17vw;
    gap: 4.48vw;
}

.footer-logo {
    width: 19.06vw;
}

.contact-button {
    width: 23.59vw;
}

.footer-content-bottom-text-container {
    font-size: 0.83vw;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.42vw;
}

.footer-content-bottom-text-container a {
    color: #ffffff;
}

.to-contact {
    position: absolute;
    bottom: -4.69vw;
    right: 4.90vw;
    z-index: 10;
    width: 10.41vw;
}

.fv-container {
    position: relative;
    height: 31.67vw;
    z-index: 1;
}

.fv {
    position: absolute;
    top: 0;
    left: -19%;
    width: 131.875vw;
}

#about, #news, #company, #contact{
    padding: 5.21vw 9.38vw;
    display: flex;
    gap: 5.21vw;
}

.about-left{
    position: relative;
}

.section-title{
    font-size: 3.18vw;
    color: #333333;
    font-weight: 600;
    margin-bottom: 0.52vw;
}

.section-text{
    font-size: 0.94vw;
    color: #000000;
    font-family: "Noto Sans JP";
    display: flex;
    align-items: center;
    gap: 0.52vw;
}

.section-text:before{
    content: "";
    display: block;
    width: 0.57vw;
    height: 0.57vw;
    border-radius: 0.31vw;
    background-color: #6c96ca;
}

.about-left-img{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15.63vw;
}

.about-right, .news-right, .company-right{
    padding-top: 13.02vw;
    position: relative;
    padding-bottom: 5.21vw;
}

.about-right-title{
    font-size: 1.56vw;
    color: #000000;
    font-family: "Noto  Sans  JP";
    padding-left: 1.04vw;
    margin-bottom: 1.56vw;
}

.about-right-text{
    font-size: 1.04vw;
    line-height: 2.34vw;
    color: #000000;
    font-family: "Noto Sans JP";
}


.about-right-img{
    position: absolute;
    top: -5.21vw;
    right: 0;
    width: 15.63vw;
}

#service_first{
    position: relative;
    height: 149.38vw;
    margin-bottom: 6.25vw;
}

.service-first-content, .service-second-content{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 8.85vw;
}

.service-first-item-img{
    width: 28.125vw;
}

.service-first-left-img{
    position: absolute;
    top: 4.69vw;
    left: 18.80vw;
    width: 11.82vw;
}

.service-first-right-img{
    position: absolute;
    top: 8.85vw;
    right: 19.22vw;
    width: 9.11vw;
}

.service-second-left-img{
    position: absolute;
    top: 4.17vw;
    left: 26.04vw;
    width: 9.68vw;
}

.service-second-right-img{
    position: absolute;
    top: 4.17vw;
    right: 21.41vw;
    width: 14.01vw;
}

.subtitle{
    font-size: 1.93vw;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.52vw;
}

.white-line{
    height: 0.21vw;
    width: 2.60vw;
    background-color: #ffffff;
    margin-bottom: 1.56vw;
}

.title{
    font-size: 1.93vw;
    color: #000000;
    margin-bottom: 2.08vw;
}

.text{
    font-size: 1.04vw;
    color: #000000;
    text-align: center;
}

.service-first-bg{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 83.645vw;
}

.service-first-content-item.first-item{
    margin-top: 5.21vw;
}

.service-first-content-item{
    display: flex;
    justify-content: center;
}

#service_second{
    position: relative;
    height: 151.21vw;
    margin-bottom: 6.25vw;
}

.service-second-bg{
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 83.645vw;
}

.plans-content, .flow-content{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4.17vw;
}

.plans-container {
    margin: 3.13vw auto 0;
}

.plans-img {
    width: 83.072vw;
    display: block;
    margin: 0 auto;
}

.flow-img{
    width: 21.093vw;
}

#news{
    background-color: #ededed;
}

.news-right{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-right-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0.05vw solid #000000;
    border-bottom: 0.05vw solid #000000;
    padding: 1.56vw 0;
    padding-left: 0.52vw;
}

.news-right-item-last{
    border-bottom: 0.05vw solid #000000;
}

.news-right-item-left{
    display: flex;
    gap: 1.67vw;
}

.news-right-item-date{
    font-size: 0.99vw;
    color: #939393;
}

.news-right-item-title{
    font-size: 0.99vw;
    color: #333333;
}

.plus-img{
    margin-right: 0.78vw;
    width: 2.03vw;
}

.more-link{
    margin-left: auto;
    font-size: 0.99vw;
    color: #333333;
    margin-top: 1.56vw;
    display: inline-block;
}

.company-right{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.company-img{
    margin-top: 8.85vw;
    width: 23.59vw;
}

.company-right-item{
    display: flex;
    align-items: center;
    padding: 1.82vw 0;
    border-bottom: 0.05vw solid #000000;
}

.company-right-item-title{
    margin-right: 6.25vw;
    font-size: 0.94vw;
    color: #333333;
    width: 7.60vw;
}

.company-right-item-text{
    font-size: 0.94vw;
    color: #333333;
}

.contact-right{
    padding-top: 0.52vw;
    width: 100%;
}

.contact-right-title{
    font-size: 2.40vw;
    color: #333333;
    font-weight: 600;
    margin-bottom: 2.52vw;
}

.contact-right-text{
    font-size: 1.04vw;
    line-height: 2.45vw;
    color: #333333;
    margin-bottom: 2.52vw;
}

form{
    display: flex;
    flex-direction: column;
    gap: 2.08vw;
}

.contact-form-row{
    display: flex;
    gap: 1.56vw;
}

.contact-form-row-left{
    display: flex;
    max-height: 2.08vw;
    gap: 0.82vw;
    width: 23%;
    padding-top: 1vw;
}

.contact-form-row-right{
    width: 70%;
}

.contact-form-row-right input:not(.contact-form-button){
    background-color: #f5f5f5;
    border: none;
    height: 3.13vw;
    font-size: 1.15vw;
    padding-left: 0.76vw;
    width: 100%;
}

.contact-form-row-right textarea{
    background-color: #f5f5f5;
    border: none;
    height: 20.83vw;
    font-size: 1.15vw;
    padding-left: 0.76vw;
    width: 100%;
    padding-top: 0.76vw;
}

.required{
    font-size: 0.83vw;
    letter-spacing: 0.05vw;
    color: #ffffff;
    background-color: #6c96ca;
    padding: 0.32vw 0.78vw;
}

.optional{
    font-size: 0.83vw;
    letter-spacing: 0.05vw;
    color: #ffffff;
    background-color: #999999;
    padding: 0.32vw 0.78vw;
}

.form-label{
    font-size: 1.15vw;
    color: #333333;
}

.contact-form-button{
    font-size: 1.15vw;
    letter-spacing: 0.10vw;
    color: #ffffff;
    width: 23.54vw;
    height: 4.95vw;
    background-color: #223451;
    margin-top: 2.52vw;
}

.contact-form-row-right-text{
    font-size: 0.78vw;
    letter-spacing: 0.05vw;
}

.contact-form-row-right-text a{
    color: #333333;
    text-decoration: underline;
}

/* 郵便番号入力欄のスタイル */
.postal-code-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.04vw;
}

.postal-mark {
    margin-right: 0.26vw;
    font-size: 0.83vw;
}

#postal_code {
    width: 13.54vw;
}

/* 住所入力欄は幅いっぱいに */
#address {
    width: 100%;
}

.for-sp{
    display: none !important;
}

.service-swiper {
    width: 100%;
    max-width: 56.4vw;
    padding-bottom: 6.67vw;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.service-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.service-swiper .service-first-item-img {
    width: 100%;
    height: auto;
}

.service-swiper .swiper-pagination {
    bottom: 0 !important;
}

.service-swiper .swiper-pagination-bullet {
    width: 1.6vw;
    height: 1.6vw;
    background-color: #fff;
    opacity: 1;
    margin: 0 0.67vw;
}

.service-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #1a5cb1;
}

.service-swiper .swiper-button-next,
.service-swiper .swiper-button-prev {
    color: #6c96ca;
    width: 5.87vw;
    height: 5.87vw;
}

.service-swiper .swiper-button-next {
    right: 1.33vw;
}

.service-swiper .swiper-button-prev {
    left: 1.33vw;
}

.service-swiper .swiper-button-next:after,
.service-swiper .swiper-button-prev:after {
    font-size: 3.2vw;
}

.service-swiper .swiper-button-next:after,
.service-swiper .swiper-button-prev:after {
    font-size: 3.2vw;
}

@media (max-width: 768px) {
    .for-sp{
        display: block !important;
    }

    .logo{
        width: 26.67vw;
        margin-left: 5.33vw;
        margin-top: 2.67vw;
    }

    .header-content h2{
        font-size: 8vw;
        line-height: 12.13vw;
    }
    
    .header-content p{
        font-size: 3.47vw;
    }

    .to-contact{
        width: 26.67vw;
        left: 0;
        bottom: -29.33vw;
    }

    .header-content-text{
        margin-left: 5.33vw;
    }

    .fv-container{
        height: 71.6vw;
        margin-top: 10.67vw;
    }

    .fv-container img{
        width: 210.67vw;
        height: 100%;
        left: -53%;
    }

    .section-title{
        font-size: 8.13vw;
    }

    .section-text{
        font-size: 2.93vw;
    }

    .section-text:before{
        width: 1.47vw;
        height: 1.47vw;
        border-radius: 0.8vw;
    }

    #about, #news, #company, #contact{
        flex-direction: column;
        gap: 10.67vw;
        padding-left: 5.33vw;
        padding-right: 5.33vw;
        position: relative;
    }

    #about{
        padding-bottom: 26.67vw;
    }

    #news, #company{
        padding-bottom: 10.67vw;
    }

    .about-right, .news-right, .company-right{
        padding-top: 0;
        position: static;
    }

    .about-right-title{
        font-size: 4.8vw;
        margin-bottom: 8vw;
        padding-left: 0;
    }

    .about-right-text{
        font-size: 3.47vw;
        line-height: 6vw;
    }

    .about-right-img{
        width: 21.73vw;
        top: 4vw;
        left: 62%;
        transform: translateX(-50%);
    }

    .about-left-img {
        width: 18vw;
        right: 0;
        left: auto;
        bottom: -16vw;
    }

    #service_first{
        height: 455vw;
    }

    .service-first-bg, .service-second-bg{
        width: 95.73vw;
    }

    /* .service-first-bg{
        height: 592.13vw;
    } */

    /* .service-second-bg{
        height: 632.53vw;
    } */

    .subtitle{
        font-size: 4vw;
        margin-bottom: 2.67vw;
    }

    .title{
        font-size: 4.93vw;
    }

    .text{
        font-size: 3.47vw;
        width: 90.27vw;
        margin-bottom: 5.33vw;
    }

    .service-first-item-img{
        width: 56.4vw;
    }

    #service_first, #service_second{
        padding-left: 5.33vw;
        padding-right: 5.33vw;
    }

    #service_second{
        height: 452.53vw;
    }

    .service-second-left-img{
        width: 16.27vw;
        top: 1.33vw;
        left: 10.67vw;
    }

    .service-second-right-img{
        width: 23.73vw;
        top: 1.33vw;
        right: 0;
    }

    .white-line{
        height: 0.27vw;
        width: 6.67vw;
        margin-bottom: 5.33vw;
    }

    .service-first-left-img{
        width: 18.67vw;
        top: 2.67vw;
        left: 5.33vw;
    }

    .service-first-right-img{
        width: 14.67vw;
        top: 5.33vw;
        right: 9.33vw;
    }

    .service-first-content-item{
        display: flex;
    }

    .service-first-content-item-container{
        display: flex;
    }

    .plans-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2.67vw -2.67vw 0;
        padding: 0 2.67vw;
        width: calc(100% - 5.33vw);
        margin-left: 5.33vw;
        scrollbar-width: thin;
        scrollbar-color: #6c96ca #f0f0f0;
    }

    .plans-container::-webkit-scrollbar {
        height: 1.07vw;
    }

    .plans-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 0.53vw;
    }

    .plans-container::-webkit-scrollbar-thumb {
        background-color: #6c96ca;
        border-radius: 0.53vw;
    }

    .plans-img {
        width: 266.67vw;
        max-width: none;
        margin-left: 0;
    }

    .plans-content, .flow-content{
        padding-top: 10.67vw;
    }

    .service-first-content-item.first-item{
        margin-top: 0;
    }

    .flow-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .flow-img{
        width: 89.33vw;
    }

    .news-right-item-left{
        flex-direction: column;
        gap: 1.07vw;
    }

    .news-right-item-title{
        font-size: 3.73vw;
    }

    .news-right-item-date{
        font-size: 3.33vw;
    }

    .plus-img{
        width: 6.4vw;
    }

    .news-right-item{
        padding: 4vw 2.67vw;
    }

    .more-link{
        font-size: 2.8vw;
        margin-right: 4vw;
        margin-top: 2.67vw;
    }

    .company-img{
        display: none;
    }

    .company-right-item{
        flex-direction: column;
        align-items: flex-start;
        padding: 2.67vw 0;
    }

    .company-right-item-title{
        font-size: 3.47vw;
        margin-right: 0;
        width: auto;
        margin-bottom: 4.67vw;
    }

    .company-right-item-text{
        font-size: 3.47vw;
    }

    .company-right-item-first{
        border-top: 0.13vw solid #000000;
    }

    .company-right-img.for-sp{
        margin-top: 8vw;
    }

    footer{
        padding: 10.67vw 6.67vw 5.33vw 6.67vw;
    }

    .footer-content{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content-left h2{
        font-size: 8.4vw;
    }

    .footer-content-left-text{
        font-size: 2.67vw;
        letter-spacing: 0.13vw;
        line-height: 4.27vw;
    }

    .contact-button{
        width: 86.67vw;
        margin-top: 8vw;
    }

    .footer-content-bottom-text-container{
        font-size: 2.13vw;
    }

    .footer-content-bottom{
        margin-top: 5.33vw;
    }

    .for-pc{
        display: none !important;
    }

    .service-swiper {
        margin: 0 auto;
        padding: 0 0 6.67vw;
        width: 90%;
        max-width: none;
    }

    .service-swiper .swiper-wrapper {
        width: 100%;
    }

    .service-swiper .swiper-slide {
        width: 100%;
        padding: 0;
    }

    .service-swiper .swiper-pagination {
        bottom: 0 !important;
    }

    .service-swiper .swiper-pagination-bullet {
        width: 1.6vw;
        height: 1.6vw;
        background-color: #fff;
        opacity: 1;
        margin: 0 0.67vw;
    }

    .service-swiper .swiper-pagination-bullet-active {
        opacity: 1;
        background-color: #1a5cb1;
    }

    .service-swiper .swiper-button-next,
    .service-swiper .swiper-button-prev {
        color: #6c96ca;
        width: 5.87vw;
        height: 5.87vw;
    }

    .service-swiper .swiper-button-next {
        right: 1.33vw;
    }

    .service-swiper .swiper-button-prev {
        left: 1.33vw;
    }

    .service-swiper .swiper-button-next:after,
    .service-swiper .swiper-button-prev:after {
        font-size: 3.2vw;
    }

    .service-first-content-item-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .service-swiper .service-first-item-img {
        width: 100%;
        height: auto;
    }

    .menu-trigger {
        display: block;
    }

    .close-trigger {
        display: block;
    }

    .close-trigger.active {
        opacity: 1;
        visibility: visible;
    }

    .header-nav nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(240, 240, 240, 0.95);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav nav.active {
        right: 0;
        z-index: 9999;
    }

    .header-nav nav ul {
        flex-direction: column;
        gap: 5.33vw;
        padding: 0;
        align-items: center;
    }

    .header-nav nav ul li {
        font-size: 4.27vw;
    }

    .header-nav nav ul li a {
        height: auto;
    }

    .contact-nav {
        padding: 2.67vw 5.33vw;
    }

    .contact-right-title{
        font-size: 5.73vw;
    }

    .contact-right-text{
        font-size: 2.67vw;
        line-height: 5.33vw;
        width: 77.07vw;
    }

    .form-label{
        font-size: 2.93vw;
    }

    .required, .optional{
        font-size: 2.13vw;
        letter-spacing: 0.13vw;
        align-content: center;
    }

    .contact-form-row{
        flex-direction: column;
    }

    .contact-form-row-left{
        max-height: 4.2vw;
    }

    .contact-form-row-right input:not(.contact-form-button){
        height: 9.33vw;
    }

    .contact-form-row-right textarea{
        height: 40vw;
    }

    .contact-form-row-left{
        width: 100%;
    }

    .contact-form-row-right{
        width: 100%;
    }

    form{
        gap: 4vw;
    }

    .postal-mark{
        font-size: 3.73vw;
        letter-spacing: 0.13vw;
    }

    .postal-code-container{
        margin-bottom: 2.67vw;
    }

    .contact-form-button{
        font-size: 2.93vw;
        letter-spacing: 0.27vw;
        width: 43.87vw;
        height: 11.73vw;
    }

    .button-container{
        display: flex;
        justify-content: center;
    }

    .button-container p{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 43.87vw;
        height: 11.73vw;
    }

    .wpcf7-spinner{
        display: none;
    }

    .contact-form-row-right-text{
        font-size: 1.87vw;
        letter-spacing: 0.13vw;
        text-align: center;
    }

    .postal-code-container p{
        display: flex;
        align-items: center;
    }

    #contact{
        padding-bottom: 10.67vw;
    }
}