.hero-section {
            position: relative;
                width: 100%;
                max-width: 1200px;
                height: 400px;
                margin: 0 auto;
                overflow: hidden;
                }

.video-background {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 100%;
                    height: 100%;
                    transform: translate(-50%, -50%);
                }
        
.video-background iframe {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 177.77777778vh;
                    /* 100 * 16/9 */
                    height: 56.25vw;
                    /* 100 * 9/16 */
                    min-width: 100%;
                    min-height: 100%;
                    transform: translate(-50%, -50%);
                }
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* 0.3は透明度を表し、値を大きくするとより暗くなります */
    pointer-events: none;
}
.history-content {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    z-index: 1;
                    color: white;
                    text-align: center;
                    width: 80%;
                }
        
.history-content h2 {
                    font-size: 2em;
                    margin-bottom: 15px;
                }
        
.history-content p {
                    font-size: 1em;
                    margin-bottom: 10px;
                }

.gallery {
                    display: grid;
                    grid-template-columns: repeat(4, 1fr);
                    gap: 10px;
                    padding: 20px;
                }
        
.gallery-item {
                    position: relative;
                    height: 200px;
                    background-color: #ddd;
                    overflow: hidden;
                }
        
.gallery-item img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    cursor: pointer;
                }
        
.gallery-item .overlay {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    background-color: rgba(0, 0, 0, 0.7);
                    overflow: hidden;
                    width: 100%;
                    height: 0;
                    transition: .5s ease;
                    pointer-events: none;
                    /* オーバーレイがクリックイベントを妨げないようにする */
                }
        
.gallery-item:hover .overlay {
                    height: 100%;
                }
        
.gallery-item .text {
                    color: white;
                    font-size: 20px;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    text-align: center;
                }

.about-content {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}
        
.about th,
.about td {
                    padding: 10px;
                    border: 1px solid #ddd;
                    text-align: left;
                }
        
.about th {
                    background-color: #f5f5f5;
                }

.company-message {
                    padding: 40px 20px;
                    background-color: #f9f9f9;
                }
        
.message-content {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                }
        
.company-image {
                    width: 40%;
                    max-width: 400px;
                    height: auto;
                    border-radius: 10px;
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
                }
        
.message-text {
                    width: 55%;
                    padding: 0 20px;
                }
        
.message-text h2 {
                    font-size: 2em;
                    margin-bottom: 15px;
                }
        
.message-text p {
                    font-size: 1em;
                    margin-bottom: 10px;
                }
/* SP表示用のスタイル */
@media (max-width: 768px) {
    .company-message {
            padding: 30px 15px;
            /* パディングを少し調整 */
        }
    .message-content {
        flex-direction: column;
    }

    .company-image {
        order: 2;
        max-width: 100%;
        /* 画像の最大幅を100%に設定 */
        width: 100%;
        /* 幅を100%に設定 */
        height: auto;
        /* 高さを自動調整 */
        margin-top: 20px;
    }

    .message-text {
        order: 1;
        width: 100%;
        /* テキストの幅を100%に設定 */
        max-width: 100%;
        /* 最大幅も100%に設定 */
        padding: 0;
        /* 余分なパディングを削除 */
    }

    .message-text h2 {
        font-size: 1.5em;
        /* 見出しのサイズを調整 */
        margin-bottom: 15px;
    }

    .message-text p {
        font-size: 1em;
        /* 本文のフォントサイズを調整 */
        line-height: 1.6;
        /* 行間を広げる */
        margin-bottom: 10px;
    }
    }
/* モーダルのスタイル */
.modal {
                    display: none;
                    /* 初期状態では非表示 */
                    position: fixed;
                    z-index: 1000;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    overflow: auto;
                    background-color: rgba(0, 0, 0, 0.8);
                }
        
.modal-content {
                    margin: 15% auto;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 80%;
                    max-width: 700px;
                }
        
.modal-content img {
                    width: 100%;
                    height: auto;
                }
        
                #caption {
                    margin-top: 20px;
                    color: #fff;
                    text-align: center;
                    font-size: 18px;
                }
        
.close {
                    position: absolute;
                    top: 15px;
                    right: 35px;
                    color: #fff;
                    font-size: 40px;
                    font-weight: bold;
                    cursor: pointer;
                }
/* デスクトップ用のホバーアニメーション */
@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover .overlay {
        opacity: 1;
    }
}
/* タッチデバイス（SP）用のスタイル */
@media (hover: none) {
    .gallery-item .overlay {
        opacity: 1;
        /* SPではオーバーレイを常に表示 */
    }
}

.cta-wrapper {
    background-color: #009688;
    padding: 40px 0;
}

.cta {
    background-color: #009688;
    color: #fff;
    text-align: center;
    width: 100%;
    /* 横幅を100%に設定 */
    max-width: none;
    /* 最大幅の制限を解除 */
    margin: 0 auto;
    /* 中央揃え */
    padding: 20px 20px;
    box-sizing: border-box;
    /* パディングを幅に含める */
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 0;
}

.cta a {
    display: inline-block;
    background-color: #fff;
    color: #009688;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.cta a:hover {
    background-color: #00796b;
    color: #fff;
}

/* SP表示用のスタイル */
@media (max-width: 768px) {
    .cta {
        padding: 15px 15px;
        /* スマートフォン表示時はさらに上下のパディングを減らす */
    }

    .cta h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
        /* スマートフォン表示時は少し狭める */
    }

    .cta p {
        font-size: 1em;
    }

    .cta a {
        padding: 12px 25px;
        /* スマートフォン表示時は少し小さくする */
    }
}

.googlemap {
    width: 100%;
}

.googlemap iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.about-content table {
    width: 100%;
    border-collapse: collapse;
}

.about-content th,
.about-content td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.about-content th {
    width: 30%;
    background-color: #f8f8f8;
}

.about-content td {
    width: 70%;
}

.about-content td p {
    margin: 0 0 5px 0;
}

.about-content td p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-content table {
        border: 1px solid #ddd;
    }

    .about-content tbody {
        display: block;
        width: 100%;
    }

    .about-content tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .about-content tr:last-child {
        border-bottom: none;
    }

    .about-content th,
    .about-content td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }

    .about-content th {
        padding: 10px 10px 5px;
        background-color: #f8f8f8;
        font-weight: bold;
    }

    .about-content td {
        padding: 5px 10px 10px;
    }
        
    .googlemap {
        width: 100%;
    }

    .googlemap iframe {
        height: 350px;
        /* SP表示時はマップの高さを少し小さくする */
    }
}