/* 基本的なスタイルリセット */
body, h1, h2, h3, p, ul, li, dl, dt, dd {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #fff;
    /* 緑がかったグレーから青紫へのグラデーション */
    background: linear-gradient(135deg, #4F6A6E, #3B4A8B);
    background-attachment: fixed;
}

header, footer {
    padding: 1rem;
    text-align: center;
}

/* 背景コンテナ */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* クリックを透過 */
    overflow: hidden;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.05); /* 背景より少し明るい要素 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1, h2 {
    font-family: 'Times New Roman', Times, serif; /* 高級感を出すためのフォント例 */
    font-weight: normal;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #AACCFF; /* アクセントカラー */
}

p {
    margin-bottom: 1rem;
}

/* ヒーローセクション */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: none; /* sectionの背景を上書き */
    box-shadow: none; /* sectionの影を上書き */
}

#hero h1 {
    font-size: 4rem;
}

/* お知らせセクション */
.news-item {
    margin-bottom: 1rem;
}

.news-title {
    cursor: pointer;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.news-title:hover {
    background-color: rgba(0,0,0,0.4);
}

.news-content {
    display: none; /* 初期状態では非表示 */
    padding: 1rem;
    border-top: 1px solid #555;
}

/* 会社概要セクション */
#company dl {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
}

#company dt {
    font-weight: bold;
    color: #AACCFF;
}

#company dd ul {
    list-style: none;
}

/* ログインフォーム */
.login-form {
    margin-top: 2rem;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.login-form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #AACCFF;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #88aaff;
}

/* AIチャットウィジェット */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-circle {
    width: 60px;
    height: 60px;
    background-color: #AACCFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.chat-box {
    display: none;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background-color: #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}

.chat-box-header {
    background-color: #3B4A8B;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-box-toggle {
    cursor: pointer;
    font-weight: bold;
}

.chat-box-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-logs {
    display: flex;
    flex-direction: column;
}

.chat-msg {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-msg {
    background-color: #AACCFF;
    color: #000;
    align-self: flex-end;
}

.ai-msg {
    background-color: #4a4a4a;
    color: #fff;
    align-self: flex-start;
}


.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #444;
}

#chat-input-text {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    background-color: #404040;
    color: white;
}

#chat-input-text:focus {
    outline: none;
}


#chat-submit {
    background-color: #AACCFF;
    border: none;
    color: #000;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#chat-submit:hover {
    background-color: #88aaff;
}

/* アニメーション */
.chat-box.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
