.underlayer-heading{
    display: none;
}

.cmn-cnt__main.--cmn-page{
    margin-top: 50px;
}

button{
    padding: 13px 17px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 3px;
}

button:hover{
    opacity: 0.6;
    transition: 0.3s;
}

.layout-ttl {
    display: none;
}
.layout__side {
    display: none;
}
.breadcrumb{
    margin-bottom: 20px;
}

.floating-button-content{
    display: none !important;
}
.floating-button-content02{
    display: none !important;
}

.top-image{
    display: none;
}

.chat-container{
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top:0px ;
}

.chat-header{
    background: #773537;
    color: white;
    padding: 11px;
    text-align: center;
    overflow: hidden;
}

h2.ai_title{
    margin: 30px 0 8px;
    color: white;
    font-size: 23px
}

@media (max-width: 1024px){
    h2.ai_title{
        margin: 0 0 10px;
    }
}
.chat-header{
    overflow: visible;
}

.chat-header p{
    font-size:12px;
}

@media (max-width: 737px){
    .chat-header p{
        font-size:10px;
    }
}
@media (max-width: 625px){
    .chat-header p{
        font-size:8px;
    }
}
@media (max-width: 514px){
    .chat-header p{
        font-size:5px;
    }
}


.history-box{
    display: flex; 
    position: relative;
}
.single-information .layout__main__inner {
    max-width: 1024px;
}
.video-box{
    position: relative;
    width: 100%;/*400px;*/
    height: calc(98vh - 280px);/*440px;*//*400px;*/
    margin: 0;/*30px;*/
    overflow: hidden;
}

.video-box video{
    position: absolute;
    top: 0%;
    left:-34%;
    width: 183%;
    height: auto;
}

.chat-box{
    width: 100%;
    height: calc(98vh - 280px);/*440px;*/
    overflow-y: auto;
    padding: 15px;
    background-color: white;
}

.chat-message{
    margin: 20px 5px 35px;
    padding: 25px 23px 21px;
    border-radius: 10px;
    max-width: 85%;
    clear: both;
}

.chat-message.bot{
    background-color:#eeeeee;
    margin-right: auto;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    backdrop-filter: blur(5px);
    font-family:'Shippori Mincho B1';
    font-size: 1.556rem;
}

.chat-message.bot::before{
    content: "喜多こころ";
    position: absolute;
    top: -18px;
    left: 0;
    display: inline-block;
    padding: 5px 20px;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    background: #773537;
    border-radius: 13px;
    white-space: nowrap;
    font-family: 'Shippori Mincho B1';
}

.chat-message.user{
    background-color:#773537;
    text-align: left;
    font-weight: 400;
    color: white;
    font-family:'Shippori Mincho B1';
    padding: 14px 20px;
    margin: 25px 5px 50px;
    margin-left: auto;
}

.chat-input{
    /*isplay: flex;
    background-color: #e6e6e6;
    border-top: 1px solid #ddd;
    border-radius: 0 0 10px 10px;*/
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    gap: 15px;
    /*padding: 0px 5px;
    border-radius: 20px;    
    margin-top: 10px;*/
}

.chat-area{
    background: #eeeeee;
    border-radius: 7px;
    display: flex;
    align-items: center;
    width: 50vw;
    width: calc(100% - 320px);
    margin: 0px 10px;
    margin: 15px 10px 15px 15px;
    height: 54px;
}
@media (max-width: 767px){
    .chat-area{
        width: 83vw;
    }
}

#returnButton{
    background-color: #e5e5e5;
    color: #4f3536;
    font-family: 'Shippori Mincho B1';
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 3px;
    margin-right: 10px;
    height: 54px;
}
@media (max-width: 767px){
    #returnButton{
        padding: 5px 40px;
        height: 38px;
    }   
}
@media (max-width: 480px){
    #returnButton{
        padding: 5px 25px;
        font-size: 12px;
    }   
}

#returnButton img{
    width: 16px;
}

#pauseButton{
    background-color: #e5e5e5;
    color: #4f3536;
    font-family: 'Shippori Mincho B1';
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 3px;
    height: 54px;
}
@media (max-width: 767px){
    #pauseButton{
        padding: 5px 40px;
        height: 35px;
        height: 38px;
    }   
}
@media (max-width: 480px){
    #pauseButton{
        padding: 5px 25px;
        font-size: 12px;
    }   
}

