/* コーヒー診断クイズ for SWELL */
#quiz-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0 auto;
    width: 100%;
    max-width: 672px; /* max-w-2xl */
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
#quiz-container .quiz-header {
    background-color: #000000;
    color: #ffffff;
    padding: 0.25rem 1rem; /* p-1 p-4 */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
#quiz-container .quiz-header .tagline {
    font-weight: 600; /* font-semibold */
    color: #d1d5db; /* text-gray-300 */
    letter-spacing: 0.05em; /* tracking-wide */
    font-size: 0.75rem; /* text-xs */
    margin: 0;
}
#quiz-container .quiz-header .title {
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
    font-weight: 700; /* font-bold */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* gap-2 */
}
#quiz-container .quiz-header .promo-button {
    margin-top: 0.1rem;
    display: inline-block;
    border: 1px solid #4b5563; /* border-gray-500 */
    color: #e5e7eb; /* text-gray-200 */
    font-size: 0.65rem; /* smaller text */
    font-weight: 600; /* font-semibold */
    padding: 0.15rem 0.6rem;
    border-radius: 9999px; /* rounded-full */
}
#quiz-container .quiz-body, #quiz-container .result-area {
    padding: 0.75rem 1.25rem; /* p-2 p-4 -> Increased */
}
#quiz-container .question-block, #quiz-container .result-block {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#quiz-container .question-title {
    font-size: 1.1rem; /* text-base -> Increased */
    line-height: 1.6rem;
    font-weight: 700; /* font-bold */
    color: #000000;
    margin-bottom: 0.25rem; /* Increased */
    text-align: left;
}
#quiz-container .question-subtitle {
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 0.25rem;
    text-align: left;
    font-size: 0.8rem;
}
#quiz-container .options-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* space-y-1 */
}
#quiz-container .options-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
#quiz-container .options-container label {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* gap-3 */
    padding: 0.5rem 0.8rem; /* py-1.5 px-3 -> Increased */
    border: 2px solid #e5e7eb; /* border-2 border-gray-200 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    color: #111827; /* Explicitly set text color */
    font-size: 0.95rem; /* Increased */
}
#quiz-container .options-container label:hover {
    border-color: #9ca3af; /* hover:border-gray-400 */
    background-color: #f9fafb; /* hover:bg-gray-50 */
}
#quiz-container .options-container input[type="radio"]:checked + label {
    border-color: #000000;
    background-color: #f3f4f6; /* bg-gray-100 */
    font-weight: 700; /* font-bold */
    color: #000000;
}
#quiz-container .option-radio-visual {
    width: 1.125rem; /* w-4.5 */
    height: 1.125rem; /* h-4.5 */
    border: 2px solid #9ca3af; /* border-2 border-gray-400 */
    border-radius: 9999px; /* rounded-full */
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}
#quiz-container .options-container input[type="radio"]:checked + label .option-radio-visual {
    background-color: #000000;
    border-color: #000000;
}
#quiz-container .option-radio-visual .inner-dot {
    position: absolute;
    top: 2px; right: 2px; bottom: 2px; left: 2px; /* inset-0.5 */
    background-color: #ffffff;
    border-radius: 9999px; /* rounded-full */
    transition: transform 0.2s;
    transform: scale(0);
}
#quiz-container .options-container input[type="radio"]:checked + label .inner-dot {
    transform: scale(1);
}
#quiz-container .hidden {
    display: none;
}
#quiz-container .back-button-container {
    text-align: center;
    margin-top: 0.5rem; /* mt-2 */
}
#quiz-container .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151; /* text-gray-700 */
    font-weight: 600; /* font-semibold */
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* rounded-full */
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
#quiz-container .back-button:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}
#quiz-container .progress-bar-container {
    margin-bottom: 0.25rem; /* mb-1 */
}
#quiz-container .progress-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
#quiz-container .progress-bar-labels .label-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
#quiz-container .progress-bar-labels .label-count {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}
#quiz-container .progress-bar-track {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem; /* h-2 */
}
#quiz-container .progress-bar-fill {
    background-color: #000000;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}
#quiz-container .result-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}
#quiz-container .result-type-card {
    background-color: #f9fafb;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}
#quiz-container .result-type-card .subtitle {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
#quiz-container .result-type-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}
#quiz-container .result-type-image {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
#quiz-container .result-type-description {
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}
#quiz-container .result-recommendation-title {
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
#quiz-container .result-card {
    border: 2px solid #e5e7eb;
    background-color: #ffffff;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}
#quiz-container .result-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.04);
    transform: translateY(-4px);
    border-color: #d1d5db;
}
#quiz-container .result-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}
#quiz-container .result-card .tagline {
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}
#quiz-container .result-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    margin: 0.5rem 0;
}
#quiz-container .result-card .description {
    color: #1f2937;
    text-align: left;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
#quiz-container .result-card .cta-button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
}
#quiz-container .result-card .cta-button:hover {
    background-color: #1f2937;
    transform: scale(1.05);
}
#quiz-container .result-card .internal-link-promo {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}
#quiz-container .result-card .internal-link-promo a {
    color: #1f2937;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
#quiz-container .result-card .internal-link-promo a:hover {
    color: #000000;
}
#quiz-container .restart-button-container {
    text-align: center;
    margin-bottom: 0.5rem;
}
#quiz-container .restart-button {
    background-color: #e5e7eb;
    color: #1f2937;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
#quiz-container .restart-button:hover {
    background-color: #d1d5db;
    transform: scale(1.05);
}
#quiz-container .share-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.1rem;
    margin-top: 0.1rem;
    text-align: center;
}
#quiz-container .share-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}
#quiz-container .share-buttons-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
#quiz-container .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
#quiz-container .share-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
#quiz-container .share-button svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}
#quiz-container .share-x { background-color: #000000; }
#quiz-container .share-facebook { background-color: #1877F2; }
#quiz-container .share-line { background-color: #06C755; }
