/*
Theme Name: Vision-K IT Solutions
Theme URI: https://vision-k.com/it
Author: Vision-K
Author URI: https://vision-k.com
Description: ITソリューション事業向け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-it
Tags: business, corporate, it-solutions, custom-menu, custom-logo, featured-images
*/

:root {
    --theme-color: #0a192f;
    --theme-color-light: #112240;
    --accent-color: #64ffda;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --gray-bg: #f9f9f9;
    --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%;
}

/* =========================================
   Portal Section (Split Screen)
   ========================================= */
.portal-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #333;
    overflow: hidden;
}

.split {
    position: absolute;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width 1s ease-in-out;
}

.split.left {
    left: 0;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: var(--white);
}

.split.right {
    right: 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--text-color);
}

.split .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 1s ease-in-out;
}

.split.left .overlay {
    background-color: rgba(10, 25, 47, 0.85);
}

.split.right .overlay {
    background-color: rgba(255, 255, 255, 0.7);
}

.portal-container.hover-left .split.left {
    width: 75%;
}

.portal-container.hover-left .split.right {
    width: 25%;
}

.portal-container.hover-right .split.right {
    width: 75%;
}

.portal-container.hover-right .split.left {
    width: 25%;
}

.split-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 1s ease-in-out;
    width: 80%;
    max-width: 600px;
}

.split:hover .split-content {
    opacity: 1;
}

.portal-container.hover-left .split.right .split-content,
.portal-container.hover-right .split.left .split-content {
    opacity: 0;
    pointer-events: none;
}

.split-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.split-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.split-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: normal;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-list li {
    font-size: 0.9rem;
    padding: 5px 15px;
    border: 1px solid currentColor;
    border-radius: 20px;
}

.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;
}

.split.left .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--theme-color);
}

.split.right .btn:hover {
    background-color: #4ade80;
    border-color: #4ade80;
    color: var(--white);
}

.center-branding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    pointer-events: none;
    mix-blend-mode: difference;
    color: var(--white);
    transition: opacity var(--transition);
}

.center-branding h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.center-branding p {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 5px;
}

.portal-container.hover-left .center-branding,
.portal-container.hover-right .center-branding {
    opacity: 0;
}

/* =========================================
   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: 60vh;
    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(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7));
}

.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.2rem;
}

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

.section-gray {
    background-color: var(--gray-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(--accent-color);
}

/* =========================================
   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: #e67e22;
    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 Form Styles
   ========================================= */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form p {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background-color: var(--theme-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition);
}

.contact-form input[type="submit"]:hover {
    background-color: var(--theme-color-light);
}

/* =========================================
   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) {
    /* Portal */
    .split {
        width: 100%;
        height: 50%;
    }

    .split.left {
        top: 0;
    }

    .split.right {
        bottom: 0;
        top: auto;
    }

    .portal-container.hover-left .split.left {
        width: 100%;
        height: 75%;
    }

    .portal-container.hover-left .split.right {
        width: 100%;
        height: 25%;
    }

    .portal-container.hover-right .split.right {
        width: 100%;
        height: 75%;
    }

    .portal-container.hover-right .split.left {
        width: 100%;
        height: 25%;
    }

    .split-content h2 {
        font-size: 8vw;
    }

    .split-content h3 {
        font-size: 4vw;
    }

    .split-content p {
        font-size: 3.5vw;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-list {
        display: none;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .center-branding h1 {
        font-size: 8vw;
        line-height: 8vw;
    }

    .center-branding p {
        font-size: 2vw;
        margin-top:0px;
    }

    /* 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;
    }

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

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

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

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