/* 新しいヒーローイメージビジュアル */
.main_visual_hero_image {
    position: relative;
    width: 100%;
    height: 70vh; /* ビューポートの高さの70% */
    min-height: 500px; /* 最小高さ */
    background-image: url('<?php echo get_template_directory_uri(); ?>/img/top/hero_bg_image.jpg'); /* 背景画像 */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main_visual_overlay_gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)); /* 左から右へのグラデーションオーバーレイ */
    z-index: 1;
}

.main_visual_content_hero {
    position: relative;
    z-index: 2;
    text-align: left; /* テキストを左寄せに */
    color: #fff;
    max-width: 900px; /* コンテンツの最大幅 */
    width: 100%;
    padding: 0 40px; /* 左右の余白を多めに */
}

.main_visual_h1_hero {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    overflow: hidden; /* アニメーションのために必要 */
}

.main_visual_h1_hero .word_animation_item {
    display: block; /* 各行をブロック要素にする */
    transform: translateY(100%);
    opacity: 0;
    animation: slideUpAndFadeIn 1s forwards ease-out;
    color: #fff;
}

.main_visual_h1_hero .word_animation_item:nth-child(2) {
    animation-delay: 0.3s; /* 2行目を少し遅らせてアニメーション */
}

@keyframes slideUpAndFadeIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.main_visual_subtext_hero {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.main_visual_cta_btn_hero {
    display: inline-block;
    padding: 18px 50px;
    background-color: #0073E6;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.main_visual_cta_btn_hero:hover {
    background-color: #005bb5;
    transform: translateY(-4px);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .main_visual_hero_image {
        height: 60vh;
        min-height: 400px;
    }
    .main_visual_content_hero {
        text-align: center; /* スマホでは中央寄せ */
        padding: 0 20px;
    }
    .main_visual_h1_hero {
        font-size: 44px;
    }
    .main_visual_subtext_hero {
        font-size: 18px;
    }
    .main_visual_cta_btn_hero {
        padding: 15px 35px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .main_visual_hero_image {
        height: 50vh;
        min-height: 350px;
    }
    .main_visual_h1_hero {
        font-size: 32px;
    }
    .main_visual_subtext_hero {
        font-size: 15px;
    }
    .main_visual_cta_btn_hero {
        padding: 12px 28px;
        font-size: 16px;
    }
}




.main_text {
    position: relative;
    z-index: 1;
}
.main_visual {
    position: relative;
    padding-top: 30vh;
    padding-bottom: 30vh;
}
#animated-text {
    font-size: 40px;
    min-height: 68px;
}
.char {
    opacity: 0;
    display: inline-block;
}
#sub-text {
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.main_img_wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
}
.main_img_row {
    justify-content: end;
    display: flex;
    margin-bottom: 20px;
}
.main_img_small_img {
    width: 20%;
    margin-left: 20px;
}
.slide_img {
    position: relative;
    overflow: hidden;
}
.slide_img::after {
    background-color: #0073E6;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    position: absolute;
    content: "";
    z-index: 1;
    animation: slideRight 1.5s ease-in-out forwards;
}
.slide_img.slide_right_first::after {
    animation-delay: 0.5s;
}
.slide_img.slide_right_second::after {
    animation-delay: 1s;
}
.slide_img.slide_right_third::after {
    animation-delay: 1.5s;
}
@keyframes slideRight {
    0% {
        left: -100%;
    }
    20% {
        width: 200%;
    }
    100% {
        left: 100%;
    }
}

.main_img_colomn {
    margin-left: 20px;
    width: 20%;
}
.main_img_big_img {
    width: 60%;
}
.main_img_colomn_small_img {
    width: 100%;
    margin-bottom: 20px;
}
.info_li {
    padding: 12px 0;
    border-bottom: 1px solid #0f0f0f;
    display: flex;
}
.info_date {
    margin-right: 12px;
}
.info_title {
    margin-right: 12px;
}



/* リンクボタン */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #005bb5;
}

