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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}


/* font */
.f01 {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.f02 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


.slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide.pan-left {
    animation: panLeft 8s ease-in-out;
}

.slide.pan-right {
    animation: panRight 8s ease-in-out;
}

.slide.zoom-in {
    animation: zoomIn 8s ease-in-out;
}

.slide.zoom-out {
    animation: zoomOut 8s ease-in-out;
}

@keyframes panLeft {
    0% { transform: translateX(0) scale(1.1); }
    100% { transform: translateX(-5%) scale(1.1); }
}

@keyframes panRight {
    0% { transform: translateX(0) scale(1.1); }
    100% { transform: translateX(5%) scale(1.1); }
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 1000;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.music-controls {
    position: fixed;
    bottom: 20px;
    right: 320px;
    z-index: 1000;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    color: white;
}
.volume-control button {
    padding: 0px;
}

.volume-slider {
    width: 100px;
}

.info {
    display: none;
    position: fixed;
    top: 50px;
    right: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 1000;
    max-width: 300px;
}

@media (max-width: 768px) {
    .controls, .music-controls, .info {
        display: none;
    }
}




/* -------------------------------------------------- */

/* メイン画面 */
.main-screen {
    height: 100vh;
    /*background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1544961503-7ad532ac882e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');*/
    background-image: url("../images/eme/morning/morning001.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /*display: flex;
    align-items: center;
    justify-content: center;
    position: relative;*/
}

.main-content {
    position: absolute;
    left: 0;
    top: 0;
    text-align: left;
    color: white;
    z-index: 2;
    padding: 50px;
}

.logo {
    font-size: 1rem;
    /*font-weight: bold;*/
    line-height: 1;
    margin-bottom: 6rem;
    text-shadow: 0px 0px 4px rgba(0,0,0,0.5);
}

.main-title {
    font-size: 4rem;
    /*font-weight: bold;*/
    line-height: 1.2;
    margin-bottom: 6rem;
    text-shadow: 0px 0px 4px rgba(0,0,0,0.5);
}

.try-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
}

.try-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,255,136,0.3);
}

.notificationContainer {
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
    margin: 0 0 50px 0;
    padding: 1em;
    border-radius: 10px;
}


@media screen and (max-width: 750px) {
  .main-content {
		width: 100%;
	    padding: 5vw;
	}

	.logo {
	    width: 20vw;
	    margin-bottom: 20vw;
	}
	.logo img {
	    width: 100%;
	}

	.main-title {
	    font-size: 10vw;
	    margin-bottom: 20vw;
	}

	.try-button {
		display: none;
		margin: 0 auto;
	    padding: 15px 40px;
	    font-size: 16px;
	    border-radius: 25px;
	}
	
	.notificationContainer {
	    font-size: 14px;
	}
}


/* 設定モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0,0,0,0.9);
    border-radius: 20px;
    padding: 40px;
    width: 80%;
    max-width: 800px;
    color: white;
    position: relative;
}

.modal-title {
    color: #ff00aa;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.companion-setup {
    display: flex;
    gap: 40px;
}

.companion-avatar {
    flex: 1;
    text-align: center;
}

.avatar-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.companion-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.companion-subtitle {
    color: #ccc;
    margin-bottom: 30px;
}

.settings-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.form-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.demo-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    color: black;
    transition: all 0.3s ease;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,255,136,0.3);
}

/* 会話画面 */
.chat-screen {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    height: 100vh;
    display: none;
    /*background: #f5f5f5;*/
}

.chat-layout {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.1);
}

.sidebar-item.active {
    background: #3498db;
}

.chat-area {
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    background: rgba(242,240,235,0.9);
    width: 50vw;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.message-content {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid #eee;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}

.send-button {
    background: #ff00aa;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.companion-area {
    position: fixed;
    top: 0;
    right: 0;
    z-index: -1;
    width: calc(50% - 250px);
    height: 100vh;
    /*background-image: url("../images/eme/morning/morning001.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;*/
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    */
}

.companion-display {
    text-align: center;
    color: white;
    /*padding: 150px 50px 50px 50px;*/
}

.companion-image {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    /*background: rgba(255,255,255,0.1);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255,255,255,0.5);*/
}
.companion-image video {
    width: 100%;
    /*height: 100%;*/
}

.companion-area .controls {
    bottom: 200px;
}

.exit-button {
    position: absolute;
    top: 50px;
    right: 50px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,255,136,0.3);
}

/* フェードイン アニメーション */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.hidden {
    display: none;
}

.show {
    display: flex;
}

.show-block {
    display: block;
}



