* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    /* line-height: 1.6; */
    color: #333;
    background-color: #ffffff;
    /* overflow: hidden; */
}

header {
    background-color: transparent;
    padding: 5px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
    background-color: #fff; /* White background when scrolled */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow */
}

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

.header-container img {
    max-height: 40px;
}

.apply-btn {
    background-color: #3D2413;
    width: 22vw;
    border-radius: 50px;
    color: #ECEACA;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.hero {
    background-image: url(../img/firstview.webp);
	background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    object-fit: contain;
    padding: 0;
    text-align: center;
    
    height:auto;
    min-height: 600px; /* Full viewport height */
    width: 100%; /* Full width */
    height: 100%; /* Let the height adapt to the content */
    align-items: center;
    /* Push the content under the sticky header */
    position: relative; /* Ensure stacking works with the header */
    top: -95px; /* Adjust this value based on the height of your sticky header */
    
  
}
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique+Soft&family=Shippori+Mincho+B1&display=swap');
@media (min-width: 1380px) and (max-width: 1999px) {
    .hero {
        background-image: url(../img/firstviewbig.webp);
        background-size: cover; /* Show the full image */
        height: 900px; /* Ensure the image fits the screen height */
        top: -166px !important;
    }
    .hero-content {
        padding-top: 660px !important;
    }
    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
         /*font-family: 'Yu Mincho', serif!important;
        font-style: oblique!important;*/



    }
    
    .hero2-content {
        padding-top: 600px!important;
        padding-bottom: 80px!important;
    }

}

@media (min-width: 2000px) {
    .hero {
        background-size: cover; /* Fill larger screens without distortion */
        height: 90vh; /* Full height on very large screens */
    }
}

/*--Start front texts--*/
.hero-content {
    
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Fill the hero section */
    text-align: center;
    padding-top: 400px; /* Add top padding for spacing */

}

.hero h1 {
    font-size: clamp(2rem, 3vw, 3rem); /* Responsive font size */
    margin: 10px 0;
    word-break: keep-all;
        font-family: 'Zen Antique Soft', 'Shippori Mincho B1', serif!important;
        font-style: oblique!important; /*Slight slant */
    color: #FFFFFF;
        
}

.hero-button {
    
    background-color: #C7BDA0;
    border-radius: 50px;
    border: 1px outset #3D2413;
    color: #3D2413;
    text-decoration: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size */
    width: 30vw;
    margin: 0 auto; /* Optional: Horizontally align if width is not 100% */
   
}

.hero-btn {
    text-decoration: none;
    color: #333;
    font-size: inherit; /* Inherit font size from .hero-button */
}

.hero-content ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    align-items: center;
    margin: 24px 0;
    padding: 10px;
    width: 100%; /* Full width */
    /* background-color: #FEC206;  */
    background-color: #eaf1fd; /* Yellow background for the list */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 10px; /* Add spacing between items */
}

.hero-content ul li {
    flex: 1; /* Equal width for all list items */
    text-align: center;
    padding: 10px;
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* Responsive font size */
    color: #333;
    font-weight: bold;
    border-right: 3px solid #fff; /* Add a white right border */
}
.hero-content ul li:last-child {
    border-right: none; /* Remove the border from the last item */
}
/*--End front texts--*/
.requirements, .testimonials, .faq {
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    
}

h2 {
    font-size: clamp(0rem, 2vw + 4em, 2.2rem);
    margin-bottom: 20px;
    overflow-wrap:anywhere;
    color: #3D2413;
}

h3 {
    font-size: clamp(1rem, 1.5vw + 1em, 1.2rem);
    margin-bottom: 10px;
}

ul {
    list-style-type: none;
}

ul li {
    margin-bottom: 10px;
    font-size: clamp(1.0rem, 1.5vw + 1em, 1.2rem);
    font-weight: 700;
}

.benefit-item, .requirement, .testimonial, .faq-item {
    margin-bottom: 20px;
}

