/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(-45deg, #2d1810, #1a3326, #3d2914, #4a3429, #2b4a2e, #654321);
    background-size: 400% 400%;
    animation: ancientShift 20s ease infinite;
    color: #f4e4c1;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

@keyframes ancientShift {
    0% { background-position: 0% 50%; }
    33% { background-position: 100% 25%; }
    66% { background-position: 0% 75%; }
    100% { background-position: 0% 50%; }
}

main > section {
    padding: 60px 40px;
    text-align: center;
}

main > section:nth-of-type(odd) {
    background: rgba(61, 41, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 0 50px rgba(139, 69, 19, 0.3);
}

h2 {
    font-family: 'IM Fell English SC', serif;
    font-size: 2.8em;
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 15px #ffaa00, 0 0 25px #ff6600;
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle {
    color: #deb887;
    text-shadow: 1px 1px 2px #8B4513;
    margin-bottom: 40px;
    font-weight: 500;
    font-style: italic;
}

a {
    color: #ffd700;
    text-decoration: none;
    text-shadow: 1px 1px 2px #8B4513;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b35;
    text-shadow: 0 0 8px #ff6b35, 1px 1px 3px #8B4513;
    transform: translateY(-2px);
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.9));
    border-bottom: 3px solid #ffd700;
    border-top: 2px solid #cd853f;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 60px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    font-size: 1.1em;
    font-weight: bold;
    color: #f4e4c1;
    text-shadow: 2px 2px 0px #8B4513, 0 0 8px #ffd700;
    transition: all 0.3s ease;
    position: relative;
}

header nav ul li a:hover {
    color: #ffd700;
    text-shadow: 0 0 12px #ff6b35, 2px 2px 0px #8B4513;
    transform: scale(1.05) translateY(-2px);
}

header nav ul li a::before {
    content: '⚔';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #ffd700;
    transition: all 0.3s ease;
}

header nav ul li a:hover::before {
    opacity: 1;
    left: -25px;
}

/* ヒーローセクション */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 20px;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.7);
}

/* ヒーローセクションの新スタイル */
.hero-title {
    margin-bottom: 30px;
}

.main-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 5em;
    margin: 0;
    text-shadow: 3px 3px 0px #8B4513, 0 0 20px #ffaa00, 0 0 40px #ff6600;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.8em;
    margin: 15px 0 0 0;
    color: #deb887;
    font-weight: 500;
    text-shadow: 1px 1px 2px #8B4513;
}

/* 革新的なヒーロー説明セクション */
.hero-description {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 0;
    position: relative;
}

/* キャッチフレーズコンテナ */
.catchphrase-container {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    overflow: hidden;
}


.catchphrase {
    font-family: 'IM Fell English SC', serif;
    font-size: 2.8em;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.catchphrase-part {
    color: #f4e4c1;
    text-shadow: 2px 2px 0px #8B4513, 0 0 15px rgba(255, 215, 0, 0.3);
    opacity: 0;
    animation: slideInLeft 1.5s ease-out 0.5s forwards;
}

.catchphrase-highlight {
    color: #ffd700;
    text-shadow: 3px 3px 0px #8B4513, 0 0 25px #ffaa00, 0 0 50px #ff6b35;
    opacity: 0;
    animation: slideInRight 1.5s ease-out 1.2s forwards;
    position: relative;
}

.catchphrase-highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b35, #ffd700);
    border-radius: 2px;
    animation: underlineExpand 1s ease-out 2.5s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineExpand {
    from { width: 0; }
    to { width: 100%; }
}

/* パーティクルエフェクト */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.6s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 1.2s;
}

.particle:nth-child(4) {
    top: 70%;
    right: 25%;
    animation-delay: 1.8s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 2.4s;
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0px) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
}

/* 説明文コンテナ */
.description-container {
    position: relative;
    padding: 20px;
}

.description {
    font-family: 'IM Fell English SC', serif;
    font-size: 1.8em;
    margin: 0;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
}

.description-word {
    color: #f4e4c1;
    text-shadow: 1px 1px 2px #8B4513;
    opacity: 0;
    animation: wordFadeIn 0.8s ease-out forwards;
}