.business_content {
    display: flex;
    justify-content: left;
    gap: 30px;
    flex-wrap: wrap;
}
.business_item {
    width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.business_item:hover {
    transform: scale(1.05);
}
.business_item h3 {
    font-size: 20px;
    color: #0073e6;
}
.business_item p {
    font-size: 14px;
    color: #555;
}
.price_table {
    display: flex;
    justify-content: left;
    gap: 30px;
    flex-wrap: wrap;
}
.price_item {
    width: 250px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}
.price_item:hover {
    transform: scale(1.05);
}
.price_item h3 {
    font-size: 20px;
    color: #0073e6;
}
.price_item p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* --- 料金プランプレビュー --- */
.price_preview_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* アイテム間の隙間 */
    justify-content: center; /* 中央寄せ */
}

.price_preview_item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px 25px;
    text-align: center;
    width: calc(33.33% - 20px); /* 3列表示でギャップを考慮 */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price_preview_item:hover {
    transform: translateY(-5px); /* ホバーで少し浮き上がる */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.price_preview_item h3 {
    font-size: 22px;
    color: #0073E6;
    margin-bottom: 10px;
    font-weight: bold;
}

.price_preview_item p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.price_preview_item ul {
    list-style: none; /* デフォルトのリストスタイルを無効化 */
    padding: 0;
    margin-top: 15px;
    text-align: left; /* リスト項目を左寄せ */
}

.price_preview_item ul li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px; /* チェックマークのためのスペース */
    position: relative;
    line-height: 1.5;
}

.price_preview_item ul li::before {
    content: "✓"; /* チェックマーク */
    color: #0073E6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- 会社概要プレビュー --- */
.company_preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* テキストと画像の間隔 */
}

.company_preview_text {
    width: 55%; /* テキストエリアの幅 */
}

.company_preview_text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.company_preview_img {
    width: 40%; /* 画像エリアの幅 */
    border-radius: 8px;
    overflow: hidden; /* 画像の角を丸める */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.company_preview_img img {
    display: block; /* 画像の余白をなくす */
    width: 100%;
    height: auto;
}

/* --- 全体的なボタンのスタイル (共通化を推奨) --- */
.btn {
    display: block;
    width: fit-content; /* テキストの幅に合わせる */
    margin: 60px auto 0; /* 中央寄せと上マージン */
    padding: 15px 40px;
    background-color: #0073E6;
    color: #fff;
    text-align: center;
    border-radius: 50px; /* 丸いボタン */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #005bb5;
    transform: translateY(-2px); /* ホバーで少し浮き上がる */
    color: #fff; /* ホバーで色が変わらないように固定 */
}


/* --- モバイル対応 (画面幅600px以下) --- */
@media screen and (max-width: 600px) {
    .business_content {
        justify-content: center;
        text-align: center;
    }
    /* 料金プランプレビュー */
    .price_preview_grid {
        flex-direction: column; /* 縦並びにする */
        gap: 25px; /* アイテム間の隙間 */
    }

    .price_preview_item {
        width: 95%; /* スマホの幅に合わせて調整 */
        max-width: 320px; /* 最大幅を設定して見やすく */
        padding: 25px 20px; /* パディング調整 */
        margin: 0 auto; /* 中央寄せ */
    }

    .price_preview_item h3 {
        font-size: 20px;
    }

    .price_preview_item p {
        font-size: 18px;
    }

    .price_preview_item ul li {
        font-size: 14px;
        margin-bottom: 5px;
    }

    /* 会社概要プレビュー */
    .company_preview {
        flex-direction: column; /* 画像とテキストを縦並びにする */
        gap: 30px; /* 縦方向の間隔 */
    }

    .company_preview_text {
        width: 100%; /* 幅を100%に */
        order: 2; /* テキストを画像の下に */
    }

    .company_preview_text p {
        font-size: 15px; /* フォントサイズを調整 */
        text-align: center; /* 中央寄せ */
    }

    .company_preview_img {
        width: 80%; /* 画像の幅を広げる */
        max-width: 300px; /* 最大幅 */
        order: 1; /* 画像をテキストの上に */
        margin: 0 auto; /* 中央寄せ */
    }

    /* 全体的なボタンのスタイル */
    .btn {
        width: 80%; /* ボタンを幅広くする */
        max-width: 250px; /* ボタンの最大幅 */
        font-size: 16px; /* フォントサイズ調整 */
        padding: 12px 20px; /* パディング調整 */
    }
}