/* 全体のスタイル */
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
    
}

.counter {
    font-size: 0.7em; /* 文字サイズを指定します（例: 12px） */
    color: #333;    /* 必要に応じて文字色も変更できます */
}

h1 {
    font-size: 4em;
    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: 20px;
    padding: 20px;
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    max-width: 100%; /* 親要素の幅に対応させる */
    margin: 0 auto; /* 中央に揃える */
}

.tech-item {
    padding: 15px;
    color: white;
    text-align: center;
    border-radius: 10px;
    background-color: #4ecdc4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 見出しを上に寄せる */
    align-items: center; /* 横方向は中央寄せ */
    height: 200px; /* 正方形にするための高さ */
    width: 200px;
}

.tech-item.c1 {
    background-color: #107969;
}

.tech-item.c2 {
    background-color: #4f38ec;
}

.tech-item.c3 {
    background-color: #f15006;
}

.tech-item.c4 {
    background-color: #ff6b94;
}

.tech-item.c5 {
    background-color: #910079;
}

.tech-item.c6 {
    background-color: #e61b54;
}

.tech-item.c7 {
    background-color: #0e3d96;
}

.tech-item.c8 {
    background-color: #06d665;
}

.tech-item.c9 {
    background-color: #3abdff;
}

.tech-item h3 {
    font-size: 1.2rem;
    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');
}


.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .social-icons a img {
    width: 30px;
    height: 30px;
  }
  
  .social-icons a {
    text-decoration: none;
  }
  

/* レスポンシブ用メディアクエリ */
@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: 1fr; /* 1列表示 */
        justify-items: center; /* グリッドアイテムを中央に揃える */
    }
}

@media (max-width: 480px) {
    /* スマートフォン向けのさらなる調整 */
    .menu li {
        width: 160px; /* スマホ表示でも大きめのサイズ */
        height: 120px;
    }

    .wrapper {
        max-width: 85%; /* スマホでは85%に設定 */
        padding: 15px;  /* 内側の余白も調整 */
    }
}
