/*
Theme Name: Blogs
Theme URI: https://example.com/blogs
Author: Your Name
Author URI: https://example.com
Description: Default Blog Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogs
*/

:root {
    --primary-color: #2f484b;
    --secondary-color: #43676b;
    --accent-color: #6b5443;
    --background-color: #d3cfd9;
    --text-color: #2f484b;
    --font-main: 'Zen Kaku Gothic New', sans-serif;
    --font-heading: 'Zen Maru Gothic', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 2em 0 1em;
    position: relative;
}

/* Heading Styles */
h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 2em 0 1em;
    position: relative;
}

h2 {
    font-size: 1.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--accent-color);
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color) 0%, transparent 100%);
}

h3 {
    font-size: 1.5em;
    padding-left: 1em;
    border-left: 4px solid var(--accent-color);
}

h4 {
    font-size: 1.25em;
    display: flex;
    align-items: center;
}

h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.8em;
    background-color: var(--accent-color);
    transform: rotate(45deg);
}

h5 {
    font-size: 1.125em;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

h5::before {
    content: '•';
    margin-right: 0.5em;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.25em;
    }
    
    h4 {
        font-size: 1.125em;
    }
    
    h5 {
        font-size: 1em;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
}

.header-image {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    overflow: hidden;
}

.header-image img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 2;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 calc((100vw - 1400px) / 2 + 40px);
    z-index: 3;
}

.site-branding {
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-left: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo,
.custom-logo-link,
.custom-logo {
    display: none;
}

.site-title {
    font-size: 1.75em;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.site-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transform: none;
    transition: width 0.3s ease;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: none;
    background: none;
    padding: 0;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--accent-color);
}

