/* ============================================================
   site.css — kiriki-usa.com
   Replaces main.css + colorscheme.css + style.css
   ============================================================ */

/* ---- Reset / Base ---------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: #e8eef3;
}

/* ---- Page wrapper ---------------------------------------- */

#container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #52768f;
    border-right: 1px solid #52768f;
    min-height: 100vh;
}

/* ---- Header ---------------------------------------------- */

#header {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #52768f;
}

#key_visual {
    position: absolute;
    inset: 0;
    background: url(images/dynamic/key_visual1.jpg) center/cover no-repeat;
}

#logo {
    position: absolute;
    right: 20px;
    bottom: 16px;
    width: 254px;
    height: 68px;
    background: url(images/dynamic/logo.jpg) no-repeat center / 254px 68px;
}

/* ---- Navigation ------------------------------------------ */

#main_nav_container {
    background: #52768f;
    border-top: 1px solid #b4c3ce;
    border-bottom: 1px solid #22323c;
}

#main_nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

#main_nav_list li {
    margin: 0;
}

#main_nav_list a {
    display: block;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

a.main_nav_item {
    color: #000;
    background: #c9d9e4;
    border-right: 1px solid #808a91;
}

a.main_nav_item:hover {
    background: #dee9f2;
    color: #000;
}

a.main_nav_active_item {
    color: #fff;
    background: #52768f;
    border-right: 1px solid #344b5b;
}

/* ---- Slogan bar ------------------------------------------ */

#slogan {
    background: #52768f url(colorschemes/colorscheme1/images/static/hbg.gif) repeat-y;
    border-top: 1px solid #b4c3ce;
    border-bottom: 1px solid #22323c;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    font-style: italic;
    padding: 6px 16px 6px 225px;
    text-align: left;
}

/* ---- Main layout ----------------------------------------- */

#main_container {
    display: flex;
    align-items: flex-start;
    padding: 0;
}

#left_column {
    width: 190px;
    flex-shrink: 0;
    padding: 12px 0 12px 0;
}

#right_column {
    flex: 1;
    min-width: 0;
    padding: 14px 20px 20px 16px;
}

/* ---- Sub-navigation (left sidebar) ----------------------- */

.sub_nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub_nav_list li {
    margin-bottom: 2px;
}

.sub_nav_list a {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #52768f;
}

a.sub_nav_item {
    color: #000;
    background: #fff;
}

a.sub_nav_item:hover {
    background: #d7e5f0;
    color: #000;
}

a.sub_nav_active_item {
    color: #fff;
    background: #52768f;
}

/* ---- Content area ---------------------------------------- */

.content {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.content p {
    margin: 0 0 16px 0;
}

.content h1 {
    font-size: 18px;
    color: #52768f;
    border-bottom: 1px solid #52768f;
    padding-bottom: 4px;
    margin: 0 0 14px 0;
}

.content h2 {
    font-size: 15px;
    color: #52768f;
    border-bottom: 1px solid #52768f;
    padding-bottom: 3px;
    margin: 0 0 10px 0;
}

.content h3 {
    font-size: 13px;
    color: #52768f;
    border-bottom: 1px solid #52768f;
    padding-bottom: 2px;
    margin: 0 0 8px 0;
}

.content a:link    { color: #000; text-decoration: underline; }
.content a:visited { color: #888; text-decoration: underline; }
.content a:hover   { color: #990000; text-decoration: none; }
.content a:active  { color: #700905; text-decoration: underline; }

.content hr {
    border: none;
    border-top: 1px solid #c9d9e4;
    margin: 12px 0;
}

.content ul {
    padding-left: 20px;
    margin: 0 0 12px 0;
}

.content li {
    margin-bottom: 4px;
}

/* ---- News / diary entry ---------------------------------- */

.news-entry {
    margin-bottom: 16px;
}

.news-entry .news-date {
    font-weight: bold;
    color: #52768f;
    font-size: 12px;
    margin-bottom: 4px;
}

/* ---- Album list ------------------------------------------ */

.album-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}

.album-list li {
    margin-bottom: 6px;
    break-inside: avoid;
}

.album-list a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
}

.album-list a:hover {
    color: #52768f;
    text-decoration: underline;
}

/* ---- Diary ----------------------------------------------- */

.diary-subtitle {
    color: #52768f;
    font-size: 15px;
    border-bottom: 1px solid #52768f;
    margin: 0 0 14px 0;
    padding-bottom: 4px;
}

.diary-nav {
    margin: 16px 0;
    font-size: 13px;
}

.diary-nav a {
    color: #52768f;
    text-decoration: none;
    font-weight: bold;
}

.diary-nav a:hover {
    text-decoration: underline;
}

/* ---- Footer ---------------------------------------------- */

#footer {
    background: #52768f;
    border-top: 1px solid #22323c;
    padding: 10px 0;
}

#footer_text {
    text-align: center;
    color: #fff;
    font-size: 11px;
}

/* ---- Responsive ------------------------------------------ */

@media (max-width: 640px) {
    #header {
        height: 120px;
    }

    #logo {
        display: none;
    }

    #main_nav_list a {
        padding: 8px 10px;
        font-size: 11px;
    }

    #main_container {
        flex-direction: column;
    }

    #left_column {
        width: 100%;
        padding: 8px 12px 0;
    }

    .sub_nav_list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sub_nav_list li {
        margin: 0;
    }

    .sub_nav_list a {
        border: 1px solid #52768f;
        border-bottom: 1px solid #52768f;
    }

    #right_column {
        padding: 12px;
    }

    .album-list {
        columns: 1;
    }
}
