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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "M PLUS 1", sans-serif;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fbca1b;
    min-height: 100vh;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
}

.hamburger.visible {
    opacity: 1;
}

.hamburger-btn {
    background: linear-gradient(135deg, #9c67d1 0%, #98efed 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3.2px, -3.2px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 103, 209, 0.9) 0%, rgba(152, 239, 237, 0.9) 100%);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-close:hover {
    transform: rotate(90deg);
    opacity: 0.8;
}

.overlay nav a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    margin: 20px 0;
    padding: 10px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    transform: translateY(50px);
    opacity: 0;
    font-family: "BBH Bartle", sans-serif;
    font-style: normal;
}

.overlay.active nav a {
    transform: translateY(0);
    opacity: 1;
}

.overlay nav a:nth-child(1) { transition-delay: 0.1s; }
.overlay nav a:nth-child(2) { transition-delay: 0.2s; }
.overlay nav a:nth-child(3) { transition-delay: 0.3s; }
.overlay nav a:nth-child(4) { transition-delay: 0.4s; }
.overlay nav a:nth-child(5) { transition-delay: 0.5s; }

.overlay nav a:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.commission-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.8s ease;
}

.content-wrapper h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-family: "BBH Bartle", sans-serif;
    font-style: normal;
}

.intro-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.intro-section p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.commission-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.platform-header {
    background: linear-gradient(135deg, #2accbb 0%, #f1e7b0 100%);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.platform-icon {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.platform-header h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.commission-content {
    padding: 30px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #555;
}

.detail-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.detail-section p {
    margin-bottom: 8px;
    line-height: 1.8;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.detail-section li::before {
    content:'●';
    color: #667eea;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.platform-link {
    display: block;
    background-color: #2accbb;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.platform-link:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.info-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

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

.flow-item {
    background-color: #f1e7b0;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.flow-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.flow-number {
    width: 50px;
    height: 50px;
    background-color: #2accbb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flow-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.flow-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.notice-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.notice-section ul {
    list-style: none;
    padding-left: 0;
}

.notice-section li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.8;
}

.notice-section li::before {
    content: '⚠';
    color: #764ba2;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.contact-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.contact-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2accbb;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.portal-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: linear-gradient(135deg, #9c67d1 0%, #98efed 100%);
    color: white;
    text-decoration: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: "BBH Bartle", sans-serif;
    font-style: normal;
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portal-btn:hover::before {
    left: 100%;
}

.portal-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .commission-page {
        padding: 80px 20px 40px;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .commission-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .flow-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .overlay nav a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper h1 {
        font-size: 1.3rem;
        word-break: break-word;
    }
    
    .platform-header h2 {
        font-size: 1.3rem;
    }
    
    .info-section,
    .notice-section,
    .contact-section {
        padding: 25px;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .flow-item {
        text-align: left;
    }
    
    .flow-number {
        margin: 0 15px 0 0;
        float: left;
    }
    
    .flow-item h3 {
        display: inline-block;
        margin-top: 10px;
    }
    
    .flow-item p {
        clear: both;
        margin-top: 10px;
    }

    .detail-section br {
        display: none;
    }
}