*{
    box-sizing: border-box;
}
body {
            margin: 0;
            min-height: 100vh;
            position: relative;
            font-size: 1em;
            font-family: sans-serif;
            line-height: 2;
            width: 100%;
        }
img{
    max-width: 100%;
    height: auto;
}
.circle {
    border-radius: 50%;
    position: absolute;
    transition: all 0.5s ease; /* 動きを滑らかに */
    z-index: -1;
}
.header{
    height: 650px;
}
.h1{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    margin-top: 20px;
    font-size: 1.8em;
    text-align: center;
    width: 100%;
    height: 50px;
}
.h1 a{
    width: 100%;
    display: block;
    height: 100%;
    color: #000;
    text-decoration: none;
}
.subTitle{
    display: block;
    position: absolute;
    top: -10px;
    font-size: 0.5em;
    left: 50%;
    transform: translateX(-50%);
}
.nav{
    display: none;
}
.mainGroupButton,.mainAboutButton,.mainOtherButton{
    width: 200px;
    z-index: 10;
}
.mainGroupButton:hover,.mainAboutButton:hover,.mainOtherButton:hover{
    opacity: 0.5;
}
.mainImgWrap{
    position: relative;
    width: 100%;
    height: 600px;
    top: 70px;
}
.mainVideo{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mainVideo source{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mainimg{
    position: absolute;
    width: 100%;
    height: 600px;
    top: 50px;
}
.mainimg a{
    display: block;
}
.mainAboutButton{
    position: absolute;
    top: 50px;
    right: 10px;
}
.mainGroupButton{
    position: absolute;
    top: 200px;
}
.mainOtherButton{
    position: absolute;
    bottom: 80px;
    right: 20px;
}
.mainVideo{
    max-width: 100%;
}
.cont{
    padding: 70px 5px;
}
.about{
    padding: 50px 20px 100px;
}
.about .h2{
text-align: center;
    font-size: 2em;
    width: 77%;
    margin: auto;
    -webkit-text-stroke: 2px black;
    paint-order: stroke;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 30px;
}
.aboutBox{
    border: 2px solid #000;
    border-radius: 20px;
    padding: 60px 20px;
}
.aboutBox p{
letter-spacing: 1px;
    line-height: 2.8;
    font-weight: bold;
    font-size: 0.9em;
    color: #2c2c2c;
}
.marker{
    background-color: #ffff58;
    padding: 4px;
}
.aboutTitleRed{
    color: #f52c38;
}
.aboutTitleYellow{
    color: #ffe553;
}
.aboutTitleGreen{
    color: #b6e674;
}
.aboutTitleBlue{
    color: #74e6d4;
}
.aboutTitleOrange{
    color: #f38201;
}
.aboutTitlePink{
    color: #e673a8;
}
.aboutTitleDeepblue{
    color: #537be5;
}
.group .h2{
    text-align: center;
    font-size: 2em;
    margin-bottom: 50px;
    -webkit-text-stroke: 2px black;
    paint-order: stroke;
    color: #74e6d4;
    letter-spacing: 4px;
}
.group .h2 span{
    display: block;
    font-size: 0.5em;
    -webkit-text-stroke: 1px black;
    color: #000;
}
.groupCont{
    width: 85%;
    display: block;
    margin: auto;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 20px 5px;
    position: relative;
    margin-bottom: 50px;
}
.groupImg{
    width: 85%;
    margin: auto;
    /* 追記 */
    position: relative;
    overflow: hidden;
}
.groupImg div,.groupImg img{
    width: 100%;
    height: 100%;
}
.groupNum{
    position: absolute;
    top: -56px;
    right: 15px;
    font-size: 1.7em;
    font-weight: bold;
            -webkit-text-stroke: 1px black;
    color: #f38201;
}
.groupColorBox{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0;
    position: absolute;
    border: 1px solid #000;
    bottom: 63px;
    left: 10px;
}

/* 追記 */
.group01 .groupColorBox{
    background-color: orange;
}
.group02 .groupColorBox{
    background-color: #00a497;
}
.group03 .groupColorBox{
      background: linear-gradient(to right, rgb(105, 167, 224), rgb(224, 182, 105));
}
.group04 .groupColorBox{
    background-color: gold;
}
.group05 .groupColorBox{
    background-color: orange;
}
.group06 .groupColorBox{
    background-color: #f88379;
}
.group07 .groupColorBox{
      background: linear-gradient(to right, rgb(95, 123, 218), rgb(94, 177, 94));
}

.group01 .groupNum{
    color: orange;
}
.group02 .groupNum{
    color: #00a497;
}
.group03 .groupNum{
    color: rgb(105, 167, 224);
}
.group04 .groupNum{
    color: gold;
}
.group05 .groupNum{
    color: orange;
}
.group06 .groupNum{
    color: #f88379;
}
.group07 .groupNum{
    color: rgb(95, 123, 218);
}

.groupColor{
    position: absolute;
    bottom: 56px;
    left: 70px;
    font-weight: bold;

}
.group .h3{
        margin-top: 55px;
    margin-bottom: 0;
    padding-left: 15px;

}
.footer p{
    text-align: center;
    margin-bottom: 50px;
}


/* グループスライド */
.slide {
  display: flex;
  transition: transform 0.6s ease;
}

.slide > div {
  flex-shrink: 0;
  width: 100%;
}

.slide img {
  width: 100%;
  display: block;
}

/* グループアニメーション */
.groupCont:hover{
    transition: 0.5s;
    transform: translateY(-10px);
}

/* nav */
.open{
    width: 60px;
    height: 60px;
    display: block;
    opacity: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.open span,.open span::before,.open span::after{
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 5px;
    background-color: #000;
    position: absolute;
    transition: 0.5s;
}

.open span::before{
    bottom: 10px;
}
.open span::after{
    top: 10px;
}

#input{
    display: none;
}

#input:checked~.open span{
    background-color: rgba(255, 255, 255, 0);
}
#input:checked~.open span::before{
    bottom: 0;
    transform: rotate(-45deg);
}
#input:checked~.open span::after{
    top: 0;
    transform: rotate(45deg);
}