.testimonial img {
    max-width: 100px;
    border-radius: 50%;
    margin-right: 10px;
}

  /* out-title */

  .out-title{
    display:inline-block;
    padding: 30px;
    text-align: center;
    width: 100%;
    background-color: #BAE7F3;

  }

  .out-title::after{
    
    height: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  /* concerns */


  .concerns {
    display: flex; /* Flex container to align children side by side */
    width: 100%;
    background: #BAE7F3;
}

.concerns-image {
    width: 50%; /* Take up 50% of the width */
    display: flex;
    justify-content: flex-end; /* Right-align the image */
    align-items: center; /* Vertically center the image */
}

.concerns-image img {
    max-width: 100%; /* Ensure the image scales within its container */
    height: auto; /* Maintain the aspect ratio */
}

.concerns-all-text {
    width: 30%; /* Take up 50% of the width */
    display: flex;
    flex-direction: column; /* Stack the content vertically */
    justify-content: center; /* Center content vertically */
    align-items: flex-start; /* Align text to the left */
    background: #BAE7F3; /* Ensure same height by adding a background */
    padding: 20px;
}

.concerns-wrapper {
    background: #ffffff;
    width: 100%;
    border-radius: 10px;
    margin: 10px 0; /* Adjust spacing between items */
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw + 1em, 1.0rem);
}

.concerns-text {
    padding: 20px;
    flex: 1;
    font-size: clamp(0.8rem, 1.5vw + 1em, 1.0rem);
    color: #333;
    background: #ffffff;
    border-radius: 12px;
}

/* 終了concerns */

/* 東京ガスカスタマーサポートなら */
.benefit-title{
    width:100%;
    background-color: #BAE7F3;
    color:#fff;
    text-align: center;
    position: relative;
}

.benefit-title h2 { 
    position: relative; /* 吹き出し背景のための準備 */
    background-color: #BAE7F3;
    width:100%;
  }
  
  .benefit-title h2::after {
    content: "";
    position: absolute;
    bottom: -120px; /* 吹き出しの三角部分の位置調整 */
    left: 50%;
    transform: translateX(-50%);
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 80px solid #BAE7F3; /* 吹き出しの色 */
    width: 0;
    height: 0;
  }
