/*
Theme Name: Vision-K Electronics
Theme URI: https://vision-k.com/electronics
Author: Vision-K
Author URI: https://vision-k.com
Description: 街の電器屋さん事業向けWordPressテーマ - 家電設置、リフォーム、オール電化をサポート
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vision-k-electronics
Tags: business, corporate, local-business, custom-menu, custom-logo, featured-images
*/

:root {
    --theme-color: #e67e22;
    --theme-color-dark: #d35400;
    --theme-color-light: #f39c12;
    --accent-color: #2ecc71;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --gray-bg: #f9f9f9;
    --warm-bg: #fff9f5;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   Header
   ========================================= */
.site-header {
    background-color: var(--theme-color);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.site-logo a {
    color: var(--white);
}

.main-navigation ul {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--white);
    font-size: 0.9rem;
}

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

/* Mobile Menu Toggle - Hamburger Icon */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger to X animation */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 70vh;
    background-color: var(--theme-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
}

.hero .btn {
    margin-top: 30px;
    background-color: var(--white);
    color: var(--theme-color);
    border-color: var(--white);
}

.hero .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* =========================================
   Button
   ========================================= */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 3px solid currentColor;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--theme-color);
    color: var(--white);
    border-color: var(--theme-color);
}

.btn-primary:hover {
    background-color: var(--theme-color-dark);
    border-color: var(--theme-color-dark);
}

.btn-outline {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.btn-outline:hover {
    background-color: var(--theme-color);
    color: var(--white);
}

/* =========================================
   Section Styles
   ========================================= */
.section {
    padding: 80px 5%;
}

.section-gray {
    background-color: var(--gray-bg);
}

.section-warm {
    background-color: var(--warm-bg);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--theme-color);
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =========================================
   Company Section
   ========================================= */
.company-cols {
    display: flex;
    align-items: center;
    gap: 40px;
}

.col-img {
    flex: 1;
    min-height: 300px;
    background-color: var(--theme-color);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.col-text {
    flex: 1;
}

.col-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* =========================================
   Card Grid (Cases)
   ========================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 180px;
    width: 100%;
    background-color: var(--theme-color);
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* =========================================
   Blog List
   ========================================= */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-list article {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-list .date {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 100px;
}

.blog-list a {
    font-weight: 500;
}

.blog-list a:hover {
    color: var(--theme-color);
}

/* =========================================
   Cross Link Banner
   ========================================= */
.cross-link-section {
    padding: 0;
}

.cross-link-banner {
    display: block;
    background-color: #0a192f;
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    transition: opacity var(--transition);
}

.cross-link-banner:hover {
    opacity: 0.9;
}

.banner-content span {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.banner-content h3 {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: #111;
    color: #888;
    padding: 60px 5% 20px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* =========================================
   Page Styles
   ========================================= */
.page-header {
    background-color: var(--theme-color);
    color: var(--white);
    padding: 80px 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-content {
    padding: 60px 5%;
    background-color: var(--white);
}

.page-content .container {
    max-width: 800px;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-info {
    text-align: center;
    padding: 40px;
    background: var(--warm-bg);
    border-radius: 8px;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--theme-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-tel {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--theme-color);
    margin: 20px 0;
}

/* =========================================
   Single Post / Case
   ========================================= */
.single-content {
    padding: 60px 5%;
    background-color: var(--white);
}

.single-content .container {
    max-width: 800px;
}

.post-meta {
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-content h2,
.post-content h3 {
    margin: 30px 0 15px;
}

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

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.post-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   Archive Page
   ========================================= */
.archive-header {
    background-color: var(--theme-color);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
}

.archive-header h1 {
    font-size: 2rem;
}

.archive-content {
    padding: 60px 5%;
}

/* =========================================
   Pagination
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination .current {
    background-color: var(--theme-color);
    color: var(--white);
    border-color: var(--theme-color);
}

.pagination a:hover {
    background-color: var(--gray-bg);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 800px) {
    /* Header */
    .site-header {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    /* Slide-in Mobile Menu */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--theme-color);
        padding: 80px 30px 30px;
        z-index: 100;
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        transition: padding-left 0.3s ease, color 0.3s ease;
    }

    .main-navigation a:hover {
        padding-left: 10px;
        color: var(--accent-color);
    }

    /* Mobile menu overlay active */
    .menu-overlay {
        display: none;
    }

    body.menu-open .menu-overlay {
        display: block;
        opacity: 1;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero */
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Section */
    .section {
        padding: 60px 5%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Company */
    .company-cols {
        flex-direction: column;
    }

    .col-img {
        width: 100%;
        min-height: 200px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
    }
}
