/* Attend Section - Tab Functionality */
.attend {
    margin: 2rem 0;
}

/* タブナビゲーション */
.attend__tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.attend__tab {
    background: none;
    border: none;
    padding: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
    width: 33.333%;
    text-align: center;
}

/* 小学生タブ */
.attend__tab-elementary {
    color: #F04890;
    background: #FDECF3;
}

.attend__tab-elementary:hover {
    background: #FFD6D6;
}

.attend__tab-elementary.attend__tab-active {
    border-bottom-color: #F04890;
    background: #FDECF3;
    color: #F04890;
}

/* 中学生タブ */
.attend__tab-junior {
    color: #FF9D1C;
    background: #FFF5E8;
}

.attend__tab-junior:hover {
    background: #FFE1BA;
}

.attend__tab-junior.attend__tab-active {
    border-bottom-color: #FF9D1C;
    background: #FFF5E8;
    color: #FF9D1C;
}

/* 高校生タブ */
.attend__tab-high {
    color: #10B9E1;
    background: #E7F8FC;
}

.attend__tab-high:hover {
    background: #CFF1F9;
}

.attend__tab-high.attend__tab-active {
    border-bottom-color: #10B9E1;
    background: #E7F8FC;
    color: #10B9E1;
}

/* タブコンテンツ */
.attend__content {
    position: relative;
    transition: opacity 0.3s ease;
    margin-bottom: 3rem;
    padding: 2rem;
}

@media screen and (max-width: 767px){
    .attend__content{
        padding: 2rem 1rem;
    }
}

.attend__content-elementary{
    background-color: #FDECF3;
}

.attend__content-junior{
    background-color: #FFF5E8;
}

.attend__content-high{
    background-color: #E7F8FC;
}

.attend__content[data-tab]:not([data-tab="elementary"]) {
    display: none;
}

.attend__item-head {
    margin-bottom: 2rem;
}

.attend__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.attend__list-item {
    background: #f8f9fa;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    color: #555;
    border: 2px solid #e9ecef;
    font-size: 1.8rem;
}

.attend__items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.attend__item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.attend__item-img {
    flex-shrink: 0;
    width: 200px;
}

.attend__item-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.attend__item-content {
    flex: 1;
}

.attend__item-title {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.attend__item-txt {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.attend__btn{
    text-align: center;
    margin-top: 2rem;
}

.attend__btn-link{
    display: inline-block;
    position: relative;
    font-weight: bold;
    width: 240px;
    padding: 1rem 2rem;
    line-height: 33px;
    transition: all 0.3s ease;
}

.attend__btn-link:hover{
    opacity: 0.8;
}

.attend__btn-link.elementary{
    background-color: #F04890;
    color: #fff;
}

.attend__btn-link.junior{
    background-color: #FF9D1C;
    color: #fff;
}

.attend__btn-link.high{
    background-color: #10B9E1;
    color: #fff;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {

    
    .attend__tab:last-child {
        border-bottom: none;
    }
    
    .attend__list {
        gap: 1rem;
        align-items: center;
    }
    
    .attend__item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .attend__item-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .attend__item-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .attend__tab {
        font-size: 1.2rem;
        padding: 2rem 1rem;
    }
    
    .attend__item {
        padding: 1rem;
    }

    
    .attend__list-item {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }

    .attend__item-img{
        width: 100%;
        max-width: 480px;
    }

    .attend__item-title{
        font-size: 1.6rem;
    }

    .attend__item-txt{
        font-size: 1.4rem;
    }
}
