/* ===========================================
   オービット合同会社 - スタイルシート
   =========================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0a0a;
    --primary-dark: #171717;
    --secondary: #525252;
    --dark: #171717;
    --light: #ffffff;
    --gray: #737373;
    --accent: #e5e5e5;
    --bg: #ffffff;
    --bg-secondary: #fafafa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.8;
}

/* ===========================================
   Navigation
   =========================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gray);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   Common Components
   =========================================== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--dark);
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   Hero Section (Top Page)
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--dark);
    border-bottom: 2px solid var(--dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===========================================
   Services Section
   =========================================== */
.services {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===========================================
   Works Section
   =========================================== */
.works {
    padding: 8rem 5%;
    background: var(--bg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
}

.work-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.work-overlay p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================================
   Works Detail Section (Works Page)
   =========================================== */
.works-detail {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.works-detail-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.works-detail-card {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.works-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.works-detail-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.works-detail-body {
    flex: 1;
}

.works-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.works-detail-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.works-summary {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.works-points {
    margin-bottom: 1.5rem;
}

.works-points h4,
.works-result h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.works-points ul {
    list-style: none;
    padding: 0;
}

.works-points li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.works-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--dark);
    border-radius: 50%;
}

.works-result p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .works-detail-card {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
    }

    .works-detail-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* ===========================================
   Contact Section
   =========================================== */
.contact {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--dark);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dark);
}

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

/* ===========================================
   Page Header (Sub Pages)
   =========================================== */
.page-header {
    padding: 10rem 5% 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.page-header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
    position: relative;
}

/* ===========================================
   Mission Section (About Page)
   =========================================== */
.mission {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: 0.1em;
}

.mission-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===========================================
   Company Info Section (About Page)
   =========================================== */
.company-info {
    padding: 5rem 5%;
    background: var(--bg);
}

.info-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 20px;
    overflow: hidden;
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--accent);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 200px;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    font-weight: 500;
    flex-shrink: 0;
    color: var(--dark);
}

.info-value {
    padding: 1.5rem 2rem;
    color: var(--gray);
    flex: 1;
}

/* ===========================================
   Team Section (About Page)
   =========================================== */
.team {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.team-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

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

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.team-card .position {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===========================================
   History Timeline (About Page)
   =========================================== */
.history {
    padding: 5rem 5%;
    background: var(--bg);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--dark), var(--gray));
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 15px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--dark);
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.timeline-year {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================================
   CTA Section (About Page)
   =========================================== */
.cta {
    text-align: center;
    padding: 6rem 5%;
    background: var(--bg-secondary);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ===========================================
   Footer
   =========================================== */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--accent);
    background: var(--bg);
}

footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav.open {
        background: var(--dark);
        border-bottom: none;
    }

    nav.open .logo {
        color: #ffffff;
    }

    nav.open .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
        list-style: none;
    }

    .nav-links {
        display: none;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    nav.open .nav-links a {
        color: #ffffff;
    }

    nav.open .nav-links a:hover,
    nav.open .nav-links a.active {
        color: #a3a3a3;
    }

    nav.open .menu-toggle span {
        background: #ffffff;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .info-value {
        padding: 1rem 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }
}
