
html {
    scroll-behavior: smooth;
}

/**********************************************/
/* ページ共通レイアウト（main / 見出し / パンくず） */
/**********************************************/
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 150px;
    padding-left: 13%;
    padding-right: 13%;
    padding-bottom: 50px;
    gap: 50px;
}
@media (max-width: 1200px) {
    main {
        padding-left: 8%;
        padding-right: 8%;
    }
}
@media (max-width: 700px) {
    main {
        padding-left: 5%;
        padding-right: 5%;
    }
}
.page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 {
    font-size: 36px;
    position: relative;
    padding: 0 15px;
}
.breadcrumb {
    margin-right: auto;
    width: 100%;
    font-size: 16px;
    font-family: "Noto Sans JP", sans-serif;
}
h2 {
    margin-right: auto;
    position: relative;
    display: inline-block;
    padding-right: 10px;
    margin-bottom: 15px;
}
h2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(70vw - 100% - 10px);
    height: 1.5px;
    background: linear-gradient(to right, var(--color-cyan), var(--color-magenta));
    transform: translateY(-50%);
}
@media (max-width: 1200px) {
    h2::after {
        width: calc(84vw - 100% - 10px);
    }
}
.activity-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 60px;
}
#management, #competition {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#management > h2, #competition > h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}
#management-div::after, #competition-div::after {
    content: none;
}
.h2-count {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #aaa;
}
.team-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.team-index {
    width: 100%;
    display: flex;
    gap: 40px;
    margin: 0;
}
.index-column {
    flex: 1;
}
.competition {
    flex: 1.5;
}
@media (max-width: 600px) {
    .team-index {
        flex-direction: column;
        gap: 20px;
    }
}
.division-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    padding-left: 10px;
}
@media (max-width: 600px) {
    .division-title {
        margin-bottom: 5px;
    }
}
.management .division-title {
    color: #000000;
    border-left: 4px solid #44db4b;
}
.competition .division-title {
    color: #000000;
    border-left: 4px solid #ff6456;
}
.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 2px;
}
.team-list li a {
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    margin: 2px 2px;
    padding: 3px 20px;
    color: black;
    background-color: white;
    border: 1px solid rgb(31, 31, 31);
    border-radius: 100px;
    transition: all 0.25s ease-in-out;
}
.team-list li a:hover {
    color: white;
    background-color: rgb(31, 31, 31);
}

/**********************************************/
/* チームカラー変数（現状は未使用だが、将来の演出用に定義） */
/**********************************************/
#event-team { --c1: #00d60b; --c2: #64e40f; }
#pr-team    { --c1: #0066ff; --c2: #42baff; }
#dev-team   { --c1: #ff6600; --c2: #ffa723; }
#valo-team  { --c1: #ff0000; --c2: #ff5a5a; }
#ow-team    { --c1: #ff9a03; --c2: #ffb23f; }
#sf6-team   { --c1: #003cff; --c2: #0072ff; }
#ssbu-team  { --c1: #cc0000; --c2: #ff0000; }
#wb-team    { --c1: #ae00ff; --c2: #00ccff; }

/**********************************************/
/* チームブロック（見出し・本文・写真・実績） */
/**********************************************/
.team-block {
    position: relative;
    padding: 48px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    scroll-margin-top: 150px;
}
.team-block:first-child {
    padding-top: 0;
    border-top: none;
}

.team-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.team-block .block-head {
    margin-bottom: 28px;
}
.team-block .block-title {
    display: block;
    margin: 0;
    padding: 0;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: #111;
}
.team-block .block-subtitle {
    display: block;
    margin: 8px 0 0;
    font-size: 14px;
    letter-spacing: 3px;
    color: #8a8a8a;
}

.team-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.team-about {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-about p {
    margin: 0;
    line-height: 1.5;
}

.team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.meta-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 6px;
    width: 300px;
}
.meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #aaa;
    font-family: "Orbitron", sans-serif;
}
.meta-value {
    display: block;
    padding: 9px 14px;
    background: #fafafa;
    border-radius: 6px;
    font-size: 13.5px;
    color: #333;
}
.meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.achv-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #999;
}
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.achievement-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px 9px 16px;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
}
.achievement-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c1);
}
.achievement-card:not(.pending):hover {
    background: #f0f0f0;
}
.achievement-card .ach-title {
    font-size: 12.5px;
    color: #222;
}
.achievement-card.pending {
    opacity: 0.35;
    pointer-events: none;
}

/**********************************************/
/* ギャラリー（左側に縦並び／ホバーでバナー表示） */
/**********************************************/
.team-gallery {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.team-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}
.team-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.no-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(240, 240, 240);
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    color: rgb(150, 150, 150);
}

/* ホバー時にキャプションを表示するバナー演出 */
.team-gallery .gallery-item::before,
.team-gallery .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.45, 0, 0.55, 1);
}
.team-gallery .gallery-item::before {
    background: rgba(60, 60, 60, 0.5);
}
.team-gallery .gallery-item::after {
    content: attr(data-caption);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
}
.team-gallery .gallery-item:hover::before,
.team-gallery .gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .team-row {
        flex-direction: column;
        align-items: stretch;
    }
    .team-gallery {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .team-gallery .gallery-item,
    .team-gallery .no-img {
        flex: 1 1 220px;
    }
    .team-gallery img,
    .no-img {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 600px) {
    .team-block {
        padding: 32px 0;
    }
    .team-about {
        font-size: 13px;
        line-height: 1.7;
    }
    .team-meta {
        gap: 4px 20px;
    }
}