.description-word:nth-child(1) { animation-delay: 3s; }
.description-word:nth-child(3) { animation-delay: 4.0s; }

.description-highlight {
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 20px #ffaa00;
    font-weight: bold;
    opacity: 0;
    animation: highlightPop 1s ease-out 3.8s forwards;
    position: relative;
}

@keyframes wordFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* お知らせ */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.6), rgba(26, 51, 38, 0.4));
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.4);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.7), rgba(34, 139, 34, 0.5));
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(8px) scale(1.02);
    border-color: #ffd700;
}

.news-item .date {
    color: #999;
    margin-right: 20px;
    font-size: 0.9em;
}

.news-item .label {
    background: linear-gradient(45deg, #dc143c, #ffd700);
    color: #2f1b14;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #8B4513;
    font-weight: bold;
    font-size: 0.8em;
    margin-right: 20px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.news-item .title {
    color: #f4e4c1;
    font-weight: 500;
    text-shadow: 1px 1px 2px #8B4513;
}

/* クエストカード */
.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* トップページのFeatured Questsを少しコンパクトにする */
.featured-quests .quest-grid {
    max-width: 1080px;
}

.quest-card {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.6));
    border: 2px solid #cd853f;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: left;
    overflow: hidden;
    backdrop-filter: blur(8px);
    position: relative;
}

.quest-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(220, 20, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(34, 139, 34, 0.7));
}

.quest-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3em;
    margin-top: 0;
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 10px #ffaa00;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: #ff6b35;
    font-weight: bold;
    position: relative;
    text-shadow: 1px 1px 2px #8B4513;
    transition: all 0.3s ease;
}

.card-link::after {
    content: '→';
    position: absolute;
    right: -20px;
    transition: right 0.2s ease-out;
}

.quest-card:hover .card-link::after {
    right: -25px;
}

/* 問い合わせフォーム */
.contact-container {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.6));
    padding: 60px;
    border-radius: 15px;
    border: 3px solid #cd853f;
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(47, 27, 20, 0.7);
    border: 2px solid #8B4513;
    border-radius: 8px;
    color: #f4e4c1;
    font-size: 1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 2px 8px rgba(255, 215, 0, 0.1);
    background: rgba(255, 215, 0, 0.08);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #8B4513, #ffd700, #dc143c, #ffd700, #8B4513);
    background-size: 300% 300%;
    color: #2f1b14;
    font-size: 1.2em;
    font-weight: bold;
    border: 3px solid #cd853f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: dragonGlow 3s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

@keyframes dragonGlow {
    from { 
        box-shadow: 0 4px 12px rgba(139, 69, 19, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.3);
        background-position: 0% 50%;
    }
    to { 
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7), 0 4px 15px rgba(220, 20, 60, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
        background-position: 100% 50%;
    }
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.03);
    background-position: 200% 100%;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.8), 0 4px 15px rgba(220, 20, 60, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    border-color: #ffd700;
}

/* 殿堂 */
.fame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.fame-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.fame-card img {
    width: 100%;
    display: block;
}

.fame-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

/* 参加方法 */
.join-steps {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* クエストボードのフィルターボタン */
.filter-buttons {
    margin-bottom: 40px;
}

.filter-btn {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.7), rgba(26, 51, 38, 0.5));
    border: 2px solid #cd853f;
    color: #ffd700;
    padding: 12px 28px;
    margin: 0 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px #8B4513;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(34, 139, 34, 0.6));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px #ffaa00, 2px 2px 0px #8B4513;
    border-color: #ffd700;
}

.filter-btn.active {
    background: linear-gradient(45deg, #ffd700, #ff6b35, #ffd700);
    color: #2f1b14;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    border-color: #8B4513;
}


/* フッター */
footer {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.8));
    border-top: 3px solid #cd853f;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 -4px 15px rgba(205, 133, 63, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    backdrop-filter: blur(12px);
}

footer nav {
    margin-top: 10px;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    display: inline-block;
    margin: 0 15px;
}

.step {
    width: 22%;
}

.step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
    border: 4px solid #cd853f;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    line-height: 85px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 0px #8B4513, 0 0 8px #ffaa00;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), rgba(139, 69, 19, 0.3));
    transition: all 0.3s ease;
    position: relative;
}

