/* 全体スタイル */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f7c34d;
    background-image: linear-gradient(#e0a843 1px, transparent 1px), 
                      linear-gradient(90deg, #e0a843 1px, transparent 1px);
    background-size: 30px 30px;
}

/* セクションタイトル */
.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 画面全体の高さ分 */
    margin: 0;
    position: relative;

}

.section-title h1 {
    font-size: clamp(5rem, 30vw, 8rem); /* 初期サイズを画面幅に応じて適切に調整 */
    font-weight: 800;
    text-align: center;
    margin: 0;
    padding: 0;
    color: white;
    background: linear-gradient(45deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: hidden;
    animation: shimmer 3s linear infinite, moveUp 1s ease-in-out forwards 1s;

}

/* shimmer のアニメーション */
@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

/* 上に移動しつつサイズを縮小するアニメーション */
@keyframes moveUp {
    0% {
        top: 0;
        font-size: clamp(5rem, 10vw, 8rem); /* 初期サイズ */
    }
    100% {
        top: -100px; /* 上に移動 */
        font-size: clamp(2.5rem, 5vw, 4rem); /* 最終サイズ */
    }
}


.section-subtitle  h2 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin: 40px 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.cards-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.cards-container h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

/* カードのスタイル */
.card1, .card2, .card3 {
    position: absolute; /* ドラッグ時のズレを防ぐため、最初から absolute に設定 */
    width: 280px;
    height: 160px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    font-size: 1.8rem;
    opacity: 0; /* 初期状態は透明 */
    cursor: grab; /* ドラッグ可能であることを示すカーソル */
	z-index: 500;
}

/* 各カードのアニメーション */
.card1 {
	bottom: -110px; right: 90%;
    transform: rotate(-20deg) translateY(100vh);
    animation: fadeInRotateLeft 1.5s ease-out forwards 0.5s; /* .card1 のアニメーション開始を0.5秒後に設定 */
}

.card2 {
	bottom: -110px;
    transform: rotate(-20deg) translateY(100vh);
    animation: fadeInRotateRight 1.5s ease-out forwards 1s; /* .card2 は1秒後に開始 */
}

.card3 {
	bottom: -110px; left: 90%;
    transform: rotate(-20deg) translateY(100vh);
    animation: fadeInRotateSlightLeft 1.5s ease-out forwards 1.5s; /* .card3 は1.5秒後に開始 */
}

/* 各カードの個別アニメーション */
@keyframes fadeInRotateLeft {
    0% {
        opacity: 0;
        transform: rotate(-20deg) translateY(100vh);
    }
    100% {
        opacity: 1;
        transform: rotate(-10deg) translateY(0); /* 左に傾けて停止 */
    }
}

@keyframes fadeInRotateRight {
    0% {
        opacity: 0;
        transform: rotate(-20deg) translateY(100vh);
    }
    100% {
        opacity: 1;
        transform: rotate(10deg) translateY(0); /* 右に傾けて停止 */
    }
}

@keyframes fadeInRotateSlightLeft {
    0% {
        opacity: 0;
        transform: rotate(-20deg) translateY(100vh);
    }
    100% {
        opacity: 1;
        transform: rotate(-5deg) translateY(0); /* 少し左に傾けて停止 */
    }
}

/* 各テキストのグラデーションカラー */
.card-text1, .card-text2, .card-text3 {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 各テキストのグラデーション設定 */
.card-text1 {
    background-image: linear-gradient(45deg, #ff7e5f, #feb47b);
}

.card-text2 {
    background-image: linear-gradient(45deg, #6a11cb, #2575fc);
}

.card-text3 {
    background-image: linear-gradient(45deg, #43cea2, #185a9d);
}

/* ホバー時の背景色とテキスト色の変更 */
.card1:hover {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
}

.card1:hover .card-text1 {
    color: white; /* ホバー時にテキストを白に */
}

.card2:hover {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
}

.card2:hover .card-text2 {
    color: white;
}

.card3:hover {
    background: linear-gradient(45deg, #43cea2, #185a9d);
}

.card3:hover .card-text3 {
    color: white;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
	50%{
		background-position: 100% 50%
	}
    100% {
        background-position: 0% 50%;
    }
}

.about-section {
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #ff6ec4, #ff9a9e, #fad0c4);
	background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
	padding: 20px;
}

.about-section p{
	text-align: center;
    font-size: 36px;
    color: white;
    margin: 40px 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.member-section {
    background: linear-gradient(45deg, #6a11cb, #2575fc, #7f53ac, #647dee, #b721ff);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    padding: 20px;
}

.contact-section {
    background: linear-gradient(45deg, #43cea2, #185a9d, #17ead9, #6078ea, #3a7bd5);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    padding: 20px;
}

/* 各コンテンツボックス */
.content-box {
    display: flex;
    background: rgba(255, 255, 255, 0.7); /* 白色で80%の不透明度 */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 20px auto;
    box-sizing: border-box;
}



.image-box {
    flex: 0 0 150px;
    width: 100%; /* 任意のサイズに合わせて調整 */
    height: 100%; /* 任意のサイズに合わせて調整 */
    margin-right: 20px;
    overflow: visible;
    position: relative;
}

.image-box img {
    width: 100%;
    height: 100%;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    object-fit: cover;
	opacity: 0; /* 初期状態を透明に */
    transform: translateX(-50px); /* 初期位置を少し左にオフセット */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out; /* イージング付きトランジション */
}

.image-box img.slide-in {
    opacity: 1; /* 完全に表示 */
    transform: translateX(0); /* 元の位置に移動 */
}

.text-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #666;
}

.text-box p, .work-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* カテゴリリスト */
.category-list {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-top: -35px;
    margin-bottom: 10px;
}

.category-list button {
    background: none;
    border: 1px solid #666;
    border-radius: 20px;
    padding: 2px 5px;
    font-size: 50%;
    cursor: pointer;
}

.c-form {
    max-width: 800px; /* content-box に合わせて調整 */
    margin: 20px auto; /* 上下左右中央揃え */
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-sizing: border-box; /* パディングを含めて幅を調整 */
}


.c-form__item {
    margin-bottom: 20px;
}

.c-form__label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.c-form__input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 4px;
    box-sizing: border-box;
}

.c-form__input:focus {
    outline: none;
    border-color: #007BFF;
}

.c-form__required {
    color: #fff;
    background-color: #007BFF;
    border-radius: 4px;
    padding: 2px 5px;
    margin-left: 10px;
    font-size: 12px;
}

textarea.c-form__input {
    height: 160px;
    resize: vertical;
}

.c-form__submit {
    text-align: center;
}

.c-form__submit button {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.c-form__submit button:hover {
    background-color: #0056b3;
}

@media (max-width: 1000px) {
    .global-nav {
        display: none;
    }
}

@media (max-width: 400px) {
    .instagram-logo,
	.x-logo {
        display: none;
    }
}

/* タブレットや中サイズの画面向け */
@media (max-width: 768px) {
    .content-box {
        flex-direction: column; /* コンテンツを縦方向に積み重ねる */
        padding: 15px;
        max-width: 90%; /* 最大幅を縮小 */
    }

    .image-box {
        margin: 0 auto 10px; /* 画像ボックスを中央に配置 */
        width: auto;
        height: 30%;
    }

    .text-box h3 {
        font-size: 18px;
    }

    .text-box p {
        font-size: 13px;
    }
}

/* モバイル画面向け */
@media (max-width: 500px) {
    .content-box {
        padding: 10px;
        max-width: 100%; /* モバイルでは幅を全体に広げる */
    }

    .image-box {
        width: auto;
        height: 30%;
    }

    .text-box h3 {
        font-size: 16px;
    }

    .text-box p {
        font-size: 12px;
    }
}

/* cardの挙動 */
@media (max-width: 768px) {
    .card1, .card2, .card3 {
        width: 200px;
        height: 120px;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .card1, .card2, .card3 {
        width: 160px;
        height: 90px;
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .card1, .card2, .card3 {
        width: 160px;
        height: 90px;
        font-size: 1.2rem;
    }
}