/*
Theme Name: 山口県空家サポートチーム
Theme URI: https://yamaguchi-akiya.jp
Author: Yamaguchi Akiya Support Team
Author URI: https://yamaguchi-akiya.jp
Description: 山口県全域の空き家対策ポータルサイト用WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamaguchi-akiya
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
    --primary: #005c97;
    --secondary: #363795;
    --line-green: #06C755;
    --text-main: #1a1a1a;
    --bg-soft: #f8fafc;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: var(--text-main);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-card-img-wrap {
    overflow: hidden;
    border-radius: 8px;
}
.blog-card-img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.08);
}

/* LINE Button Pulse */
@keyframes pulse-line {
    0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}
.btn-line {
    background-color: var(--line-green);
    animation: pulse-line 2s infinite;
}

/* Map styling */
.map-container {
    filter: grayscale(0.2) contrast(1.1);
    border-radius: 24px;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
.post-navigation a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}
.post-navigation a:hover {
    text-decoration: underline;
}

/* Category pills */
.category-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}
.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: white;
    transition: opacity 0.3s ease;
}
.share-buttons a:hover {
    opacity: 0.8;
}
.share-twitter { background-color: #1DA1F2; }
.share-facebook { background-color: #4267B2; }
.share-line { background-color: #06C755; }

/* Contact form styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 92, 151, 0.1);
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.contact-form .required {
    color: #ef4444;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
}
.mobile-menu.active {
    display: block;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
}
.mobile-menu a:hover {
    color: var(--primary);
}

/* Widget styles */
.widget {
    margin-bottom: 2rem;
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.widget ul li a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
}
.widget ul li a:hover {
    color: var(--primary);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-form .search-field {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.search-form .search-submit {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-form .search-submit:hover {
    background-color: var(--secondary);
}

/* Author box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 1rem;
    margin-top: 2rem;
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    object-fit: cover;
}
.author-box .author-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.author-box .author-bio {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
}
.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 6rem 1rem;
}
.error-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.error-404 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.error-404 p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* WordPress Block Editor */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Post content */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.post-content li {
    margin-bottom: 0.5rem;
}
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}
.post-content a {
    color: var(--primary);
    text-decoration: underline;
}
.post-content a:hover {
    text-decoration: none;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.post-content th {
    background-color: #f8fafc;
    font-weight: 600;
}