#pauseButton img{
    width: 19px;
}

.chat-input #micButton{
    border: none;
    cursor: pointer;
    margin-right: 2px;
    padding-top: 15px;
    height: 54px;
}

.chat-input #micButton img{
    width: 20px;
}

#user-input{
    flex: 1;
    padding: 6px 10px 2px 3px;
    border: none;
    border-right: 1px solid #ddd;
    overflow-y: scroll;
    resize: none;
    background-color: #eeeeee;
    height: 54px;
    font-weight: 400;
    max-height: 54px;
}
#user-input::placeholder{
	color:#bbb;
}
#user-input:disabled{
    background-color:#e6e6e6 ;
}
#user-input:disabled::placeholder{
   font-size:0;
}

.modal{
    display: none;
    position: fixed;
    z-index: 8888;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden !important;
    /*animation: fadeIn 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards;*/
}

.modal-content{
    background-color: #fefefe;
    margin: 180px auto;
    padding: 19px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 5px;
    font-family:'Shippori Mincho B1';
}

.modal-content p.modal-title{
	text-align: center;
	font-weight: bold;
    font-size: 16px;
}

.modal-content p{
    margin: 16px 0px;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.05em;
    line-height: 1.5em;
}
.modal-content .modal-text-point{
    background: #f5f5f5;
    border: solid #eaeaea 1px;
    padding: 12px;
}
.modal-content .modal-img01_sp{
    margin:10px auto;
    display: none;
}
.modal-content .modal-img01_pc{
    margin:10px auto;
}
.close{
    color: #aaa;
    float: right;
    font-size: 18px;
    font-weight: bold;
}

.modal-buttons{
    display: flex;
    justify-content: center;
    margin: 20px auto;
    width: 60%;
    gap: 15px;
}

#closeModalBtn{
    background-color:#9b9a9a;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#closeModalBtn:hover{
    opacity:0.6;
    transition: 0.6s;
}

.modal{
    display: none;
    position: fixed;
    /*z-index: 1;*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.close{
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.close:hover, .close:focus{
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-show{
    display: block;
}


#job_interview{
    width: 100%;
    max-width: 1360px;
    margin: 50px auto;
    padding: 0 calc(min(40px, calc(40 / 12.8* 1vw)));
    margin-bottom: min(6rem, calc(60 / 12.4 * 1vw));
}

#startBtn{
    background: #773537;
    color: white;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
}

/*#startBtn:hover{
    opacity:0.6;
    transition: 0.3s;
}*/

#sendButton{
    border-radius: 0 9px 9px 0;
    padding: 16px 19px;
    height: 54px;
}

#sendButton:disabled {	
    background: #e6e6e6;
    cursor: not-allowed;	
}

#sendButton img{
    height: 20px;
    width: auto;
}
@media (max-width: 390px){
    #sendButton img{
        height: 18px;
    }
}

@media (max-width:1200px){
.video-box video {
    left: -50%;
    width: 215%;
}
}