.all-benefits{
    display: flex;
}
  .benefit-item{
  
    justify-content: space-between;
    align-items: center;
    margin:10px 5%;
    background-color: #DBD7CA;
    border-radius: 2px;
  }

  .benefit-item img{
    width:18vw;
    min-width: 200px;
    margin: 10px 5vW;
  }
  .benefit-item-right{
    display: block;
    width:80%;
    margin: 0 auto;
  }

  .benefit-item-title{
    color: #000000;
    font-weight: 700;
    text-align: center;
  }

  .benefit-text{
    color: #000000;
    font-size: clamp(0.8rem, 0vw + 1em, 1.2rem);
    padding-top:10px;
    padding-bottom: 20px;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .benefits-wrapper{
    padding-top:80px;
    width:100%;
    margin:0 auto;
  }
.benefits-wrapper h2{
    padding: 20px;
    text-align: center;
}
  .benefits h3{
    color:#000000;
    width:100%;
    margin: 10px auto;
    display: inline-block;
    text-align: center;
  }  



/* 終了東京ガスカスタマーサポートなら */
.hero2 {
    background-image: url(../img/2ndview.webp);
	background-repeat: no-repeat;
    background-size: cover;
    object-fit: contain;
    padding: 0;
    text-align: center;
    min-height: 100%;
    width: 100%; /* Full width */
    height: 100%; /* Let the height adapt to the content */
    align-items: center;  
}
.hero2-content {
    
    flex-direction: column;
    justify-content: center;
   
    height: 100%; /* Fill the hero section */
    text-align: center;
    padding-top: 350px; /* Add top padding for spacing */
    padding-bottom: 10vh;

}
.hero2-button {
    background-color: #C7BDA0;
    border-radius: 50px;
    border: 1px outset #3D2413;
    color: #3D2413;
    text-decoration: none;
    /* padding: 10px 20px; */
    cursor: pointer;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    width: 30vw;
    margin: 0 14%;
}

/*20250411ボタン修正 */

.hero2-button a{
    text-decoration: none;
    padding: 0px 10px!important
}
    



/*終了20250411ボタン修正 */

/* 募集要項 */

.requirements-wrapper{
    background-color: #DFF3F8;
    padding:4em;/*内側余白*/
	position: relative;
    width:80%;
    margin:30px auto;

}


.job-title{
    margin:0 auto;
    width:30%;
    text-align: center;
    background-color: #FEC206;
    border-radius: 40px;
    padding: 5px;
    
}
.job-title h2{
margin-bottom: 10px;
margin-top: 10px;
}

.job-title::after{
    height: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.requirement-item{
    display: flex;
    align-items: start;
    padding: 30px;
    border-bottom: solid 1px #C7BDA0;
}
.requirement-item:last-child {
    border: none;
  }
.requirement-title{
    white-space: nowrap;
    background-color: #FEC206;
    color:#000000;
    padding:5px 10px;
    margin-left: 20px;
    width:20%;
    text-align-last: justify;
    text-justify: inter-ideograph;
}

.requirement-text{
    padding:5px;
    padding-left:20px;
    word-break: keep-all;
    width:80%;
    font-size: clamp(0rem, 0vw + 1em, 1.0rem);
}   

/*20250411年齢修正 */

.requirement-text span{
    font-size: clamp(0rem, 0vw + 0.8em, 0.8rem);
}
    

/*終了20250411ボタン修正 */


.blue{
    background-color: #E8F2FE ;
}

/* 終了募集要項 */

/* 内定までの流れ */
.triangle-container {
    display: flex;
    flex-direction: column; /* Arrange elements vertically */
    align-items: center; /* Center both line and triangle horizontally */
    padding-right: 41%;


}
.triangle {

    background: #BB7648;
    height: calc(60px / 2);
    width: 40px;
    clip-path: polygon(50% 100%, 100% 0%, 0% 0, 0 0%);
    margin:0 27%;
  }
  .line {

    height: 40px; /* Line thickness */
    width: 5px; /* Line length */
    background-color: #BB7648; /* Same color as the triangle */
    margin:0 29%;
    }
.flow-all{
    background-image:  url(../img/flow.webp);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    object-fit: contain;
    padding: 0;
    text-align: center;
    height: auto;
    min-height: 600px;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
}
.flow-title{
    padding: 40px 0px 10px 0px;
}

.flow,.voice-wrapper{
    padding-top:50px;
    width:100%;
    margin:0 auto;
}

.flow-contents{
    display: flex;
    min-width:30%;
    align-items: baseline;
    background-color: rgba(61, 36, 19, .61); /* Fully transparent */
    margin:0 auto;
}

.flow-contents h3{
    color: #3D2413;
    background-color: #fff;
    font-weight: 700;
    padding: 0px 20px;
    margin-left:25%;
    margin-top: 10px;
    text-align: center;
}



.flow-contents p{
    width:40%;
    color: #fff;
    font-weight: bold;
    word-break: keep-all;
}
.flow-bigtext{
    font-size: clamp(1.2rem, 1.5vw + 1em, 1.5rem);
}

.attension{
    padding-top:20px;
    text-align: center;
    overflow-wrap:anywhere;
}
/* 終了内定までの流れ */


/* CTAバナー */
.banner {
    background-color: #BAE7F3;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw + 1em, 1.2rem);
}

.banner__inner {
    margin: 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner__item{
    color: #fff;
    font-weight: 700;
}

.banner__item{
    color: #fff;
}

.banner__botton {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 40%;
    max-width: 700px;
    background-color: #C7BDA0;
    border-radius: 50px;
    border: 3px solid #3D2413;
    text-decoration: none;
    padding: 15px 15px;

}

.banner__botton-text{
    color: #3D2413;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw + 1em, 1.2rem);
    text-decoration: none;

}

.banner__item img{
    width: 30px; 
    margin-right:10px;
}
.banner__list{
    background-color: #3D2413;
    padding: 10px;
    border-radius: 20px;
}
.banner__list img{
    width: 30px; 
    margin-right:10px;
}

.smart_phone-img{
  padding: 0;  
}



/* 終了CTAバナー */


/* 先輩社員の声 */
.voice-content{
    display: flex;
    width:80%;
    margin:0 auto;
}

figure {
    display: table;
    max-width:30%;
    margin:0 auto;
    text-align: center;
}
    
figcaption {
    caption-side: bottom;
    overflow-wrap:anywhere;
}


.voice-content img{
    width:20vw;
    object-fit: contain;
    height: 20vw;
}

/* 終了先輩社員の声  */

/* FAQ */
.FAQ_start{
    width: 100%;
    background-color: #E6E2CB;
}
.FAQ {
    padding-top: 20px;
    margin: 100px auto;
    width: 70%;
    background-color: #E6E2CB;
}
.title {
    font-size: 38px;
    font-weight: bold;
    color: #2C2C2C;
    position: relative;
    width: fit-content;
    margin: 70px auto;
    text-align: center;
}

.FAQ_Q {
    background-color: #fff;
    display: flex;
    align-items: center;
}

.FAQ_item-icon {
    color: #2C2C2C;
    font-weight: bold;
    font-size: 36px;
}

.FAQ_item-text {
    padding: 20px 5px;
}
.FAQ_A {
    display: flex;
    align-items: center;
}

.dotted{
    border-top: dotted 2px #333;
    border-bottom: dotted 2px #333;
}

.FAQ-qestion-answer{
    display: block;
    width:80%;
    overflow-wrap:anywhere;
}

.FAQ_item-icon{
    width:20%;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.5rem, 1.5vw + 1em, 2.0rem);
}


/* 終了FAQ */


/*フォーム  */
form{
    width: 60%;
    margin:0 auto;
}
.form-title{
    text-align: center;

}
form tr{
    height:60px;
}
.form-text{
    font-size: larger;
    font-weight: bold;
}
input[type="submit"] {
    margin:0 auto;
    width:20%;
    background: #C7BDA0;
    color: #3D2413;
    transition: 0.3s ease-in-out;
    margin-top: 50px;
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw + 1em, 1.0rem);
    border-radius: 50px!important;
    border: 3px solid #3D2413!important;
    padding: 10px 20px;
    font-weight: 700;
}
.table-form-title {
    padding-top: 10px;
    font-weight: bolder;
}
input[type="submit"]:hover{
    cursor: pointer;
}
.apply-form{
    background-color: #DFF3F8;
    margin: 20px auto;
    padding: 20px;
}
.apply-form form {
    display: flex;
    flex-direction: column;
}

.apply-form label {
    margin-top: 10px;
    font-weight: bold;
}

.apply-form input {
    padding: 20px;
    width:100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[name="propval_12_y"], select[name="propval_12_m"], select[name="propval_12_d"] {
    width: 70%;
    max-width: 50px;    
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/*終了フォーム  */


/* 利用規約 */
#kiyaku_haichi{
    text-align: center;
    margin-bottom:20px;
  }
  
  .formKiyaku {
    /* height: 85px; */
    height: 80px;
    min-width: 50%;
    line-height: 1.2em;
    color: #46373E;
    padding: 5px;
  }
/* 終了利用規約 */

/* フッター */

footer a{
    color:#fff;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #3D2413;
    color: white;
}

/* 終了フッター */

/* thankyou ページ */
.thankyou{
    height:auto;
    font-size: clamp(0rem, 1.0vw + 1em, 2.2rem);
    font-weight: 700;
    background-color: #E6E2CB;
    color:#3D2413;
    min-height: 10rem;
    margin: 0 auto;
    text-align: center;
}

.thankyou-text p{
    vertical-align: middle;
}

.thankyou{
    background: #E6E2CB;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  
/* 終了thankyou ページ */


/* レスポンシブ */


@media (max-width: 1100px) {
.requirement-item{
    display: block;
    margin-top:20px
}

.requirement-title,.requirement-text{
    width:100%;
    margin-left:0;
    text-align-last: left; /* または right, center */
    text-justify: auto;
}

.benefits-wrapper{
    width:100%;
}

.concerns .concerns-wrapper {
    width: 90%;
}

}

@media (max-width: 430px) {
    .apply-btn {
        width: 60%;  
        font-size: 22px;
        padding: 0px;
    }
    
    .header-container{
        flex-direction: column;
    }
    .header-container img {
        max-height: 40px;
        margin: 10px auto;
    }
    .hero {
        background: url("../img/firstviewSP.webp") 0 132px /contain no-repeat; overflow: hidden;
        background-repeat: no-repeat;
        top: -125px;
    }
    .hero h1 {
        font-size: clamp(1.3rem, 2.4vw, 2rem);
        margin: 10px 0;
        word-break: keep-all;
        padding-bottom: 22vh;
        color: #3D2413;
        text-shadow: -1px -1px 0 #C7BDA0, 1px -1px 0 #C7BDA0, -1px 1px 0 #C7BDA0, 1px 1px 0 #C7BDA0;
    }
    .hero-content{
        padding-top: 26vh;
        display: flex; /* Ensure it remains a flex container */
    }

    .hero-button {
        order: 2; /* Move the button below the <ul> */
        margin-top: 20px; /* Add spacing above the button */
    }
    .hero-content ul {
        order: 1; /* Ensure the <ul> appears above the button */
        flex-direction: column;
        list-style: none;
        justify-content: space-around;
        align-items: center;
        margin: 27px 0;
        margin-top: 20px;
        padding: 0px;
        width: 100%;
        /* background-color: #FEC206; */
        background-color: #eaf1fd;
        flex-wrap: wrap;
        gap: 0;
    }
    .hero-content ul li {
        flex: 1;
        text-align: center;
        padding: 20px;
        font-size: clamp(1.5rem, 6vw, 1.9rem);
        color: #333;
        font-weight: bold;
        border-right :0px; 
        position: relative; /* Needed for the ::after pseudo-element */
    }

    .hero-content ul li::after {
        content: "";
        position: absolute;
        bottom: 0; /* Place the border at the bottom */
        left: -80%; /* Start the border slightly inside */
        right: -80%; /* End the border slightly inside */
        height: 2px; /* Thickness of the border */
        background-color: #fff; /* Border color */
    }

    .hero-content ul li:last-child::after {
        display: none; /* Remove the border for the last item */
    }
    .hero-button {
        padding: 20px 20px;        
        font-size: clamp(2rem, 2.5vw, 2rem);
        width: 30vw;
        margin: 0 auto;
        width: 90%;
    }
    .all-benefits{
        flex-direction: column;
    }
    .benefit-item{
        flex-direction: column;
        background-color: #DED9CC;
        padding:2rem;
        border-radius: 2px;
    }
    .benefit-item-right{
        width:100%;
    }

    .benefit-item img {
        margin: 10px 14vW;
    }
    
    .hero2 {
        background-image: url(../img/2ndviewsp.webp); /* Mobile-specific image */
        background-repeat: no-repeat;
        background-size: contain; /* Ensure the image is fully visible */
        background-position: center;
        display: flex;
        flex-direction: column; /* Stack content */
        justify-content: flex-end; /* Align content to the bottom */
        align-items: center;
    }

    .hero2-content {
        padding-bottom: 18px; /* Add space at the bottom */
        width: 100%;
        margin-bottom: 50px;
    }

    .hero2-button {
        position: relative;
        margin-top: 20px; /* Add some space from the image */
        width: 70%; /* Adjust button width for mobile */
        margin: 0 auto;
    }

    .concerns-all-text {
        width: 70%;
    }
    .requirements-wrapper{
        width:100%;
        padding:1rem;
        padding-bottom:2rem;
    }
    .flow-all {
        min-height: 0vh;
    }
    .flow-contents{
        max-width:100%;
        align-items: center;
        flex-direction: column; /* Stack the elements vertically */
        align-items: center; /* Center the items */
        padding: 10px;
    }
    
    
      .flow-contents h3 {
        margin-left: 0; /* Reset margin for centering */
        margin-top: 0; /* Adjust top margin */
        margin-bottom: 10px; /* Add space below the heading */
      }
    
      .flow-contents p {
        width: 100%; /* Adjust width for better readability on mobile */
        text-align: center; /* Center the text */
        font-size: x-large;
      }
      .triangle-container{
        padding-right: 0;
      }

    .voice-content{
        display: block;
    }

    .voice-content img{
        aspect-ratio: 4 / 3;
        object-fit: cover;
        width: 20vw;
        flex-direction: column;
        width: 200px;
        height: 200px;
    }

    figure{
        display: block;
        max-width:50%;
    }

    .voice2{
        margin-top:30px;
    }

    .FAQ_Q {
        display: block;
        width: 100%;
    }
    .FAQ_item-icon {
        width: 100%;
        text-align: center;
        font-weight: 700;
        font-size: clamp(1.5rem, 1.5vw + 1em, 2.0rem);
    }
    .FAQ_A {
        display: block;
    }
    .title {
        font-size: 28px;
        font-weight: bold;
        color: #3D2413;
        position: relative;
        width: fit-content;
        margin: 50px auto;
    }
    .job-title {

        width: 50%;
    }
    .banner__botton{
        width:80%;
    }
    .smart_phone-img {
       width: 150px;
    }
    .benefit-text, .benefit-item-title {
        padding-top:1rem;
    }

    .concerns, .benefits, .requirements, .testimonials, .faq, .apply-form{
        margin:0;
    }
    .benefit-item-right{
        margin-left:0;
    }

    .faq{
        width:100%;
    }
    form{
        width: 80%;
    }
    table {
        display: block; /* Change table layout for mobile */
        width: 100%; /* Ensure full width */
    }
    tr {
        margin: 10px;
        margin-bottom: 4rem;
    }
    td {
        display: block;
        width: 100%; /* Ensure cells take full width */
        text-align: left; /* Align text to the left */
    }

    input[type="submit"] {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    .table-form-title {
        padding-top: 10px;
        font-weight: bolder;
    }

}


@media (max-width: 479px) {
.concerns .concerns-wrapper {
    width: 100%;
}

.concerns-title {
    background: #BAE7F3;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.hero-button{
    width:90%;
}

figure{
    max-width:90%;
}

.voice-content img{
    max-width: 500px;
}

.banner{
    font-size: clamp(0.8rem, 0vw + 1em, 1.0rem);
}

.requirement-text{
    padding:5px;
}

.requirement-contents{
    margin-bottom:2rem;
}

.apply-form{
    padding:0;
}

form{
    width: 90%;
}
table {
    display: block; /* Change table layout for mobile */
    width: 100%; /* Ensure full width */
}
tr {
    margin: 10px;
    margin-bottom: 4rem;
}
td {
    display: block;
    width: 100%; /* Ensure cells take full width */
    text-align: left; /* Align text to the left */
}

input[type="submit"] {
    margin-top: 10px;
    margin-bottom: 20px;
}
.table-form-title {
    padding-top: 10px;
    font-weight: bolder;
}

#kiyaku_midashi {
    margin: 20px auto;
}

.formKiyaku {
    min-width: 90%;
  }

  .thankyou{
    font-size: 1em;
    text-align: left;
}

.thankyou p{
    width:90%;
    margin:0 auto;
}

}

@media (max-width: 820px) and (min-width: 768) {
    .hero2 {
        height: 300px;
    }
    .hero2-content {
        padding-top: 230px;
    }
    .concerns-all-text {
        width: 50%;
    }
}
@media (min-width: 431px) and (max-width: 768px) {
    .apply-btn {
        width: 60%;  
        font-size: 22px;
        padding: 0px;
    }
    
    .header-container{
        flex-direction: column;
    }
    .header-container img {
        max-height: 40px;
        margin: 10px auto;
    }
    .hero {
        background: url("../img/firstviewSP.webp") 0 132px /contain no-repeat; overflow: hidden;
        background-repeat: no-repeat;
        top: -140px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 3vw, 3rem);;
        margin: 10px 0;
        word-break: keep-all;
        padding-bottom: 417px;
        color: #000000;
        -webkit-text-stroke: 1px #FEC206;
    }
    .hero-content{
        padding-top: 286px;
        display: flex; /* Ensure it remains a flex container */
    }

    .hero-button {
        order: 2; /* Move the button below the <ul> */
        margin-top: 20px; /* Add spacing above the button */
    }
    .hero-content ul {
        order: 1; /* Ensure the <ul> appears above the button */
        flex-direction: column;
        list-style: none;
        justify-content: space-around;
        align-items: center;
        margin: 24px 0;
        padding: 0px;
        width: 100%;
        /* background-color: #FEC206; */
        background-color: #eaf1fd;
        flex-wrap: wrap;
        gap: 0;
    }
    .hero-content ul li {
        flex: 1;
        text-align: center;
        padding: 20px;
        font-size: clamp(1.5rem, 6vw, 1.9rem);
        color: #333;
        font-weight: bold;
        border-right :0px; 
        position: relative; /* Needed for the ::after pseudo-element */
    }

    .hero-content ul li::after {
        content: "";
        position: absolute;
        bottom: 0; /* Place the border at the bottom */
        left: -80%; /* Start the border slightly inside */
        right: -80%; /* End the border slightly inside */
        height: 2px; /* Thickness of the border */
        background-color: #fff; /* Border color */
    }

    .hero-content ul li:last-child::after {
        display: none; /* Remove the border for the last item */
    }
    .hero-button {
        padding: 20px 20px;        
        font-size: clamp(2rem, 2.5vw, 2rem);
        width: 30vw;
        margin: 0 auto;
        width: 90%;
    }
    .all-benefits{
        flex-direction: column;
    }
    .benefit-item{
        flex-direction: column;
        background-color: #DED9CC;
        padding:2rem;
        border-radius: 2px;
    }
    .benefit-item-right{
        width:100%;
    }

    .benefit-item img {
        margin: 10px 35%;
    }
    
    .hero2 {
        background-size: contain; /* Ensure the image is fully visible */
        background-position: center;
    }

    .hero2-content {
        padding-bottom: 18px; /* Add space at the bottom */
        width: 100%;
        margin-bottom: 50px;
    }



    .concerns-all-text {
        width: 70%;
    }
    .requirements-wrapper{
        width:100%;
        padding:1rem;
        padding-bottom:2rem;
    }
    .flow-all {
        min-height: 0vh;
    }
    .flow-contents{
        max-width:100%;
        align-items: center;
        flex-direction: column; /* Stack the elements vertically */
        align-items: center; /* Center the items */
        padding: 10px;
    }
    
    
      .flow-contents h3 {
        margin-left: 0; /* Reset margin for centering */
        margin-top: 0; /* Adjust top margin */
        margin-bottom: 10px; /* Add space below the heading */
      }
    
      .flow-contents p {
        width: 100%; /* Adjust width for better readability on mobile */
        text-align: center; /* Center the text */
        font-size: x-large;
      }
      .triangle-container{
        padding-right: 0;
      }

    .voice-content{
        display: block;
    }

    .voice-content img{
        aspect-ratio: 4 / 3;
        object-fit: cover;
        width: 20vw;
        flex-direction: column;
        width: 200px;
        height: 200px;
    }

    figure{
        display: block;
        max-width:50%;
    }

    .voice2{
        margin-top:30px;
    }

    .FAQ_Q {
        display: block;
        width: 100%;
    }
    .FAQ_item-icon {
        width: 100%;
        text-align: center;
        font-weight: 700;
        font-size: clamp(1.5rem, 1.5vw + 1em, 2.0rem);
    }
    .FAQ_A {
        display: block;
    }
    .title {
        font-size: 28px;
        font-weight: bold;
        color: #3D2413;
        position: relative;
        width: fit-content;
        margin: 50px auto;
    }
    .job-title {

        width: 50%;
    }
    .banner__botton{
        width:80%;
    }
    .smart_phone-img {
       width: 150px;
    }
    .benefit-text, .benefit-item-title {
        padding-top:1rem;
    }

    .concerns, .benefits, .requirements, .testimonials, .faq, .apply-form{
        margin:0;
    }
    .benefit-item-right{
        margin-left:0;
    }

    .faq{
        width:100%;
    }
    form{
        width: 80%;
    }
    table {
        display: block; /* Change table layout for mobile */
        width: 100%; /* Ensure full width */
    }
    tr {
        margin: 10px;
        margin-bottom: 4rem;
    }
    td {
        display: block;
        width: 100%; /* Ensure cells take full width */
        text-align: left; /* Align text to the left */
    }

    input[type="submit"] {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    .table-form-title {
        padding-top: 10px;
        font-weight: bolder;
    }

}
@media (max-width: 376px){
    .hero h1 {
        font-size: clamp(1.4rem, 2vw, .8rem)!important;
    }
    .hero-content {
        padding-top: 33vh!important;
    }
    .hero h1 {
        padding-bottom: 27vh!important;
    }
}

/* 以下、新規追加するCSSルール */

/* PCビュー用の見出し */
.job-requirements-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* テキストと画像を中央に配置 */
    font-size: 24px;
    font-weight: bold;
    color: #6497e8; /* 文字色を白に設定 */
    background-color: #eaf0fc; /* 背景色を#5482ccに設定 */
    padding: 14px 0;
    margin: 30px auto 30px; /* 上部のスペースを50pxに微調整 */
    width: 100%; /* 横全体に広げる */
    white-space: nowrap; /* 折り返しを防ぐ */
    border-radius: 0; /* 角の丸みを削除して横いっぱいに */
    box-sizing: border-box; /* paddingを含めて幅100%になるように */
}

/* PCビューの画像をテキストと並べて配置 */
.job-requirements-title .fukidashi-l-pc {
    position: static; /* position: absoluteを解除 */
    height: 40px; /* 画像のサイズを調整 */
    width: auto;
    margin-right: 10px; /* テキストとの間にスペース */
    flex-shrink: 0; /* 縮小させない */
}

.job-requirements-title .fukidashi-r-pc {
    position: static; /* position: absoluteを解除 */
    height: 40px; /* 画像のサイズを調整 */
    width: auto;
    margin-left: 10px; /* テキストとの間にスペース */
    flex-shrink: 0; /* 縮小させない */
}

/* スマホビュー用の見出し */
.job-requirements-mobile {
    display: none; /* デフォルトでは非表示 */
}

@media (max-width: 768px) {
    /* PCビュー用の見出しを非表示に */
    .job-requirements-title {
        display: none;
    }

    /* スマホビュー用の見出しを表示 */
    .job-requirements-mobile {
        display: block;
        text-align: center;
        margin: 30px auto;
        padding: 30px 0; /* 上下のpaddingをさらに増やしてスペースを作る */
        font-size: 22px; /* フォントサイズを22pxに大きく調整 */
        font-weight: bold;
        color: #6497e8; /* 文字色を白に設定 */
        background-color: #eaf0fc; /* 背景色を#5482ccに設定 */
        width: 100%; /* 横全体に広げる */
        position: relative; /* 子要素のabsolute positioningの基準 */
        border-radius: 0; /* 角の丸みを削除して横いっぱいに */
        box-sizing: border-box; /* paddingを含めて幅100%になるように */
    }

    .job-requirements-mobile span {
        display: block; /* 各要素をブロックレベルにして改行させる */
        white-space: nowrap; /* 各行内での折り返しを防ぐ */
        position: relative;
        padding: 5px 0; /* 各行の上下の余白 */
    }

    .job-requirements-mobile .fukidashi-l-mobile {
        position: absolute;
        left: 20px; /* 左端からの距離を調整（paddingを考慮） */
        top: 50%; /* 親要素の高さの中央に配置 */
        transform: translateY(-50%); /* 中央揃えのための調整 */
        height: auto; /* 高さを自動調整 */
        max-height: calc(100% - (30px * 2)); /* padding分を引いた高さに最大値を設定 */
        width: auto;
        object-fit: contain; /* アスペクト比を維持して収める */
    }

    .job-requirements-mobile .fukidashi-r-mobile {
        position: absolute;
        right: 20px; /* 右端からの距離を調整（paddingを考慮） */
        top: 50%; /* 親要素の高さの中央に配置 */
        transform: translateY(-50%); /* 中央揃えのための調整 */
        height: auto; /* 高さを自動調整 */
        max-height: calc(100% - (30px * 2)); /* padding分を引いた高さに最大値を設定 */
        width: auto;
        object-fit: contain; /* アスペクト比を維持して収める */
    }
}