@charset "UTF-8";
/* 東大剣道部について用スタイル */

.basic-info-section {
    margin-bottom: 20px !important;
}

.accordion-section {
    margin-bottom: 50px !important;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-top: var(--divider-section);
}

.main-panel .info-item> :not(.info-heading) {
    margin-left: 15px;
    margin-right: 15px;
}

.main-panel .info-heading {
    font-size: 16px !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 400 !important;
    color: var(--text-main) !important;
    background-color: transparent !important;
    border-left: 4px solid var(--color-red) !important;
    border-radius: 0 !important;
    line-height: 2 !important;
    padding: 0 0 0 10px !important;
    margin: 15px 0 !important;
}

.main-panel .info-text {
    font-size: clamp(14px, 2vw, 16px) !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 400 !important;
    line-height: 2 !important;
    margin-bottom: 10px !important;
}

/* ---------------- 部員数 ---------------- */
.info-date {
    font-size: 14px !important;
    color: var(--text-body) !important;
    margin-left: 10px !important;
}

/* Cocoonが設定している色をリセット */
.main-panel .member-table tr,
.main-panel .member-table thead,
.main-panel .member-table tbody,
.main-panel .member-table tfoot {
    background-color: transparent !important;
}

.main-panel .member-table,
.main-panel .member-table th,
.main-panel .member-table td,
.main-panel .member-table thead,
.main-panel .member-table tfoot,
.main-panel .member-table tr {
    border-color: var(--divider-table-row) !important;
}

.main-panel .member-table tr:nth-of-type(2n+1),
.main-panel .member-table tr:nth-of-type(odd),
.main-panel .member-table tr:nth-of-type(even) {
    background-color: transparent !important;
}

/* 自分の設定 */
.member-table-container {
    margin-top: 30px !important;
    overflow-x: auto !important;
}

.main-panel .member-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 15px !important;
    color: var(--text-body) !important;
    background-color: transparent !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
}

.main-panel .member-table th {
    padding: 15px 10px !important;
    border-left: none !important;
    border-right: none !important;
    border-top: var(--divider-table-strong) !important;
    border-bottom: var(--divider-table-header) !important;
    font-weight: 700 !important;
    color: var(--text-body) !important;
    background-color: transparent !important;
    text-align: center !important;
}

.main-panel .member-table td {
    padding: 15px 10px !important;
    border-top: none !important;
    border-bottom: var(--divider-table-row) !important;
    border-left: none !important;
    border-right: none !important;
    text-align: center !important;
    background-color: transparent !important;
}

.main-panel .member-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.main-panel .cell-grade {
    font-weight: 500 !important;
}

.main-panel .cell-total {
    font-weight: 700 !important;
}

.main-panel .row-sum td {
    border-top: var(--divider-table-summary-top) !important;
    border-bottom: var(--divider-table-strong) !important;
    border-left: none !important;
    border-right: none !important;
}

/* レスポンシブは文字を少し小さくして収まりを良くする */
@media screen and (max-width: 600px) {
    .main-panel .member-table {
        font-size: 13px;
        min-width: 0px;
    }

    .main-panel .member-table th,
    .main-panel .member-table td {
        padding: 12px 5px;
    }
}

/* ----------------------------------------- */

/* ---------------- 練習日程、指導体制共通 ---------------- */

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
    margin-left: 15px;
    margin-right: 15px;
}

.info-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-left: 2.5px solid var(--color-red);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: var(--card-shadow);
}

.featured-highlight {
    grid-column: 1 / -1;
}

.info-label {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    color: var(--text-body);
    letter-spacing: 0.03em;
    margin-bottom: 3px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------------- 練習日程 ---------------- */
.practice-schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-time {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.35;
}

.practice-time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.45;
}

.practice-time-list span {
    display: inline-block;
    font-weight: 500;
}

.practice-place {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e2e2;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    color: var(--text-support);
}