@media (max-width:1024px){
    .cta-floating{
        display: none;
    }
    .chat-message.bot{
        background-color: rgba(241, 241, 241, 0.85);
        font-size: 1.4rem !important;
        line-height: 1.5em !important;
        color:#333;
    }
    .chat-message.user{
        background-color: gray;
        font-size: 1.6rem;
        line-height: 2em;
    }
    #job_interview{
        padding: 0 4%;
    }
    .chat-container{
        width: 100%;
        margin: 0;
        height: 73vh;
        display: flex;
        flex-direction: column;
        max-height: 800px;/*563px;*/
    }
    .history-box{
        /*flex-direction: column;*/
        display: flex;
        flex-direction: row;
        height: calc(82vh - 60px);
        position: relative;
    }
    .video-box{
        overflow: hidden;
        width: 100%;
        height: 100%;
        margin: 0;
        position: relative;
    }
    .video-box video{
        top:0%;/
    }
    .video-box video{
    left: -56%;
    width: 230%;
    height: auto;
    }
    .chat-box{
        width: 100%;
        height: 40vh;
        position:relative
        /*bottom: 0;
        left: 0;*/
        background-color: rgba(255, 255, 255, 0);
        overflow-y: auto;
        max-height: 400px;
    }
    #user-input{
        font-size: 16px;
        line-height: 20px;
    }
    #sendButton{
        padding-right: 17px;
    }
}
@media (max-width: 820px){
    .history-box{
        flex-direction: column;
        height: calc(82vh - 60px);
        position: relative;
    }
    .video-box{
        width: 100%;
        height: 45%;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }
    .video-box video {
        top: 0%;
    }
    .video-box video{
        left: 0%;
        width: 105%;
    }
    .chat-box{
        width: 100%;
        height: 30vh;
        position: relative;
        bottom: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0);
        overflow-y: auto;
        /*max-height: 231px;*/
    }
    .chat-message.bot{
        background-color: rgba(241, 241, 241, 0.85);
        font-size: 1.4rem !important;
        line-height: 1.5em !important;
    }
    .chat-message.bot::before{
        top: -9px;
        padding: 5px 13px;
        font-size: 13px;
    }
}
@media (max-width:767px){
    .layout__main__inner{
        display: block;
        box-sizing: border-box;
    }
    .cta-floating{
        display: none;
    }
    .layout__side {
        display: none;
    }
    .footer__top{
        display: none;
    }
    .footer{
        display: none;
    }
    .breadcrumb{
        margin-bottom:0px;
    }
    .modal-content{
        position: absolute;
        top: 1%; 
    }
    .modal-buttons{
        width: 86%;
    }
    .modal-show{
        display: flex ;
        position: fixed;
        justify-content: center;
        align-items: center;
    }
    h2.ai_title{
        margin: 4px;
        font-size: 15px;
    }
    .chat-container{
        width: 100%;
        margin: 0;
        height: 88vh;
        display: flex;
        flex-direction: column;
        /*max-height: 563px;*/
    }
    .chat-header{
        width: 100%;
        padding: 9px;

    }
    .chat-message.user{
        background-color:#0a4883;
        font-size: 1.4rem !important;
        line-height: 1.5em !important;
        margin: 6px 0 6px auto;
    }
    .chat-input{
        width: 100%;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        background-color: #ffffff;
        border-top: 1px solid #ddd;
        gap: 0;
    }
    .stop-button{
        margin-bottom: 15px;
    }
    .modal-show{
        display: flex;
        position: fixed;
        justify-content: center;
        align-items: center;
    }
    .layout-ttl{
        display: none;
    }
    #user-input{
        background-color:#eeeeee;
        font-size:16px;
        line-height: 1.2em;
    }
    #user-input:disabled{
        background-color:#e6e6e6;
    }
    #job_interview{
        margin-top: min(8rem, calc(80/7.5*1vw));
        margin-bottom: min(8rem, calc(80/7.5*1vw));
        width:auto;
        padding: 0 4%;
    }
    #closeModalBtn{
        height: 54px;
        font-size: 15px;
    }
    #startBtn{
        font-size: 15px;
        height: 54px;
    }
    #sendButton{
        padding-right: 17px;
    }
    #micButton{
        margin-right: 1px;
        padding-left: 17px;
        padding-bottom: 7px;
    }
}
@media (max-width:585px){
    #user-input{
        padding: 9px 10px 2px;
    }

}

@media (max-width:520px){
    .modal-content{
        top: -15%;
        max-width: 350px;
    }
}

@media (max-width:480px){

    .modal-content .modal-img01_sp{
       display: block;
        
    }
    .modal-content .modal-img01_pc{
        display: none;
    }
    .chat-message.bot{
        padding: 25px 13px 21px;
    }
    .chat-box{
        height: 33vh;
    }
}

@media (max-width:390px){
    .modal-content{
        top: -9%;
        max-width: 335px;
    }
    .modal-buttons {
      gap: 10px;
    }
    .modal-buttons button {
      padding: 15px 12px !important;
    }
    #user-input{
        padding: 10px 0px;
        font-size: 14px;
    }
    button{
        padding: 13px 16px;
    }
    #micButton{
        padding-left: 15px;
    }
    #sendButton{
        padding: 14px;
    }
}



@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


#talk_stop {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
}

.start-session{
    flex-direction: column;
    position: fixed;
    z-index: 9999;
    left: 0;
    bottom: 0;
    top: 8%;
    width: 100%;
    /*height: 100%;*/
    overflow-y: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    transition: opacity 0.3s ease; 
    scrollbar-width: none;
}