.step-number:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7), 0 4px 12px rgba(220, 20, 60, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: #ffd700;
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35, 2px 2px 0px #8B4513;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.4));
}

.step h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.3em;
    color: #f4e4c1;
    text-shadow: 2px 2px 0px #8B4513, 0 0 8px rgba(255, 215, 0, 0.5);
}

/* コミュニティセクション */
.community-step {
    max-width: 100%;
    padding: 40px 20px;
    flex: 1;
    text-align: center;
}

.step-description {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #deb887;
}

.community-options, 
.community-options-centered {
    display: flex !important;
    gap: 30px;
    justify-content: center !important;
    flex-wrap: wrap;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    text-align: center;
}

.community-option {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.community-option:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.community-info h4 {
    font-family: 'IM Fell English SC', serif;
    font-size: 1.4em;
    color: #ffd700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 0px #8B4513, 0 0 10px #ffaa00;
}

.community-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95em;
    color: #f4e4c1;
    line-height: 1.5;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.8);
    font-weight: 400;
}

.community-btn {
    display: block !important;
    padding: 15px 25px;
    border-radius: 10px;
    font-family: 'IM Fell English SC', serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 2px solid transparent;
    width: 80% !important;
    max-width: 200px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0 auto !important;
    text-align: center !important;
}

.slack-btn {
    background: linear-gradient(135deg, #4A154B, #611f69);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 21, 75, 0.4);
}

.slack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 21, 75, 0.6);
    background: linear-gradient(135deg, #5a1f5b, #711f79);
    color: white;
    text-shadow: none;
}

.line-btn {
    background: linear-gradient(135deg, #00C300, #00B900);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 195, 0, 0.4);
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.6);
    background: linear-gradient(135deg, #00d300, #00c900);
    color: white;
    text-shadow: none;
}

/* 企業向けCTA */
.enterprise-cta {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.9));
    border-radius: 15px;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.enterprise-cta-section {
    text-align: center;
}

.enterprise-cta-standalone {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.9));
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

.enterprise-cta-standalone h2 {
    font-family: 'IM Fell English SC', serif;
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #8B4513, 0 0 15px #ffaa00;
}

.enterprise-cta h3 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #8B4513, 0 0 10px #ffaa00;
}

.enterprise-cta p,
.enterprise-cta-standalone p {
    color: #f4e4c1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #ff6b35;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8c42, #ffaa52);
    color: white;
    text-shadow: none;
}

/* 新しいコミュニティセクションのスタイル */
.community-join-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px 20px;
}

.step-number-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(205, 133, 63, 0.7));
    color: #2d1810;
    font-size: 2.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    border: 3px solid #8B4513;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.community-join-title {
    font-family: 'IM Fell English SC', serif;
    font-size: 2em;
    color: #ffd700;
    margin: 20px 0;
    text-shadow: 2px 2px 0px #8B4513, 0 0 10px #ffaa00;
}

.community-join-desc {
    font-size: 1.2em;
    color: #deb887;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.8);
}

.community-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.community-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.9));
    border: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* 新しいコミュニティセクション（ステップの下に配置） */
.community-section-centered {
    text-align: center;
    margin: 50px auto;
    padding: 40px 20px;
}

.community-grid-simple {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.community-card-simple {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.9), rgba(26, 51, 38, 0.9));
    border: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.community-card-simple:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* スクロールアニメーション */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 運営者情報ページ */
.company-info-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.6));
    padding: 50px;
    border-radius: 15px;
    border: 3px solid #cd853f;
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.info-card {
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.8em;
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 10px #ffaa00;
    width: 50px;
    text-align: center;
    margin-right: 30px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.2em;
    color: #f4e4c1;
    text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.3);
}


/* クエスト詳細ページ */
.quest-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.6));
    padding: 50px;
    border-radius: 15px;
    border: 3px solid #cd853f;
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    text-align: left;
}

.quest-detail-header {
    border-bottom: 1px solid #555;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.quest-detail-header h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 15px #ffaa00;
    margin: 0;
}

.quest-meta {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    color: #aaa;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 8px;
    color: #ffd700;
    text-shadow: 1px 1px 2px #8B4513, 0 0 8px #ffaa00;
}

