/* 基本設定 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    margin: 20px 0;
    text-align: center;
}

p {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* ヘッダー */
.hero-section {
    height: 100vh;
    background: url('hero-background.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in;
}

/* ミッションセクション */
.mission {
    padding: 50px 20px;
    background: #f4f4f4;
}

/* 仕事内容セクション */
.jobs {
    padding: 50px 20px;
    background: #fff;
}

.job-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.job-card {
    flex: 1 1 30%;
    max-width: 300px;
    background: #3498db;
    color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
}

.job-card:hover {
    transform: scale(1.05);
}

/* 社員紹介セクション */
.testimonials {
    padding: 50px 20px;
    /*background: #f4f4f4;*/
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    min-width: 100%;
    box-sizing: border-box;
}
#t-slide01{
    background: #fbc3ff;
}
#t-slide02{
    background: #c3fcff;
}
#t-slide03{
    background: #ffdcdd;
}
#t-slide04{
    background: #fbdb94;
}
#t-slide05{
    background: #e1eafb;
}
#t-slide06{
    background: #d5edcd;
}
#t-slide07{
    background: #ffddfc;
}
#t-slide08{
    background: #fbecb8;
}
#t-slide09{
    background: #fbecb8;
}
#t-slide10{
    background: #fbecb8;
}
#t-slide11{
    background: #fbecb8;
}

/* 応募セクション */
.apply {
    padding: 50px 20px;
    background: #fff;
}

.apply-form {
    max-width: 640px;
    margin: auto;
}

.apply-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.apply-form input, .apply-form select, .apply-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.apply-form textarea {
    resize: vertical;
}

/* ローディング画面 */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
    opacity: 1;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ローディングアニメーション */
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ページのコンテンツが隠れるように初期設定 */
body.loading {
    overflow: hidden;
    visibility: hidden;
}

body.loaded .hero-section {
    animation: fadeIn 2s ease-in;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* メディアクエリ */
@media (max-width: 768px) {
    .job-cards {
        flex-direction: column;
        align-items: center;
    }

    .job-card {
        flex: 1 1 100%;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 動画 */
video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {
    padding-top: 56.25%;
}
#movies .movie {
    max-width: 1280px;
    margin: 0 auto 20px auto;
}
#movies .thn_post_wrap img {
    max-width: max-content!important;
}

/* 動画 スマホ向けスタイル */
@media screen and (max-width: 768px) {
    #movies .movie {
        max-width: 100%;
    }
}