:root {
    --primary-color: #333;
    --accent-color: #ff5252;
    --text-color: #333;
    --bg-light: #f8f8f8;
    
    /* Brand Colors */
    --smbc-color: #00A960;
    --smbc-bg: #F0FAF5;
    --jcb-color: #00448E;
    --jcb-bg: #F0F4FA;
    --jal-color: #E10009;
    --jal-bg: #FAF0F0;
    --dcard-color: #E3161C;
    --dcard-bg: #FFF9F0;
    --saison-color: #0060B2;
    --saison-bg: #F2F0FA;
    --others-color: #666;
    --others-bg: #F8F8F8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* --- Main Visual --- */
.mv {
    padding: 100px 0 100px;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background-color: #fff;
}

/* 放射線背景 */
.mv-rays {
    position: absolute;
    top: 65%;
    left: 50%;
    width: 200%;
    height: 200%;
    margin-top: -100%;
    margin-left: -100%;
    background: conic-gradient(
        #fff 0deg 15deg, 
        #fff9c4 15deg 30deg, 
        #fff 30deg 45deg, 
        #fff9c4 45deg 60deg,
        #fff 60deg 75deg,
        #fff9c4 75deg 90deg,
        #fff 90deg 105deg,
        #fff9c4 105deg 120deg,
        #fff 120deg 135deg,
        #fff9c4 135deg 150deg,
        #fff 150deg 165deg,
        #fff9c4 165deg 180deg,
        #fff 180deg 195deg,
        #fff9c4 195deg 210deg,
        #fff 210deg 225deg,
        #fff9c4 225deg 240deg,
        #fff 240deg 255deg,
        #fff9c4 255deg 270deg,
        #fff 270deg 285deg,
        #fff9c4 285deg 300deg,
        #fff 300deg 315deg,
        #fff9c4 315deg 330deg,
        #fff 330deg 345deg,
        #fff9c4 345deg 360deg
    );
    z-index: -3;
    animation: rotateRays 40s linear infinite;
    opacity: 0.4;
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
}

@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* top.png 背景圖層 */
.mv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/top.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

.mv-title-area {
    position: relative;
    display: inline-block;
}

.mv-handwritten {
    font-family: 'Caveat', cursive;
    font-size: 2.6rem;
    color: var(--accent-color);
    position: absolute;
    top: -65px;
    left: -15px;
    transform: rotate(-12deg);
    white-space: nowrap;
    z-index: 5;
    text-shadow: 2px 2px 0 #fff, 0 0 10px rgba(255, 82, 82, 0.3);
}

.mv-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    color: #111;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.9));
}

.mv-title span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.mv-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.1em;
    margin-top: 5px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    overflow: hidden;
}

.mv-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    animation: lineFlow 3s ease-in-out infinite;
}

@keyframes lineFlow {
    0% { left: -100%; }
    20% { left: 0; }
    40% { left: 100%; }
    100% { left: 100%; }
}

/* 主要裝飾區域 (角色 + 卡片) */
.mv-main-deco {
    position: relative;
    display: inline-block;
    margin-top: 40px;
}

/* 躲貓貓角色 */
.mv-character {
    position: absolute;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 1; 
    animation: peekingPopo 4s ease-in-out infinite;
}

.mv-character img {
    width: 100%;
    height: auto;
}

@keyframes peekingPopo {
    0%, 100% { transform: translateX(-50%) translateY(-50px); }
    20%, 80% { transform: translateX(-50%) translateY(-75px); }
}

/* 裝飾卡片 */
.mv-card-deco {
    position: relative;
    z-index: 2; 
    margin: 0;
}

.mv-card-deco img {
    width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.15));
}

/* --- Index Navigation --- */
.index-nav {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.index-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    max-width: 600px;
    margin: 0 auto;
}

.index-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 110px;
    background: #fff;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 10px 5px;
}

.index-list li a img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.index-list li a span {
    line-height: 1.2;
    margin-bottom: 5px;
}

.index-list li a::after {
    content: "▼";
    font-size: 0.6rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.index-list li a:hover::after {
    color: var(--accent-color);
    transform: translateY(3px);
    animation: arrowBounce 0.6s infinite alternate;
}

@keyframes arrowBounce {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

.index-list li a:hover {
    background: #fdfdfd;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* --- Brand Sections --- */
.brand-section { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.section-smbc { background-color: var(--smbc-bg); }
.section-smbc .section-title::after { background-color: var(--smbc-color); }
.section-smbc .section-title { color: var(--smbc-color); }

.section-jcb { background-color: var(--jcb-bg); }
.section-jcb .section-title::after { background-color: var(--jcb-color); }
.section-jcb .section-title { color: var(--jcb-color); }

.section-jal { background-color: var(--jal-bg); }
.section-jal .section-title::after { background-color: var(--jal-color); }
.section-jal .section-title { color: var(--jal-color); }

.section-dcard { background-color: var(--dcard-bg); }
.section-dcard .section-title::after { background-color: var(--dcard-color); }
.section-dcard .section-title { color: var(--dcard-color); }

.section-saison { background-color: var(--saison-bg); }
.section-saison .section-title::after { background-color: var(--saison-color); }
.section-saison .section-title { color: var(--saison-color); }

.section-others { background-color: var(--others-bg); }
.section-others .section-title::after { background-color: var(--others-color); }

/* --- Card Items --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    padding-bottom: 10px;
}

.card-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-main-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.card-img-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.card-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-info { flex: 1; padding: 0; }
.card-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-reward { margin-bottom: 5px; font-weight: bold; color: #ff3333; }
.reward-point { font-size: 1.6rem; color: #ff3333; margin-right: 2px; }
.card-condition { font-size: 0.8rem; color: #666; margin: 0; }

.btn-apply {
    display: block;
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-top: auto;
}

.card-item:hover { transform: translateY(-5px); }
.btn-apply:hover { background: #ff3333; }

footer { background: #333; color: #fff; padding: 10px 0; text-align: center; font-size: 0.8rem; }

@media (max-width: 768px) {
    .mv { padding: 80px 0 60px; background-position: center bottom; }
    .mv-title-area { padding: 0; }
    .mv-title { font-size: 2.2rem; }
    .mv-subtitle { font-size: 1.1rem; }
    .mv-handwritten { font-size: 1.6rem; top: -30px; }
    .mv-main-deco { margin-top: 30px; }
    .mv-card-deco img { width: 280px; }
    .mv-character { width: 90px; top: 20px; }
    @keyframes peekingPopo {
        0%, 100% { transform: translateX(-50%) translateY(-30px); }
        20%, 80% { transform: translateX(-50%) translateY(-45px); }
    }
    .index-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .index-list li a { height: auto; min-height: 95px; padding: 10px 4px; font-size: 0.7rem; }
    .index-list li a img { width: 35px; height: 35px; margin-bottom: 5px; }
    .index-list li a::after { font-size: 0.5rem; }
    .brand-section { padding: 60px 0; }
}
