
@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 共通ヘッダー --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 6px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-logo {
    font-family: 'Yusei Magic', sans-serif;
    font-size: 1.8em;
    font-weight: normal;
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s;
}

.site-logo i {
    margin-right: 10px;
    color: #ff4081;
}

.site-logo:hover {
    color: #ff4081;
}

.logo-image {
    height: 1.8em;
    width: auto;
    vertical-align: middle;
    margin-left: 10px;
}

.header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 20px;
}

.header-search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.header-menu {
    margin-left: auto;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-button {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
    position: relative;
}

.menu-button:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #333;
}

.menu-button:hover {
    color: #666;
}

/* --- AnotherXページのスタイル --- */
.anotherx-content {
    text-align: center;
    padding: 2rem 0;
}

.anotherx-content h1 {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.anotherx-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-section h2 {
    color: #333;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #5cb85c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #4cae4c;
}

/* --- メインページのヘッダー --- */
header {
    background: linear-gradient(90deg, #4a90e2, #5cb85c);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 30%);
    transform: rotate(0deg);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: 2rem;
}



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

.game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #eee;
}

.game-card-content {
    padding: 1.5rem;
}

.game-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.game-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.game-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.play-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.8rem;
    background: #5cb85c;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.play-button:hover {
    background-color: #4cae4c;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    background-color: #333;
    color: white;
}

/* --- page-grid, page-card（WCG.html用） --- */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.page-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.page-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.page-card-content {
    padding: 1.5rem;
}
.page-number {
    font-size: 1.2rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.page-card h2 {
    color: #4a90e2;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.page-card p {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}
.page-card a, .page-button {
    display: inline-block;
    background: linear-gradient(45deg, #4a90e2, #5cb85c);
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.18);
}
.page-card a:hover, .page-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.22);
}

/* --- WCGページの大タイトル --- */
.wcg-header {
    background: linear-gradient(90deg, #4a90e2, #5cb85c);
    color: white;
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 90px;
    z-index: 1;
}
.wcg-header h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.18);
    letter-spacing: 0.05em;
}
