/* Modern Japanese Typography & Responsive Adjustments for NOCOTE Articles */
body, button, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body {
    color: #333333;
    line-height: 1.8;
}

/* Site header & branding */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}
.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    max-width: 100%;
}
.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.site-title a {
    color: #2e3d49;
    text-decoration: none;
}
.site-description {
    font-size: 13px;
    color: #777;
    margin: 4px 0 0 0;
}

/* Header navigation */
.main-navigation {
    display: flex;
    align-items: center;
}
.main-navigation ul.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}
.main-navigation ul.nav-menu li {
    margin: 0;
    float: none;
}
.main-navigation ul.nav-menu li a {
    color: #444;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
}
.main-navigation ul.nav-menu li a:hover,
.main-navigation ul.nav-menu li.current-menu-item a {
    color: #ff5722;
    border-bottom-color: #ff5722;
}

/* Breadcrumbs bar */
.top-bar {
    background-color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 10px 0;
}
.top-bar .page-header:empty,
.top-bar .page-title:empty {
    display: none;
}
#crumbs {
    font-size: 13px;
    color: #666;
    margin: 0;
}
#crumbs a {
    color: #444;
    text-decoration: none;
}
#crumbs a:hover {
    text-decoration: underline;
    color: #ff5722;
}
#crumbs .separator {
    margin: 0 6px;
    color: #999;
}
#crumbs .current {
    color: #222;
    font-weight: 600;
}

/* Article layout */
#primary {
    max-width: 900px;
    margin: 0 auto;
    float: none;
    width: 100%;
}
article.post {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 36px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.entry-header {
    border-bottom: 2px solid #f0ee90;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.entry-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.45;
    margin: 0 0 10px 0;
}
.entry-meta {
    font-size: 13px;
    color: #777;
}
.entry-meta a {
    color: #555;
    text-decoration: none;
}
.entry-meta a:hover {
    color: #ff5722;
}
.entry-content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.entry-content p {
    margin-bottom: 1.6em;
}

/* Images & Captions */
.entry-content img,
.wp-block-image img,
figure.is-resized img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    text-align: center;
}
.aligncenter {
    display: block;
    margin: 1.5em auto;
    text-align: center;
}

/* Post navigation (next/prev) */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.nav-links a {
    color: #ff5722;
    font-weight: 600;
    text-decoration: none;
}
.nav-links a:hover {
    text-decoration: underline;
}

/* Author info box */
section.author {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
section.author .name {
    font-weight: 700;
    font-size: 16px;
    color: #222;
    display: block;
    margin-bottom: 8px;
}

/* Footer widgets & info */
.site-footer {
    background: #2e3d49;
    color: #e0e0e0;
    padding: 30px 0 20px;
    margin-top: 40px;
}
.footer-t {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 15px;
}
.footer-t .row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-t .column {
    float: none;
    width: auto;
}
.footer-t a {
    color: #ffd54f;
    text-decoration: none;
    font-weight: 500;
}
.footer-t a:hover {
    text-decoration: underline;
}
.site-info {
    text-align: center;
    font-size: 13px;
    color: #9e9e9e;
}

/* Responsive for Mobile & Tablet */
@media screen and (max-width: 768px) {
    article.post {
        padding: 20px 18px;
        margin: 15px 0;
    }
    .entry-title {
        font-size: 20px !important;
    }
    .alignleft, .alignright {
        float: none !important;
        display: block !important;
        margin: 1.2em auto !important;
        max-width: 100% !important;
        text-align: center;
    }
    .wp-block-image figure.alignleft,
    .wp-block-image figure.alignright {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .main-navigation ul.nav-menu {
        display: none;
    }
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .site-title {
        font-size: 20px;
    }
}