.site-description {
    font-size: 0.8em;
    margin: 0.5em 0 0;
    color: var(--secondary-color);
    line-height: 1.4;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.site-description::before,
.site-description::after {
    display: none;
}

@media (max-width: 1440px) {
    .header-content {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }

    .site-branding {
        padding: 10px 15px;
        max-width: calc(100% - 20px);
    }
    
    .site-title {
        font-size: 1.3em;
    }
    
    .site-description {
        font-size: 0.75em;
        margin: 0.5em 0 0;
    }

    .custom-logo {
        max-height: 50px;
    }
    
    .site-logo {
        margin-bottom: 0.3em;
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .site-content,
    .site-content-wrapper,
    .single-post {
        width: 100%;
        margin: 0;
        padding: 0;
        max-width: none;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .single-post-content {
        width: 100%;
        margin: 0;
        padding: 20px;
        background-color: #D3CFD9;
        position: relative;
        box-sizing: border-box;
        overflow-y: visible;
    }

    .single-post-content > * {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.2em;
        padding: 0;
        box-sizing: border-box;
    }

    .single-post-content img {
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
        height: auto;
    }

    body {
        position: relative;
    }
}

@media (max-width: 480px) {
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .site-content,
    .site-content-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .single-post-header {
        padding: 15px;
    }

    .single-post-content {
        padding: 15px !important;
    }

    .single-post-content img {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
    }

    .post-tags,
    .post-navigation {
        padding: 15px;
    }
}

/* Post Styles */
.post-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    width: 100%;
}

.post-card .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
}

.post-card:hover .post-overlay {
    opacity: 1;
    visibility: visible;
}

.post-card .post-excerpt {
    color: #ffffff;
    font-size: 0.9em;
    line-height: 1.6;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.post-card .post-categories {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card .post-categories li {
    margin: 0;
    padding: 0;
}

.post-card .post-categories a {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(67, 103, 107, 0.9);
    color: #ffffff;
    font-size: 0.75em;
    text-decoration: none;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.post-card .post-categories a:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
}

.post-card .post-content {
    padding: 15px;
    flex-grow: 0;
    flex-shrink: 0;
}

.post-card .post-title {
    font-size: 1em;
    margin: 0;
    line-height: 1.4;
}

.post-card .post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.post-card .post-title a:hover {
    color: var(--accent-color);
}

.post-card .post-meta {
    color: var(--secondary-color);
    font-size: 0.875em;
    margin-top: auto;
}

.post-card .post-date {
    display: block;
    font-size: 0.875em;
    color: var(--secondary-color);
}

.post-card .cooking-time {
    display: inline-block;
    color: var(--secondary-color);
}

.post-card .entry-footer {
    margin-top: auto;
    text-align: center;
    padding: 15px;
}

.post-card .read-more {
    display: inline-block;
    padding: 0.5em 1.5em;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.875em;
}

.post-card .read-more:hover {
    background-color: #5a4536;
    transform: translateY(-1px);
}

/* Archive Page */
.archive-header {
    text-align: center;
    margin: 0 0 40px;
    padding: 20px;
    background-color: rgba(67, 103, 107, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archive-title {
    font-size: 1.75em;
    margin: 0 0 0.9375em;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.archive-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

.archive-description {
    color: var(--secondary-color);
    font-size: 0.875em;
    line-height: 1.6;
    margin-top: 0.9375em;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

/* Single Post */
.single-post {
    background-color: rgba(67, 103, 107, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.single-post .post-thumbnail {
    margin: 20px -30px;
    max-height: 400px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.single-post-title {
    font-size: 1.75em;
    margin: 0 0 1.5em;
    color: var(--primary-color);
    line-height: 1.4;
    position: relative;
    padding: 0 0 0.75em;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.single-post-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color) 20%, var(--accent-color) 80%, transparent);
}

.single-post-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.single-post-meta {
    color: var(--secondary-color);
    margin-bottom: 1.25em;
    font-size: 0.875em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.single-post-content {
    background-color: #D3CFD9;
    padding: 30px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 0.25em 0.75em;
    background-color: #f5f5f5;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8125em;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.post-navigation {
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background-color: rgba(67, 103, 107, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: #44617b;
    display: flex;
    flex-direction: column;
}

.nav-subtitle {
    font-size: 0.75em;
    color: var(--accent-color);
    margin-bottom: 0.3125em;
    font-weight: 500;
}

.nav-title {
    font-size: 0.875em;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-subtitle {
    margin-left: auto;
}

@media (max-width: 768px) {
    .single-post {
        padding: 20px;
        margin: 0 15px 30px;
    }

    .single-post .post-thumbnail {
        margin: 15px -20px;
        max-height: 300px;
    }

    .single-post .post-thumbnail img {
        height: 300px;
    }

    .single-post-title {
        font-size: 1.5em;
        margin: 0 0 1.25em;
        padding: 0 0 0.75em;
    }

    .single-post-title::before {
        width: 80px;
    }

    .single-post-title::after {
        width: 8px;
        height: 8px;
        bottom: -4px;
    }

    .single-post-content {
        font-size: 0.95em;
        line-height: 1.7;
    }

    .single-post-content p {
        margin-bottom: 1.3em;
    }

    .single-post-content img {
        margin: 15px -20px;
        width: calc(100% + 40px);
        max-width: none;
        border-radius: 0;
    }
}

/* Footer */
.site-footer {
    background-color: rgba(67, 103, 107, 0.1);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-widgets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-widget {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-widget-title {
    font-size: 1.2em;
    margin: 0 0 1.2em;
    padding-bottom: 0.8em;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color) 0%, transparent 100%);
}

.footer-widget .recent-posts-with-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer-widget .recent-posts-with-thumbnails li {
    margin: 0;
    padding: 0;
    border: none;
}

.footer-widget .recent-post-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.footer-widget .recent-post-item:hover {
    transform: translateY(-3px);
}

.footer-widget .recent-post-thumbnail {
    width: 100%;
    height: 140px;
    margin: 0;
}

.footer-widget .recent-post-content {
    padding: 15px;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.footer-widget .recent-post-title {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.footer-widget .recent-post-date {
    font-size: 0.75em;
    color: var(--secondary-color);
    margin-top: auto;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-widgets-container {
        gap: 30px;
        padding: 0 15px;
    }

    .footer-widget {
        padding: 20px;
    }

    .footer-widget .recent-posts-with-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .footer-widget .recent-post-thumbnail {
        height: 120px;
    }
}

/* Layout */
.site-content {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.site-content-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    overflow: hidden;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 960px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .site-content,
    .site-content-wrapper,
    .single-post {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
    }

    .single-post-header {
        width: 100%;
        margin: 0;
        padding: 20px;
        background-color: #ffffff;
    }

    .single-post-content {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 20px !important;
        background-color: #D3CFD9 !important;
        box-sizing: border-box !important;
    }

    .single-post-content > * {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .single-post-content p {
        margin: 0 0 1.2em !important;
        padding: 0 !important;
        line-height: 1.8 !important;
        width: 100% !important;
    }

    .single-post-content img {
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
        height: auto;
    }

    .post-tags,
    .post-navigation {
        width: 100%;
        margin: 0;
        padding: 20px;
        background-color: #ffffff;
    }
}

@media (max-width: 480px) {
    .site-content-wrapper {
        padding: 5px;
    }

    .menu-container {
        padding: 0 5px;
    }

    .archive-grid {
        gap: 8px;
    }
}

/* Remove duplicate wrapper */
.site-content-wrapper:not(:first-of-type) {
    display: none !important;
}

/* Widget Area */
.widget-area {
    display: none;
}

/* Recent Posts with Thumbnails Widget */
.recent-posts-with-thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-with-thumbnails li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-with-thumbnails li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.recent-post-thumbnail {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-content {
    flex-grow: 1;
    margin-left: 15px;
}

.recent-post-title {
    display: block;
    font-size: 0.875em;
    line-height: 1.4;
    color: #44617b;
}

.recent-post-date {
    display: block;
    font-size: 0.75em;
    color: var(--secondary-color);
}

.recent-post-item:hover .recent-post-title {
    color: var(--accent-color);
}

/* Navigation */
.main-navigation {
    background-color: rgba(67, 103, 107, 0.1);
    padding: 30px 0;
    margin-top: 0;
    width: 100%;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.primary-menu li {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.menu-item-link {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 260px;
}

.menu-thumbnail {
    position: relative;
    width: 260px;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

.menu-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    transition: background 0.3s ease;
}

.menu-item-link:hover .menu-thumbnail::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.menu-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5em;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* サブメニュー */
.primary-menu .sub-menu {
    display: none;
}

@media (max-width: 1200px) {
    .primary-menu {
        gap: 15px;
    }
    
    .primary-menu li,
    .menu-item-link,
    .menu-thumbnail {
        width: 220px;
    }
    
    .menu-thumbnail {
        height: 140px;
    }
}

@media (max-width: 960px) {
    .primary-menu li,
    .menu-item-link,
    .menu-thumbnail {
        width: 200px;
    }
    
    .menu-thumbnail {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .primary-menu {
        gap: 12px;
    }
    
    .primary-menu li,
    .menu-item-link,
    .menu-thumbnail {
        width: 280px;
    }
    
    .menu-thumbnail {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .primary-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .primary-menu li,
    .menu-item-link,
    .menu-thumbnail {
        width: 100%;
    }
    
    .menu-thumbnail {
        height: 120px;
    }
    
    .menu-title {
        font-size: 0.8em;
        padding: 0.4em;
    }
}

/* Global link styles */
a {
    color: #44617b;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-color);
}

/* Search Form */
.search-form-container,
.search-form,
.search-form input[type="search"],
.search-form input[type="search"]:focus,
.search-form input[type="search"]::placeholder,
.search-form button[type="submit"],
.search-form button[type="submit"]:hover,
.search-form button[type="submit"]::before {
    display: none;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.3s ease;
}

.sticky-nav.hide {
    transform: translateY(-100%);
}

.sticky-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.sticky-menu-item {
    position: relative;
}

.sticky-menu-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.sticky-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.sticky-menu-link:hover::after {
    width: 100%;
}

.sticky-menu-item.current-menu-item .sticky-menu-link::after {
    width: 100%;
}

@media (max-width: 768px) {
    .sticky-nav {
        padding: 8px 0;
    }

    .sticky-menu {
        gap: 20px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sticky-menu::-webkit-scrollbar {
        display: none;
    }

    .sticky-menu-link {
        white-space: nowrap;
    }
}

/* コピーライト */
.site-info {
    text-align: center;
    padding: 20px 0 0;
    margin-top: 40px;
    border-top: 1px solid rgba(67, 103, 107, 0.1);
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* Pagination */
.pagination {
    margin: 40px 0 0;
    text-align: center;
}

.pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #ffffff;
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers .current {
    background-color: var(--accent-color);
    color: #ffffff;
}

.pagination .page-numbers .dots {
    background: none;
    box-shadow: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(67, 103, 107, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top .arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top .arrow {
        width: 10px;
        height: 10px;
    }
} 