/* ===================================================
   CCC FRONTIER FESTIVAL - 共通パーツ（c-）: 見出し・グリッド・カード・ボタン・お知らせ枠・動画・表示アニメ
   =================================================== */

.c-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.c-section-en {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: var(--pink);
    margin-bottom: 6px;
}

.c-section-en-light { color: var(--lime); }

.c-section-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.4;
}

.c-section-title-h3 {
    text-align: center;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 900;
    line-height: 1.4;
}

.c-section-title-light { color: var(--white); }

.c-section-title-black { color: var(--text); }

.c-title-underline {
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    margin: 18px auto 0;
    border-radius: 3px;
}

.c-title-underline-h3 {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    margin: 18px auto 0;
    border-radius: 2px;
}

.c-section-subtitle {
    margin-top: 22px;
    font-size: 1rem;
    color: #555;
}

/* 暗い背景（teal等）の上で使う副題 */
.c-section-subtitle-light { color: azure; }

.c-video {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.12);
}

.c-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* グリッド（カード等を並べる枠）: c-grid-2 / c-grid-3 / c-grid-4 */
.c-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.c-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.c-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.c-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0,0,0,0.18);
}

.c-card-banner { overflow: hidden; }

.c-card-banner a { display: block; }

.c-card-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 675;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-card:hover .c-card-banner img { transform: scale(1.03); }

.c-card-body {
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 6px solid var(--ink);
}

/* テキストカード（バナー画像なしの区分用） */
.c-card-plain {
    aspect-ratio: 1200 / 675;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px;
    position: relative;
    color: var(--ink);
}

.c-card-plain-purple { background: var(--purple); }

.c-card-plain-orange { background: var(--orange); }

.c-card-plain .c-card-plain-en {
    font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--ink);
    font-weight: 700;
}

.c-card-plain .c-card-plain-en span {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.c-card-plain .c-card-plain-name {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.18em;
    background: var(--ink);
    color: var(--white);
    padding: 6px 28px;
}

.c-card-plain .c-card-plain-deadline {
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--white);
    color: var(--ink);
    padding: 3px 16px;
    border-radius: 999px;
}

.c-card-purple .c-card-body { border-top-color: #f0a125; }

.c-card-green  .c-card-body { border-top-color: var(--lime); }

.c-card-orange .c-card-body { border-top-color: var(--orange); }

.c-card-inter  .c-card-body { border-top-color: #7a5aa8; }

.c-card-blue   .c-card-body { border-top-color: #8ec4ea; }

.c-card-rose   .c-card-body { border-top-color: #c25378; }

.c-card-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.c-card-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--white);
    background: var(--ink);
    padding: 3px 12px;
    border-radius: 20px;
}

.c-card-purple .c-card-tag { background: #e08a10; }

.c-card-green  .c-card-tag { background: #8fa021; }

.c-card-orange .c-card-tag { background: var(--orange); }

.c-card-inter  .c-card-tag { background: #7a5aa8; }

.c-card-blue   .c-card-tag { background: #5a9bd4; }

.c-card-rose   .c-card-tag { background: #a93c63; }

.c-card-desc {
    font-size: 0.95rem;
    color: #555;
    flex: 1;
    margin-bottom: 22px;
}

.c-card-desc span {
    line-height: normal;
}

.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    font-size: 1.02rem;
    padding: 15px 20px;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.c-card-purple .c-btn:hover { background: var(--purple); }

.c-card-green  .c-btn:hover { background: #8fa021; }

.c-card-orange .c-btn:hover { background: var(--orange); }

.c-card-inter  .c-btn:hover { background: #7a5aa8; }

.c-card-rose   .c-btn:hover { background: #a93c63; }

.c-btn:hover { transform: translateY(-2px); }

.c-btn.c-btn-closed,
.c-btn.c-btn-closed:hover {
    background: #6b6b6b;
    cursor: default;
    transform: none;
}

.c-btn i { transition: transform 0.25s ease; }

.c-btn:hover i { transform: translateX(4px); }

.c-card-list-text {
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 22px;
}

.c-info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px ;
    margin-bottom: 20px;
    flex-wrap: wrap;
    box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}

/* 文章が長くてもボタンを右側に並べる（狭い画面では下に回り込む） */
.c-info-text { flex: 1 1 320px; min-width: 0; }

.c-info-text .c-section-en { margin-bottom: 2px; }

.c-info-text h3 {
    font-size: clamp(1rem, 2.6vw, 1.1rem);
    font-weight: 900;
    margin-bottom: 4px;
}

.c-info-text p { color: #555; font-size: 0.95rem; }

.c-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.c-info-btn:hover {
    background: var(--pink);
    transform: translateY(-2px);
}

.c-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.c-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .c-grid-2 { grid-template-columns: 1fr; }
    .c-grid-3 { grid-template-columns: 1fr; }
    .c-grid-4 { grid-template-columns: 1fr; }
    .c-card-plain {
        aspect-ratio: auto;
        min-height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .c-info-box { justify-content: center; text-align: left; }
}

/* ---------- セクション境界の飾り（ジグザグ・波線・もこもこ） ----------
   使い方：<section class="… c-edge c-edge-zigzag"> のように付ける。
   上のセクションに、自分の背景色（--edge-color）の形を重ねて描く。
   背景色は各セクションのCSSで --edge-color に指定する。
     --edge-width  … 形1つ分の幅（小さくすると数が増える）
     --edge-height … 形の高さ */
.c-edge { position: relative; }

.c-edge::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--edge-height) * -1 + 1px);
    height: var(--edge-height);
    background: var(--edge-color, #fff);
    -webkit-mask: var(--edge-mask) center top / var(--edge-width) 100% repeat-x;
            mask: var(--edge-mask) center top / var(--edge-width) 100% repeat-x;
    pointer-events: none;
}

.c-edge-zigzag { --edge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50L128 0L256 50Z'/%3E%3C/svg%3E"); --edge-width: 110px; --edge-height: 22px; }
.c-edge-wave   { --edge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50V25C42 0 86 0 128 25S214 50 256 25V50Z'/%3E%3C/svg%3E"); --edge-width: 240px; --edge-height: 24px; }
.c-edge-cloud  { --edge-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Cpath d='M0 50V46A50 46 0 0 1 100 46V50Z'/%3E%3C/svg%3E"); --edge-width: 64px; --edge-height: 22px; }

@media (max-width: 768px) {
    .c-edge-zigzag { --edge-width: 20vw; --edge-height: 3.9vw; }
    .c-edge-wave   { --edge-width: 40vw; --edge-height: 4.2vw; }
    .c-edge-cloud  { --edge-width: 12vw; --edge-height: 3.9vw; }
}
