/* ==========================
    横スクロールアニメーション
========================== */
.scroll-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    margin-bottom: 60px;
	pointer-events: none;
}

.scroll-content {
    display: flex;
    animation: scroll 70s linear infinite;
}

.group-content .scroll-container .scroll-content {
    animation: scroll 20s linear infinite;
}

.item {
    flex: 0 0 auto;
    width: 45vw;
    height: 22vw; /* お好みの高さに調整 */
    /* margin: 0 10px; 左右の余白はここを調整 */
}

.item img {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 1600px) {
    .item {
        width: 42vw;
        height: 20vw;
    }
}

@media screen and (max-width: 1300px) {
    .item {
        width: 45vw;
        height: 22vw;
    }
}

@media screen and (max-width: 1150px) {
    .item {
        width: 50vw;
        height: 26vw;
    }
}

@media screen and (max-width: 940px) {
    .item {
        width: 100vw;
        height: 48vw;
    }
}

@media screen and (max-width: 750px) {
    .item {
        width: 85vw;
        height: 42vw;
    }
}

@media screen and (max-width: 650px) {
    .item {
        width: 90vw;
        height: 44vw;
    }
}

@media screen and (max-width: 550px) {
    .item {
        height: 50vw;
    }
}

/* ==========================
    フェードイン（下から上）アニメーション
========================== */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 表示されたときの状態 */
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
    フェードイン（右から左）アニメーション