/*2024.11.25 ポップアップ追加*/
.popup {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    z-index: 9999;
}

.popup2{
    width: 100%;
    height: 50%;
    /*overflow: auto;*/
    display: flex;
    justify-content: center; 
    z-index: 9999;
}

@media (max-width: 820px){
    .popup2{
        height: 31%;
    }
}


.popup-content {
    font-family: 'Shippori Mincho B1' !important;
    position: relative;
    width: 100%;
    max-width: 500px;
    width: 496px;
    height: 490px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    border: solid 1px #79554866;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background-image: url('/js/job_interview/img/job_interview-popup-text.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    box-sizing: content-box;
}

.popup-content2{
    font-family: 'Shippori Mincho B1' !important;
    position: relative;
    width: 100%;
    max-width: 500px;
    width: 500px;
    max-height: 133px;
   /* height: 133px;*/
    aspect-ratio: 497 / 134;
    box-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background-image: url(/js/job_interview/img/job_interview-popup2_back.jpg); 
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    transition: background-size 0.3s cubic-bezier(0.34, 0.34, 0.34, 0.34);
    background-size: 100% auto;
    box-sizing: content-box;
}
/*.popup-content2:hover {
    transform:scale(1.2,1.2);
    transition:1s all;
  }*/


@media (max-width: 520px){
    .popup-content2{
    /*background-size: contain;*/    
    max-width: 350px;
    max-height: 92px;
    }
}
@media (max-width: 380px){
    .popup-content2{
    max-width: 320px;
    max-height: 85px;
    }
}


.first_choose_button{
    background-color: #1f2b51;
    position: absolute;
    top: 29%;
    left: 43%;
    padding: 15px 43px;
}
@media (max-width: 520px){
    .first_choose_button{
        padding: 10px 17px;
        font-size: 13px;
    } 
}

.popup-content2:hover button#switchPersonButton {
    opacity: 1.0;
    background-color:#434961 ;
    transition: 0.3s !important;
  }

button#switchPersonButton::before{
    position: absolute;
    width: 100%;
    top: 27%;
    left: 0;
    transition: all 0.5s ease;
    color: #fff;
    transform: translateY(100%);
    opacity: 0;
    font-family: 'Shippori Mincho B1';
}

button#switchPersonButton::after{
    position: absolute;
    width: 100%;
    top: 25%;
    left: 0;
    transform: translateY(0);
    opacity: 0;
    transition: all 0.5s ease;
    color: #fff;
    font-family: 'Shippori Mincho B1';
}

/*#job_interview[data-person="kokoro"] button#switchPersonButton::before {
    content: "北陸ゆたかに相談する";
  }
#job_interview[data-person="yutaka"] button#switchPersonButton::before {
    content: "喜多こころに相談する";
  }

#job_interview[data-person="kokoro"] button#switchPersonButton::after {
    content: "北陸ゆたかに相談する";
  }
#job_interview[data-person="yutaka"] button#switchPersonButton::after {
    content: "喜多こころに相談する";
  }

.popup-content2:hover .first_choose_button::before {
    animation: slideDown 0.4s forwards;
}

.popup-content2:hover .first_choose_button::after {
    animation: slideUp 0.4s forwards;
}*/

.popup_button{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
}
/*@media (max-width: 1884px){
    .popup_button{
        top: 86%;
    }
}
@media (max-width: 520px){
    .popup_button{
        top: 74%;
    }
}
@media (max-width: 380px){
    .popup_button{
        top: 82%;
    }
}*/

.button-content{
    position: relative;
    width: 100%;
    border-radius: 10px;
    text-align: center;
}

.back_button{
    background-color: white;
    color: #555555;
    font-family: 'Shippori Mincho B1';
    padding: 9px 80px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 9px;
}

.back_button:hover{
    background-color: #cfcfcf;
}

.inline-logo{
    vertical-align: -0.5em;
}

/*@media (max-width: 1024px) {
    .popup-content {
        margin: 70px auto;
    }
}*/

@media (max-width: 520px) {
    .popup-content {
        max-width: 350px;
        max-height: 375px;
        /*margin: 24vw auto;*/
    }

    .popup-text1 {
        line-height: 1.7;
    }

    .inline-logo {
        width: 39%;
    }
}

@media (max-width: 380px) {
    .popup-content {
        /*margin: 14vw auto;*/
        max-width: 320px;
        max-height: 370px;
    }
}

