/* ========================================
   common.css
   サイト共通の基本スタイル

   配色ルール:
   - メインカラー:   #83B8DD（ココトレブランドカラー）
   - メイン濃:       #5A9AC7（ホバー・アクティブ状態）
   - メイン薄:       #E8F2FA（背景のアクセント）
   - テキスト:       #333333
   - テキスト薄:     #666666
   - テキスト淡:     #999999
   - 背景:           #FFFFFF
   - 背景サブ:       #F8F9FA
   - ボーダー:       #E0E0E0
   - 完了:           #4CAF50（進捗の完了状態）
   - 未完了:         #CCCCCC
   ======================================== */


/* --- ベース --- */

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #83B8DD;
    transition: color 0.2s;
}

a:hover {
    color: #5A9AC7;
}


/* --- レイアウト --- */

.site-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- ヘッダー --- */

.site-header {
    background: #FFFFFF;
    border-bottom: 2px solid #83B8DD;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.05em;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: #83B8DD;
}

.site-title img {
    height: 2.5rem;
    width: auto;
    display: block;
}




.header-user {
    font-size: 0.8125rem;
    color: #666666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5A9AC7;
    border: 1px solid #83B8DD;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-nav-link:hover {
    background: #E8F2FA;
    color: #5A9AC7;
}

.header-user__name {
    font-weight: 600;
    color: #333333;
}

.header-user__logout {
    margin-left: 12px;
    font-size: 0.75rem;
    color: #999999;
    border: 1px solid #E0E0E0;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.header-user__logout:hover {
    color: #666666;
    border-color: #999999;
}


/* --- フッター --- */

.site-footer {
    background: #F8F9FA;
    border-top: 1px solid #E0E0E0;
    padding: 24px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #999999;
    margin-top: auto;
}


/* --- レスポンシブ共通 --- */

@media (max-width: 600px) {

    .site-header__inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-right {
        flex-wrap: wrap;
        gap: 10px;
    }
}
