/* ========================================
   CSS Variables (Original Design)
   ======================================== */
:root {
    /* Light theme - Minimal design */
    --background: 0 0% 100%;
    --foreground: 0 0% 8%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 8%;

    --primary: 0 0% 8%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 20%;

    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;

    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 8%;

    --border: 0 0% 90%;
    --input: 0 0% 90%;

    --section-alt: 0 0% 98%;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* ========================================
   Layout
   ======================================== */
.section-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 3rem;
    }
}

.section-padding {
    padding: 6rem 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 0;
    }
}

.section-alt {
    background-color: hsl(var(--section-alt));
}

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

.bg-secondary-30 {
    background-color: hsla(var(--secondary) / 0.3);
}

.text-center {
    text-align: center;
}

.border-top {
    border-top: 1px solid hsl(var(--border));
}

.border-bottom {
    border-bottom: 1px solid hsl(var(--border));
}

/* ========================================
   Typography
   ======================================== */
.heading-display {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .heading-display {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .heading-display {
        font-size: 5rem;
    }
}

.heading-section {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .heading-section {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .heading-section {
        font-size: 2.5rem;
    }
}

.heading-sub {
    font-size: 1.125rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .heading-sub {
        font-size: 1.25rem;
    }
}

.text-body {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .text-body {
        font-size: 1rem;
    }
}

.text-body-lg {
    font-size: 1rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .text-body-lg {
        font-size: 1.125rem;
    }
}

.label-section {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.label-section-underline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--foreground));
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: hsla(var(--background) / 0.95);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    font-weight: 900;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

.nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: hsl(var(--foreground));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(var(--background));
    z-index: 40;
    padding: 3rem 0;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: hsl(var(--foreground));
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-description {
    font-size: 1rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-cta {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--foreground));
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 4rem;
}

.scroll-indicator {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========================================
   Strength Section
   ======================================== */
.strength-list {
    margin-top: 3rem;
}

.card-minimal {
    border-bottom: 1px solid hsl(var(--border));
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.card-minimal:hover {
    background-color: hsla(var(--secondary) / 0.5);
    padding: 2rem 1rem;
    margin: 0 -1rem;
}

.strength-card-grid {
    display: grid;
    grid-template-columns: 3rem 8rem 14rem 1fr 2rem;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .strength-card-grid {
        grid-template-columns: 3rem 7rem 12rem 1fr 2rem;
    }
}

@media (max-width: 767px) {
    .strength-card-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
}

.strength-number {
    font-size: 3rem;
    font-weight: 900;
    color: hsl(var(--muted-foreground));
    opacity: 0.3;
}

.strength-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

.strength-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .strength-title {
        font-size: 1.875rem;
    }
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.card-minimal:hover .arrow-icon {
    transform: translateX(4px);
}

/* ========================================
   Stats Section
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 4rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: hsl(var(--border));
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: hsl(var(--background));
    padding: 2rem;
    position: relative;
    transition: background-color 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    background-color: hsla(var(--secondary) / 0.5);
}

.service-number {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.service-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translate(4px, -4px);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Service Detail Page
   ======================================== */
.service-detail {
    border-bottom: 1px solid hsl(var(--border));
    padding: 3rem 0;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-number {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.service-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .service-detail-title {
        font-size: 2rem;
    }
}

.service-detail-description {
    font-size: 1rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Projects Page
   ======================================== */
.project-item {
    border-bottom: 1px solid hsl(var(--border));
    padding: 3rem 0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-card-grid {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 767px) {
    .project-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.project-category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .project-title {
        font-size: 1.875rem;
    }
}

.project-description {
    font-size: 1rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Team Section
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-member {
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 2rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Company Info
   ======================================== */
.company-info {
    max-width: 48rem;
    margin: 3rem auto 0;
}

.info-list {
    display: grid;
    gap: 2rem;
}

.info-list dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.info-list dd {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Vision Grid
   ======================================== */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .vision-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vision-card {
    padding: 2rem;
}

.vision-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vision-description {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Contact Form
   ======================================== */
.contact-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.required {
    color: hsl(0 84% 60%);
}

.form-input {
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: hsl(var(--foreground));
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--foreground));
}

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

.form-input.error {
    border-color: hsl(0 84% 60%);
}

.error-message {
    font-size: 0.75rem;
    color: hsl(0 84% 60%);
    margin-top: 0.25rem;
}

.form-submit {
    margin-top: 1rem;
}

.form-note {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   Alert Messages
   ======================================== */
.alert {
    padding: 1rem;
    border: 1px solid;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: hsl(142 76% 96%);
    border-color: hsl(142 76% 85%);
    color: hsl(142 76% 25%);
}

.alert-error {
    background-color: hsl(0 84% 96%);
    border-color: hsl(0 84% 85%);
    color: hsl(0 84% 35%);
}

/* ========================================
   Privacy Page
   ======================================== */
.privacy-content {
    max-width: 48rem;
    margin: 0 auto;
}

.privacy-section {
    margin-top: 3rem;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.privacy-section p,
.privacy-section li {
    font-size: 0.875rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    text-align: center;
}

.cta-content {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-minimal {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
}

.btn-minimal:hover {
    opacity: 0.8;
}

.btn-minimal-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--foreground));
}

.btn-minimal-outline:hover {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-left {
        flex-direction: row;
        gap: 2rem;
    }
}

.footer-logo {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.footer-copyright {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.footer-link {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(var(--foreground));
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   Utility Classes
   ======================================== */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}
