:root {
    --color: #aaaaaa;
    --border: solid 1px #eeeeee;
    /* --color: #abcdef; */
}

* {
    color: var(--color);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
}

/* ツールバー (ul) */
.toolbar {
    width: 50px;
    height: 100%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    list-style: none;
    display: block;
    background: var(--color);
    flex-shrink: 0;
}

/* ツールバー (li) */
.tool {
    width: 100%;
    height: auto;
    margin: 25px 0;
    padding: 0;
}

/* ツールボタン */
.tool-button {
    display: block;
    appearance: none;
    background: none;
    cursor: pointer;
    outline: none;
    border: none;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    padding: 0;
    user-select: none;
}

/* 新規作成ボタン */
#create-button {
    background-image: url('./images/icons/create.svg');
    background-size: contain;
}

/* 保存ボタン */
#save-button {
    background-image: url('./images/icons/save.svg');
    background-size: contain;
}

/* ファイル読み込みボタン */
#file-button {
    background-image: url('./images/icons/attach-file.svg');
    background-size: contain;
}

/* 非表示 */
#file-element {
    display: none;
}

/* 削除ボタン */
#delete-button {
    background-image: url('./images/icons/delete.svg');
    background-size: contain;
}

/* 検索ボタン */
#search-button {
    background-image: url('./images/icons/search.svg');
    background-size: contain;
}

/* 検索結果を閉じるボタン */
#close-button {
    background-image: url('./images/icons/search-off.svg');
    background-size: contain;
}

.tool:nth-of-type(6) {
    display: none;
}

/* 情報ボタン */
#info-button {
    background-image: url('./images/icons/info.svg');
    background-size: contain;
}

/* タイトル、本文、作成日表示エリア*/
.main-contents {
    width: calc(100% - 550px);
    height: 100%;
    box-sizing: border-box;
    border-right: var(--border);
}

/* タイトル */
#title-area {
    width: 100%;
    height: 50px;
    margin: 0px;
    padding: 0 10px;
    font-size: 25px;
    font-weight: bold;
    outline: none;
    border-top: none;
    border-bottom: var(--border);
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#title-area::placeholder {
    color: var(--color);
}

/* 本文 */
#content-area {
    width: 100%;
    height: calc(100% - 75px);
    margin: 0;
    padding: 10px;
    font-size: 15px;
    /* font-weight: bold; */
    outline: none;
    overflow-y: scroll;
    box-sizing: border-box;
    border-bottom: var(--border);
    word-wrap: break-word;
}

#content-area::-webkit-scrollbar {
    display: none;
}

#content-area * {
    max-width: 100%;
}

/* 画像/動画 */
.image-file, .video-file {
    width: auto;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    display: block;
    cursor: default;
}

/* 音声 */
.audio-file {
    display: block;
}

/* 文書 */
.text-file {
    width: 100%;
    height: 300px;
    resize: vertical;
    display: block;
    outline: none;
    border: var(--border);
}

/* 保存日時 */
#write-date {
    width: 100%;
    height: 25px;
    margin: 0;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

/* 保存記事リスト */
#save-list {
    width: 500px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-left: none;
    list-style: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

#save-list::-webkit-scrollbar {
    display: none;
}

/* 保存記事 */
.list-item {
    clear: both;
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    border-bottom: var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.list-item:hover {
    background-color: #eeeeee;
}

.container {
    width: 100%;
    height: 80%;
    margin: 0;
    padding: 0 10px;
    overflow: hidden;
}

.thumbnail {
    width: 80px;
    height: 80px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 10px;
    border-radius: 20%;
    object-fit: cover;
    float: left;
    -webkit-user-drag: none;
    background-color: #ffffff;
}

.list-title {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-text {
    margin: 0;
    font-size: 17px;
    overflow: hidden;
    word-wrap: break-word;
    text-overflow: ellipsis;
}
