.service-section {
    background-color: #f8f9fa;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.service-title-container {
    max-width: 1200px;
    margin: 80px auto 80px;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.service-title {
    position: relative;
    font-family: 'Futura Lt BT', sans-serif;
    line-height: 1;
    text-align: center;
}

.service-title .title-bg {
    font-size: clamp(60px, 10vw, 120px);
    color: #e9ecef;
    display: block;
    position: relative;
    z-index: 1;
}

.service-title .title-main {
    font-size: clamp(35px, 3vw, 24px);
    color: #034060;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
}

.service-title .title-bg span {
    display: inline-block;
    opacity: 0;
}

.service-subtitle {
    font-size: 1.5em; /* サイズを大きくする */
    color: #034060;
    text-align: center; /* 文字を中央に配置 */
}

@keyframes fadeInGradient {
    0% {
        opacity: 0;
        color: #ffffff;
    }
    50% {
        opacity: 0.5;
        color: #a8c5d6;
    }
    100% {
        opacity: 1;
        color: #e9ecef;
    }
}

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

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    max-width: 1000px;
}

.card {
    width: 45%;
    max-width: 400px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
}

.card-blue {
    background-color: #004a7c;
    color: #fff;
}

.card-white {
    background-color: #fff;
    color: #004a7c;
    border: 2px solid #004a7c;
}

@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 20px;
    }
}

.content {
    text-align: center;
    margin: 80px 0;
    padding: 40px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.content-main {
    font-size: 2.5rem;
    color: #034060;
    margin-bottom: 30px;
    line-height: 1.4;
}

.content-sub {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.5rem;
    color: #034060;
    font-weight: bold;
    margin-bottom: 20px;
}

.description-text {
    font-size: 1.1rem;
    color: #034060;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
    }

    .content-main {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 1.3rem;
    }

    .description-text {
        font-size: 1rem;
    }
}

.training-section {
    display: flex;
    align-items: stretch;
    margin: 80px 0;
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.training-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.training-image:hover img {
    transform: scale(1.05);
}

.training-info {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.training-info h3 {
    font-size: 2rem;
    color: #034060;
    margin-bottom: 20px;
}

.training-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.tools-section, .training-info-card, .course-container {
    max-width: 1200px; /* ここで最大幅を指定 */
    margin: 0 auto 80px; /* これで左右のマージンを自動で設定して中央揃え */
    padding: 0 20px; /* 左右に余白を設定 */
}

.tools-section {
    padding: 40px 20px;
}

.training-info-card {
    padding: 40px 20px;
}

.course-container {
    padding: 40px 20px;
    margin-bottom: 80px; /* 空白を追加 */
}

.tools-section h4, .training-info-card h4, .course-container .course-card .course-title {
    font-size: 1.8rem;
    color: #034060;
    margin-bottom: 30px;
    text-align: center;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tool-category {
    width: 48%;
    margin-bottom: 30px;
}

.tool-category h5 {
    font-size: 1.4rem;
    color: #034060;
    margin-bottom: 15px;
}

.tool-category ul {
    padding-left: 20px;
}

.tool-category li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.training-info-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.training-info-card th, .training-info-card td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.training-info-card th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #034060;
}

.training-info-card td {
    background-color: #fff;
}

.course-container {
    max-width: 1000px;
    margin: 80px auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.course-card {
    background-color: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px; /* 余白を追加 */
    padding: 20px; /* 内側の余白を追加 */
}

.course-content {
    padding: 25px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    color: #034060;
    font-weight: bold;
}

.tax {
    font-size: 0.8rem;
    font-weight: normal;
}

.course-features h5 {
    font-size: 1.1rem;
    color: #034060;
    margin-bottom: 20px;
    font-weight: bold;
}

.feature-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex: 1;
}

.feature-number {
    font-size: 2rem;
    font-weight: bold;
    color: #034060;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.course-description {
    font-size: 1rem;
    color: #034060;
    text-align: center;
    padding: 20px;
    background-color: #e6e6e6;
    font-weight: bold;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .course-info {
        flex-direction: column;
        align-items: center;
    }
    .info-item {
        margin-bottom: 15px;
    }
    .feature-list {
        flex-direction: column;
    }
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.details-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #004a7c;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
}

.details-button:hover {
    background-color: #003a62;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .training-section, .tools-list, .course-intro {
        flex-direction: column;
    }
    .training-image, .training-info, .tool-category, .course-card, .features-card {
        width: 100%;
    }
    .training-info, .tools-section, .training-info-card, .course-card, .features-card {
        padding: 30px;
    }
    .training-info h3, .tools-section h4, .training-info-card h4 {
        font-size: 1.6rem;
    }
    .tool-category h5 {
        font-size: 1.3rem;
    }
    .training-info p, .tool-category li, .course-card p, .features-card li {
        font-size: 1rem;
    }
    .video-container video {
        width: 100%;
        height: auto;
        max-width: 100%; /* これで動画の最大幅をコンテナに合わせます */
        border-radius: 10px; /* 必要に応じて角を丸める */
    }
}

.video-container {
    display: flex;
    justify-content: center; /* コンテンツを中央に配置 */
    align-items: center;
    margin: 40px 0; /* 上下に40pxのスペースを追加 */
}

.video-container video {
    max-width: 100%; /* コンテンツ幅を100%に制限 */
    width: 80%; /* デフォルトで画面の80%幅に設定 */
    height: auto;
    border-radius: 10px; /* 角を丸める（必要に応じて） */
}