@charset "UTF-8";

#chatBtn {
	
}

#open-chat{
	width: 20vw;
    position:fixed;
    z-index: 999;
    bottom:66px;
    left:2%;
	background:none;
	border:none;
	animation: rotate-action 3s ease-in-out infinite;
	transform-origin: left bottom;
}
@keyframes rotate-action {
  0% {
    transform: rotate(0deg);
  }
  5% {
    /* 最初の10%（0.3秒）くらいで素早く10度回る */
    transform: rotate(-10deg);
  }
  10% {
    /* 次の10%で元の位置に戻る */
    transform: rotate(0deg);
  }
  15% {
    /* 最初の10%（0.3秒）くらいで素早く10度回る */
    transform: rotate(-10deg);
  }
  20% {
    /* 次の10%で元の位置に戻る */
    transform: rotate(0deg);
  }
  100% {
    /* 残りの時間は止まった状態にする（3秒の周期を作るため） */
    transform: rotate(0deg);
  }
}

#open-chat img {
	width: 100%;
	filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
}

.chat-container {
    position: fixed;
    bottom: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 1em rgba(0,0,0,0.2);
    border-radius: 0.5rem 0.5rem 0 0;
    z-index: 99999;
    
    /* アニメーションの肝：下に100%ずらして隠す */
    transform: translateY(100%);
    transition: transform 0.3s ease-out, opacity 0.1s ease-out;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

/* 表示状態（クラスがついたら元の位置に戻る） */
.chat-container.active {
    transform: translateY(0);
    opacity: 1;
}

/* iframeをコンテナいっぱいに広げる */
.chat-container iframe {
    flex-grow: 1;
    width: 100%;
    border: none;
}

#chat-container .chat-header {
	height: 2.6em;
}
#chat-container .chat-header h2 {
	padding:0.25em;
	padding-left:0.72em;
	letter-spacing:0.072em;
}

/* 閉じるボタンのスタイル（任意） */
#close-chat {
	display:block;
	padding-right: 0;
    float: right;
    font-size:1.25em;
	width: 1.75em;
    background: #fff;
    border:none;
}

/* タイピング中のカーソル点滅 */
.typing-cursor::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 2px;
    color: #f97316; /* オレンジ色 */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px); /* 少し下から */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iconBot {
    position: relative;
    background-color: #fff5ef;
    /* 左側にアイコンが並ぶための余白(アイコン幅＋α)を外側に作る */
    margin: 2.4em 0 1.2em 3.0em; 
    padding: 0.72em;
    border-radius: 0 1em 1em 1em;
    min-height: 2.4em; /* アイコンの高さに合わせる */
}

.iconBot::before {
    content: "";
    position: absolute;
    /* ふきだしの左端からさらに左へ配置する（マイナス値） */
    left: -3em; 
    top: -1.2em;
    width: 2.4em;
    height: 2.4em;
    background-image: url('https://wanchanto.info/upload/20240112155445_thumbnail_wanchanto.jpg'); 
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: #eee; 
    border: 1px solid #ddd;
}

.user-message {
    position: relative;
	/* background-color: #fff5ef; */
    /* 左側にアイコンが並ぶための余白(アイコン幅＋α)を外側に作る */
    margin: 2.4em 3.0em 1.2em 0 ; 
    padding: 0.72em;
	border:#ccc 1px solid;
    border-radius: 1em 0 1em 1em;
    min-height: 2.4em; /* アイコンの高さに合わせる */
}

.user-message::before {
    content: "";
    position: absolute;
    /* ふきだしの左端からさらに左へ配置する（マイナス値） */
    right: -3em; 
    top: -1.2em;
    width: 2.4em;
    height: 2.4em;
    background-image: var(--user-icon, url('https://wanchanto.info/upload/thumbnail.jpg'));
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: #eee; 
    border: 1px solid #ddd;
}


#results-list .nameRelated {
	height: calc(100vw + 2em);
	margin-bottom:1.5em;
}

#results-list dl.destinationLargeIndex dd.name .areaName{
	font-size: 15px;
	font-weight:normal;
	background-color: rgba(255,255,255,81%);
	border-radius:0.25em;
	text-shadow:none;
	padding:2px 4px;
	vertical-align:inherit;
	color: black;
}

#results-list dl.destinationLargeIndex p.comment {
	color: black;
	padding: 0.24em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
}
#results-list dl.destinationLargeIndex p.comment a{
	color: black;
}
#start-options button {
	width: 15em;
}