.quest-content h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8em;
    color: #ffd700;
    text-shadow: 2px 2px 0px #8B4513, 0 0 12px #ffaa00;
    border-left: 5px solid #cd853f;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    box-shadow: -5px 0 15px rgba(205, 133, 63, 0.4);
    padding-left: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.quest-content p, .quest-content ul {
    line-height: 1.8;
    color: #f4e4c1;
    text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.3);
}

.quest-content ul {
    padding-left: 20px;
}

.apply-button-container {
    text-align: center;
    margin-top: 50px;
}

.apply-btn {
    display: inline-block;
    padding: 22px 60px;
    background: linear-gradient(45deg, #8B4513, #ffd700, #dc143c, #ffd700, #8B4513);
    background-size: 400% 400%;
    color: #2f1b14;
    font-size: 1.4em;
    font-weight: bold;
    border: 4px solid #cd853f;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    animation: swordPulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes swordPulse {
    0%, 100% { 
        transform: scale(1);
        background-position: 0% 50%;
        box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.02);
        background-position: 100% 50%;
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7), 0 4px 15px rgba(220, 20, 60, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.4);
    }
}

.apply-btn:hover {
    transform: translateY(-6px) scale(1.05);
    background-position: 200% 100%;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.8), 0 6px 20px rgba(220, 20, 60, 0.6), inset 0 3px 0 rgba(255, 255, 255, 0.5);
    border-color: #ffd700;
    text-shadow: 0 0 8px #ffaa00, 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* 追加のビジュアル効果 */
.hero-text h1 {
    animation: flameDance 5s ease-in-out infinite alternate;
}

@keyframes flameDance {
    from { 
        text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.7), 2px 2px 0px #8B4513, 0 0 20px #ffd700, 0 0 30px #ff6b35; 
    }
    to { 
        text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.7), 3px 3px 0px #8B4513, 0 0 30px #ff6b35, 0 0 50px #dc143c, 0 0 40px #ffd700; 
    }
}

/* ドラゴンの炎エフェクト用の疑似要素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(3px 3px at 25px 40px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(2px 2px at 60px 80px, rgba(220, 20, 60, 0.5), transparent),
        radial-gradient(4px 2px at 120px 30px, rgba(255, 107, 53, 0.4), transparent),
        radial-gradient(2px 3px at 180px 90px, rgba(255, 215, 0, 0.7), transparent),
        radial-gradient(3px 1px at 90px 60px, rgba(139, 69, 19, 0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 150px;
    animation: emberFloat 25s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
}

@keyframes emberFloat {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, rgba(61, 41, 20, 0.8), rgba(26, 51, 38, 0.6));
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd700, #cd853f, #8B4513);
    border-radius: 8px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b35, #ffd700, #dc143c);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   レスポンシブデザイン - モバイルファースト
   ========================================================================== */

