/*
Theme Name: thinkS Innovation
Theme URI: https://thinks.co.jp
Author: thinkS
Author URI: https://thinks.co.jp
Description: Corporate theme for thinkS based on Innovation design.
Version: 1.0.0
License: Proprietary
*/

@charset "UTF-8";

:root {
    --primary-color: #1933b3; /* User specified Deep Blue */
    --accent-color: #c09128; /* Gold/Bronze */
    --text-color: #333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}

.section-header p {
    color: #666;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1010; /* Ensure navbar (and its children like nav-menu) is above overlay (1000) */
}

/* Admin Bar Fix */
body.admin-bar .navbar {
    top: 32px;
}
body.admin-bar {
    min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
    body.admin-bar {
        min-height: calc(100vh - 46px);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    margin-top: 80px;
    height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image: url('../img/hero-programming.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 50%; /* Adjusted for better spacing */
    padding-right: 0; 
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem; /* Reduced font size for better wrapping */
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.4;
    white-space: pre-line; /* Handle line breaks appropriately if needed, but not forcing nowrap */
    font-feature-settings: "palt"; /* Proportional metrics */
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    padding-right: 2rem; /* Ensure space from the diagonal image */
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #a67c22;
}

/* Vision */
.vision {
    padding: 6rem 0;
    background-color: var(--white);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.vision-text p {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
}

.vision-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--accent-color);
}


/* Content Styles (for articles/pages) */
.content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

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

.content ul, .content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

/* Services Section (Card Style) */
.services-section {
    background-color: var(--white); /* White background distinct from light-bg */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Soft shadow */
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-blue { background-color: #e6f4ff; color: #54a0ff; }
.icon-green { background-color: #f0fff4; color: #1dd1a1; }
.icon-pink { background-color: #fff5f5; color: #fc8181; }

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #333; /* Darker heading color for cards */
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Contact Form 7 Styles */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #333;
}

.contact-form-wrapper .required {
    background: #ff4d4f;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.3s;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(25, 51, 179, 0.1);
}

.contact-form-wrapper textarea {
    height: 200px;
}


.privacy-check {
    margin: 2rem 0;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.privacy-check input[type="checkbox"] {
    margin: 0; /* Remove default margins if any */
}

/* Ensure the acceptance span itself doesn't cause offset */
.wpcf7-list-item { 
    margin: 0; 
    display: inline-block;
}

.privacy-check a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

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

.submit-btn-wrapper p {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(150px, -50%); /* 140px (half 280) + 10px gap */
    margin: 0 !important;
    right: auto;
}

/* Error/Response Output Styling */
.wpcf7-response-output {
    max-width: 800px;
    margin: 2rem auto !important;
    border-radius: 8px; /* Match form radius */
    padding: 1rem 1.5rem !important;
    box-sizing: border-box;
    text-align: center;
}


.wpcf7-submit {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem; /* Reduced horizontal padding as width is controlled */
    width: 280px; /* Fixed width for stability */
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.wpcf7-submit:hover {
    background-color: #a67c22;
    transform: translateY(-2px);
}

/* Business & Company Info */
.info-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.info-wrapper {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 3rem;
}

.info-title {
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

table.company-table {
    width: 100%;
    border-collapse: collapse;
}

table.company-table th, table.company-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

table.company-table th {
    width: 25%;
    background-color: #f9f9f9;
    color: #555;
    font-weight: 600;
}

/* Contact */
.contact {
    padding: 6rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(25, 51, 179, 0.9), rgba(25, 51, 179, 0.9)), url('../img/vision-smile.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.contact h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #111;
    color: #999;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Responsive */
/* Responsive */
@media (max-width: 991px) {
    /* Navbar */
    .navbar .container {
        height: auto;
        padding: 1rem;
    }
    .logo img {
        height: 32px;
    }
    
    /* Hero */
    .hero {
        height: auto;
        padding: 6rem 0 4rem;
        margin-top: 60px; /* Adjust for navbar height */
    }

    .hero-bg { 
        clip-path: none; 
        width: 100%; 
        opacity: 0.3; /* Make background visible but dimmed */
        background-position: center;
    }
    
    .hero-content { 
        width: 100%; 
        text-align: center; 
        padding: 0; 
    }

    .hero h1 {
        font-size: 2rem; /* Smaller font on mobile */
        white-space: normal; /* Allow normal wrapping */
        margin-bottom: 1.5rem;
    }

    .hero p {
        padding-right: 0;
        text-align: left;
        display: inline-block;
        font-size: 1rem;
    }

    /* Vision */
    .vision-grid { 
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vision-image {
        order: -1; /* Image on top */
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .wpcf7-submit {
        width: 100%;
        padding: 1rem;
    }

    /* Nav */
    .nav-menu { 
        display: none; /* Hide nav for now - in real implementation needs a hamburger menu */
    }

    /* Company Table */
    table.company-table th, table.company-table td {
        display: block;
        width: 100%;
        padding-left: 0;
    }
    
    table.company-table th {
        width: 100%;
        background: transparent;
        padding-bottom: 0.5rem;
        color: var(--primary-color);
        padding-top: 1.5rem;
        border-bottom: none;
    }

    table.company-table td {
        width: 100%;
        padding-top: 0;
    }
}
/* News Section */
#news {
    background-color: var(--white);
}
.news-items {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.news-item:first-child {
    border-top: 1px solid #eee;
}

.news-date {
    font-family: 'Roboto', sans-serif;
    color: #888;
    margin-right: 2rem;
    font-size: 0.9rem;
    min-width: 100px; /* Fixed width for alignment */
}

.news-link {
    font-weight: 500;
    color: var(--text-color);
    flex: 1; /* Take remaining space */
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile adjustments for News */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-bottom: 0.25rem;
    }
}

/* News Archive Styles */
.news-archive-items {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.news-archive-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.news-archive-link {
    display: flex;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.news-archive-link:hover {
    opacity: 0.7;
    color: inherit; /* Prevent accent color on hover for whole block */
}

.news-archive-thumb {
    width: 200px;
    flex-shrink: 0;
}

.news-archive-thumb img {
    width: 100%;
    height: 112.5px; /* 16:9 ratio approx based on width */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-archive-thumb .no-image {
    width: 100%;
    height: 112.5px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    border-radius: 8px;
}

.news-archive-content {
    flex: 1;
}

.news-archive-content .news-date {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.news-archive-content .news-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

/* Single News Eyecatch Fixed Aspect Ratio */
.news-eyecatch {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    /* Aspect Ratio: 16:9 */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f9f9f9;
}
/* Fallback for older browsers if needed, though modern browsers support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .news-eyecatch {
      padding-top: 56.25%; /* This might be inaccurate when mixed with max-width on some layouts, but standard fallback */
  }
}

.news-eyecatch img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the area without distortion */
}

/* Responsive Archive */
@media (max-width: 768px) {
    .news-archive-link {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-archive-thumb {
        width: 100%;
    }
    
    .news-archive-thumb img, .news-archive-thumb .no-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Single News Layout */
.single-news-article {
    max-width: 800px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}
/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Above overlay */
    position: relative;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

/* Open state for hamburger */
.menu-toggle.open span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1.5px; /* Half of height */
    margin-left: -15px; /* Half of width */
}

.menu-toggle.open span:first-child {
    transform: rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    /* Mobile Nav Overlay */
    .nav-menu {
        display: block; /* Override none from existing media query if any, or just ensure it's displayable */
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%; /* Drawer width */
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0; /* Slide in */
    }

    /* Override flex layout for mobile list */
    .nav-menu li {
        margin-bottom: 2rem;
        display: block;
        text-align: left;
    }
    
    /* Overlay Backdrop */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
