/* ビンゴカード生成ツール専用スタイル */

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.control-section {
    text-align: center;
    margin-bottom: 2rem;
}

.generate-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.generate-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.bingo-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bingo-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.letter {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    border: 3px solid #dc2626;
    border-radius: 8px;
    overflow: hidden;
}

.bingo-cell {
    aspect-ratio: 1;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bingo-cell:hover:not(.punched):not(.free) {
    background: #f3f4f6;
    transform: scale(1.05);
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.2);
}

.bingo-cell.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: default;
    position: relative;
}

.bingo-cell.free::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, transparent 35%, #dc2626 36%, #dc2626 44%, transparent 45%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.bingo-cell.free span {
    position: relative;
    z-index: 2;
}

.bingo-cell.punched {
    background: #f87171;
    color: white;
    position: relative;
    cursor: default;
    animation: punchEffect 0.5s ease-out;
}

.bingo-cell.punched::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, transparent 40%, #dc2626 41%, #dc2626 49%, transparent 50%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.bingo-cell.punched span {
    position: relative;
    z-index: 2;
    opacity: 0.7;
}

@keyframes punchEffect {
    0% {
        transform: scale(1);
        box-shadow: inset 0 0 0 transparent;
    }
    50% {
        transform: scale(0.9);
        box-shadow: inset 0 0 20px rgba(220, 38, 38, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: inset 0 0 10px rgba(220, 38, 38, 0.3);
    }
}

/* 使い方説明セクション */
.usage-section {
    margin: 3rem 0;
}

.usage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3b82f6;
}

.usage-steps {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.step-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.feature-list {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.feature-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.feature-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.feature-list li {
    color: #6b7280;
    line-height: 1.5;
}

/* AdSense */
.ad-container {
    margin: 3rem auto;
    text-align: center;
    max-width: 728px;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .subtitle {
        font-size: 1rem;
    }
    
    .bingo-container {
        margin: 0 auto 2rem;
        padding: 1rem;
    }
    
    .letter {
        padding: 8px;
        font-size: 1.25rem;
    }
    
    .bingo-cell {
        font-size: 1rem;
    }
    
    .bingo-cell.free {
        font-size: 0.875rem;
    }
    
    .usage-card {
        padding: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ビンゴ番号抽選ツールへのリンク */
.related-bingo-tool {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0 3rem;
}

.bingo-link-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bingo-link-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.bingo-link-text {
    flex: 1;
}

.bingo-link-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.bingo-link-text p {
    color: #1e40af;
    line-height: 1.6;
}

.bingo-link-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: inline-block;
}

.bingo-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

@media (max-width: 640px) {
    .bingo-link-content {
        flex-direction: column;
        text-align: center;
    }

    .bingo-link-btn {
        width: 100%;
    }
}