/* タブレット・モバイル用スタイル (768px以下) */
@media screen and (max-width: 768px) {
    
    /* ヒーローセクションのレスポンシブ調整 */
    .main-title {
        font-size: 3.5em;
    }
    
    .subtitle {
        font-size: 1.4em;
    }
    
    .hero-description {
        margin: 20px auto 0 auto;
        max-width: 95%;
    }
    
    .catchphrase-container {
        padding: 25px;
        margin-bottom: 25px;
        position: relative;
    }
    
    .particles-container {
        display: none;
    }
    
    .catchphrase {
        font-size: 2em;
        line-height: 1.4;
    }
    
    .catchphrase-part {
        display: block;
        margin-bottom: 10px;
    }
    
    .catchphrase-highlight {
        display: block;
    }
    
    .catchphrase-highlight::after {
        width: 100% !important;
        max-width: none !important;
    }
    
    .description-container {
        padding: 25px;
    }
    
    .description {
        font-size: 1.4em;
        line-height: 1.5;
        text-align: center;
    }
    
    .description-word {
        display: inline-block;
        margin: 2px 4px;
    }
    
    .description-highlight {
        display: inline-block;
        margin: 2px 4px;
    }
    
    /* コミュニティオプションのモバイル調整 */
    .community-options,
    .community-options-centered {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .community-option {
        min-width: 250px;
        max-width: 100%;
    }
    
    .community-btn {
        width: 90%;
        padding: 12px 20px;
    }
    
    /* ヘッダー調整 */
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .logo {
        height: 45px;
    }
    
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    header nav ul li {
        margin: 0;
    }
    
    header nav ul li a {
        font-size: 1em;
        padding: 8px 15px;
        border: 1px solid #cd853f;
        border-radius: 6px;
        background: rgba(61, 41, 20, 0.6);
    }
    
    /* メインセクション調整 */
    main > section {
        padding: 40px 20px;
    }
    
    /* ヒーローセクション調整 */
    .hero {
        padding: 100px 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5em;
    }
    
    .hero-text p {
        font-size: 1.4em;
    }
    
    /* 見出し調整 */
    h2 {
        font-size: 2.2em;
    }
    
    /* グリッドレイアウト調整 */
    .quest-grid,
    .fame-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* カード調整 */
    .quest-card img {
        height: 200px;
    }
    
    /* ニュースリスト調整 */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 15px;
    }
    
    .news-item .date {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .news-item .label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* 参加方法ステップ調整 */
    .join-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .step {
        width: 100%;
    }
    
    /* フィルターボタン調整 */
    .filter-buttons {
        text-align: center;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    /* コンテナ調整 */
    .contact-container,
    .company-info-container,
    .quest-detail-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    /* フォーム調整 */
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1.1em;
    }
    
    /* ボタン調整 */
    .apply-btn {
        padding: 18px 40px;
        font-size: 1.2em;
    }
}

/* スマートフォン用スタイル (480px以下) */
@media screen and (max-width: 480px) {
    
    /* より小さいスクリーン用の調整 */
    header {
        padding: 10px 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    header nav ul li a {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    
    main > section {
        padding: 30px 15px;
    }
    
    .hero {
        padding: 80px 15px;
    }
    
    /* 小さいスクリーン用のヒーローセクション調整 */
    .main-title {
        font-size: 2.5em;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .hero-description {
        margin: 15px auto 0 auto;
        max-width: 98%;
    }
    
    .catchphrase-container {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 20px;
        position: relative;
    }
    
    .particles-container {
        display: none;
    }
    
    .catchphrase {
        font-size: 1.6em;
        line-height: 1.3;
    }
    
    .catchphrase-part {
        display: block;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .catchphrase-highlight {
        display: block;
        text-align: center;
    }
    
    .catchphrase-highlight::after {
        width: 100% !important;
        max-width: none !important;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .description-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .description {
        font-size: 1.2em;
        line-height: 1.4;
        text-align: center;
        padding: 0 10px;
    }
    
    .description-word {
        display: inline-block;
        margin: 1px 2px;
    }
    
    .description-highlight {
        display: inline-block;
        margin: 1px 2px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .section-subtitle {
        font-size: 0.9em;
    }
    
    /* カード内コンテンツ調整 */
    .card-content {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1.1em;
    }
    
    /* ニュースアイテム調整 */
    .news-item {
        padding: 15px 10px;
    }
    
    .news-item .label {
        font-size: 0.7em;
        padding: 4px 8px;
    }
    
    /* ステップ番号調整 */
    .step-number {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2em;
    }
    
    .step h3 {
        font-size: 1.1em;
    }
    
    /* コンテナさらに調整 */
    .contact-container,
    .company-info-container,
    .quest-detail-container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    /* フォーム調整 */
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    .apply-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    /* フィルターボタン調整 */
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8em;
        margin: 3px;
    }
    
    /* 情報項目調整 */
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* クエスト詳細調整 */
    .quest-detail-header h1 {
        font-size: 2em;
    }
    
    .quest-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .quest-content h2 {
        font-size: 1.5em;
        padding-left: 15px;
    }
    
    /* 背景エフェクト調整 */
    body::before {
        background-size: 150px 100px;
        opacity: 0.2;
    }
}

/* 極小スクリーン用 (360px以下) */
@media screen and (max-width: 360px) {
    
    .hero-text h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .quest-card img {
        height: 150px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.8em;
    }
    
    .apply-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    header nav ul {
        gap: 8px;
    }
    
    header nav ul li a {
        padding: 5px 10px;
        font-size: 0.8em;
    }
}