.popup-wrapper {
    position: absolute;
    top: 45%;
    left: 11.5%;
    z-index: 2;
}

@media (max-width: 520px) {
    .popup-wrapper {
        top: 37%;
        left: 0%;
        right: 0%;
    }
}

@media (max-width: 380px) {
    .popup-wrapper {
        left: 0;
        right: 0;
    }
}

.popup-Textimg img {
    width: 65%;
}



.popup-Aiimg {
    width: 38%;
    display: block;
    margin: 10px auto 0;
}

.popup-backimg_sp {
    display: none;
}

@media (max-width: 520px) {
    .popup-backimg_cp {
        display: none;
    }

    .popup-backimg_sp {
        display: block;
        position: absolute;
        top: -2%;
    }
}

.popup-text1 {
    font-size: 16px;
    line-height: 2.0;
    color: #4c3725;
    margin: 20px auto;
    font-weight: 700;
    font-family: 'Shippori Mincho B1';
}

@media (max-width: 520px) {
    .popup-text1 {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .popup-text1 {
        font-size: 13px;
    }
}

.button-box{
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#firstContact,#switchPersonButton,#returnButton,#pauseButton,#sendButton,#closeModalBtn,#startBtn,.btn-ok,.btn-cancel{
    transition: 0.3s;
}

button#firstContact:hover{
    /*color: transparent;*/
    background-color:rgb(150 77 79);
    opacity: 1;
}

/*button#firstContact:hover::before{
    animation: slideDown 0.4s forwards;
}

button#firstContact:hover::after{
    animation: slideUp 0.4s forwards;
}*/

button#firstContact {
    display: inline-block;
    padding: 13px 150px;
    background: #773537;
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 17px;
    cursor: pointer;
    letter-spacing: 4px;
}

/*button#firstContact::before{
    content: attr(data-text);
    position: absolute;
    width: 100%;
    top: 25%;
    left: 0;
    transition: all 0.5s ease;
    color: #fff;
    transform: translateY(100%);
    opacity: 0;
    font-family: 'Shippori Mincho B1';
    pointer-events: none; 
}

button#firstContact::after{
    content: attr(data-text);
    position: absolute;
    width: 100%;
    top: 25%;
    left: 0;
    transform: translateY(0);
    opacity: 0;
    transition: all 0.5s ease;
    color: #fff;
    font-family: 'Shippori Mincho B1';
    pointer-events: none;  
}*/




@media (max-width: 520px) {
    button#firstContact {
        padding: 15px 85px;
    }
}

@media (max-width: 380px) {
    button#firstContact {
        font-size: 14px;
    }
}

.popup-text2 {
    font-size: 15px;
    color: #45301d;
    margin-top: 15px;
    font-weight: 700;
    background-color: white;
    padding: 10px 40px 15px;
    font-family: 'Shippori Mincho B1';
}

@media (max-width: 520px) {
    .popup-text2 {
        font-size: 12px;
        padding: 10px 10px 15px;
        margin-top: 9px;
        font-weight: 500;
    }
}

.speech-bubble{
    position: absolute;
    top: 15%;
    right: 22%;
    z-index: 2;
    width: 20%;
}
@media (max-width: 520px){
    .speech-bubble{
        top:17%;
        left: 60%;
    }
}

.modal-content{
    border-radius: 10px;
}

