/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* ヒーロー動画セクション */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.audio-notice {
    margin-top: 1.5rem;
}

.audio-hint {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-hint:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-video-section {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-video-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.header-content {
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* ナビゲーションコントロール */
.nav-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.home-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.home-icon {
    font-size: 1.1rem;
}

/* モバイル用ナビゲーション */
.header-nav-mobile {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.home-button-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-button-mobile:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: translateY(-1px);
}

.home-text {
    white-space: nowrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-controls {
        display: none;
    }
    
    .header-nav-mobile {
        display: block;
    }
    
    .header h1 {
        font-size: 2rem;
        margin-top: 1rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .home-text {
        display: none;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 注意事項バナー */
.notice-banner {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.notice-banner p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    font-weight: 500;
}

.notice-banner strong {
    color: #b45309;
}

/* Game Screens */
.game-screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.game-screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Client Selection */
#client-selection h2 {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

.client-card.completed {
    opacity: 0.5;
    background: #f8f9fa;
    cursor: not-allowed;
    position: relative;
}

.client-card.completed::after {
    content: "✅ 退職完了";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.client-card.completed:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.client-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.client-details {
    margin-bottom: 1rem;
}

.client-details span {
    display: block;
    margin-bottom: 0.3rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.gender {
    font-weight: 600;
    color: #3498db !important;
}

.industry {
    font-weight: 500;
    color: #27ae60 !important;
}

.company {
    font-style: italic;
    color: #8e44ad !important;
}

.reason {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #e74c3c;
}

.reason strong {
    color: #e74c3c;
}

.difficulty {
    text-align: right;
    font-weight: 600;
    margin-top: 1rem;
}

.difficulty .high {
    color: #e74c3c;
}

.difficulty .medium {
    color: #f39c12;
}

.difficulty .low {
    color: #27ae60;
}

/* Phone Negotiation */
.phone-interface {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.phone-header {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.phone-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.client-info-small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.conversation-area {
    height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.conversation-log {
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.agent {
    background: #3498db;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.company {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 2px solid #b91c1c;
    text-shadow: none !important;
}

.message.system {
    background: #95a5a6;
    color: white;
    text-align: center;
    margin: 0 auto;
    font-style: italic;
}

.choices-area {
    padding: 1.5rem;
    background: white;
}

.question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.choices {
    display: grid;
    gap: 0.8rem;
}

.choice-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
}

.choice-btn:hover {
    background: #3498db;
    border-color: #2980b9;
    color: white;
    transform: translateY(-2px);
}

.choice-btn:active {
    transform: translateY(0);
}

/* Completion Screen */
.completion-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.completion-content h2 {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 2rem;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #155724;
}

.client-thanks {
    margin: 2rem 0;
}

.client-thanks p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.thanks-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    color: #856404;
    font-style: italic;
}

/* SNSシェアセクション */
.sns-share-section {
    margin: 2rem 0;
    text-align: center;
}

.sns-share-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.sns-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sns-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.sns-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sns-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.sns-btn.twitter:hover {
    background: #0d8bd9;
}

.sns-btn.line {
    background: #00B900;
    color: white;
}

.sns-btn.line:hover {
    background: #009600;
}

.sns-btn.copy {
    background: #6c757d;
    color: white;
}

.sns-btn.copy:hover {
    background: #5a6268;
}

.sns-btn.copy.copied {
    background: #28a745;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sns-icon {
    font-size: 1.1rem;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.credits {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-video-section {
        height: 40vh;
        max-height: 300px;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .audio-hint {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .video-overlay {
        padding: 1.5rem;
    }
    
    .audio-notice {
        margin-top: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .client-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-card {
        padding: 1rem;
    }
    
    .conversation-area {
        height: 300px;
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .sns-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .sns-btn {
        width: 200px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}