.open.scroll{
    transition: 1s;
    opacity: 1;
}

.nav{
    width: 30%;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 100%;
    transition: 0.5s;
    display: grid;
    place-content: center;
    padding: 30px;
    border-left: 3px solid #000;
    z-index: 100;
}

.nav ul{
    padding: 0;
}

.nav ul li{
    list-style: none;
    line-height: 1;
}

.nav ul li a{
    display: block;
    text-decoration: none;
}

#input:checked~.nav{
    left: 70%;
}

.nav .mainAboutButton,.nav .mainGroupButton,.nav .mainOtherButton{
    position: static;
    display: block;
    width: 80%;
    margin: 0 auto 0 0;
}

.nav .mainGroupButton{
    margin: 0 0 0 auto;
}

.sub-page .open{
    opacity: 1;
}

@media(width>=600px){
    .mainGroupButton, .mainAboutButton, .mainOtherButton 
    {
    width: 350px;
}
.mainAboutButton{
    position: absolute;
    top: 20%;
    right: 40%;
}
.mainGroupButton{
        bottom: 50px;
        top: auto;
        left: 5%;
}
.mainOtherButton{
    right: 5%;
}
.about {
    padding: 150px 20% 100px;
}
.aboutBox{
    padding: 60px;
}
.groups{
    display: flex;
    flex-wrap: wrap;
}
.groupCont{
    width: 30%;
}

}

@media (width<=600px){
    /* 追記 */
    .open{
        width: 50px;
        height: 50px;
        top: 25px;
    } 
    .open span,.open span::before,.open span::after{
        width: 30px;
        height: 2px;
    }
    .nav{
        width: 100%;
    }
    #input:checked~.nav{
        left: 0;
    }
}