/* ============================
   Post Page Responsive Stylesheet
   緑と花の市民の会
   ============================ */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: #333;
    background: #f8f9f5;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
#header {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

#header .logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

#header .logo img {
    height: 32px;
    width: auto;
}

/* Navigation */
#nav {
    background: #1b5e20;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

#nav ul li {
    margin: 0;
}

#nav ul li a {
    display: block;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s;
    text-decoration: none;
}

#nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* Wrapper & Main Content */
#wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

#mainContent {
    width: 100%;
}

/* Breadcrumb / Topic Path */
#topicPath {
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
    font-size: 0.82rem;
    color: #666;
}

#topicPath a {
    color: #2e7d32;
}

/* Page Title */
h1 {
    font-size: 1.5rem;
    color: #1b5e20;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c8e6c9;
    line-height: 1.5;
    font-weight: 700;
}

/* Date */
#blogdays {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
    padding: 6px 0;
}

/* Content Area */
#mainContent p {
    margin-bottom: 1em;
    line-height: 1.9;
    font-size: 0.95rem;
}

#mainContent strong {
    color: #2e7d32;
}

#mainContent hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

#mainContent table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

#mainContent table th,
#mainContent table td {
    border: 1px solid #c8e6c9;
    padding: 10px 12px;
    text-align: left;
}

#mainContent table th {
    background: #e8f5e9;
    font-weight: 700;
    color: #2e7d32;
}

#mainContent table tr:nth-child(even) td {
    background: #fafff8;
}

/* Images in Content */
.mt-enclosure img,
#mainContent img {
    display: block;
    margin: 16px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Back to top */
.toTop {
    margin-top: 32px;
    text-align: center;
}

.toTop a {
    display: inline-block;
    padding: 8px 20px;
    background: #e8f5e9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #2e7d32;
    transition: background 0.2s;
}

.toTop a:hover {
    background: #c8e6c9;
    text-decoration: none;
}

/* Content Navigation (prev/next) */
#content-nav {
    margin-top: 32px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    line-height: 2;
}

#content-nav a {
    color: #2e7d32;
}

/* Footer */
#footer {
    background: #263238;
    color: #b0bec5;
    margin-top: 40px;
}

#footer_top {
    display: none;
}

#footerInner {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

#footerInner ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 12px;
}

#footerInner a {
    color: #b0bec5;
    font-size: 0.85rem;
}

#footerInner a:hover {
    color: #fff;
}

#footer_sita {
    text-align: center;
    padding: 12px 20px 20px;
    font-size: 0.78rem;
    color: #78909c;
}

#footer_sita li {
    list-style: none;
}

/* Hide elements not needed */
#searchBox,
#accNav,
#secondly {
    display: none;
}

/* ============================
   List Pages (category listing)
   ============================ */
.bloglist,
#mainContent ul {
    list-style: none;
    padding: 0;
}

#mainContent .bloglist li,
.blogList_wrapper {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #81c784;
    transition: transform 0.15s, box-shadow 0.15s;
}

#mainContent .bloglist li:hover,
.blogList_wrapper:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blogListDate {
    font-size: 0.8rem;
    color: #888;
    margin-right: 12px;
}

/* ============================
   Hamburger Menu
   ============================ */
.post-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.post-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.post-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.post-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.post-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   Responsive Design
   ============================ */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    #header {
        padding: 10px 14px;
        position: relative;
    }

    #header .logo img {
        height: 26px;
    }

    .post-hamburger {
        display: flex;
    }

    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #1b5e20;
        z-index: 150;
        transition: right 0.35s ease;
        padding-top: 60px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    }

    #nav.open {
        right: 0;
    }

    #nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #nav ul li a {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #nav ul li a:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    #wrapper {
        padding: 16px 14px 32px;
    }

    h1 {
        font-size: 1.2rem;
    }

    #mainContent p {
        font-size: 0.9rem;
        line-height: 1.85;
    }

    #mainContent table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    #topicPath {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    #header {
        padding: 8px 10px;
    }

    #wrapper {
        padding: 12px 10px 24px;
    }

    h1 {
        font-size: 1.1rem;
        padding-bottom: 8px;
    }

    #mainContent p {
        font-size: 0.88rem;
    }

    #content-nav {
        padding: 12px;
    }
}