button{
    border-radius:9px;
}


    /* loader-overlay：グレーの透明グラデーション背景とフェード用の transition */
    .loader-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(128,128,128,0.6), rgba(128,128,128,0.8));
      animation: backgroundFlow 10s ease infinite;
      z-index: 1000;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 1;                   /* 初期状態は表示 */
      transition: opacity 1.0s ease; /* 1.0秒でフェード */
      pointer-events: none;
    }
    @keyframes backgroundFlow {
      0% {
        background: linear-gradient(135deg, rgba(128,128,128,0.6), rgba(128,128,128,0.8));
      }
      50% {
        background: linear-gradient(135deg, rgba(128,128,128,0.8), rgba(128,128,128,0.6));
      }
      100% {
        background: linear-gradient(135deg, rgba(128,128,128,0.6), rgba(128,128,128,0.8));
      }
    }
    
    /* ローダー部分：グラデーション付き Blob アニメーション（ベースカラー #0a4883） */
    .loader-animation {
      /*width: 120px;
      height: 120px;*/
      width: 240px;
      height: 240px;
      background: #773537;
      border-radius: 50%;
      animation: blob 2s ease-in-out infinite;
    }
    @keyframes blob {
      0% {
        border-radius: 50%;
        transform: scale(1) translate(0, 0);
      }
      25% {
        border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
        transform: scale(1.1) translate(5px, -5px);
      }
      50% {
        border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
        transform: scale(0.9) translate(-5px, 5px);
      }
      75% {
        border-radius: 55% 45% 65% 35% / 45% 55% 35% 65%;
        transform: scale(1.07) translate(5px, 5px);
      }
      100% {
        border-radius: 50%;
        transform: scale(1) translate(0, 0);
      }
    }
    
    /* hidden クラス：opacity を 0 に変更してフェードアウト */
    .loader-overlay.hidden {
      opacity: 0;
    }


    /* ローディングテキストのスタイル */
    .loader-text {
      position: absolute;  /* ローダー内で絶対位置 */
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
      font-size: 24px;
      color: #ffffff;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
      pointer-events: none;  /* テキストが操作を妨げないように */
      animation: textPulse 2s ease-in-out infinite;
    }
    @keyframes textPulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
    }

.disclaimer{
    margin-top: 20px;
    font-size: 12px;
    color: #4c4c4c !important;
}



#micButton.mic_active  {
  position: relative;
  cursor: pointer;
  display: block;
}

#micButton.mic_active::before, #micButton.mic_active::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border: 1px solid #1da1f2;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  animation: pulsate 2s linear infinite;
}

#micButton.mic_active::after {
  animation-delay: 1s;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  /* 旧 .modal-content → 新 .warn-return-content */
  .warn-return-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 524px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
  }

  .warn-return-content h3{
    margin: 20px 0 10px;
    font-weight: bold;
    font-family: 'Shippori Mincho B1';
  }

  .warn-return-content p{
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    font-family: 'Shippori Mincho B1';
  }

#warnReturnModal button{
    padding: 8px 32px;
}
  
  .modal-close {
    position: absolute;
    top: 10px; right: 10px;
    cursor: pointer;
    font-size: 1.2em;
  }
  .modal-buttons2 {
    display: flex;
    justify-content: center;
    font-size: 14px !important;
    margin: 20px auto;
    width: 60%;
    gap: 15px;
  }
  @media (max-width: 767px){
   .modal-buttons2{
    width: 86%;
   } 
  }
  @media (max-width: 390px){
    .modal-buttons2{
     gap: 10px;
    } 
    .modal-buttons2 button{
        padding: 8px 25px !important;
    }
   }
  .btn-cancel, .btn-ok {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }


/*終了ボタン後のポップアップ*/
  .confirm-end-modal {
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
  }
  .confirm-end-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 524px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
  }
  .close-confirm {
    position: absolute; 
    top: 2px; 
    right: 13px;
    font-size: 22px; 
    cursor: pointer;
  }
  .confirm-end-content h3 {
    margin: 20px 0 10px;
    font-weight: bold;
  }
  .confirm-end-content p {
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
  }
  .confirm-buttons {
    display: flex; 
    justify-content: center;
    margin: 20px auto;
    width: 60%;
    gap: 15px;
  }
  @media (max-width: 490px){
    .confirm-buttons{
        width: 90%;
    }
  }
  .confirm-buttons .btn-cancel,
  .confirm-buttons .btn-ok {
    padding: 8px 25px;
    border: none; 
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }
  .btn-cancel {
    background: #888;
    color: #fff;
  }
  .btn-ok {
   background: #773537; 
    color: #fff;
  }

  .start-session.dialog-started {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 1 !important;
    display: none !important;
}

/* 完全に除去されたことを示すクラス */
.start-session.completely-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

  /* ———— 背景画像の切り替え ———— */
/* 1）popup-content（１番目のポップアップ） */
#job_interview[data-person="kokoro"] .popup-content {
    background-image: url('/js/job_interview/img/kokoro_popup_text.jpg') !important;
  }
  #job_interview[data-person="yutaka"] .popup-content {
    background-image: url('/js/job_interview/img/yutaka_popup_text.jpg') !important;
  }
  
  /* 2）popup-content2（２番目のポップアップ） */
  #job_interview[data-person="yutaka"] .popup-content2 {
    background-image: url('/js/job_interview/img/kokoro_popup2_back.jpg') !important;
  }
  #job_interview[data-person="kokoro"] .popup-content2 {
    background-image: url('/js/job_interview/img/yutaka_popup2_back.jpg') !important;
  }
  
  /* ① ヘッダーの背景色 */
