/*
Theme Name: ユタカ造園NEW
Theme URL: https://www.e-kobo.co.jp/
Description: ユタカ造園ブログ - メインサイトと統一されたデザイン
Author: MT-C
Version: 3.0
*/

/* ===== WordPressテーマ専用スタイル ===== */
/* メインサイトのmain.cssを読み込んだ後に適用される追加スタイル */

/* ===== ベーススタイル調整 ===== */
body.blog-page {
    padding-top: 0!important; /* ヘッダー分の余白 */
    background-color: var(--light-gray);
}

/* ===== ブログ記事一覧スタイル ===== */
.news_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news_list dl {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid #f0f0f0;
    margin: 0;
}

.news_list dl:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news_list dd {
    margin: 0;
    padding: 0;
    min-height: auto;
    border: none;
}

.news_list dd img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news_list dl:hover dd img {
    transform: scale(1.05);
}

.news_list dd h5 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(44, 24, 16, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0;
    z-index: 1;
    font-weight: 600;
}

.news_list dd a {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.news_list dd h4 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 単一記事ページスタイル ===== */
.single-post .main-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 2rem auto;
    padding: 3rem;
    max-width: 1100px;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.single-post .entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single-post .entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.single-post .entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

/* ===== ページネーション ===== */
.wp-pagenavi {
    text-align: center;
    margin: 3rem 0;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-normal);
    min-height: 44px;
    min-width: 44px;
}

.wp-pagenavi a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wp-pagenavi .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== 前後記事ナビゲーション ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-normal);
    width: 100%;
    justify-content: center;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-previous a::before {
    content: '←';
    margin-right: 0.5rem;
}

.nav-next a::after {
    content: '→';
    margin-left: 0.5rem;
}

/* ===== コメントセクション ===== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .news_list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .news_list dd img {
        height: 200px;
    }
    
    .news_list dd h4 {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .news_list dd h5 {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .single-post .main-content {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .single-post .entry-title {
        font-size: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .news_list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news_list dd h4 {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .single-post .main-content {
        padding: 1.5rem 0.75rem;
    }
    
    .single-post .entry-title {
        font-size: 1.25rem;
    }
}
.entry-content >h3,
.entry-content >h4{
	text-align: center;

/* ===== WordPress固有のクラス対応 ===== */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.wp-caption {
    max-width: 100%;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 8px;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== ウィジェットエリア ===== */
.widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.widget a:hover {
    color: var(--primary-color);
}

/* ===== 検索フォーム ===== */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-submit:hover {
    background: var(--earth-brown);
    transform: translateY(-2px);
}

/* ===== アーカイブページ ===== */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--light-gray) 100%);
    border-radius: 12px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== 404ページ ===== */
.error-404 .main-content {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 .page-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 .page-content {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-404 .btn-home {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.error-404 .btn-home:hover {
    background: var(--earth-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}
.main-footer{
	line-height: 1.4!important;
}
.entry-meta{
	display: none!important;
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
    display: none !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000 !important;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #333 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px) !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px) !important;
}

.fixed-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001 !important;
    position: relative;
}

.fixed-hamburger span {
    display: block;
    height: 3px;
    background: white !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.fixed-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px) !important;
}

.fixed-hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.fixed-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px) !important;
}

.fixed-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 50px;
}

.fixed-header-actions .fixed-consult-btn {
    order: 1;
    white-space: nowrap;
}

.fixed-header-actions .fixed-hamburger {
    order: 2;
}

/* ナビメニュー */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .fixed-hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        list-style: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: #f5f5f5;
    }
    
    .fixed-header-actions {
        gap: 10px;
    }
    
    .fixed-header-actions .fixed-consult-btn {
        font-size: 0.7rem;
        padding: 4px 6px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .fixed-header-actions .fixed-hamburger {
        width: 25px;
        height: 20px;
    }
    
    .fixed-header-actions .fixed-hamburger span {
        height: 2px;
    }
}
}
