#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ヒーローセクションを画面全体に */
    overflow: hidden;
}

.hero__video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero__content {
    position: absolute;
    z-index: 1;
    text-align: left;
    color: #fff;
    left: 60rem;
    top: 8rem;
    font-size: 4rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .hero__content {
        top: 15rem;
        left: 1rem;
        /* bottom: 1rem; */
        font-size: 1.5rem;
        /* padding: 1rem; */
    }
}

/* サービス セクション全体 */
.services {
    padding: 4rem;
    background-color: #f2f2f2;
}

@media (max-width: 768px) {
    .services {
        padding: 1rem;
    }
}

.services .section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

/* グリッドレイアウト */
.services__grid {
    display: flex;         /* フレックスレイアウトに変更 */
    flex-wrap: nowrap;     /* 1行に並べる（折り返さない） */
    overflow-x: auto;      /* 横スクロールを有効に */
    gap: 2rem;             /* カード間の間隔（必要に応じて調整） */
    padding-bottom: 1rem;   /* スクロールバー対策 */
}

/* サービスカードの基本スタイル */
.service-card {
    flex: 0 0 auto;        /* 縮小せず、固定幅として扱う */
    width: 300px;          /* 固定幅（必要に応じて調整） */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* 画像部分 */
.service-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* コンテンツ部分 */
.service-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* タイトルと説明 */
.service-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* 詳細ボタン */
.btn-service {
    align-self: flex-start;
    background-color: #1a73e8;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-service:hover {
    background-color: #1558b0;
}

/* カードのバリエーション */
/* Primary: 明るい背景 */
.service-card--primary .service-card__content {
    background-color: #ffffff;
}

/* Secondary: ややグレーがかった背景 */
.service-card--secondary .service-card__content {
    background-color: #f9f9f9;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {

    .service-card {
        width: 230px;
    }

    .services .section__title {
        font-size: 2rem;
    }

    .service-card__title {
        font-size: 1.5rem;
    }

    .service-card__desc {
        font-size: 0.9rem;
    }
}

/* 会社情報 セクション */
.company {
    background-color: #fff;
    padding: 4rem;
    color: #333;
}

.company .section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* コンテンツを左右に分割（PC版） */
.company__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

/* 企業概要エリア */
.company__overview {
    flex: 1 1 60%;
}

.company__name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a73e8;
    /* text-transform: uppercase; */
}

.company__description {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 詳細情報エリア */
.company__details {
    flex: 1 1 35%;
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.company__list {
    list-style: none;
}

.company__list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #555;
}

.company__list li strong {
    font-weight: bold;
    margin-right: 0.5rem;
    color: #333;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .company__content {
        flex-direction: column;
    }

    .company__overview,
    .company__details {
        flex: 1 1 100%;
    }

    .company__name {
        font-size: 1.75rem;
    }

    .company__description,
    .company__list li {
        font-size: 0.95rem;
    }

    .company {
        padding: 2rem;
    }
}

/* 採用情報 セクション */
.recruit {
    background-color: #f9f9f9;
    padding: 4rem 0;
    color: #333;
}

.recruit .section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 採用情報のイントロ */
.recruit__intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* 募集職種カードのグリッドレイアウト */
.recruit__positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding:1rem;
}

/* 募集職種カードの基本スタイル */
.position-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* カード内のタイトル */
.position-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a73e8;
    text-transform: uppercase;
}

/* カード内の説明 */
.position-card__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* 詳細ボタン */
.btn-recruit {
    background-color: #1a73e8;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-recruit:hover {
    background-color: #1558b0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recruit .section__title {
        font-size: 2rem;
    }

    .position-card__title {
        font-size: 1.5rem;
    }

    .position-card__desc {
        font-size: 0.95rem;
    }

    /*
    .recruit__positions {
        padding: 1rem;
    }
    */

    .recruit__intro {
        padding: 1rem;
    }
}

/* お問い合わせ セクション */
.contact {
    padding: 4rem 0;
    background-color: #f2f2f2;
    color: #333;
}

.contact .section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* フォーム全体のスタイル */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 各フォームグループ */
.contact__form .form-group {
    margin-bottom: 1.5rem;
}

.contact__form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact__form textarea {
    resize: vertical;
}

/* 必須項目のマーク */
.contact__form .required {
    color: red;
    margin-left: 0.2rem;
}

/* 送信ボタン */
.btn.btn-primary {
    display: inline-block;
    background-color: #1a73e8;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.btn-primary:hover {
    background-color: #1558b0;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .contact__form {
        padding: 1.5rem;
    }

    .contact .section__title {
        font-size: 2rem;
    }
}

/* iOSやAndroidのデフォルト再生ボタンを非表示にする */
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}