/*/_/_/_/_/_/_/_/_/_/_/_/
   CSS リセット
/_/_/_/_/_/_/_/_/_/_/_/*/
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
    -moz-appearance: button; /* Firefox用 */
    -webkit-appearance: button; /* Webkit用 */
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    appearance: textfield;
    -moz-appearance: textfield; /* Firefox用 */
    -webkit-appearance: textfield; /* Webkit用 */
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    appearance: none;
    -moz-appearance: none; /* Firefox用 */
    -webkit-appearance: none; /* Webkit用 */
}

::-webkit-file-upload-button {
    appearance: button;
    -moz-appearance: button; /* Firefox用 */
    -webkit-appearance: button; /* Webkit用 */
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/*/_/_/_/_/_/_/_/_/_/_/_/
   基本的なスタイル
/_/_/_/_/_/_/_/_/_/_/_/*/

body {
    font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", YuGothic, "Yu Gothic", sans-serif;
    width: 100vw;
    height: 100vh;
    font-size: 16px;
    line-height: 2em;
    letter-spacing: 0.05em;
    color: #222;
    word-wrap: break-word;
    overflow-x: hidden;
  }


.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/*/_/_/_/_/_/_/_/_/_/_/_/
   ヘッダー
/_/_/_/_/_/_/_/_/_/_/_/*/
.title a {
    text-decoration: none;
    color: black;
    font-weight: 800
}
.header {
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-list {
    display: flex;
    gap: 21px;
    list-style-type: none;
    padding: 0;
}

.menu-item {
    display: inline;
    margin-right: 10px;
}

.menu-link {
    text-decoration: none;
}

.menu-link:hover {
    text-decoration: underline;
}

.title {
    font-size: 24px;
    margin: 0;
    font-weight: 800;
}


/*/_/_/_/_/_/_/_/_/_/_/_/
   構成案作成
/_/_/_/_/_/_/_/_/_/_/_/*/

/* 初期入力 */
.composition h1.title{
    text-align: center;
}
.upper-container {
    text-align: center;
    width: 500px;
    margin: 0 auto;
}

p.description {
    margin-bottom: 72px;
    text-align: center;
}

.search-form,
.initial-form,
.chat-form {
    margin-bottom: 20px;
}

.keyword-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.chat-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.keyword-label,
.message-label,
.file-label {
    margin-bottom: 5px;
}

.keyword-input,
.message-input,
.file-input {
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.keyword-box {
    display: flex;
    gap: 29px;
    align-items: center;
    flex-direction: column;
}

input#keyword {
    width: 350px;
    padding: 24px 40px;
    border-radius: 40px;
    background-color: #fafafa;
    font-size: 16px;
    border: 1px solid #ccc;
}
textarea#message {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
    padding: 24px 40px;
    border-radius: 40px;
    background-color: #fafafa;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-right: 16px;
}
/* テキストエリアのスタイル */
.message-input {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    overflow: hidden; /* 初期はスクロールバーを隠す */
    resize: none; /* ユーザーによるリサイズを禁止 */
}

.file-input::file-selector-button {
    font-weight: bold;
    font-size: 14px;
    border: 1px solid black;
    background: white;
    border-radius: 10em;
    padding: 8px 16px;
    text-align: center;
  }

button.start-button {
    border-radius: 30px;
    width: 120px;
    height: 54px;
}


/* チャット履歴
---------------------*/
.search-button,
.start-button,
.send-button {
    padding: 12px 24px;
    background-color: #015ac3;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

.search-button:hover,
.start-button:hover,
.send-button:hover {
    background-color: #669ae4;
}

.chat-history {
    margin-top: 20px;
}

.chat-history-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.chat-history-item {
    margin-bottom: 10px;
}

/* メッセージレイアウト調整 */
.response {
    display: flex;
    margin-top: 10px;
}
.response h2 {
    margin-top: 36px;
    margin-bottom: 5px;
}
.response h3 {
    margin-top: 5px;
    margin-bottom: 0px;
}
.response p {
    margin-top: 5px;
    margin-bottom: 8px;
    line-height: 1.2em;
}

.system-message,
.user-message,
.assistant-message {
    background-color: #fafafa;
    padding: 10px 40px;
    border-radius: 4px;
    /* white-space: pre-wrap; */
    font-size: 14px;
}
.user-message{
    margin-left: auto;
}

.assistant-message {
    background-color: #fafafa;
    margin-right: 36px;
}

/* コードブロックのスタイル */
.code-block {
    border-radius: 3px;
    padding: 10px;
    white-space: pre-line;
}

/* リストのスタイル */
.list {
    padding-left: 20px;
    margin-bottom: 1em;
}

.list li {
    margin-bottom: 5px;
}

/* 引用のスタイル */
.quote {
    border-left: 5px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    color: #555;
    background-color: #f9f9f9;
}
/*/_/_/_/_/_/_/_/_/_/_/_/
   競合検索
/_/_/_/_/_/_/_/_/_/_/_/*/

/* 初期入力 */
.competition h1.title{
    text-align: center;
}
/*/_/_/_/_/_/_/_/_/_/_/_/
   フッター
/_/_/_/_/_/_/_/_/_/_/_/*/
.footer p {
    text-align: center;
}