*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: rgb(64,40,32);
  --white: #ffffff;
  --bg: rgb(0, 0, 0);
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 1440px) {
  html {
    zoom: 1.5;
  }
}

@media (min-width: 2560px) {
  html {
    zoom: 1.7;
  }
}

@media (min-width: 3860px) {
  html {
    zoom: 2.5;
  }
}

body {
  background: var(--bg);
  font-family: 'Cormorant Infant','Cactus Classical Serif';
}
.main {
  margin-right: auto; 
  font-size: 60px;
}
.table {
  position:fixed;
  top:0px;
  height:100px;
  width: 100%;
  background-color: rgb(249,249,249);
  display: flex;
  align-items:center;
  padding: 20px 50px;
  z-index: 2000;
  box-sizing: border-box;
  border-bottom: 2px solid #333348;
}
.table img{
  height: 130px;
  width: auto;
  margin-top: 30px;
  margin-bottom: 20px;
  object-fit: cover;
  z-index: 1000;
}

/* 右側群組 */
.nav-items {
    display: flex; 
}

.nav-items .intro,
.nav-items .activity,
.nav-items .member,
.nav-items .lesson {
    justify-content: flex-end;
    font-size:18px;
}
.table a{
    color: rgb(66, 45, 38);
    text-decoration:none;
    
    padding:10px 30px;
    transition: background-color 0.2s;
}

.table a:hover {
  transform: scale(1.3);
}

.heading{
    display: flex;
    margin-top:130px;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.heading img{
    border-radius: 0%;
    position: relative;
    display: flex;
    width: 90%;
    object-fit: cover; 
    align-items: center;
    justify-items: center;
}
.grid{
    grid-template-rows: repeat(3, 200px);
    grid-template-columns: repeat(3, 150px);
    grid-template-areas: 
    "z1 s2 i3"
    "s4 c5 p63"
    "p71 s8 t9";
    display: grid;
    align-items: center;
    justify-content: left;
    position: relative;
    margin-top:100px;
    margin-left: 100px;
    gap: 2px;
}
.grid img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
}
.grid a{
    width: 100%;
    height: 100%; 
    object-fit: cover; 
}

.grid img:hover {
    transform: scale(1.1) translateZ(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); 
    border-radius: 10%;
    z-index: 1; 
}
.grid img:active {
    transform: scale(0.92) rotateX(-5deg) rotateY(5deg); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}
.grid > .z1 {
    grid-area: z1;
}

.grid > .s2 {
    grid-area: s2;
}

.grid > .i3 {
    grid-area: i3;
}

.grid > .s4 {
    grid-area: s4;
}

.grid > .c5 {
    grid-area: c5;
}

.grid > .p63 {
    grid-area: p63;
}

.grid > .p71 {
    grid-area: p71;
}

.grid > .s8 {
    grid-area: s8;
}

.grid > .t9 {
    grid-area: t9;
}
.grid img {
    width: 100%;
    object-fit: cover; 
}
.grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.star{
    display: flex; 
    position: relative;
    margin-left: 200px;
    width: 300px;
    justify-content: center;
    align-items: center;
  }
  
.anime_img {
    width: 100%;
    height: auto;
  }

.title{
    position: relative;
    margin-left: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 200px;
}

.title p{
    color: rgb(249,249,249);
    user-select: none;
    font-size: 60px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.content{
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.bg{
    background-color: rgb(0, 0, 0);
}
.content_member{
    display: flex;
    flex-direction: row;
    align-items: center; 
}
.content video{
    display: flex;
    width: 70%;
    height: auto;
    margin-top: 100px;
}
.member_intro {
    display: flex;
    flex-direction: column;
    color: rgb(249, 249, 249); 
    font-size: 20px;
    position: relative;
    right: 200px;
    width: 50%;
    margin-top: 100px;
}

.member_intro p.name {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    user-select: none;
    font-family: Arial, Helvetica, sans-serif;
}

.member_intro p.profile {
    line-height: 1.5; 
    font-family: Arial, Helvetica, sans-serif;
}

/*
text-decoration: underline;
    text-decoration-color:rgb(249, 249, 249) ;
    text-decoration-thickness:1px ;
    text-underline-offset: 15px;
*/
.last{
    display: flex;
    flex-direction: row;
    margin-top: 100px;
    margin-bottom: 100px;
    justify-content: center;
    align-items: center;
    gap:2px;
}
.last img{
    height: 300px;
    width:auto;
}
.contact {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(240, 240, 240, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.contact a {
    color: rgb(66, 45, 38);
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.contact a:hover {
    color: rgb(217, 175, 83);
}

.hidden {
    opacity: 0;
    transform: translateY(100px);
    will-change: transform, opacity;
  }
  
  .slide-in {
    animation: slideInUp 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  
  @keyframes slideInUp {
    0% {
      opacity: 0;
      transform: translateY(100px);
    }
    80% {
      opacity: 1;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }