/*
Theme Name: APAS WP Theme
Theme URI: 
Author: APAS
Author URI: 
Description: Corporate website theme for APAS Inc.
Version: 1.0.0
Text Domain: apas
*/
/* Reset & Variables */
:root {
    --color-primary: #1F2937; /* Darker charcoal / Navy-ish grey for B2B trust */
    --color-primary-light: #4B5563;
    --color-secondary: #2563EB; /* Trustworthy Royal Blue */
    --color-secondary-hover: #1D4ED8;
    --color-text-main: #374151;
    --color-text-light: #6B7280;
    --color-bg-light: #F9FAFB;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;
    
    --font-main: 'Noto Sans JP', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.pc-only { display: block; }
.sp-only { display: none; }

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
}

.nav-list a:hover {
    color: var(--color-secondary);
}

.btn-contact-sm {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-contact-sm:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hamburger (Mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(1.15) contrast(1.05); /* Adjusted to be brighter */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(31, 41, 55, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--color-white);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections Common */
.section {
    padding: 90px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
}

.section-title .en {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-main);
    max-width: 700px;
    margin: 24px auto 0;
    line-height: 1.8;
}

/* Info Boxes (Target & Common Issues) */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 36px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.info-box-title {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-bg-light);
    font-weight: 700;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.6;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 16px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.service-icon {
    margin-bottom: 24px;
    color: var(--color-primary-light);
}

.service-icon svg {
    display: block;
}

.service-card h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* CTA Band */
.cta-band {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.cta-band-inner p {
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.8;
}



/* Flow */
.flow-list {
    max-width: 800px;
    margin: 0 auto;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-step {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 16px;
    margin-right: 32px;
    min-width: 70px;
    padding-top: 2px;
    letter-spacing: 1px;
}

.flow-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--color-primary);
}

.flow-content p {
    color: var(--color-text-main);
    font-size: 15px;
}

/* Reasons */
.reasons-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.reason-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--color-secondary);
}

.reason-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-right: 32px;
}

.reason-content h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.reason-content p {
    color: var(--color-text-main);
    font-size: 15px;
    line-height: 1.7;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

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

.company-table th,
.company-table td {
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 15px;
}

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

.company-table th {
    width: 30%;
    color: var(--color-primary);
    font-weight: 700;
    background-color: var(--color-bg-light);
}

.company-table a {
    color: var(--color-secondary);
}

.company-table a:hover {
    text-decoration: underline;
}

/* Contact */
.contact-section {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.contact-box {
    background: var(--color-white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-secondary);
    text-align: center;
    position: relative;
}

.tel-number-wrap {
    position: relative;
    display: inline-block;
}

.contact-mascot,
.contact-mascot-wrapper,
.mascot-wrapper,
.mascot-box,
.mascot-image-wrapper {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
}

img.contact-mascot,
.contact-mascot img,
.mascot-wrapper img,
.mascot-box img,
.mascot-image-wrapper img {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  display: block !important;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.contact-mascot-wrapper {
    position: absolute;
    bottom: -10px;
    right: -85px;
    pointer-events: none;
    z-index: 10;
}

img.contact-mascot {
    opacity: 0.9;
}

.contact-box h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.contact-lead {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--color-text-main);
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    flex-wrap: wrap;
}

.contact-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tel-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.tel-number {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 8px 0;
    color: var(--color-primary);
}

.tel-hours {
    font-size: 13px;
    color: var(--color-text-light);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* Footer */
.footer {
    background-color: #111827;
    color: var(--color-white);
    padding: 60px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    opacity: 0.7;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: inline; }
    
    .hero-title { font-size: 28px; line-height: 1.5; }
    .hero-subtitle { font-size: 15px; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    
    .two-col-grid { grid-template-columns: 1fr; }
    
    .flow-item { flex-direction: column; padding: 24px; }
    .flow-step { margin-bottom: 12px; margin-right: 0; }
    
    .hamburger { display: block; }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        transition: var(--transition);
        padding: 40px 24px;
        overflow-y: auto;
    }
    
    .nav.active { left: 0; }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-list a {
        font-size: 18px;
        color: var(--color-primary);
    }
    
    .btn-contact-sm {
        display: inline-block;
        margin-top: 16px;
    }
    
    .reason-item {
        flex-direction: column;
        padding: 32px 24px;
    }
    
    .reason-number {
        margin-bottom: 16px;
    }
    
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        border-bottom: none;
        padding-bottom: 8px;
        background-color: transparent;
    }
    
    .contact-box { padding: 40px 24px; }
    
    .contact-mascot-wrapper {
        right: -60px;
        bottom: -5px;
    }
    .contact-mascot {
        width: 55px;
        opacity: 0.8;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 32px;
    }
    
    .tel-number { font-size: 28px; }
    
    .footer-inner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
