/* --- company.html専用 --- */

.hero-company-slider {
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    min-height: inherit;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    z-index: 10; 
}

.slide::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-company-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.slide .slide-title,
.slide .slide-subtitle,
.slide .slide-cta {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; 
}

.slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s; 
}

.slide.active .slide-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s; 
}


.hero-company-content h1.slide-title { 
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    color: #fff;
}

.hero-company-content p.slide-subtitle { 
    font-size: 1.2rem; 
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    color: #f0f0f0;
}

.hero-company-content .cta-button.slide-cta { 
    padding: 15px 45px;
    font-size: 1.2rem;
}

.slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; 
    display: flex;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active,
.dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}


/* --- レスポンシブ調整 --- */
@media (max-width: 767px) {
    .hero-company-slider {
        min-height: 65vh;
    }
    .hero-company-content h1.slide-title {
        font-size: 1.8rem; 
    }
    .hero-company-content p.slide-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .slide {
        padding: 40px 20px;
    }
    .slideshow-dots {
        bottom: 20px;
    }
    .dot {
        height: 10px;
        width: 10px;
    }
}

.hero-company {
    background-color: var(--primary-color, #007bff); 
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; 
    position: relative;
}
.hero-company::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.hero-company h1 {
    font-size: 2.8rem; 
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
.hero-company p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero-company .cta-button {
    padding: 15px 45px;
    font-size: 1.2rem;
}

/* --- コンテナ --- */
.container {
    max-width: 960px; 
    margin: 0 auto;
    padding: 0 20px; 
}

/* --- 私たちの想い --- */
.our-philosophy h2::after {
    background-color: var(--secondary-color); 
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.philosophy-item {
    text-align: center;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.philosophy-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.philosophy-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}
.philosophy-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.philosophy-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* --- 企業タイ --- */
.tie-up-service h2::after {
    background-color: var(--primary-color);
}
.service-points {
    margin-top: 50px;
}
.service-point-item {
    display: flex;
    align-items: flex-start; 
    gap: 25px;
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 5px solid var(--primary-color);
}
.service-point-item:nth-child(even) { 
    border-left-color: var(--secondary-color);
}
.service-point-item:nth-child(even) .service-point-icon-wrapper {
    background-color: var(--secondary-color);
}
.service-point-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.service-point-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.service-point-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* --- ご利用 --- */
.process-flow h2::after {
    background-color: var(--secondary-color);
}
.process-steps-company {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px; 
    margin-top: 50px;
}
.process-step-company {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    position: relative;
}
.step-number-company {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.7;
}
.step-icon-company {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; 
}
.process-step-company h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.process-step-company p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}
.process-arrow-company {
    font-size: 1.8rem;
    color: var(--secondary-color);
    padding: 10px 0;
}

/* --- メッセージ --- */
.message-from-us {
    background-color: #fff; 
}
.message-from-us h2::after {
    background-color: var(--primary-color);
}
.final-message {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}
.message-from-us .cta-button.large {
    padding: 18px 50px;
    font-size: 1.3rem;
    margin-top: 20px;
}

/* --- お問い合わせフォーム (企業向け) --- */
.contact-form-company-section h2 {
    margin-bottom: 20px;
}
.contact-form-company-section h2::after {
    background-color: var(--secondary-color);
}
.company-contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 35px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.company-contact-form .form-group label {
    font-weight: 600;
    color: #444;
}
.company-contact-form .submit-button {
    width: auto;
    min-width: 200px;
}

/* --- 改行 --- */
.pc-only { display: inline; }
.sp-only { display: none; }

/* --- レスポンシブ(全体) --- */
@media (max-width: 991px) { 
    .hero-company h1 { 
        font-size: 2.4rem;
    }
    .hero-company p {
        font-size: 1rem;
    }
    .service-point-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service-point-icon-wrapper {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) { 
    .hero-company { 
        min-height: 60vh;
        padding: 40px 20px;
    }
    .hero-company h1 {
        font-size: 2rem;
    }
    .hero-company p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .hero-company .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .philosophy-grid {
        gap: 25px;
    }
    .philosophy-item {
        padding: 25px 20px;
    }

    .service-point-item {
        padding: 20px;
        gap: 20px;
    }

    .process-steps-company {
        gap: 20px;
    }
    .process-step-company {
        padding: 25px;
    }
    .process-arrow-company {
        font-size: 1.6rem;
        padding: 8px 0;
    }

    .final-message {
        font-size: 1rem;
    }
    .message-from-us .cta-button.large {
        padding: 15px 40px;
        font-size: 1.15rem;
    }

    .company-contact-form {
        padding: 25px;
    }

    .pc-only { display: none; }
    .sp-only { display: inline; }
}

/* --- 私たちのスキル --- */
.our-skills h2::after {
    background-color: var(--primary-color);
}

.our-skills .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color-light, #555);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background-color: #fff;
    padding: 25px 20px; 
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.skill-content-default {
    display: flex;
    flex-direction: column; 
    height: 100%;     
    text-align: center;   
}

.skill-icon {
    font-size: 2.8rem;
    color: var(--secondary-color, #ff6b6b);
    margin-bottom: 15px;
    line-height: 1;
    min-height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.skill-icon img { 
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}


.skill-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-color, #333);
    margin-bottom: 8px;
}

.skill-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    min-height: 40px; 
    margin-bottom: 15px; 
}

.skill-image-large-container {
    width: 100%; 
    flex: 1;  
    display: flex; 
    align-items: center;
    justify-content: center;
    margin-top: auto; 
    min-height: 0; 
    box-sizing: border-box;
}

.skill-image-large-container img {
    display: block;
    max-width: 100%;    
    max-height: 100%;   
    object-fit: contain; 
    border-radius: 4px; 
}

@media (max-width: 991px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .skill-item {
        padding: 20px 15px;
    }
    .skill-icon { 
        font-size: 2.5rem;
    }
    .skill-name {
        font-size: 1.1rem;
    }
}


/* --- AI Chatbot --- */
#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-toggle-button {
    background-color: var(--primary-color, #007bff); 
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative; 
}

#chat-toggle-button:hover {
    background-color: var(--secondary-color, #ff6b6b); 
}

#chat-toggle-button .chat-tooltip {
    visibility: hidden;
    width: 180px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    right: 0%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
}

#chat-toggle-button:hover .chat-tooltip {
    visibility: visible;
    opacity: 1;
}

#chat-window {
    width: 350px;
    max-height: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px; 
    right: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#chat-window.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

#chat-header {
    background-color: var(--primary-color, #007bff);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

#chat-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    min-height: 200px;
    max-height: 350px; 
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message {
    background-color: var(--secondary-color, #ff6b6b);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.bot-message {
    background-color: #e9e9eb;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.bot-message strong {
    color: var(--primary-color, #007bff);
}

#chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    font-size: 0.95rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
}

#chat-send-button {
    background-color: var(--primary-color, #007bff);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#chat-send-button:hover {
    background-color: var(--secondary-color, #ff6b6b);
}

@media (max-width: 767px) {
    #chat-window {
        width: calc(100vw - 30px); 
        max-width: 330px;
        bottom: 70px; 
        right: -10px; 
    }
    #chat-toggle-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
    #chat-toggle-button .chat-tooltip {
        display: none; 
    }
    #chat-messages {
        max-height: 60vh;
    }
}
