/*
Theme Name: J1BS Corporate
Theme URI: https://j1bs.com/
Author: J1 Business Solutions
Description: J1BS company site, editable by page in the WordPress block editor.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: j1bs-corporate
*/

        :root {
            --primary-bg: #0b1325;
            --secondary-bg: #111a2f;
            --accent-red: #a82020;
            --text-main: #ffffff;
            --text-muted: #a0b0c0;
            --card-bg: rgba(255, 255, 255, 0.03);
            --card-border: rgba(255, 255, 255, 0.1);
            --header-height: 80px;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: var(--header-height);
        }

        body {
            margin: 0;
            font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-main);
            overflow-x: hidden;
            line-height: 1.7;
        }

        a {
            color: var(--text-main);
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .fade-in {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 0 5%;
            background: rgba(11, 19, 37, 0.95);
            backdrop-filter: blur(10px);
            box-sizing: border-box;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: background 0.3s;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-text {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            color: var(--text-muted);
            letter-spacing: 0.05em;
            font-weight: 500;
        }

        section {
            padding: 100px 5%;
            min-height: 100vh;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
        }

        section:nth-child(even) {
            background-color: var(--secondary-bg);
        }

        .section-label {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            color: var(--accent-red);
            font-weight: 700;
            letter-spacing: 0.15em;
            margin-bottom: 10px;
            display: block;
        }

        .section-title {
            font-size: 2.5rem;
            margin-top: 0;
            margin-bottom: 50px;
            font-weight: 700;
        }

        .btn-group {
            display: flex;
            gap: 20px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block;
            padding: 16px 40px;
            font-size: 1rem;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background-color: var(--accent-red);
            color: white;
            box-shadow: 0 4px 15px rgba(168, 32, 32, 0.3);
        }

        .btn-primary:hover {
            background-color: transparent;
            border-color: var(--accent-red);
            color: var(--accent-red);
            box-shadow: none;
        }

        .btn-secondary {
            background-color: transparent;
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
        }

        .btn-secondary:hover {
            background-color: white;
            color: var(--primary-bg);
            border-color: white;
        }

        #hero {
            background: linear-gradient(rgba(11, 19, 37, 0.8), rgba(11, 19, 37, 0.95)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover;
            padding-top: 150px;
            align-items: flex-start;
        }

        .hero-title {
            font-size: 3.5rem;
            line-height: 1.4;
            margin-bottom: 24px;
            font-weight: 700;
        }

        .hero-title .highlight {
            color: var(--accent-red);
            font-size: 1.2em;
            font-weight: bold;
        }

        .hero-subtitle {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 700px;
            line-height: 1.8;
        }

        .message-container {
            display: flex;
            gap: 60px;
            align-items: center;
            flex-wrap: wrap;
        }

        .message-img {
            flex: 1;
            min-width: 300px;
            display: flex;
            justify-content: center;
        }

        .message-text {
            flex: 1.5;
            min-width: 300px;
        }

        .message-text h3 {
            font-size: 1.8rem;
            margin-bottom: 30px;
            color: #ffffff;
            border-left: 4px solid var(--accent-red);
            padding-left: 15px;
        }

        .message-text p {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            padding: 40px 30px;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .card-icon {
            font-size: 3rem;
            color: var(--accent-red);
            margin-bottom: 25px;
            opacity: 0.9;
        }

        /* Decorative background icons */
        .card::before {
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: -20px;
            bottom: -20px;
            font-size: 12rem;
            color: rgba(255,255,255,0.02);
            z-index: 0;
            transition: all 0.5s ease;
        }
        .card:hover::before {
            transform: scale(1.1) rotate(-10deg);
            color: rgba(255,255,255,0.04);
        }
        
        #strengths .card:nth-child(1)::before { content: '\f2b5'; } /* handshake */
        #strengths .card:nth-child(2)::before { content: '\f0ac'; } /* globe */
        #strengths .card:nth-child(3)::before { content: '\f508'; } /* user-tie */

        #services .card:nth-child(1)::before { content: '\f0eb'; } /* lightbulb */
        #services .card:nth-child(2)::before { content: '\f233'; } /* server */
        #services .card:nth-child(3)::before { content: '\f688'; } /* project diagram */

        .card > * {
            position: relative;
            z-index: 1;
        }

        .card h3 {
            font-size: 1.3rem;
            margin-top: 0;
            margin-bottom: 15px;
            color: #ffffff;
            line-height: 1.4;
        }

        .card p, .card ul {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin: 0;
        }

        .card ul {
            padding-left: 20px;
            margin-top: 10px;
        }
        
        .card ul li {
            margin-bottom: 10px;
        }

        .role-container {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .role-box {
            flex: 1;
            background: linear-gradient(135deg, rgba(26, 38, 57, 0.9), rgba(11, 19, 37, 0.9));
            padding: 30px;
            border-top: 4px solid #4a6fa5;
            border-radius: 8px;
            min-width: 250px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .role-box h3 {
            font-family: 'Montserrat', sans-serif;
            color: #ffffff;
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.4rem;
        }

        .flow-container {
            display: flex;
            gap: 20px;
            align-items: stretch;
            flex-wrap: wrap;
        }

        .step-card {
            flex: 1;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            padding: 30px 20px;
            position: relative;
            border-radius: 8px;
            min-width: 220px;
            transition: background 0.3s ease;
        }

        .step-card:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .step-number {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-main);
            background-color: var(--accent-red);
            display: inline-block;
            padding: 4px 12px;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .step-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .step-sub {
            color: var(--accent-red);
            font-size: 0.85rem;
            font-weight: bold;
            margin-bottom: 15px;
            min-height: 2.5em;
        }

        .step-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        @media (min-width: 992px) {
            .step-card:not(:last-child)::after {
                content: '\f054';
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                position: absolute;
                right: -22px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 1.5rem;
                color: rgba(255, 255, 255, 0.2);
                z-index: 10;
            }
        }

        .company-content {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 40px;
        }

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

        .company-table th, .company-table td {
            padding: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            text-align: left;
            vertical-align: top;
        }

        .company-table tr:last-child th,
        .company-table tr:last-child td {
            border-bottom: none;
        }

        .company-table th {
            width: 25%;
            color: var(--text-muted);
            font-weight: normal;
        }
        
        .partner-showcase {
            margin-top: 40px;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 40px;
        }
        
        .partner-showcase h4 {
            color: var(--text-muted);
            margin-bottom: 20px;
            font-weight: normal;
        }
        
        .partner-image {
            width: 100%;
            max-width: 800px;
            height: 350px;
            margin: 0 auto;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
        }
        
        .partner-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
            transition: transform 0.5s;
        }
        
        .partner-image:hover img {
            transform: scale(1.05);
        }

        .contact-wrapper {
            display: flex;
            gap: 50px;
            flex-wrap: wrap;
        }
        
        .contact-info {
            flex: 1;
            min-width: 300px;
        }
        
        .contact-info p {
            color: var(--text-muted);
            margin-bottom: 30px;
            font-size: 1.1rem;
        }
        
        .contact-form {
            flex: 1.5;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: var(--card-bg);
            padding: 40px;
            border-radius: 8px;
            border: 1px solid var(--card-border);
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-group label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .contact-form input, .contact-form textarea {
            width: 100%;
            padding: 16px;
            background: rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.3s;
        }

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

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2rem;
            }
            .section-title {
                font-size: 2rem;
            }
            .company-table th, .company-table td {
                display: block;
                width: 100%;
            }
            .company-table th {
                padding-bottom: 5px;
                border-bottom: none;
                color: var(--accent-red);
            }
        }
    

/* Shared refinements for the page navigation and smaller screens. */
:root { --primary-bg:#294663; --secondary-bg:#345473; --accent-red:#e86969; --text-muted:#d5e0ec; }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 3px solid #e05b5b; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 3000; left: 12px; top: -70px; padding: 12px 16px; background: #fff; color: #0b1325; }
.skip-link:focus { top: 10px; }
header.site-header { justify-content: space-between; gap: 20px; background:rgba(246,249,252,.97); border-bottom:1px solid #d7e1eb; }
header.site-header.scrolled { box-shadow:0 4px 22px rgba(6,26,50,.16); }
.brand-link { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { font: 800 1.45rem/1 Montserrat, sans-serif; color: #fff; letter-spacing: -.04em; border-left: 4px solid #a82020; padding-left: 9px; }
.brand-logo { display:block; height:45px; width:auto; max-width:110px; object-fit:contain; }
.site-header .logo-text {color:#344f6d;}
.site-header .site-nav a, .site-header .mobile-nav a {color:#182f4c;}
.site-header .site-nav a:hover, .site-header .mobile-nav a:hover {color:#a82020;}
.site-header .site-nav a[aria-current="page"], .site-header .mobile-nav a[aria-current="page"] {color:#182f4c; border-bottom-color:#a82020;}
.site-header .mobile-nav summary {color:#182f4c; border-color:#9eb0c4;}
.site-header .mobile-nav[open] ul {background:#f6f9fc; border-color:#c5d2df;}
.btn-primary {background-color:#a82020;}
.step-number {background-color:#a82020;}
#hero {background:linear-gradient(rgba(20,41,64,.38),rgba(20,41,64,.70)),url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80') center/cover;}
.hero-title span[style] {color:#ff8686!important;}
.site-nav ul, .mobile-nav ul { display:flex; align-items:center; gap: clamp(12px,1.6vw,26px); margin:0; padding:0; list-style:none; }
.site-nav a, .mobile-nav a { font-size: .88rem; font-weight: 500; white-space: nowrap; }
.site-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid #a82020; padding-bottom: 5px; }
.mobile-nav { display: none; }
.mobile-nav summary { cursor:pointer; list-style:none; color:#fff; padding:9px 12px; border:1px solid rgba(255,255,255,.3); border-radius:4px; }
.mobile-nav summary::-webkit-details-marker { display:none; }
.mobile-nav[open] ul { position:absolute; right:5%; top:calc(var(--header-height) - 1px); background:#111a2f; box-shadow:0 16px 28px rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.18); padding:15px 22px; display:flex; flex-direction:column; align-items:stretch; min-width:200px; gap:0; }
.mobile-nav li a { display:block; padding:9px 0; }
.inner-page main { padding-top:var(--header-height); }
.inner-page section { min-height:calc(100svh - var(--header-height)); }
.inner-page #hero { padding-top:100px; }
.inner-page .back-home { display:inline-flex; margin:32px 5% 0; color:var(--text-muted); }
.site-footer { padding:28px 5%; border-top:1px solid rgba(255,255,255,.14); background:#203a57; color:var(--text-muted); font-size:.85rem; }
.site-footer a { color:inherit; }
.president-photo { display:block; width:66%; max-width:300px; height:auto; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
.partner-details {display:grid; grid-template-columns:minmax(150px,1fr) minmax(0,2.4fr); gap:22px; align-items:start;}
.partner-info {overflow-wrap:anywhere; line-height:1.8;}
.partner-map {position:relative; isolation:isolate; width:100%; max-width:600px; aspect-ratio:1891 / 831; border:1px solid rgba(255,255,255,.25); border-radius:8px; overflow:hidden; background:#244463;}
.partner-map-base {display:block; width:100%; height:100%; object-fit:cover;}
.map-location {position:absolute; z-index:1; display:flex; align-items:center; gap:6px; padding:5px 7px; background:rgba(250,252,255,.96); color:#142b46; border:1px solid #c5d5e5; border-radius:5px; box-shadow:0 2px 12px rgba(10,25,40,.18); font:700 clamp(.61rem,1.1vw,.78rem)/1.15 Montserrat,sans-serif; letter-spacing:.02em; white-space:nowrap;}
.map-location img {display:block; width:clamp(48px,6vw,64px); height:auto; max-height:30px; object-fit:contain;}
.map-location small {display:block; margin-top:2px; font-size:.68rem; font-weight:500; color:#45617e;}
.map-location-tokyo {left:63%; top:4%;}
.map-location-india {left:10%; top:65%;}
.delivery-groups {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch;}
.delivery-group {display:flex; flex-direction:column; min-width:0; gap:18px;}
.delivery-group > .role-box {flex:none; min-width:0; min-height:124px; margin:0; padding:16px 20px;}
.delivery-group > .role-box h3 {font-size:1.15rem; margin:0 0 7px;}
.delivery-group > .role-box p {font-size:.92rem; line-height:1.55;}
.delivery-steps {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; flex:1;}
.delivery-steps > .step-card {min-width:0; padding:26px 18px;}
.delivery-steps > .step-card::after {content:none!important;}
.delivery-steps .step-sub {font-size:.8rem;}
.term-nowrap {white-space:nowrap;}
.custom-logo { max-height:45px; width:auto; }
.contact-wrapper > .fade-in:first-child { flex:0 0 100%; }
.contact-wrapper > .fade-in:first-child .section-title { margin-bottom:0; }
.contact-wrapper > .contact-info { flex:1; }
.form-note { font-size:.86rem; color:var(--text-muted); margin:0; }
.form-status { padding:14px; border-left:4px solid #a82020; background:rgba(255,255,255,.07); }
.hp-field { position:absolute; left:-9999px; }
.js .fade-in { opacity:0; transform:translateY(35px); }
.js .fade-in.visible { opacity:1; transform:none; }
.hero-title .highlight { color: #a82020; }
@media (max-width: 1150px) { .site-nav {display:none;} .mobile-nav {display:block;} }
@media (max-width: 980px) { .delivery-groups {grid-template-columns:minmax(0,1fr);} .delivery-group > .role-box {min-height:0;} }
@media (max-width: 860px) { .partner-details {grid-template-columns:minmax(0,1fr);} }
@media (max-width: 600px) { .delivery-steps {grid-template-columns:minmax(0,1fr);} }
@media (max-width: 768px) {
  :root { --header-height: 68px; }
  header.site-header { padding:0 5%; }
  .logo-text {font-size:.68rem;}
  section { min-height:auto; padding:84px 6%; }
  #hero { min-height:100svh; padding-top:130px; }
  .inner-page #hero { min-height:calc(100svh - var(--header-height)); }
  .grid-container { grid-template-columns:minmax(0,1fr); }
  .message-container, .contact-wrapper { gap:28px; }
  .message-img, .message-text, .contact-info, .contact-form {min-width:0; flex-basis:100%;}
  .president-photo { width:min(66%,300px); }
  .map-location {flex-direction:column; gap:1px; padding:3px 5px; font-size:.58rem; text-align:center;}
  .map-location img {width:48px; max-height:23px;}
  .map-location small {font-size:.56rem; margin-top:1px;}
  .map-location-tokyo {left:63%; top:2%;}
  .map-location-india {left:5%; top:62%;}
  .card, .company-content, .contact-form { padding:25px; }
  .company-table th, .company-table td { padding:12px 0; overflow-wrap:anywhere; }
  .company-table td { padding-top:0; }
  .hero-title {font-size:clamp(2rem,7vw,2.5rem);}
}
@media (max-width: 380px) { .logo-text {display:none;} .hero-title {font-size:1.9rem;} .btn {padding:14px 18px;} }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important;}
  .js .fade-in {opacity:1; transform:none;}
}
