/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px 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: 1rem 0;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-list {
    list-style: none;
    padding: 1rem 0;
}

.nav-mobile-link {
    display: block;
    padding: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.nav-mobile-link:hover {
    background: #f8f9fa;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: #e9ecef;
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb-list a {
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    text-decoration: none;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sections */
.section {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.section-link {
    color: #007bff;
    font-weight: 500;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card:not(.featured) .news-image img {
    height: 120px;
}

.news-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card:not(.featured) .news-title {
    font-size: 1rem;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.news-category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 2rem;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0056b3;
}

/* Quick Access */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.quick-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.quick-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.quick-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.quick-card p {
    color: #666;
}

/* Popular Articles */
.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-rank {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.article-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    color: #333;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
}

.count {
    color: #999;
    font-size: 0.9rem;
}

/* Comments Widget */
.comment-list {
    list-style: none;
}

.comment-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-time {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Social Widget */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.discord {
    background: #7289da;
}

/* Ad Widget */
.ad-space {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    color: #999;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gacha Specific Styles */
.gacha-period {
    background: #ff9500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.gacha-banner {
    position: relative;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.gacha-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gacha-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
}

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

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.probability-list,
.energy-list,
.bonus-list {
    list-style: none;
}

.probability-list li,
.energy-list li,
.bonus-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.probability-list li:last-child,
.energy-list li:last-child,
.bonus-list li:last-child {
    border-bottom: none;
}

.rank-s { color: #dc3545; font-weight: bold; }
.rank-a { color: #fd7e14; font-weight: bold; }
.rank-b { color: #28a745; font-weight: bold; }

/* Player Cards */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.player-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-rank {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.player-rank.rank-s {
    background: #dc3545;
}

.player-rank.rank-a {
    background: #fd7e14;
}

.player-rank.rank-b {
    background: #28a745;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.player-team {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.player-position {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.player-stats {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.stat-value {
    font-weight: bold;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.article-image {
    height: 150px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
}

/* Quick Info Widget */
.quick-info {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

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

.info-label {
    color: #666;
}

.info-value {
    font-weight: bold;
    color: #333;
}

/* Gacha History Widget */
.gacha-history-list {
    list-style: none;
}

.gacha-history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.gacha-history-list li:last-child {
    border-bottom: none;
}

.gacha-history-list .date {
    color: #999;
    font-size: 0.8rem;
}

/* Calculator Widget */
.calculator {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
}

.calc-input {
    margin-bottom: 1rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.calc-input input:focus {
    border-color: #007bff;
}

.calc-result p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-result span {
    color: #007bff;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer-section a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gacha-info-grid {
        grid-template-columns: 1fr;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    .section {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.ml-1 { margin-left: 1rem; }
.mr-1 { margin-right: 1rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .nav-mobile,
    .sidebar,
    .footer {
        display: none;
    }

    .main-content {
        box-shadow: none;
        border: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* リセマラページ専用スタイル */

/* リセマラ紹介セクション */
.intro-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: center;
}

.intro-image {
    text-align: center;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.alert {
    display: flex;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.alert-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #856404;
}

/* リセマラ手順 */
.method-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 60px;
    padding: 0 1rem;
}

.step-content {
    padding: 1.5rem;
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: #333;
}

.step-image {
    margin-top: 1rem;
    text-align: center;
}

.time-estimate {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.time-estimate h3 {
    margin-bottom: 1rem;
    color: #333;
}

.time-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.time-row:last-child {
    border-bottom: none;
}

.time-value {
    font-weight: bold;
    color: #007bff;
}

/* ランキング */
.ranking-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.ranking-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    position: relative;
}

.ranking-tab.active {
    color: #007bff;
}

.ranking-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.ranking-content {
    display: none;
}

.ranking-content.active {
    display: block;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tier-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.tier-s .tier-label {
    background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.tier-a .tier-label {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.tier-b .tier-label {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.ranking-players {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.ranking-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    min-width: 180px;
}

.ranking-player img {
    border-radius: 4px;
}

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

.player-info .name {
    font-weight: bold;
    color: #333;
}

.player-info .position {
    font-size: 0.8rem;
    color: #666;
}

.tier-description {
    padding: 1rem;
    background: #f8f9fa;
}

/* リセマラ後のステップ */
.after-reroll-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.after-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.after-step-icon {
    font-size: 1.5rem;
    color: #007bff;
}

.after-step-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* リセマラ計算機 */
.calc-input {
    position: relative;
    margin-bottom: 1rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.calc-input input:focus {
    border-color: #007bff;
}

.input-suffix {
    position: absolute;
    right: 10px;
    top: 32px;
    color: #666;
}

/* リセマラ適正メーター */
.best-time-meter {
    margin-bottom: 1rem;
}

.meter-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.meter-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #7fba00);
    border-radius: 10px;
}

.meter-value {
    text-align: right;
    font-weight: bold;
    color: #28a745;
}

.best-time-reason {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.best-time-reason p {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        grid-template-columns: 1fr;
    }
    
    .tier-label {
        padding: 0.5rem;
        text-align: center;
    }
    
    .ranking-players {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .step-card {
        flex-direction: column;
    }
    
    .step-number {
        padding: 0.5rem;
        width: 100%;
    }
    
    .after-step {
        flex-direction: column;
    }
}
