
/* 全体のスタイル */
:root{
    --bl:rgb(2,218,218);
    --gy:rgb(51,51,51);
    --wh:rgb(255, 255, 255);
    --bl:rgb(0,0,0);
}

body {
    font-family: 'Inter', sans-serif; /* フォントを指定 */
    background-color: var(--gy); /* 背景色を黒に設定 */
    color: var(--wh); /* 文字色を白に設定 */
    margin: 0; /* bodyのmarginを0に設定 */
}

/* メインコンテンツのスタイル */
main {
    padding: 2.5rem 0; /* メインコンテンツの上下paddingを設定 */
    max-width: 1200px; /* メインコンテンツの最大幅を設定 */
    margin: 0 auto; /* メインコンテンツを中央に配置 */
    padding: 0 1rem; /* メインコンテンツの左右paddingを設定 */
}

/* メインコンテンツタイトルのスタイル */
.container-h2 {
    font-size: 3rem; /* 文字サイズを36pxに設定 */
    font-weight: bold; /* フォントをボールドに設定 */
    margin-top: 6rem;
    margin-bottom: 2rem; /* 下マージンを32pxに設定 */
    text-align: center; /* 文字を中央揃えに設定 */
    color: rgb(2,218,218);
}

/* フィルターボタンのスタイル */
.filter-buttons {
    margin-bottom: 2rem; /* 下マージンを32pxに設定 */
    text-align: center; /* 要素を中央揃えに設定 */
}

.filter-button {
    display: inline-block; /* インラインブロック要素として表示 */
    padding: 0.5rem 1rem; /* 上下padding 8px、左右padding 16px */
    border-radius: 0.375rem; /* 角丸を6pxに設定 */
    font-size: 0.875rem; /* 文字サイズを14pxに設定 */
    background-color: rgb(2, 218, 218); /* 背景色を暗いグレーに設定 */
    color: rgb(255, 255, 255); /* 文字色を白に設定 */
    margin-right: 0.5rem; /* 右マージンを8pxに設定 */
    cursor: pointer; /* カーソルをポインターに設定 */
    font-weight: bold;
    border: none;
}

.filter-button:hover {
    background-color: rgb(0, 196, 196); /* ホバー時の背景色を少し明るいグレーに設定 */
}

.filter-button.active-filter {
    background-color: rgb(0, 148, 148);  /* アクティブなフィルターボタンの背景色をティール色に設定 */
    color: rgb(218, 218, 218); /* アクティブなフィルターボタンの文字色を黒に設定 */
}

/* 作品コンテナのスタイル */
.work-container {
    display: grid; /* グリッドレイアウトを使用 */
    grid-template-columns: 1fr; /* 最初は1列のグリッド */
    gap: 1.5rem; /* グリッド間のギャップを24pxに設定 */
}
        /* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* モーダル自体がスクロール可能にする */
}

.modal-content {
    background-color: rgb(51, 51, 51);
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 40%;
    max-width: 800px;
    max-height: 95%; /* 高さを95%に設定 */
    overflow-y: auto; /* モーダルコンテンツがスクロール可能にする */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(2, 218, 218);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.5rem;
    color: #4b5563;
    transition: color 0.3s ease;
}

.modal-close-button:hover {
    color: #1e293b;
}

.modal-body {
    padding: 1rem;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.modal-body p{
    line-height: 1.7;
    color: #ffffff;
}

/* モバイル版（画面幅が639px以下）ではモーダルを完全に非表示にする */
@media (max-width: 639px) {
    .modal {
        display: none !important; /* !importantで優先度を上げる */
    }
}

/* 画面幅が640px以上の場合のグリッド設定 */
@media (min-width: 640px) {
    .work-container {
        grid-template-columns: repeat(2, 1fr); /* 2列のグリッドに変更 */
    }
}

/* 画面幅が768px以上の場合のグリッド設定 */
@media (min-width: 768px) {
    .work-container {
        grid-template-columns: repeat(3, 1fr); /* 3列のグリッドに変更 */
    }
}

/* 画面幅が1024px以上の場合のグリッド設定 */
@media (min-width: 1024px) {
    .work-container {
        grid-template-columns: repeat(4, 1fr); /* 4列のグリッドに変更 */
    }
}
/* 作品アイテムのスタイル */
.work-item {
    border-radius: 0.5rem; /* 角丸を8pxに設定 */
    overflow: hidden; /* 内容が要素の範囲を超える場合は非表示 */
    background-color:rgb(2, 218, 218); /* 背景色を暗いグレーに設定 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); /* 影を設定 */
    border: rgb(2, 218, 218) 6px solid;
}

.work-item img {
    width: 100%; /* 幅を100%に設定 */
    height: auto; /* 高さを自動に設定 */
    border-radius: 0.5rem; /* 角丸を8pxに設定 */
}

.ty-h3{
    margin: 0;
    padding: 0;
}

.ty-h4{
    margin: 0;
    padding: 0;
    padding-left: 5px;
    width: 70%;
    background-color: rgb(51, 51, 51);
    border-radius: 5px;
}

.work-item .p-4 {
    padding-top: 0.5rem; /* paddingを16pxに設定 */
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-bottom:0;
}

.work-item h3 {
    font-size: 1.9rem; /* 文字サイズを18pxに設定 */
    color:rgb(51,51,51); /* 文字色を白に設定 */
    margin-top: 0;
    font-weight: bold;
}

.work-item p {
    font-size: 0.875rem; /* 文字サイズを14pxに設定 */
    color: rgb(51, 51, 51); /* 文字色をグレーに設定 */
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* フッターのスタイル */
footer {
    background-color: rgb(2, 218, 218);
    padding: 1rem 0;
    margin-top: 2.5rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    color: #a0aec0;
}

@media (max-width: 768px) {
    
}