/* スマホ対応 */
@media screen and (max-width: 690px) {
    .practice-schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .info-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-card {
        padding: 15px;
        border-left-width: 2.5px;
        border-radius: 8px;
    }

    .practice-time-list {
        gap: 2px;
    }
}

/* ---------------- 指導体制 ---------------- */

/* 指導体制の親グリッドを1列に変更 */
.instructor-grid {
    grid-template-columns: 1fr;
}

/* カード内の共通グリッド設定 */
.instructor-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px 30px;
    /* 縦の隙間15px、横の隙間30px */
}

.instructor-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f0f0f0;
}

.instructor-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 役割ラベル（コーチ、女子コーチなど） */
.instructor-item .role {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-red);
    min-width: 5em;
    margin-right: 0.5em;
    white-space: nowrap;
}

/* 名前 */
.instructor-item .name {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    color: var(--text-body);
    white-space: nowrap;
}

/* 段位・卒業年次 */
.instructor-item .rank {
    font-size: 11px;
    color: var(--text-caption);
    margin-left: auto;
    white-space: nowrap;
}

.instructor-item .year {
    font-size: 11px;
    color: var(--text-caption);
    margin-left: 4px;
    min-width: 3em;
    white-space: nowrap;
}

.instructor-item .year::before {
    content: "(";
}

.instructor-item .year::after {
    content: ")";
}

/* PCサイズでの列数指定 */
@media screen and (min-width: 600px) {
    .col-3 {
        grid-template-columns: repeat(auto-fit, minmax(min(30%, 200px), 1fr));
    }

    .col-2 {
        grid-template-columns: repeat(auto-fit, minmax(min(45%, 280px), 1fr));
    }

    .instructor-list .instructor-item {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ----------------------------------------- */

/* ---------- accordion section ----------- */
.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-left: 15px;
    padding: 15px 0;
    font-size: clamp(18px, 2vw, 20px);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    line-height: 2;
    cursor: pointer;

    background: none;
    color: var(--text-main);

    text-align: left;
    border: none;
    outline: none;
    box-sizing: border-box;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 25px;
    display: inline-block;
    color: var(--text-main);
}

.accordion-icon::before {
    position: absolute;
    content: "";
    top: 40%;
    left: 50%;
    /* 矢印のサイズはwidthとheightで調整 */
    width: 10px;
    height: 10px;
    border-top: 1px solid black;
    border-right: 1px solid black;
    transform: translate(-50%, -40%) rotate(135deg);
    transition: 0.3s ease-in-out;
}

.active .accordion-icon::before {
    top: 60%;
    transform: translate(-50%, -60%) rotate(315deg);
}

.accordion-main-image {
    width: 70%;
    padding-top: 20px;
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
}

.accordion-main-image img {
    max-width: 90%;
    height: auto;
    border-radius: 3px;
    display: inline-block;
}

.accordion-content {
    border-top: var(--divider-section);
    padding-left: 5px;
    box-sizing: border-box;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion-text {
    font-size: var(--font-size-body-fluid);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    color: var(--text-body);
    line-height: 2.2;
    padding: 10px;
    text-align: justify;
    text-justify: inter-character;
    word-break: break-all;
}

.accordion-text p {
    margin-top: 1em !important;
    margin-bottom: 1em !important;
    text-indent: 1em !important;
}

/* ----------------------------------------- */

/* ギャラリー */
.accordion-gallery {
    display: grid;
    width: 90%;
    margin: 20px auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 個別のアイテム */
.gallery-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.52, 1, 0.36, 1);
}

.gallery-item--span-1x2 {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 8 / 3;
}

.gallery-item--span-2x1 {
    grid-column: span 1;
    grid-row: span 2;
    aspect-ratio: 2 / 3;
}

.gallery-item--span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(5%) contrast(95%);
    /* 少しグレーがかった落ち着いた感じに */
}

/* ホバーでキャプションを表示 */
.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--text-on-dark);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.52, 1, 0.36, 1);
    pointer-events: none;
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* スマホでは2列 */
@media screen and (max-width: 600px) {
    .accordion-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
