/* AIキャリコン ウェブアプリケーション スタイルシート */

/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* アプリコンテナ */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ヘッダー */
.app-header {
    background-color: #00B900;
    color: white;
    padding: 20px;
    text-align: center;
}

.app-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* チャットコンテナ */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

/* チャットメッセージエリア */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* メッセージバブル共通スタイル */
.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 16px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

/* AIメッセージ */
.ai-message {
    align-self: flex-start;
    background-color: #F1F0F0;
    color: #333;
}

/* ユーザーメッセージ */
.user-message {
    align-self: flex-end;
    background-color: #00B900;
    color: white;
}

/* タイムスタンプ */
.timestamp {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

/* 入力コンテナ */
.input-container {
    border-top: 1px solid #E5E5EA;
    padding: 10px;
    background-color: white;
}

/* 選択肢コンテナ */
.options-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* 選択肢ボタン */
.option-button {
    background-color: #F1F0F0;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-bottom: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-button:hover {
    background-color: #E5E5EA;
}

.option-button.selected {
    background-color: #00B900;
    color: white;
}

/* 入力バー */
.input-bar {
    display: flex;
    align-items: center;
}

.input-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #E5E5EA;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
}

.input-bar button {
    background-color: #00B900;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-bar button:hover {
    background-color: #009900;
}

/* レポートコンテナ */
.report-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.report-container.active {
    display: block;
}

/* レポートスタイル */
.report-title {
    font-size: 24px;
    color: #00B900;
    text-align: center;
    margin-bottom: 20px;
}

.report-date {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.report-section {
    margin-bottom: 30px;
}

.report-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #E5E5EA;
    padding-bottom: 5px;
}

.report-section-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.report-item-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.report-item {
    margin-bottom: 5px;
}

.report-share-button {
    background-color: #00B900;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    font-weight: bold;
}

.report-share-button:hover {
    background-color: #009900;
}

/* ビュー切り替えボタン */
.view-toggle {
    display: flex;
    border-top: 1px solid #E5E5EA;
}

.view-toggle button {
    flex: 1;
    padding: 15px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
}

.view-toggle button.active {
    background-color: #00B900;
    color: white;
}

/* フッター */
.app-footer {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
    .app-container {
        width: 100%;
    }
    
    .message {
        max-width: 90%;
    }
}