========================== */
.fade-right {
    opacity: 0;
    transform: translateX(60px); /* 右側からスタート */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 表示されたときの状態 */
.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================
    フェードイン（左から右）アニメーション
========================== */
.fade-left {
    opacity: 0;
    transform: translateX(-60px); /* 左側からスタート */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 表示されたときの状態 */
.fade-left.show {
    opacity: 1;
    transform: translateX(0);
}


.fade-up:nth-child(1) {
    transition-delay: 0s;
}
.fade-up:nth-child(2) {
    transition-delay: 0.1s;
}
.fade-up:nth-child(3) {
    transition-delay: 0.2s;
}
.fade-up:nth-child(4) {
    transition-delay: 0.3s;
}
.fade-up:nth-child(5) {
    transition-delay: 0.4s;
}
.fade-up:nth-child(6) {
    transition-delay: 0.5s;
}
.fade-up:nth-child(7) {
    transition-delay: 0.6s;
}
.fade-up:nth-child(8) {
    transition-delay: 0.7s;
}
.fade-up:nth-child(9) {
    transition-delay: 0.8s;
}
.fade-up:nth-child(10) {
    transition-delay: 0.9s;
}
.fade-up:nth-child(11) {
    transition-delay: 1.0s;
}
.fade-up:nth-child(12) {
    transition-delay: 1.1s;
}
.fade-up:nth-child(13) {
    transition-delay: 1.2s;
}
.fade-up:nth-child(14) {
    transition-delay: 1.3s;
}
.fade-up:nth-child(15) {
    transition-delay: 1.4s;
}
.fade-up:nth-child(16) {
    transition-delay: 1.5s;
}
.fade-up:nth-child(17) {
    transition-delay: 1.6s;
}
.fade-up:nth-child(18) {
    transition-delay: 1.7s;
}
.fade-up:nth-child(19) {
    transition-delay: 1.8s;
}
.fade-up:nth-child(20) {
    transition-delay: 1.9s;
}
.fade-up:nth-child(21) {
    transition-delay: 2.0s;
}
.fade-up:nth-child(22) {
    transition-delay: 2.1s;
}
.fade-up:nth-child(23) {
    transition-delay: 2.2s;
}
.fade-up:nth-child(24) {
    transition-delay: 2.3s;
}


/* ==========================
    ボタン
========================== */
.btn a { 
    display: inline-block;
    background-color: #4285F4;
    color: white;
    padding: 12px 18px;
    border-radius: 20px;
    border: 1px solid #4285F4;
    font-size: 14px;
    transition: all .5s ease;
}

.btn a span {
    color: white;
    margin-left: 40px;
}

.btn a:hover {
    background-color: white;
    color: #4285F4;
}



/* ==========================
    ドロップダウンメニュー
========================== */
.dropdown {
    list-style: none;
    position: relative;
    padding: 10px 0;
    border: none; padding: 0;
}

/* ドロップダウンのボタン */
.dropdown-toggle {
    width: 100%;
    background: none;
    font-size: 20px;
    text-align: left;
    cursor: pointer;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #a3a3a34d;
}

/* 矢印アイコン（> のやつ） */
.arrow {
    font-size: 20px;
    font-weight: 10;
    background-color: #4285F4;
    color: white;
    padding: 4px 0 4px 13px;
    border-radius: 20px;
    transition: transform 0.2s ease-in-out;
}

/* ==========================
    ドロップダウンメニューの開閉アニメーション
========================== */
/* 初期状態（閉じている状態） */
.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.5s ease-out, opacity 0.5s ease, transform 0.5s ease;
}

/* 開いたときの状態 */
.dropdown.open .dropdown-menu {
    max-height: 500px; /* 適当な高さに設定（十分に大きく） */
    opacity: 1;
    transform: translateY(20);
}

/* ==========================
    ドロップダウン内の `li` に個別アニメーション
========================== */
.dropdown-menu li {
    opacity: 0;
    padding: 20px 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* メニューが開いたときに順番に表示 */
.dropdown.open .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* それぞれ少しずつ遅れてフェードイン */
.dropdown.open .dropdown-menu li:nth-child(1) {
    transition-delay: 0s;
}
.dropdown.open .dropdown-menu li:nth-child(2) {
    transition-delay: 0.1s;
}
.dropdown.open .dropdown-menu li:nth-child(3) {
    transition-delay: 0.2s;
}
.dropdown.open .dropdown-menu li:nth-child(4) {
    transition-delay: 0.3s;
}
.dropdown.open .dropdown-menu li:nth-child(5) {
    transition-delay: 0.4s;
}
.dropdown.open .dropdown-menu li:nth-child(6) {
    transition-delay: 0.4s;
}
.dropdown.open .dropdown-menu li:nth-child(7) {
    transition-delay: 0.4s;
}
.dropdown.open .dropdown-menu li:nth-child(8) {
    transition-delay: 0.4s;
}

/* hover 時に少し大きくする */
.dropdown-toggle:hover {
    opacity: 0.7;
}

@media screen and (max-width: 940px) {
    .nav-modal > ul {
        width: 50%;
    }
}

/* @media screen and (max-width: 780px) {
	.dropdown-toggle:hover {
		opacity: 1;
	}
} */

@media screen and (max-width: 570px) {
    .logo {
        width: 36%;
    }

    .nav-modal > ul {
        width: 70%;
    }

    .dropdown-toggle {
        font-size: 16px;
    }

    .dropdown-menu a {
        font-size: 16px;
    }

    .arrow {
        font-size: 16px;
        padding: 4px 0 4px 10px;
        border-radius: 20px;
    }

    .btn a {
        padding: 10px 30px;
        font-size: 18px;
    }
}

@media screen and (max-width: 400px) {
    .logo {
        width: 50%;
    }
}

/* ==========================
    コンテンツブロック（汎用的）
========================== */
.content-section {
    padding: 60px 10vw;
    text-align: center;
}

.content-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.content-subtitle {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 40px;
}

.content-block {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
}

.content-image {
    width: 40%;
    max-width: 500px;
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-text {
    width: 50%;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

/* ==========================
    レスポンシブ対応
========================== */
@media screen and (max-width: 768px) {
    .content-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-image {
        width: 80%;
    }

    .content-text {
        width: 100%;
        text-align: left;
    }
}

.gray {
	background-color: #F7F7F7 !important;
}
