/* about 高専祭とは */
#about {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url("../img/about/about_classRoom.png");
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-img-62nd {
    width: 60%;
    display: block;
    object-fit: scale-down;
}

.about-img-tani-1 {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.fes-description {
    width: 85%;
    margin: 0 auto;
    top: 0;
    line-height: 2.5;
    font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
    .about-img-62nd {
        width: clamp(280px, 40vw, 400px);
        top: 80px;
        transform: translateX(-50%);
        margin: 0 50%;
        translate: 0 50%;
        font-size: var(--font-size-sm);
    }

    .fes-description {
        width: 80%;
    }
}

@media (min-width: 1200px) {
    .fes-description {
        width: 60%;
    }
}

#about .buttons {
    display: flex;
    justify-content: center;
    gap: clamp(0.2rem, 0.4rem + 1vw, 1.875rem);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

#about .buttons a {
    display: inline-block;
    padding: var(--spacing-sm) 24px;
    border-radius: var(--radius-pill);
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

#about .buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

#about .buttons a:hover {
    color: var(--color-white);
}

#about .buttons a:hover::before {
    transform: translateX(0);
}

#about .buttons a:hover .arrow,
#about .buttons a:hover .arrow::before {
    background-color: var(--color-white);
}

#about .buttons a .arrow {
    position: relative;
    display: inline-block;
    width: var(--spacing-lg);
    height: 2.4px;
    margin-left: 8px;
    border-radius: 9px;
    background-color: var(--color-primary);
    transition: background-color 0.3s;
    vertical-align: middle;
}

#about .buttons a .arrow::before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 0;
    width: 15px;
    height: 2px;
    border-radius: 9px;
    background-color: var(--color-primary);
    transform: rotate(45deg);
    transform-origin: calc(100% - 2px) 50%;
    transition: background-color 0.3s;
}

/* iPhone SE Galaxy Z Fold 用画面 */
@media (max-width: 376px) {

    #about .buttons .arrow,
    #about .buttons::before {
        visibility: hidden;
    }

    #about .buttons a {
        height: 45px;
        width: 175px;
    }

    #about .buttons a:last-child {
        width: 130px;
    }
}

/*staff 高専祭実行委員について*/
/* 灰色の帯 */
#staff .section-bg {
  background-color: var(--color-white); /* 灰色部分 */
  padding: 25px 0; /* 上下の余白 */
}

/* 中央寄せの内容 */
#staff .section-inner {
  width: 90%; /* コンテンツ幅 */
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-background-gray);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}

/* タイトル用ラベル */
#staff .section-title {
  display: block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 10px auto;
  width: 12em
}

/* タイトル下の灰色の線 */
#staff .section-divider {
  border-bottom: 1px solid var(--color-black); /* 黒色の線 */
  margin-bottom: 20px; /* 線と本文の間の余白 */
}

#staff .staffWearing {
  display: block;
  width: 90%;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


#staff p {
  line-height: 1.8;
  font-size: var(--font-size-xs);
}

@media (min-width: 768px) {
    #staff .section-bg {
        padding: 40px 0;
    }
        
    #staff .section-inner {
        width: 80%;
    }

    #staff .section-title {
        font-size: var(--font-size-md);
        width: 15em;
    }

    #staff .staffWearing {
        width: 70%;
    }

    #staff p {
        font-size: 16px;
    }
}

footer::before{
    content: "";
    display: block;
    height: 40px; /* ここがスペースの高さ */
}

.page-about footer::before {
    display: none;
}

.page-about #about {
    box-shadow: inset 0 -15px 20px -10px rgba(0, 0, 0, 0.15);
}