/* オロルンファンサイト用CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS 1p', sans-serif;
    background: linear-gradient(135deg, #1a0d2e 0%, #2d1b3d 25%, #3d2a5c 50%, #2d1b3d 75%, #1a0d2e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #9d7df0, transparent),
        radial-gradient(2px 2px at 40px 70px, #6c5ce7, transparent),
        radial-gradient(1px 1px at 90px 40px, #a29bfe, transparent),
        radial-gradient(1px 1px at 130px 80px, #fd79a8, transparent),
        radial-gradient(2px 2px at 160px 30px, #74b9ff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes sparkle {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

/* ヘッダー */
.main-header {
    background: linear-gradient(135deg, rgba(138, 91, 218, 0.9) 0%, rgba(81, 45, 168, 0.95) 100%);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(138, 91, 218, 0.4);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 223, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 91, 218, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.site-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffd700, #ffffff, #9d7df0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 2px;
}

/* メインコンテンツ */
.main-content {
    padding: 3rem 0;
}

/* キャラクター紹介 */
.character-intro {
    margin-bottom: 4rem;
}

.intro-card {
    background: linear-gradient(135deg, rgba(138, 91, 218, 0.2) 0%, rgba(81, 45, 168, 0.3) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(138, 91, 218, 0.4);
    box-shadow: 0 8px 32px rgba(138, 91, 218, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.char-avatar {
    position: relative;
    min-width: 200px;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #512da8, #8a5bda);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.7);
    border: 4px solid rgba(255, 223, 0, 0.5);
    box-shadow: 0 0 30px rgba(138, 91, 218, 0.6);
    overflow: hidden;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@font-face {
    font-family: 'Script-Latin-Based';
    src: url('Script-Latin-Based.woff2.woff2') format('woff2');
}

.script-latin-based {
    font-family: 'Script-Latin-Based', rubik, RubikSupplement, helvetica, arial, sans-serif;
}

.element-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d1b3d;
    padding: 8px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.char-info {
    flex: 1;
    min-width: 300px;
}

.char-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #8a5bda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.char-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.label {
    font-weight: bold;
    color: #ffd700;
    min-width: 50px;
    flex-shrink: 0;
}

.value {
    color: #e0e0e0;
    flex-shrink: 0;
}

.char-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d0d0d0;
    font-style: italic;
}

/* ツールセクション */
.tools-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffd700, #ffffff, #8a5bda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: linear-gradient(135deg, rgba(138, 91, 218, 0.15) 0%, rgba(81, 45, 168, 0.25) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(138, 91, 218, 0.3));
    border-radius: 15px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 91, 218, 0.4);
}

.tool-card.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(138, 91, 218, 0.3) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: bold;
    flex: 1;
}

.card-header i {
    font-size: 1.5rem;
    color: #ffd700;
}

.tag {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tag.hot {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.tag.new {
    background: linear-gradient(45deg, #00d2d3, #01a3a4);
    color: white;
}

.tag.utility {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
}

.tag.audio {
    background: linear-gradient(45deg, #fd79a8, #e84393);
    color: white;
}

.tag.visual {
    background: linear-gradient(45deg, #fdcb6e, #e17055);
    color: white;
}

.tag.gacha {
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-body p {
    line-height: 1.6;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(138, 91, 218, 0.3);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(138, 91, 218, 0.5);
}

.card-footer {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d1b3d;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-play.disabled {
    background: linear-gradient(135deg, #6c757d, #8a8a8a);
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.btn-play.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* ニュースセクション */
.news-section {
    margin-bottom: 4rem;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: linear-gradient(135deg, rgba(138, 91, 218, 0.1) 0%, rgba(81, 45, 168, 0.2) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ffd700;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.news-date {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2d1b3d;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.news-content p {
    color: #d0d0d0;
    line-height: 1.5;
}

/* 名言セクション */
.quotes-section {
    margin-bottom: 4rem;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quote-card {
    background: linear-gradient(135deg, rgba(138, 91, 218, 0.2) 0%, rgba(81, 45, 168, 0.3) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.3);
    font-family: serif;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.quote-source {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
}

/* フッター */
.main-footer {
    background: linear-gradient(135deg, rgba(26, 13, 46, 0.95) 0%, rgba(45, 27, 61, 0.98) 100%);
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(138, 91, 218, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-section p {
    color: #d0d0d0;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(138, 91, 218, 0.3);
    color: #a0a0a0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .intro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .char-details {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .quotes-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tool-card,
    .quote-card,
    .intro-card {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}