/*
Theme Name: BOXX Theme
Theme URI: https://boxx.co.jp
Author: BOXX Inc.
Author URI: https://boxx.co.jp
Description: A professional business theme for BOXX Inc.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boxx-theme
*/

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-accent: #0056b3;
    /* Corporate Blue */
    --color-accent-hover: #004494;
    --color-border: #e0e0e0;
    --color-white: #ffffff;

    /* Typography */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Inter', 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.3s ease;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: #002a5c;
    /* Deep Navy for headings */
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--color-accent);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.main-navigation a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--color-text);
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Footer */
.site-footer {
    background-color: #002a5c;
    /* Deep Navy */
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    font-size: 0.9rem;
}

/* Utility */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* ---------------------------------------------------------
   Front Page Styles
--------------------------------------------------------- */

/* Section Common */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    padding: 0 20px;
}

/* Hero Section Specifics */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 42, 92, 0.4);
    /* Overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.scroll-indicator .line {
    width: 2px;
    height: 50px;
    background-color: var(--color-accent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Mission & About Section */
.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    color: #002a5c;
}

.sub-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 2;
}

/* Service & Card Grid */
.service-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item,
.card-item {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-align: center;
    /* Center align for services */
}

.card-item {
    text-align: left;
    /* Keep products left aligned if preferred, or center */
    padding: 0;
    overflow: hidden;
}

.card-item h3,
.card-item p {
    padding: 0 1.5rem;
}

.card-item p {
    padding-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.service-item:hover,
.card-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 86, 179, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background-color: #f0f7ff;
    border-radius: 50%;
    color: var(--color-accent);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #adb5bd;
    font-size: 1.2rem;
}

/* Company Section */
.company-info {
    max-width: 800px;
    margin: 0 auto;
    border-top: 2px solid var(--color-border);
}

.company-info dl {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.company-info dt {
    width: 30%;
    font-weight: 700;
    color: #002a5c;
}

.company-info dd {
    width: 70%;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding-bottom: 4rem;
    }

    .company-info dt,
    .company-info dd {
        width: 100%;
    }

    .company-info dt {
        margin-bottom: 0.5rem;
    }
}

/* ---------------------------------------------------------
   Front Page Teaser Styles
--------------------------------------------------------- */

/* Mission Teaser */
.mission-teaser {
    background-color: #002a5c;
    color: var(--color-white);
    text-align: center;
    padding: 8rem 0;
}

.teaser-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.teaser-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--color-white);
}

.teaser-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 2;
}

/* Feature Grid (Services) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}


.cta-box {
    background: linear-gradient(135deg, #0056b3 0%, #002a5c 100%);
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 42, 92, 0.2);
}

.cta-box h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: #002a5c;
}

.btn-white {
    background: var(--color-white);
    color: #0056b3;
    border: none;
    text-align: center;
    /* Center align for services */
}

.btn-white:hover {
    background: #f8f9fa;
    color: #002a5c;
    transform: translateY(-2px);
}

/* Product Category Grid (Premium Design) */
.product-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.product-category-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 42, 92, 0.1);
}

.product-category-card:hover::before {
    opacity: 1;
}

.category-number {
    font-size: 5rem;
    font-weight: 900;
    color: #f0f2f5;
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    z-index: 0;
    font-family: 'Arial', sans-serif;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.product-category-card:hover .category-number {
    color: #eef2f7;
}

.product-category-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: #002a5c;
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.category-jp {
    display: block;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.category-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-list li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
    transition: color 0.2s ease;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: #cbd5e0;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.product-category-card:hover .category-list li::before {
    background-color: var(--color-accent);
}

/* ---------------------------------------------------------
   Mission Page Styles
--------------------------------------------------------- */

/* Mission Hero */
.mission-hero {
    background-color: #002a5c;
    background-image: linear-gradient(135deg, #002a5c 0%, #001f44 100%);
    color: var(--color-white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.mission-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.mission-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #002a5c;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

@media (max-height: 600px) {
    .scroll-indicator {
        display: none;
    }
}