@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --color-bg-light: #F8F9FA;
    --color-bg-white: #FFFFFF;
    --color-accent: #2F80ED;
    --color-accent-light: #5B9CF6;
    --color-text-main: #333333;
    --color-text-sub: #666666;
    --color-border: #E0E0E0;
    
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: var(--font-jp);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-en);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-accent-light);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 128, 237, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-en);
}

.btn-text .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

.btn-text:hover {
    color: var(--color-accent-light);
}

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

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-svg {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.main-nav a:hover {
    color: var(--color-accent);
}

.btn-contact {
    border: 1px solid var(--color-border);
    padding: 8px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: #fff !important;
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* 簡易化のためSPは一旦非表示 */
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -40px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    color: var(--color-text-main);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-sub);
    margin-bottom: 48px;
    font-weight: 400;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-sub);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 2s ease 2s forwards;
}

@keyframes fadeIn {
    to { opacity: 0.7; }
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-sub), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
section {
    padding: 120px 0;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--color-accent);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: var(--color-bg-white);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--color-text-main);
}

.about-desc {
    color: var(--color-text-sub);
    font-size: 1rem;
    line-height: 2;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background-color: var(--color-bg-light);
}

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

.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 0;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* マウスホバー時のグラデーションエフェクト */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(47, 128, 237, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(47, 128, 237, 0.3);
    box-shadow: 0 20px 40px rgba(47, 128, 237, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.card-image-area {
    width: 100%;
    height: 220px;
    background: #F0F4FF;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-image-area img.img-contain {
    object-fit: contain;
    padding: 0;
}

.service-card:hover .card-image-area img {
    transform: scale(1.05);
}

.card-placeholder-icon {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
}

.card-content {
    padding: 32px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-name {
    font-family: var(--font-en);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text-main);
    font-weight: 700;
}

.service-desc {
    color: var(--color-text-sub);
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.8;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.service-features li {
    font-size: 0.8rem;
    font-family: var(--font-en);
    color: var(--color-accent);
    background: rgba(47, 128, 237, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(47, 128, 237, 0.2);
}

/* ==========================================================================
   Web Production Section
   ========================================================================== */
.web-production-section {
    background-color: var(--color-bg-white);
    padding: 120px 0;
}

.production-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.production-heading {
    font-family: var(--font-en);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--color-text-main);
    font-weight: 700;
}

.production-desc {
    color: var(--color-text-sub);
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.8;
}

.tech-stack-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.1);
}

.tech-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    color: var(--color-accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tech-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-name {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-main);
    line-height: 1.2;
}

.tech-detail {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    line-height: 1.2;
}

.production-visual {
    display: flex;
    justify-content: center;
}

.performance-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.performance-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    text-align: center;
}

.performance-icon-large {
    margin-bottom: 16px;
    width: 96px;
    height: 96px;
    background: rgba(0, 204, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performance-title {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.performance-subtitle {
    font-size: 0.9rem;
    color: #00CC66;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.performance-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.performance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-text-main);
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 12px;
    font-weight: 500;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    color: #00CC66;
}

@media (max-width: 768px) {
    .production-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-stack-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 160px 0;
    text-align: center;
    background-color: var(--color-bg-white);
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.contact-text {
    color: var(--color-text-sub);
    margin-bottom: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 60px 0;
    background-color: #F8F9FA;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-svg {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-mission {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .footer-nav {
        gap: 16px;
        flex-direction: column;
    }
}
