:root {
    --primary-red: #ff4d6d;
    --primary-red-hover: #ff3355;
    --sub-pink: #ffb3c6;
    --bg-pink: #ffe5ec;
    --bg-cream: #fffdf7;
    --text-color: #5c4046;
    --card-shadow: 0 8px 24px rgba(255, 77, 109, 0.15);
    --border-radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Kiwi Maru', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-cream);
    background-image: url('images/bg_pattern.png'); /* いちごのシームレスパターン */
    background-size: 300px;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ユーティリティクラス */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-light-pink { background-color: rgba(255, 229, 236, 0.8); }

/* ローダー */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-pink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.strawberry-loader {
    font-size: 4rem;
    animation: bounce 1s infinite alternate;
}
@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.1); }
}

/* ナビゲーションバー */
#navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: padding 0.3s;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.5rem;
}
.nav-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-red);
}
.nav-links a::after {
    content: '🍓';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.8rem;
}
.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
}
.hamburger { display: none; }

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    transition: all 0.2s;
    text-align: center;
}
.btn:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 rgba(0,0,0,0.1);
}
.btn-primary {
    background-color: var(--primary-red);
    color: white;
}
.btn-secondary {
    background-color: white;
    color: var(--primary-red);
    border: 3px solid var(--primary-red);
    padding: 9px 27px; /* ボーダー分調整 */
}
.btn-youtube { background-color: #ff0000; color: white; }
.btn-roblox { background-color: #00b06f; color: white; }
.btn-discord { background-color: #5865F2; color: white; }

.bounce-hover:hover {
    animation: jelly 0.6s;
}
@keyframes jelly {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.1, 0.9); }
    40% { transform: scale(0.9, 1.1); }
    50% { transform: scale(1.05, 0.95); }
    65% { transform: scale(0.98, 1.02); }
    75% { transform: scale(1.02, 0.98); }
    100% { transform: scale(1, 1); }
}

/* カード共通 */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 3px solid white;
}

/* セクション共通 */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 40px;
    text-shadow: 2px 2px 0 white;
}
.section-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Hero セクション */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* ナビ分 */
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 50px;
    border-radius: 40px;
    border: 4px dashed var(--sub-pink);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(5px);
}
.hero-title {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 0 white, 4px 4px 10px rgba(255,77,109,0.3);
}
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 700;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 背景のエフェクト（降ってくるいちご等） */
.bg-effects {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.floating-item {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 15s linear infinite;
    opacity: 0.3;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) rotate(0deg); }
    100% { transform: translateY(-10vh) rotate(360deg); }
}

/* About セクション */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--sub-pink);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}
.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.channel-stats { margin-top: 25px; }

/* Videos セクション */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    position: relative;
}
.video-card:hover {
    transform: translateY(-10px);
}
.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    border: 3px solid white;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A9A9A9); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); }

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.video-info {
    padding: 15px;
}
.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-stats {
    font-size: 0.9rem;
    color: #888;
}
.video-stats-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: bold;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed var(--sub-pink);
}

/* Roblox セクション */
.roblox-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(255,253,247,1) 0%, rgba(255,229,236,1) 100%);
}
.roblox-info h3 {
    color: #00b06f;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.roblox-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.roblox-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 5px solid white;
    transform: rotate(2deg);
    transition: transform 0.3s;
}
.roblox-image img:hover {
    transform: rotate(-2deg) scale(1.05);
}

/* News セクション */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}
.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 2px dashed var(--sub-pink);
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    font-weight: 700;
    color: var(--primary-red);
    width: 120px;
    flex-shrink: 0;
}

/* Community セクション */
.community-content {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 4px solid #5865F2;
}
.community-content h3 {
    color: #5865F2;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.discord-invite { margin-top: 25px; }

/* Contact セクション */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form p {
    text-align: center;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--sub-pink);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-red);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
.file-input {
    padding: 8px !important;
    cursor: pointer;
}
.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}
.char-count.over-limit {
    color: var(--primary-red);
    font-weight: bold;
}
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
    cursor: pointer;
}
.checkbox-group label {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    margin-bottom: 0;
}
.contact-form button {
    width: 100%;
    font-size: 1.2rem;
}

/* フッター */
footer {
    background-color: var(--primary-red);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid white;
}
.footer-socials a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    margin-left: 15px;
    transition: transform 0.2s;
    display: inline-block;
}
.footer-socials a:hover {
    transform: scale(1.2) rotate(10deg);
}
.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* スマホ用メニューは省略、必要なら追加 */
    }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .about-content, .roblox-content { flex-direction: column; text-align: center; }
    .news-item { flex-direction: column; }
    .news-date { margin-bottom: 5px; }
    .footer-content { flex-direction: column; justify-content: center; }
}
