:root {
    --primary: #6b21a8;
    --msg-ai-bg: #fce7f3;
    --msg-ai-border: #f9a8d4;
    --msg-user-bg: #e5e7eb;
    --msg-user-border: #d1d5db;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

strong,
b {
    font-weight: bold !important;
    color: #1f2937;
}

body {
    /* font-family: 'Inter', 'Noto Sans JP', sans-serif; */
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    /* background-color: #1a1a2e; */
    background-color: #660066;
    /* フォールバック色 */
    position: relative;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 3rem;
}

.brand-overlay {
    position: absolute;
    top: 0.8rem;
    left: 80px;
    z-index: 50;
}

.brand-overlay h1 {
    font-size: 3rem;
    color: #6b21a8;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.brand-overlay h1:hover {
    transform: scale(1.05);
    color: #9333ea;
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.brand-overlay .subtitle {
    font-size: 1rem;
    color: #4338ca;
    font-weight: 600;
    margin-left: 5px;
}

.brand-overlay .subtitle a {
    color: #ef4444;
    text-decoration: none;
    border-bottom: 2px wavy #ef4444;
}

.main-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

.chat-card {
    position: absolute;
    left: 0%;
    top: 60px;
    bottom: 105px;
    width: 65%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 3px solid #228b22;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    padding: 5px;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar-area {
    position: absolute;
    right: -23rem;
    bottom: -5rem;
    width: 55%;
    height: 100%;
    z-index: 5;
    overflow: visible;
    pointer-events: none;
}

.avatar-img-main,
.avatar-img-min {
    position: absolute;
    width: auto;
    object-fit: cover;
    filter: drop-shadow(-5px 0 10px rgba(0, 0, 0, 0.2));
}

.avatar-img-main {
    transition: opacity 1s ease-in-out;
    z-index: 2;
}

.avatar-img-min {
    z-index: 1;
}

/* V1 (index.php) specific adjustments */
.avatar-area .avatar-img-main,
.avatar-area .avatar-img-min {
    height: 110%;
    top: -80px;
    right: 10%;
}

.chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
    padding-right: 1rem;
}

.message {
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.4;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* リンク用のスタイル設定 */
.chat-link {
    color: #2563eb !important;
    text-decoration: underline !important;
    font-weight: 600;
    word-break: break-all;
    cursor: pointer;
    background: transparent;
}

.chat-link:hover {
    color: #1d4ed8 !important;
    text-decoration: none !important;
}

/* Message Structure with Diamond Toggle */
.message-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.3rem;
    max-width: 95%;
}

.message-group.ai {
    align-self: flex-start;
}

.message-group.user {
    align-self: flex-end;
}

.message-ui-row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.diamond-toggle {
    width: 22px;
    height: 22px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.diamond-toggle:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

.diamond-toggle.active {
    background-color: #d00000;
}

/* Extra Info Container */
.message-extra {
    display: none;
    background: #fff;
    border: 1.5px solid #007bff;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #333;
    animation: messageSlideDown 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.message-extra.show {
    display: block;
}

.extra-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.extra-item:last-child {
    margin-bottom: 0;
}

.extra-item.emotion {
    width: 100%;
    flex-wrap: wrap;
    border-top: 1px dashed #eee;
    padding-top: 6px;
    margin-top: 4px;
}

.extra-item .icon-heart {
    color: #ff0000;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes messageSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.ai {
    background-color: var(--msg-ai-bg);
    border: 1px solid var(--msg-ai-border);
    color: #000;
}

.message.user {
    background-color: var(--msg-user-bg);
    border: 1px solid var(--msg-user-border);
    color: #000;
}

.input-area {
    position: absolute;
    bottom: 10px;
    left: 0%;
    width: 55%;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.input-wrapper {
    flex: 1;
    position: relative;
    background: #fdfdfd;
    border: 3px solid #f59e0b;
    border-radius: 15px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    min-height: 74px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.1rem;
    resize: none;
    line-height: 1.4;
    padding: 8px 0;
    color: #333;
    max-height: 120px;
    overflow-y: auto;
}

.send-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #f59e0b;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn .icon {
    width: 38px;
    height: 38px;
    transform: rotate(0deg);
    fill: #f59e0b;
}

.mic-wrapper {
    background: #fff;
    backdrop-filter: none;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.mic-wrapper:hover {
    transform: scale(1.05);
}

.mic-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mic-btn img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.chat-window::-webkit-scrollbar {
    width: 12px;
}

.chat-window::-webkit-scrollbar-track {
    background: transparent;
}

.chat-window::-webkit-scrollbar-thumb {
    background: rgba(107, 33, 168, 0.3);
    border-radius: 6px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 33, 168, 0.5);
}

.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.warning-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.warning-content p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #4b5563;
}

@media screen and (max-width: 1920px) {
    .avatar-area {
        right: -18rem;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: 15%;
    }

    .chat-card {
        width: 60%;
    }
}

@media screen and (max-width: 1600px) {
    .avatar-area {
        right: -18rem;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: 15%;
    }

    .chat-card {
        width: 60%;
    }
}

@media screen and (max-width: 1400px) {
    .avatar-area {
        right: -12rem;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: -10%;
    }

    .chat-card {
        width: 55%;
    }
}

@media screen and (max-width: 1200px) {
    .avatar-area {
        right: -6rem;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: -25%;
    }

    .chat-card {
        width: 50%;
    }
}

@media screen and (max-width: 1024px) {
    .avatar-area {
        right: -2rem;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: -30%;
    }

    .chat-card {
        width: 45%;
    }
}

@media screen and (max-width: 900px) {
    .avatar-area {
        right: 0;
    }

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: -50%;
    }

    .chat-card {
        width: 50%;
    }
}

@media screen and (max-width: 769px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        right: -35%;
    }

    .chat-card {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    .app-container {
        display: none !important;
    }

    .mobile-warning {
        display: flex !important;
    }
}

@media screen and (max-height: 900px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        top: -60px;
    }

    .avatar-area {
        bottom: -4rem;
    }
}

