/* 全体のスタイル */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #ccfffe;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background-image: url('../images/stripes.png');
    background-repeat: repeat;
    background-size: auto;
}

/* 中央の白い部分（wrapper） */
.wrapper {
    width: 100%;
    max-width: 1200px;
    background-color: #fffef2;
    padding: 20px;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0%, 100% 0, 100% 100%, 0% 100%);
    margin: 0 auto;
    border-radius: 150px; /* 角を丸くする */
}

/* コンテンツエリア */
.content {
    max-width: 800px;
    margin: 0 auto;
    text-align:center
    
}

h1 {
    font-size: 2.5em;
    color: #ff6699;
}

p {
    font-size: 1.2em;
}

/* 全体の画像に適用 */
img {
    max-width: 100%; /* 画像が親要素の幅を超えないようにする */
    height: auto;   /* アスペクト比を保ちながら高さを調整 */
    display: block; /* 画像の余白をなくすため */
    margin: 0 auto; /* 画像を中央揃えにする */
}

.underline {
background:linear-gradient(transparent 70%, #FFFF00 0%);
}

.tech-grid {
    display: grid;
    gap: 10px; /* 項目の間隔 */
    padding: 20px;
    grid-template-columns: repeat(4, 1fr); /* 4列表示 */
}

.tech-item {
    width: 150px;  /* 幅を150px */
    height: 150px; /* 高さを150px */
    color: white;
    text-align: center;
    border-radius: 10px;
    background-color: #4ecdc4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 見出しを上に */
    align-items: center;
}

.tech-item.c1 { background-color: #5bd0ff; }
.tech-item.c2 { background-color: #ff6b6b; }
.tech-item.c3 { background-color: #106b79; }
.tech-item.c4 { background-color: #FF9EF7; }
.tech-item.c5 { background-color: #4b3816; }
.tech-item.c6 { background-color: #6a0572; }
.tech-item.c7 { background-color: #535570; }
.tech-item.c8 { background-color: #910050; }
.tech-item.c9 { background-color: #3a86ff; }
.tech-item.c10 { background-color: #8338ec; }
.tech-item.c11 { background-color: #06d6a0; }
.tech-item.c12 { background-color: #e61b1b; }
.tech-item.c13 { background-color: #f19306; }
.tech-item.c14 { background-color: #0e1796; }
.tech-item.c15 { background-color: #008111; }
.tech-item.c16 { background-color: #f72585; }

.tech-item h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 10px; /* 見出しと説明文の間に余白を作る */
}

.description {
    font-size: 0.75rem; /* 説明文を小さく */
    line-height: 1.4;
    margin-top: auto; /* 説明文を中央に寄せる */
    margin-bottom: auto;
}

/* メニューのリンクテキストのスタイル */
.menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    padding: 10px;
    font-size: 20px; /* 文字サイズを大きくする */
    transition: background-color 0.3s;
    text-align:center
}

/* メニューアイコン（ハンバーガーメニューの三本線） */
.menu-icon {
    display: none;
    font-size: 40px;
    cursor: pointer;
    z-index: 10; /* z-indexを5にして、常に手前に表示 */
}

/* メニューリスト */
.menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 5; /* メニューのz-indexをアイコンより下げる */
}

/* メニューアイテムのスタイル */
.menu li {
    width: 200px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 各メニューアイテムに雲形画像を設定 */
.menu li:nth-child(1) {
    background-image: url('../images/cloud_yellow.png')
}
.menu li:nth-child(2) {
    background-image: url('../images/cloud_pink.png');
}
.menu li:nth-child(3) {
    background-image: url('../images/cloud_purple.png');
}
.menu li:nth-child(4) {
    background-image: url('../images/cloud_green.png');
}
.menu li:nth-child(5) {
    background-image: url('../images/cloud_orange.png');
}



/* レスポンシブ用メディアクエリ */
@media (max-width: 1230px) {
    .menu-icon {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 4; /* メニューのz-indexをアイコンより下げる */
    }

    img {
        max-width: 90%; /* スマホでは90%に縮小 */
    }

    .wrapper {
        padding: 20px;
        max-width: 90%; /* 横幅を90%にして余白を作る */
        margin: 0 auto; /* 中央に配置 */
    }

    .menu {
        display: none;
        position: fixed;
        top: 320px; /* メニューを下げて「ホーム」が表示されるように */
        right: 10px;
        background-color: white;
        width: 250px; /* メニューの幅を広げる */
        padding: 20px; /* 十分な余白を設定 */
        flex-direction: column;
        gap: 1px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 3; /* メニューのz-indexをアイコンより下げる */
    }

    .menu.show {
        display: flex;
    }

    /* 雲形メニューアイテムのサイズを大きく調整 */
    .menu li {
        width: 160px; /* 雲形画像の幅を大きく */
        height: 120px; /* 高さも調整 */
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列表示 */
        justify-items: center; /* 各項目を中央に */
        gap: 10px; /* 隙間を狭く調整 */
    }

}

@media (max-width: 480px) {
    /* スマートフォン向けのさらなる調整 */
    .menu li {
        width: 160px; /* スマホ表示でも大きめのサイズ */
        height: 120px;
    }

    .wrapper {
        max-width: 85%; /* スマホでは85%に設定 */
        padding: 15px;  /* 内側の余白も調整 */
    }
}