#job_interview[data-person="kokoro"] .chat-header {
    background-color: /* こころ版カラー */ #773537;
  }
  #job_interview[data-person="yutaka"] .chat-header {
    background-color: /* ゆたか版カラー */ #1f2b51;
  }
  
  /* ② ユーザーバブルの背景色 */
  #job_interview[data-person="kokoro"] .chat-message.user {
    background-color: #773537;
  }
  #job_interview[data-person="yutaka"] .chat-message.user {
    background-color: #1f2b51;
  }
  
  .chat-message.bot {
    position: relative;
  }

  /* 名前と背景色を属性セレクタで上書き */
  #job_interview[data-person="kokoro"] .chat-message.bot::before {
    content: "喜多こころ";
    background-color: #773537;
  }
  #job_interview[data-person="yutaka"] .chat-message.bot::before {
    content: "北陸ゆたか";
    background-color:  #1f2b51;
  }

    /* 相談するボタンの色 */
  #job_interview[data-person="yutaka"] #firstContact  {
    background-color:  #1f2b51;
  }
    #job_interview[data-person="yutaka"] #firstContact:hover  {
    background-color: #434961;
    transition: 0.3s;
  }

  /*こころさんに相談するボタンの色*/
    #job_interview[data-person="yutaka"] #switchPersonButton  {
    background-color:  #773537;
  }
    #job_interview[data-person="yutaka"] #switchPersonButton:hover  {
    background-color: rgb(150 77 79);
    transition: 0.3s;
  }
  
  /* ④ startBtn の背景色 */
  #job_interview[data-person="kokoro"] #startBtn {
    background-color:#773537;
  }
  #job_interview[data-person="yutaka"] #startBtn {
    background-color: #1f2b51;
  }

    /* ④ startBtn のホバー時の背景色 */
  #job_interview[data-person="kokoro"] #startBtn:hover {
    background-color: rgb(150 77 79);
    opacity: 1;
  }
  #job_interview[data-person="yutaka"] #startBtn:hover {
    opacity: 1.0;
    background-color: #434961;

  }
  
/* ⑤ 送信ボタン #sendButton の背景色 */
#job_interview[data-person="kokoro"] #sendButton {
    background-color:  #773537;
  }
  #job_interview[data-person="yutaka"] #sendButton {
    background-color:#1f2b51;
  }

  #job_interview[data-person="kokoro"] #sendButton:disabled {
    background: #e6e6e6;
    cursor: not-allowed;
  }
  
  /* Yutaka版 */
  #job_interview[data-person="yutaka"] #sendButton:disabled {
    background: #e6e6e6;
    cursor: not-allowed;
  }

  #job_interview[data-person="kokoro"] #sendButton {
    background-color: /* こころ版送信ボタン */ #773537;
  }
  #job_interview[data-person="yutaka"] #sendButton {
    background-color: /* ゆたか版送信ボタン */ #1f2b51;
  }

  /* こころ版 */
#warnReturnModal[data-person="kokoro"] .btn-ok,
#confirmEndModal[data-person="kokoro"] .btn-ok {
  background: #773537 !important;
}
/* ゆたか版 */
#warnReturnModal[data-person="yutaka"] .btn-ok,
#confirmEndModal[data-person="yutaka"] .btn-ok {
  background: #1f2b51 !important;
}

.loader-animation[data-person="kokoro"]{
background: #773537;
}

.loader-animation[data-person="yutaka"]{
background: #1f2b51;
}
  
/*Footer以下非表示*/
.fr-entry,
.ft-menu,
.ft-sns,
.ft-co,
.ft-breadcrumb, 
.cmn-entry{
    display: none !important;
}

.ft {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
}

.ft-name {
    text-align: center !important;
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
}

.ft__wrap {
    display: block !important;
    gap: 3rem 0 !important;
    grid-template: none !important;
}

.ft-copy{
    padding-block: min(6rem, calc(60 / 12.4 * 1vw)) !important;
}