.quote-section {
    background-color: var(--bg-warm);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    box-shadow: 0 4px 12px var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e8e0d5;
    overflow: hidden;
}

.quote-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-md);
}

.quote-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.quote-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quote-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.quote-content {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-light);
    text-align: center;
    transition: all var(--transition-slow);
    display: block;
    max-width: 100%;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.quote-text {
    display: inline;
}

.quote-source {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    min-height: 16px;
}

.quote-content.fade-out {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.quote-content.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quote-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-xs);
    transition: opacity var(--transition-normal);
    height: 16px;
    opacity: 1;
}

.quote-hint.hidden {
    opacity: 0;
}

.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    flex: 1;
    padding: 0;
    width: 100%;
}

.button-card {
    border-radius: var(--border-radius-md);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: 0 4px 12px var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
    min-height: 140px;
    width: 100%;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-quote-left, .btn-quote-right {
    position: absolute;
    font-size: 40px;
    font-weight: bold;
    font-family: 'Sarasa Gothic Bold', 'SarasaGothic-Bold', sans-serif;
    opacity: 0.3;
    line-height: 1;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.btn-quote-left {
    top: 18px;
    left: 10px;
}

.btn-quote-right {
    bottom: 18px;
    right: 10px;
}

.button-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.button-card:hover .btn-quote-left {
    transform: translateX(-4px);
    opacity: 0.4;
}

.button-card:hover .btn-quote-right {
    transform: translateX(4px);
    opacity: 0.4;
}

.button-card.selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.button-card:focus {
    outline: none;
    box-shadow: 0 8px 20px var(--shadow-lg), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.button-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-card:hover .button-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
    transition: all var(--transition-fast);
}

.button-card:hover .button-text {
    transform: translateY(-2px);
}

.button-subtext {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    position: relative;
    padding: 2px 16px;
    line-height: 1.4;
    transition: all var(--transition-fast);
}

.button-card:hover .button-subtext {
    opacity: 0.9;
}

.button-subtext::before {
    content: '「';
    position: absolute;
    left: -8px;
    top: 0;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    line-height: 1;
}

.button-subtext::after {
    content: '」';
    position: absolute;
    right: -8px;
    bottom: 0;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    line-height: 1;
}

.btn-1-card { 
    background-image: linear-gradient(90deg, #ffd5cc 0%, #ffb0a8 100%); 
}
.btn-1-card .btn-quote-left, .btn-1-card .btn-quote-right { 
    color: #ff6a6a; 
}

.btn-2-card { 
    background-image: linear-gradient(90deg, #fff3b0 0%, #ffd966 100%); 
}
.btn-2-card .btn-quote-left, .btn-2-card .btn-quote-right { 
    color: #e6a700; 
}

.btn-3-card { 
    background-image: linear-gradient(90deg, #ffd9e0 0%, #ffb3c6 100%); 
}
.btn-3-card .btn-quote-left, .btn-3-card .btn-quote-right { 
    color: #ff6994; 
}

.btn-4-card { 
    background-image: linear-gradient(90deg, #c9ebe4 0%, #a0d9cc 100%); 
}
.btn-4-card .btn-quote-left, .btn-4-card .btn-quote-right { 
    color: #4db39a; 
}

.btn-5-card { 
    background-image: linear-gradient(90deg, #d9d0ee 0%, #bfa8dd 100%); 
}
.btn-5-card .btn-quote-left, .btn-5-card .btn-quote-right { 
    color: #8e6cc9; 
}

.btn-6-card { 
    background-image: linear-gradient(90deg, #ffe0b3 0%, #ffc27f 100%); 
}
.btn-6-card .btn-quote-left, .btn-6-card .btn-quote-right { 
    color: #e68900; 
}

@media (max-width: 480px) {
    .quote-section {
        padding: var(--space-md);
        min-height: 140px;
    }

    .quote-title {
        font-size: 16px;
    }

    .quote-content {
        font-size: 14px;
        text-align: center;
    }

    .quote-hint {
        font-size: 11px;
    }

    .buttons-grid {
        gap: var(--space-md);
    }

    .button-card {
        padding: var(--space-md) var(--space-sm);
        border-radius: var(--border-radius-sm);
    }

    .button-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }

    .button-text {
        font-size: 13px;
    }

    .button-subtext {
        font-size: 11px;
        padding: 2px 8px;
    }

    .btn-quote-left, .btn-quote-right {
        font-size: 32px;
    }

    .btn-quote-left {
        top: 6px;
        left: 4px;
    }

    .btn-quote-right {
        bottom: 6px;
        right: 4px;
    }
}

@media (min-width: 768px) {
    .button-card {
        padding: 28px 20px;
    }

    .button-text {
        font-size: 15px;
    }
    
    .quote-section {
        padding: 24px;
        min-height: 180px;
    }
    
    .quote-content {
        font-size: 18px;
    }
    
    .button-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}