body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
}

header {
    background: #333;
    color: #fff;
    padding: 0.2rem 1rem 0.5rem 1rem;
}

header a:link {
    color: #FFF;
}

header a:visited {
    color: #FFF;
}

header a:hover {
    color: #999;
    text-decoration: underline;
    /* 下線を表示 */
}

header a:active {
    color: purple;
}

/* ナビゲーション全体の整列 */
nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

main {
    padding: 0rem;
    max-width: 800px;
    margin: auto;
}

h1 {
    font-size: 14pt;
}

h2 {
    font-size: 13pt;
}

/* 特定フォーム以外のメインコンテンツdiv class */
.contents {
    padding: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #777;
}

footer a:link {
    color: #777;
}

footer a:visited {
    color: #777;
}

footer a:hover {
    color: #999;
    text-decoration: underline;
    /* 下線を表示 */
}

footer a:active {
    color: purple;
}

/* ログアウトボタン */
#logout_form {
    display: inline;
}

#logout_button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #FFF;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

#logout_button:hover {
    color: #999;
}

/* ついでにクリック中（active）も合わせる場合 */
#logout_button:active {
    color: purple;
}

.site-title {
    display: flex;
    align-items: center;
}

/* ユーザーアイコン（丸い円） */
.user-icon {
    width: 32px;
    height: 32px;
    background-color: #4A5568;
    /* お好みの背景色 */
    color: white;
    /* 文字色 */
    border-radius: 50%;
    /* 正円にする */
    display: flex;
    align-items: center;
    /* 文字を上下中央 */
    justify-content: center;
    /* 文字を左右中央 */
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    /* 英字の場合大文字に */
    margin-left: auto;
    /* 左側のメニューとの間隔 */
    border: 2px solid white;
    /* 輪郭をはっきりさせる */
}

.user-icon a {
    text-decoration: none;
}

.message {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 10px;
    margin-bottom: 1.5rem;
    color: #b91c1c;
}