/* ==========================================================================
   OyaKodon - Mets Japonais et plus encore
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #b8860b; --primary-dark: #8b6508; --accent: #2c3e50; --red: #c0392b;
    --text: #333; --text-light: #666; --bg: #faf8f5; --bg-white: #fff; --border: #e8e4df;
    --font-primary: 'Noto Sans JP', sans-serif; --font-heading: 'Noto Serif JP', Georgia, serif; --max-width: 1100px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-size: 16px; line-height: 1.8; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; transition: color .2s; } a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.3; margin-bottom: .6em; color: var(--accent); }
h1 { font-size: 1.8em; } h2 { font-size: 1.4em; } h3 { font-size: 1.15em; }
p { margin-bottom: 1em; } ul,ol { margin: 0 0 1em 1.5em; } li { margin-bottom: .3em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--bg-white); border-bottom: 3px solid var(--primary); }
.header-mid { padding: 18px 0; } .header-mid .container { display: flex; align-items: center; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo img { height: 55px; width: auto; }
.site-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin: 0; }
.site-title a { color: var(--red); } .site-title a:hover { color: var(--primary); }
.site-description { font-size: 13px; color: var(--text-light); margin: 2px 0 0; font-style: italic; }

.header-nav { background: var(--accent); }
.header-nav .container { display: flex; align-items: center; justify-content: center; }
.main-nav { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: 11px 18px; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; transition: all .2s; }
.main-nav li a:hover, .main-nav li.active a { color: #fff; background: var(--primary); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; }

.breadcrumb { padding: 10px 0; font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-light); } .breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; } .breadcrumb .current { color: var(--text); }

.site-content { padding: 30px 0; }
.site-content > .container { display: flex; gap: 35px; align-items: flex-start; }
.content-area { flex: 1; min-width: 0; }

.entry-header { margin-bottom: 20px; } .entry-title { font-size: 1.8em; color: var(--accent); }
.post-thumbnail { margin-bottom: 25px; border-radius: 6px; overflow: hidden; } .post-thumbnail img { width: 100%; }
.entry-content { background: var(--bg-white); padding: 30px; border-radius: 6px; border: 1px solid var(--border); }
.entry-content h2 { margin-top: 1.5em; padding-bottom: 6px; border-bottom: 2px solid var(--primary); }
.entry-content h3 { margin-top: 1.2em; color: var(--red); }
.entry-content a { color: var(--primary); text-decoration: underline; }

.post-list { display: grid; gap: 20px; }
.post-card { display: flex; gap: 20px; background: var(--bg-white); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.post-card .card-thumbnail { flex-shrink: 0; width: 280px; } .post-card .card-thumbnail img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.post-card .card-content { flex: 1; padding: 18px; }
.post-card .card-title { font-size: 1.05em; margin-bottom: 6px; } .post-card .card-title a { color: var(--accent); } .post-card .card-title a:hover { color: var(--primary); }
.post-card .card-category { display: inline-block; font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.post-card .card-excerpt { font-size: .9em; color: var(--text-light); }
.read-more { display: inline-block; margin-top: 6px; color: var(--primary); font-weight: 600; font-size: .85em; }

.home-section { margin-bottom: 40px; }
.section-title { font-size: 1.3em; padding-bottom: 8px; border-bottom: 3px solid var(--primary); margin-bottom: 20px; }
.section-title a { color: var(--accent); } .section-title a:hover { color: var(--primary); }

.related-posts { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.related-item { text-align: center; background: var(--bg-white); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.related-item img { width: 100%; height: 100px; object-fit: cover; }
.related-item a { display: block; padding: 10px; font-size: .85em; color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 25px; }
.pagination a,.pagination .current-page { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: var(--bg-white); }
.pagination a:hover,.pagination .current-page { background: var(--primary); color: #fff; border-color: var(--primary); }

.category-header { margin-bottom: 25px; } .category-header h1 { font-size: 1.6em; } .category-header p { color: var(--text-light); font-size: .9em; margin: 0; }

.sidebar { width: 280px; flex-shrink: 0; }
.widget { margin-bottom: 20px; padding: 20px; background: var(--bg-white); border-radius: 6px; border: 1px solid var(--border); }
.widget-title { font-size: .95em; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.widget ul { list-style: none; margin: 0; padding: 0; } .widget ul li { padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.widget ul li:last-child { border-bottom: none; } .widget ul li a { color: var(--text); font-size: .9em; } .widget ul li a:hover { color: var(--primary); }

.site-footer { background: var(--accent); color: rgba(255,255,255,.7); padding: 25px 0; margin-top: 40px; font-size: 14px; text-align: center; }
.site-footer a { color: var(--primary); } .site-footer a:hover { color: #fff; }

.back-to-top { position: fixed; bottom: 25px; right: 25px; width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 100; }
.back-to-top:hover { background: var(--primary-dark); } .back-to-top.visible { display: flex; }

@media (max-width:900px) { .site-content>.container{flex-direction:column} .sidebar{width:100%} .post-card{flex-direction:column} .post-card .card-thumbnail{width:100%} .related-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:768px) { .menu-toggle{display:block} .main-nav{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--accent);z-index:1000} .main-nav.open{display:flex} .main-nav li a{padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.1)} .header-nav .container{position:relative;justify-content:flex-end} .related-grid{grid-template-columns:1fr} }
@media (max-width:480px) { body{font-size:15px} .container{padding:0 15px} .entry-content{padding:20px} }
