@charset "utf-8";

html, body {
    height: 100%; /* ページ全体が100%の高さになるように設定 */
}

body {
    margin: 0;
    padding: 0;
    padding-top: 0px;
    background-color: rgb(166, 133, 185);
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}


.hero {
    margin-top: 0px;
    padding: 0;
    width: 100%;
    overflow: hidden;
    padding-top: 0; /* ヘッダーの高さに合わせて調整 */
}

.hero img {
    width: 100%;
    height: auto;
    display: block; /* 画像の下の隙間を防ぐ */
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 50px; /* 左右に50pxの余白 */
}

.content-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 高さを自動で合わせる */
    gap: 10px; /* 適度な間隔 */
    width: 100%;
}

.skills {
    background: rgba(255, 255, 255, 0.2);
    padding: 10%;
    border-radius: 5px;
    width: 35%; /* 幅を少し縮める */
}


.text-box {
    border: 2px solid white; /* 白枠 */
    padding: 15px;
    width: 56%; /* テキストエリアの幅 */
    border-radius: 5px; /* 角を少し丸める */
}

.portfolio {
    position: relative;
}

.portfolio h2 {
    position: absolute; /* 絶対位置で配置 */
    top: 20px;
    left: 50px;
    margin: 0;
    padding: 10px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* ドロップシャドウ */
}

/* Swiperカルーセルのコンテナ */
.swiper-container {
    width: 90%;
    max-width: 1200px;
    height: 450px;
    margin: 80px auto 40px auto; /* 📌 上を80px, 下を40pxにする */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}


/* スライドの画像 */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* 📌 画像がないときの背景 */
    border-radius: 15px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 📌 画像のバランスを整える */
    border-radius: 15px;
    transition: transform 0.5s ease-in-out; /* 📌 ホバー時のアニメーション */
}

/* ホバー時のエフェクト */
.swiper-slide img:hover {
    transform: scale(1.05); /* 📌 ふんわり拡大 */
}

/* ナビゲーションボタンのデザイン */
.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(243, 243, 4, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

/* 📌 位置を適切に配置（デフォルトのまま） */
.swiper-button-prev {
    left: 0; /* 左端 */
}

.swiper-button-next {
    right: 0; /* 右端 */
}

/* ホバー時のナビゲーションボタン */
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
}


.swiper-pagination {
    bottom: 10px;
}

.swiper-pagination-bullet {
    background: white; /* 📌 ドットの色 */
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: yellow; /* 📌 アクティブなドットを強調 */
}



.skills {
    background: rgba(107, 10, 10, 0.2);
    padding: 10px;
    border-radius: 5px;
}
.skills ul {
    list-style: none;
    padding: 0;
}
.skills li {
    padding: 5px 0;
}
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.work-sample img {
    width: 300px;
    height: 200px;
    background: gray;
    margin: 10px 0;
}




@media screen and (max-width: 1024px) {

    /*作業の流れボックスと矢印*/

    .steps {
        flex-direction: column;
        width: 100%;  /* 画面幅が小さい場合に幅が100%になる */
    }

    .step-box {
        width: 100%;
        font-size: 1em;
    }

    .step-arrow {
        border-top: 12px solid black;
    }

    .content-inner {
        flex-direction: column; /* 縦並び */
        align-items: center; /* 中央揃え */
    }

    .skills,
    .text-box {
        width: 90%; /* 幅を広げる */
        max-width: 600px; /* 最大幅を600pxに制限 */
    }

    .text-box {
        margin-top: 20px; /* 上に余白を追加 */
    }


    /* 縦並び・スマホ向け */
@media screen and (max-width: 768px) {
    .image-gallery {
        flex-direction: column;  /* 縦並びにする */
        align-items: center;
    }

    .image-card {
        width: 80%;  /* スマホの時、幅を80%にしてフレームを広く */
        margin-bottom: 20px;  /* カード間に余白 */
        padding: 20px;
    }

    .image-card img {
        width: 100%;  /* 画像を親要素に合わせて大きく */
        height: auto;
    }

    .swiper-container {
        width: 90%;
        height: 350px;
    }


    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* 768px〜1024pxの画面幅で2列表示 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .image-gallery {
        display: flex;
        flex-wrap: wrap;  /* カードが折り返されるように */
        justify-content: space-between;  /* カード間に余白を確保 */
    }

    .image-card {
        width: 48%;  /* 横幅を48%に設定して、2列表示にする */
        margin-bottom: 20px;  /* カード間に余白 */
        padding: 20px;  /* フレームの内側を広く */
    }

}

/* 1024px以上の場合（通常は2列表示）*/
@media screen and (min-width: 1024px) {
    .image-card {
        flex-basis: 65%;  /* 2列表示にするため、幅を45%に設定 */
        margin-bottom: 20px;  /* カード間に余白 */
    }
}
}