@charset "UTF-8";

/* =========================================
   共通設定 (Common Settings)
   ========================================= */

body {
    font-family: 'Noto Sans JP', sans-serif;
    padding-top: 64px;
}

.font-eng {
    font-family: 'Inter', sans-serif;
}

/* =========================================
   index.html 用スタイル
   ========================================= */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tester-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .tester-item .name {
        font-weight: 500;
    }

.social-links {
    display: flex;
    gap: 16px;
    font-size: 1.8rem;
}

    .social-links a {
        color: #666;
        transition: opacity 0.2s;
        text-decoration: none;
    }

        .social-links a:hover {
            opacity: 0.7;
        }

@media (max-width: 600px) {
    .testers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trigger-section {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.trigger-label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

    .trigger-label::after {
        content: "";
        display: block;
        width: 40px;
        height: 1px;
        background-color: #ccc;
        margin: 5px auto 0;
    }

.trigger-member .member-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.trigger-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
}

    .trigger-member .member-name {
        margin-bottom: 0.8rem;
    }

.voice-section {
    width: 100%;
    padding: 60px 0px;
    box-sizing: border-box;
}

.voice-container {
    max-width: 1080px;
    margin: 0 auto;
}

.chat-scroller-component {
    width: 100%;
    max-width: 100%;
    height: 400px;
    background-color: #ffffff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.chat-scroll-content {
    height: 100%;
    overflow-y: auto;
    padding: 30px 40px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
}

    .chat-scroll-content::-webkit-scrollbar {
        width: 6px;
    }

    .chat-scroll-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat-scroll-content::-webkit-scrollbar-thumb {
        background-color: #cccccc;
        border-radius: 10px;
    }

.chat-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    object-fit: cover;
    /* border: 1px solid #ccc; */
}

.bubble {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 80%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-row {
    justify-content: flex-start;
}

.user-avatar {
    background-color: #e5e7eb;
    margin-right: 15px;
}

.user-bubble {
    background-color: #e0e0e0;
    color: #333;
    border-top-left-radius: 4px;
}

.admin-row {
    justify-content: flex-end;
    margin-bottom: 30px;
}

.admin-avatar {
    background-color: #777777;
    margin-left: 15px;
}

.admin-bubble {
    background-color: #777777;
    color: #ffffff;
    border-top-right-radius: 4px;
}

.admin-badge {
    background-color: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
}

.text-highlight {
    color: #555555;
    font-weight: bold;
}

.scroll-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.user-avatar {
    background-color: #e0e0e0;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .user-avatar svg {
        width: 60%;
        height: 60%;
        fill: #9e9e9e;
    }

.message-container {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

    .message-container .bubble {
        max-width: 100%;
    }

.user-name {
    font-size: 12px;
    color: #888888;
    margin-bottom: 5px;
    margin-left: 4px;
    font-weight: bold;
}


/* =========================================
   manual.html 用スタイル
   ========================================= */

main h2 {
    background: linear-gradient(to right, #eff6ff, #fff);
    border-left: 5px solid #3b82f6;
    padding: 10px 15px;
}

.volume-bar-container {
    width: 100%;
    height: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    position: relative;
    margin-top: 10px;
    /* overflow: hidden; */
}

.target-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #adb5bd;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: multiply;
    border-radius: 8px;
}

.range-marker {
    position: absolute;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #333;
    transform: translateX(-50%);
    z-index: 5;
    transition: left 0.3s;
    pointer-events: none;
}

.target-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.5);
    z-index: 20;
    transform: translateX(-50%);
    pointer-events: none;
}

.volume-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    opacity: 0.9;
}

@keyframes demo-meter-move {
    0% {
        width: 5%;
        background-color: #ffc107;
    }

    10% {
        width: 40%;
        background-color: #ffc107;
    }

    20% {
        width: 25%;
        background-color: #ffc107;
    }

    30% {
        width: 60%;
        background-color: #ffc107;
    }

    35% {
        width: 75%;
        background-color: #28a745;
    }

    45% {
        width: 88%;
        background-color: #28a745;
    }

    50% {
        width: 93%;
        background-color: #28a745;
    }

    55% {
        width: 85%;
        background-color: #28a745;
    }

    60% {
        width: 50%;
        background-color: #ffc107;
    }

    70% {
        width: 75%;
        background-color: #28a745;
    }

    80% {
        width: 30%;
        background-color: #ffc107;
    }

    90% {
        width: 55%;
        background-color: #ffc107;
    }

    100% {
        width: 5%;
        background-color: #ffc107;
    }
}

.animate-demo-bar {
    animation: demo-meter-move 3s infinite ease-in-out;
}
