/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 10px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff6347, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header-character {
    position: relative;
}

.main-character-preview {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #ff69b4, #ff1493);
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.main-character-preview::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 15px;
    background: white;
    border-radius: 50%;
    top: 20px;
    left: 20px;
    box-shadow: 20px 0 white;
}

.main-character-preview::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    border-radius: 50%;
    bottom: -10px;
    left: 10px;
}

.close-btn {
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-icon {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Navigation Styles */
.navigation {
    padding: 0 40px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.nav-button {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,71,87,0.4);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffe4e6, #ffecef);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* About Section */
.about-section {
    margin-bottom: 60px;
}

.section-banner {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.pennant-left, .pennant-right {
    position: absolute;
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    transform: rotate(-15deg);
    top: -20px;
}

.pennant-left::before, .pennant-left::after,
.pennant-right::before, .pennant-right::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 40px;
    background: inherit;
}

.pennant-left {
    left: 30%;
}

.pennant-right {
    right: 30%;
    transform: rotate(15deg);
}

.section-title {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0;
}

.section-subtitle {
    font-size: 1.2em;
    color: #666;
}

/* Character Section */
.character-section {
    margin-bottom: 60px;
}

.character-header {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.character-title {
    font-size: 2em;
    margin-bottom: 5px;
}

.character-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.character-display {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.character-illustration {
    flex: 1;
    position: relative;
}

.character-background {
    background: linear-gradient(135deg, #87ceeb, #98fb98);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.character-background::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
}

.character-main {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-shape {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #ff69b4, #ff1493);
    border-radius: 50%;
    position: relative;
    animation: gentle-bounce 3s infinite;
}

.character-face {
    position: absolute;
    top: 30px;
    left: 30px;
}

.character-face::before {
    content: '◐◑';
    color: white;
    font-size: 20px;
}

.character-face::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    border-radius: 50%;
    bottom: -20px;
    left: -10px;
}

.character-speech {
    flex: 1;
}

.speech-bubble {
    background: white;
    padding: 30px;
    border-radius: 25px;
    border: 3px solid #ff1493;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1.1em;
    line-height: 1.8;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 30%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -23px;
    top: 30%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid #ff1493;
}

/* Character Selection */
.character-selection {
    margin-top: 40px;
}

.selection-title {
    font-size: 1.5em;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.character-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.character-card:hover {
    border-color: #ff69b4;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,105,180,0.3);
}

.character-card.active {
    border-color: #ff1493;
    background: linear-gradient(135deg, #ffe4e6, #fff1f3);
}

.character-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    position: relative;
}

/* Character Colors */
.polypoli-icon { background: radial-gradient(circle, #ff69b4, #ff1493); }
.polimama-icon { background: radial-gradient(circle, #ffc0cb, #ff69b4); }
.polikin1-icon { background: radial-gradient(circle, #ffd700, #ffa500); }
.polikin2-icon { background: radial-gradient(circle, #98fb98, #90ee90); }
.polikin3-icon { background: radial-gradient(circle, #87ceeb, #4682b4); }
.polikin4-icon { background: radial-gradient(circle, #dda0dd, #ba55d3); }
.polikin5-icon { background: radial-gradient(circle, #ffa07a, #ff7f50); }
.polikin6-icon { background: radial-gradient(circle, #f0e68c, #daa520); }
.polikin7-icon { background: radial-gradient(circle, #ffb6c1, #ff1493); }
.polipet-icon { background: radial-gradient(circle, #d2691e, #a0522d); }

.pet-selection {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Profile Section */
.profile-section {
    margin-top: 60px;
}

.profile-header {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.profile-title {
    font-size: 2em;
    margin-bottom: 5px;
}

.profile-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.history-button {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.history-button:hover {
    transform: scale(1.05);
}

.story-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.story-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.story-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.story-illustration {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tower-illustration {
    width: 100px;
    height: 200px;
    background: linear-gradient(135deg, #c0c0c0, #808080);
    position: relative;
    clip-path: polygon(30% 0%, 70% 0%, 60% 100%, 40% 100%);
}

.tower-illustration::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 20px;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    border-radius: 50%;
    top: -10px;
    left: -10px;
}

.basket-illustration {
    position: absolute;
    bottom: 0;
    background: linear-gradient(45deg, #d2691e, #8b4513);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: bold;
}

.story-text {
    flex: 2;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

/* Story Navigation */
.story-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.story-nav-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.story-nav-item:hover {
    border-color: #ff69b4;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255,105,180,0.2);
}

.story-nav-item.active {
    border-color: #ff1493;
    background: linear-gradient(135deg, #ffe4e6, #fff1f3);
}

.story-number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 10px;
}

.story-text-small {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.family-row {
    width: 200px;
    height: 30px;
    background: linear-gradient(90deg, 
        #ff69b4 0%, #ffc0cb 11%, #ffd700 22%, #98fb98 33%, 
        #87ceeb 44%, #dda0dd 55%, #ffa07a 66%, #f0e68c 77%, 
        #ffb6c1 88%, #d2691e 100%);
    border-radius: 15px;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.disclaimer {
    font-size: 0.8em;
    opacity: 0.6;
    line-height: 1.6;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px 10px 20px;
    }
    
    .logo h1 {
        font-size: 1.8em;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
        margin: 2px;
    }
    
    .character-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .story-content {
        flex-direction: column;
    }
    
    .story-navigation {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .main-content {
        margin: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }
    
    .character-shape {
        width: 100px;
        height: 100px;
    }
    
    .character-card {
        padding: 15px;
    }
    
    .character-icon {
        width: 50px;
        height: 50px;
    }
}

