.quote-section {
    background-color: #f8f0e3;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-section:hover {
    transform: translateY(-2px);
}

.quote-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.quote-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.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: #555;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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: #aaa;
    text-align: center;
    margin-top: 8px;
    transition: opacity 0.3s ease;
    height: 16px;
    opacity: 1;
}

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

.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.button-card {
    border-radius: 16px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.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;
}

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

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

.button-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.button-card:focus {
    outline: none;
}

.button-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.button-text {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

.button-subtext {
    font-size: 12px;
    color: #777;
    text-align: center;
    position: relative;
    padding: 2px 16px;
    line-height: 1.4;
}

.button-subtext::before {
    content: '「';
    position: absolute;
    left: 0;
    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: 0;
    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: 16px;
        min-height: 120px;
    }

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

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

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

    .buttons-grid {
        gap: 12px;
    }

    .button-card {
        padding: 16px 10px;
        border-radius: 12px;
    }

    .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: 8px;
    }

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

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

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