@media screen and (max-height: 800px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        top: -40px;
    }

    .avatar-area {
        bottom: -3rem;
    }

    .chat-card {
        top: 50px;
        bottom: 95px;
    }
}

@media screen and (max-height: 700px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        top: -20px;
    }

    .avatar-area {
        bottom: -2rem;
    }

    .chat-card {
        top: 40px;
        bottom: 85px;
    }
}

@media screen and (max-height: 600px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        top: 0px;
    }

    .avatar-area {
        bottom: -1rem;
    }

    .chat-card {
        top: 30px;
        bottom: 75px;
    }
}

@media screen and (max-height: 500px) {

    .avatar-area .avatar-img-main,
    .avatar-area .avatar-img-min {
        top: 20px;
    }

    .avatar-area {
        bottom: 0;
    }

    .chat-card {
        top: 20px;
        bottom: 65px;
    }
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #0f2557;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1000;
    font-size: 0.9rem;
    /* font-family: 'Noto Sans JP', sans-serif; */
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer-left {
    text-align: center;
}

.footer-right a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
}

.footer-right a:hover {
    text-decoration: underline;
}

.mobile-warning {
    z-index: 10000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    /* font-family: 'Noto Sans JP', sans-serif; */
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f2557;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.terms-text {
    line-height: 1.6;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-window {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 1000px;
    height: 600px;
    max-height: 90vh;
    overflow: hidden;
    padding: 2.5rem 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-icon {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-icon:hover {
    color: #333;
}

.modal-title {
    font-size: 1.8rem;
    color: #6b21a8;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #6b21a8;
    padding-bottom: 0.8rem;
}

.modal-body {
    font-size: 0.72rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    max-height: 380px;
    overflow-y: auto;
    padding: 0 20px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.btn-close {
    background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(107, 33, 168, 0.3);
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.4);
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f4f6;
    border-top: 5px solid #6b21a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.spinner-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #6b21a8;
    font-weight: 600;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.mic-blink {
    animation: blink 1s infinite;
}

.dropzone {
    border: 2px dashed #6b21a8;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    background: rgba(107, 33, 168, 0.05);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    margin-bottom: 1.5rem;
}

.dropzone.dragover {
    background: rgba(107, 33, 168, 0.15);
    border-color: #9333ea;
}

.dropzone p {
    margin: 0;
    font-size: 1.1rem;
    color: #6b21a8;
    font-weight: 600;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.file-item .file-info {
    padding: 5px;
    font-size: 0.8rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.file-item .delete-btn:hover {
    background: rgba(220, 38, 38, 1);
}

.upload-progress-container {
    width: 100%;
    background: #e5e7eb;
    border-radius: 10px;
    height: 10px;
    margin-top: 1rem;
    display: none;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: #10b981;
    border-radius: 10px;
    transition: width 0.3s;
}

.v2-app-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.v2-character-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
}

.v2-character-layer .avatar-img-main,
.v2-character-layer .avatar-img-min {
    height: 105vh;
    /* Adjusted from 110vh to fit better */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.2));
    bottom: -5vh;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.v2-interface-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.v2-interface-layer>* {
    pointer-events: auto;
}

.v2-interface-layer .brand-overlay {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 30;
}

.v2-chat-container {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 1000px;
    bottom: 140px;
    border: 5px solid #228b22;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.v2-chat-container .chat-window {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v2-input-bar-container {
    position: absolute;
    bottom: 47px;
    left: 50%;
    transform: translateX(-50%);
    width: 63%;
    max-width: 990px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 20;
}

.v2-input-text-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #fbbf24;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    min-height: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.v2-input-text-wrapper textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.3rem;
    outline: none;
    resize: none;
    line-height: 1.5;
    color: #333;
    max-height: 100px;
    /* font-family: inherit; */
    /* font-family: 'Inter', "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif; */
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 500;
}

.v2-mic-wrapper {
    width: 76px;
    height: 76px;
    background: white;
    border: 4px solid #3b82f6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, transform 0.2s;
}

.v2-mic-wrapper:active {
    transform: scale(0.95);
}

.v2-mic-wrapper button {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media screen and (max-width: 768px) {
    .v2-app-container {
        display: none !important;
    }
}

.v2-chat-container .message.user {
    background-color: #fef08a;
    border: 1px solid #fde047;
    color: #422006;
}

#modal-resume {
    border: 5px solid #f59e0b;
}


/* Smartphone QR Code Style */
.qr-container {
    position: fixed;
    bottom: 60px;
    /* footerの少し上 */
    right: 20px;
    z-index: 1000;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(107, 33, 168, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    cursor: default;
}

.qr-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(107, 33, 168, 0.25);
    background: rgba(255, 255, 255, 0.6);
}

.qr-wrapper {
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#qrcode img {
    display: block;
}

.qr-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b21a8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);

    /* AIメッセージの付加情報（状況・本音）エリア */
    .message-extra {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 0.82rem;
        padding-left: 12px;
        animation: extraFadeIn 0.6s ease-out 0.4s both;
        /* 本体の後にふわっと表示 */
    }

    .extra-situation,
    .extra-honne {
        padding: 8px 14px;
        border-radius: 16px;
        max-width: 85%;
        line-height: 1.5;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* シチュエーション：青系の落ち着いたトーン */
    .extra-situation {
        background: rgba(239, 246, 255, 0.9);
        /* blue-50 */
        color: #1e40af;
        /* blue-800 */
        border: 1px solid rgba(191, 219, 254, 0.6);
        /* blue-200 */
        border-top-left-radius: 4px;
        /* 吹き出しのつながり感 */
    }

    /* 本音：ピンク・紫系の内面的なトーン */
    .extra-honne {
        background: rgba(253, 242, 248, 0.9);
        /* pink-50 */
        color: #9d174d;
        /* pink-800 */
        border: 1px solid rgba(251, 207, 232, 0.6);
        /* pink-200 */
        border-top-left-radius: 4px;
        font-style: italic;
        letter-spacing: 0.02em;
    }

    .extra-situation span,
    .extra-honne span {
        margin-right: 4px;
        font-size: 1rem;
    }

    @keyframes extraFadeIn {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}