@charset 'utf-8';
*{
    box-sizing: border-box;
}
body {
    font-family: sans-serif;
    font-size: 1em;
    line-height: 2;
    margin: 0;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}
.section{
    margin-top: 120px;
}

/* 見出しデザイン */
.h2{
  font-size: 28px;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  letter-spacing: 0.1em;
  margin: 60px 0 30px;
}
.h2-group1,.h2-group5{
    color: orange;
}
.h2-group2{
    color: #00a497;
}
.h2-group3{
    color: #5dc3f3;
}
.h2-group4{
    color: gold;
}
.h2-group6{
    color: #f88379;
}
.h2-group7{
    color: #5f7bda;
}

/*グループのヘッダー*/
.group-header{
    display: inline-block;
    margin:50px 0px 10px 0px;
}

.group-header-common {
    font-size: 40px;
    line-height: 1.4;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px  1px 0 #000000,
        1px  1px 0 #000000;
    letter-spacing: 0.1em;

    /*アニメーション*/
    transform: scale(0);         
    opacity: 0;                 
    animation: boom 1.2s ease-out forwards;  
}
.group-header-common-group1,.group-header-common-group5{
    color: orange;
}
.group-header-common-group2{
    color: #00a497;
}
.group-header-common-group3{
    color: #5dc3f3;
}
.group-header-common-group4{
    color: gold;
}
.group-header-common-group6{
    color: #f88379;
}
.group-header-common-group7{
    color: #5f7bda;
}
@keyframes boom {
  0% {
    transform: scale(0.1);   
    opacity: 0;
  }
  50% {
    transform: scale(1.1);  
    opacity: 0.8;
  }
  80% {
    transform: scale(1); 
    opacity: 1;
  }
  100% {
    transform: scale(1);     
    opacity: 1;
  }
}

.group-title {
    font-size: 50px;
    margin: 0;
}

.group-label {
    font-size: 30px;
    display: block;
    margin-bottom: 30px;
}

.group-description {
    margin-top: 35px;
    font-size: 16px;
    line-height: 2.5;
    color: #000;
    font-weight: bold;
}

/* テーマカラー */

.color-swatch {
    width: 120px;
    height: 120px;
    border: 4px solid #000;
    border-radius: 8px;
    margin:12px auto;
}
.color-swatch-group1,.color-swatch-group5{
    background: orange;
}
.color-swatch-group2{
    background: #00a497;
}
.color-swatch-group3{
    background: linear-gradient(to right, rgb(105, 167, 224), rgb(224, 182, 105));
}
.color-swatch-group4{
    background: gold;
}
.color-swatch-group6{
    background: #f88379;
}
.color-swatch-group7{
    background: linear-gradient(to right, rgb(95, 123, 218), rgb(94, 177, 94));
}
/*キャラクター*/
.character-img{
    display: block;
    width: 50%;
    margin: auto;
}


/*個人作品*/

.card-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 10px;
}

.card {
    background: #fff;
    border: 2.5px solid #000;
    border-radius: 16px;
    padding:25px 20px 40px 20px;
    width:100%;
}
.card:hover{
    cursor: pointer;
}

.card-image-wrap {
    position: relative;
}

.card-image {
    display: block;
    width: 100%;
    object-fit: cover;
    height: 130px;
    border-radius: 8px;
}


.dot {
    position: absolute;
    bottom: -14px;
    left: -6px;
    width: 45px;      
    height: 45px;
    border-radius: 50%;
    border: 1px solid #000;
}


.orange { background: #ffb000; }
.pink { background: pink; }
.red { background: rgb(255, 86, 86); }
.blue{background:rgb(127, 127, 255);}
.green{background: rgb(39, 187, 39);}

.orange-text { color: #ffb000; }
.pink-text { color: hotpink; }
.red-text { color: rgb(255, 86, 86); }
.blue-text{ color:rgb(127, 127, 255);}
.green-text{ color: rgb(39, 187, 39);}


.card-footer {
    margin-top: 20px;  
    text-align: left;
}

.color-name {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.title,.subtitle{
    margin: 0;
    font-size:20px;   
    line-height: 1.4;
}
.title{
    font-weight: bold;
}

.modal-game-info {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #000;
  text-align: left;
}

.game-warning {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.game-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.game-steps {
  margin: 0 0 15px 20px;
  padding: 0;
  font-size: 13px;
  line-height: 1.8;
}

.game-steps li {
  margin-bottom: 5px;
}

.game-manual {
  font-size: 13px;
  margin: 0;
}

.game-manual a {
  color: rgb(127, 127, 255);
  font-weight: bold;
  text-decoration: underline;
}
.game-manual a:hover{
    text-decoration: none;
}

/*モーダル*/
.modal {
    position: fixed;
    display: flex;           
    align-items: center;      
    justify-content: center; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    
    background: #fff;
    border: 2.5px solid #000;
    border-radius: 16px;
    padding: 20px;

    width: 90%;
    max-width: 500px;

    max-height: 80vh;
    overflow-y: auto;

    margin: auto;
    transform: scale(0.8);
    opacity: 0;
}
.modal.is-open .modal-content {
    animation: modal-pop 0.5s  forwards;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 10px;
}

@keyframes modal-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 50px;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.modal-category {
    font-size: 12px;
}
.modal-category.web { color: hotpink; }
.modal-category.pro { color: #ffb000; }
.modal-category.cg { color: rgb(247, 59, 59); }
.modal-category.game { color: rgb(127, 127, 255); }
.modal-category.movie { color: rgb(39, 187, 39); }


.modal-title {
    margin:0 0 25px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.modal-description {
    font-size: 14px;
    line-height: 1.6;
}

.modal-button {
    display: block;
    margin-top: 20px;
    padding: 12px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 999px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.2s ease;
}

.modal-button:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.modal-button:active {
    transform: translateY(0);
}

/*fade*/
.fade {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 1.5s, transform 1s;
}

.fade.active {
    opacity: 1;
    transform: translateY(0px);
}


@media screen and (min-width: 600px) {
    .group-title {
        font-size: 80px;
    }
    .group-label{
        font-size: 40px;
    }
    .group-description {
        font-size: 20px;
    }
    .card-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1000px;
        margin:auto; 
    }

    .card {
        width: 100%; 
        margin-bottom: 40px;
    }
    .h2{
        font-size: 30px;
    }
    .modal-button{
        width: 70%;
        margin: auto;
    }
}
