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

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.5;
    color: #333;
    background: linear-gradient(180deg, #FDF6E3 0%, #F9F0D5 30%, #F3E8C0 70%, #EADAA5 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 375px;
    margin: 0 auto;
    background: linear-gradient(180deg, #FDF6E3 0%, #F9F0D5 30%, #F3E8C0 70%, #EADAA5 100%);
    min-height: 100vh;
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.hero-description {
    padding: 20px 15px;
    margin: 0 20px 30px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.hero-description h2 {
    color: #1E90FF;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.hero-description p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    padding: 0 5px;
    word-break: keep-all;
    white-space: normal;
}

/* Section Headers */
.section-header {
    margin: 25px 0 0 0;
    padding: 0;
}

.blue-header {
    background: #1E90FF;
    padding: 12px 0;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin: 25px 20px 0 20px;
}

.blue-header h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

/* Content Boxes */
.content-box {
    background: white;
    margin: 0 20px 0 20px;
    padding: 20px 15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Event Items */
.event-item {
    margin-bottom: 20px;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item h3 {
    color: #1E90FF;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.event-item p {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Stage Sections */
.stage-section {
    margin-bottom: 0;
    padding: 15px 0;
    background: transparent;
}

.stage-section:first-child {
    margin-bottom: 10px;
}

.stage-section:last-child {
    margin-bottom: 0;
}

/* Mission Section (inside event rules) */
.mission-section {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0 30px 0;
    border: 1px solid #1E90FF;
    position: relative;
    padding-bottom: 20px;
}

.mission-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    right: -15px;
    height: 2px;
    background: #1E90FF;
    z-index: 1;
}

.mission-section::before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #1E90FF;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.mission-section h3 {
    color: #1E90FF;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.stage-section h2 {
    color: #1E90FF;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.stage-section h3 {
    color: #1E90FF;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stage-period {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.stage-section p {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 5px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stage-section p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #1E90FF;
    font-weight: bold;
    font-size: 0.85rem;
}

.stage-mission-note {
    color: #1E90FF;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 0;
}

.red-text {
    color: #e30613;
    font-weight: bold;
}

.small-text {
    font-size: 0.8rem;
    color: #666;
}

/* Prize Section */
.prize-section {
    margin-top: 10px;
    padding-top: 10px;
}

.prize-section h3 {
    color: #1E90FF;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

/* Prize Display */
.prize-display {
    text-align: center;
    margin: 20px 0;
}

.prize-image {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
    max-width: 90%;
}

.prize-title {
    max-width: 150px;
    height: auto;
    margin: 10px 0;
}

.prize-subtitle {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Registration Button */
.registration-button {
    background: #1E90FF;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin: 20px 0;
    width: 100%;
    max-width: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
    transition: background 0.2s ease;
}

.registration-button:hover {
    background: #0080FF;
}

/* Shipping Info */
.shipping-info {
    margin-top: 25px;
}

.shipping-info h3 {
    color: #1E90FF;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.shipping-info ul {
    list-style: none;
    padding: 0;
}

.shipping-info li {
    color: #333;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
    word-break: break-word;
}

.shipping-info li:before {
    content: "・";
    position: absolute;
    left: 0;
    color: #1E90FF;
}

/* Mission subtitle */
.mission-subtitle {
    color: #1E90FF;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: left;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.mission-item {
    background: #f8f9fa;
    border: 2px solid #1E90FF;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.mission-icon-img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.mission-item p {
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.3;
}

.mission-reward {
    text-align: center;
    color: #1E90FF;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Mission Reward Items */
.mission-reward-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.reward-item {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.reward-image {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.reward-item p {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.reward-subtitle {
    font-size: 0.8rem;
    color: #666;
}

/* Participation Bonus */
.bonus-text {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.bonus-text p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.large-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1E90FF;
}

.bonus-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bonus-item {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    min-width: 120px;
    max-width: 200px;
}

.bonus-icon {
    width: 50px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}

.bonus-item p {
    color: #333;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

/* Footer */
footer {
    background: transparent;
    text-align: center;
    padding: 30px 0 40px 0;
}

.footer-logo {
    height: 30px;
    width: auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Headers */
    .blue-header {
        margin: 20px 10px 0 10px;
        font-size: 0.95rem;
        border-radius: 10px 10px 0 0;
    }
    
    .blue-header h2 {
        font-size: 1rem;
    }
    
    /* Content boxes */
    .content-box {
        margin: 0 10px 0 10px;
        padding: 15px 10px;
    }
    
    /* Hero section */
    .hero-description {
        margin: 0 10px 20px 10px;
        padding: 15px 10px;
    }
    
    .hero-description h2 {
        font-size: 1.1rem;
    }
    
    .hero-description p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    /* Stage sections */
    .stage-section {
        padding: 10px 0;
    }
    
    .stage-section h2,
    .stage-section h3 {
        font-size: 0.95rem;
    }
    
    .stage-section p {
        font-size: 0.8rem;
    }
    
    .stage-period {
        font-size: 0.8rem;
    }
    
    /* Mission section */
    .mission-section {
        margin: 8px 0 25px 0;
        padding: 12px 10px 15px 10px;
    }
    
    .mission-section h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .mission-grid {
        gap: 8px;
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-item {
        padding: 8px;
    }
    
    .mission-item p {
        font-size: 0.75rem;
    }
    
    .mission-icon-img {
        width: 25px;
        height: 25px;
    }
    
    .mission-reward-items {
        gap: 8px;
    }
    
    .reward-item {
        padding: 10px;
    }
    
    .reward-image {
        width: 50px;
        height: 50px;
    }
    
    .reward-item p {
        font-size: 0.8rem;
    }
    
    /* Prize section */
    .prize-section {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .prize-section h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .prize-image {
        width: 160px;
    }
    
    .prize-subtitle {
        font-size: 0.85rem;
    }
    
    /* Registration button */
    .registration-button {
        font-size: 1rem;
        padding: 10px 30px;
        width: 90%;
        max-width: 180px;
    }
    
    /* Shipping info */
    .shipping-info h3 {
        font-size: 0.95rem;
    }
    
    .shipping-info li {
        font-size: 0.75rem;
    }
    
    /* Bonus section */
    .bonus-text {
        padding: 0 5px;
    }
    
    .bonus-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .large-text {
        font-size: 1.05rem;
    }
    
    .bonus-items {
        gap: 8px;
        padding: 0;
    }
    
    .bonus-item {
        width: auto;
        max-width: 160px;
        padding: 10px;
    }
    
    .bonus-icon {
        width: 40px;
        height: 32px;
    }
    
    .bonus-item p {
        font-size: 0.8rem;
    }
    
    /* Event items */
    .event-item h3 {
        font-size: 0.9rem;
    }
    
    .event-item p {
        font-size: 0.8rem;
    }
    
    /* Footer */
    footer {
        padding: 20px 0 30px 0;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    /* Highlight and other text */
    .highlight {
        font-size: 0.8rem;
    }
    
    .small-text {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .mission-grid {
        gap: 6px;
    }
    
    .mission-item {
        padding: 6px;
    }
    
    .mission-item p {
        font-size: 0.7rem;
    }
    
    .bonus-item {
        max-width: 140px;
    }
}