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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 60px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8e8;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.6;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 60px 0;
    border: 2px dashed #666666;
}

.image-placeholder-small {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 40px 0;
    border: 2px dashed #666666;
}

.image-placeholder-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 auto 20px;
    border: 2px dashed #666666;
    border-radius: 50%;
}

.image-placeholder-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 auto 40px;
    border: 2px dashed #666666;
    border-radius: 50%;
}

/* Value Icon Image */
.value-icon-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: linear-gradient(135deg, #000814 0%, #001d3d 50%, #000814 100%);
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.5);
}

.hero-content .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #a0d2ff;
}

/* Section Common */
section {
    padding: 120px 60px;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: 0.1em;
    color: #000000;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    color: #000000;
}

.section-text {
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.05em;
    color: #444444;
    margin-bottom: 40px;
}

.section-image {
    width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.mission-section,
.vision-section {
    background-color: #000000;
    color: #ffffff;
}

.mission-section .section-title,
.vision-section .section-title {
    color: #ffffff;
}

.mission-section .section-subtitle,
.vision-section .section-subtitle {
    color: #ffffff;
}

.mission-section .section-text,
.vision-section .section-text {
    color: #cccccc;
}

/* Message Section */
.message-section {
    background-color: #f8f8f8;
}

.message-content {
    text-align: left;
}

.message-signature-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 60px;
}

.ceo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-signature {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

/* Value Section */
.value-section {
    background-color: #ffffff;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

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

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000000;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #000000;
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #666666;
    letter-spacing: 0.03em;
}

/* Service Section */
.service-section {
    background-color: #f8f8f8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.service-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #999999;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #000000;
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666666;
    letter-spacing: 0.03em;
}

/* Company Section */
.company-section {
    background-color: #ffffff;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 60px;
}

.info-table tr {
    border-bottom: 1px solid #e8e8e8;
}

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

.info-table th,
.info-table td {
    padding: 35px 0;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    font-weight: 600;
    width: 180px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #888888;
}

.info-table td {
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.9;
    color: #1a1a1a;
}

/* CTA Section */
.cta-section {
    background-color: #000000;
    color: #ffffff;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.cta-item {
    text-align: left;
}

.cta-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.cta-description {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #cccccc;
    letter-spacing: 0.03em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

.cta-button-alt {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-button-alt:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Footer */
footer {
    padding: 80px 60px 40px;
    background-color: #000000;
    color: #ffffff;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333333;
}

.footer-company {
    flex: 1;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    color: #ffffff;
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #999999;
    letter-spacing: 0.03em;
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav-column h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-nav-column ul {
    list-style: none;
}

.footer-nav-column ul li {
    margin-bottom: 12px;
}

.footer-nav-column ul li a {
    font-size: 0.85rem;
    color: #999999;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.footer-nav-column ul li a:hover {
    color: #ffffff;
}

.copyright {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #666666;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 20px 30px;
    }

    nav {
        display: none;
    }

    section {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .value-grid,
    .service-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .message-signature-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .info-table th {
        padding-bottom: 8px;
        font-size: 0.85rem;
    }

    .info-table td {
        padding-bottom: 30px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }

    footer {
        padding: 60px 30px 30px;
    }
}

/* ===============================================
   Splash Screen Styles
   =============================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.splash-screen.fade-out {
    opacity: 0;
}

.splash-content {
    text-align: center;
    z-index: 10001;
    position: relative;
}

.splash-logo {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.splash-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.splash-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #64c8ff, #3290ff);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.1em;
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Body状態管理 */
body:not(.splash-hidden) {
    overflow: hidden;
}

body.splash-hidden {
    overflow: auto;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(100, 200, 255, 0.3), 0 0 40px rgba(100, 200, 255, 0.1);
    }
    100% {
        text-shadow: 0 0 30px rgba(100, 200, 255, 0.5), 0 0 60px rgba(100, 200, 255, 0.2);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2.5rem;
    }
    
    .splash-subtitle {
        font-size: 1rem;
    }
    
    .splash-logo {
        margin-bottom: 40px;
    }
}

/* ===============================================
   Hero Text Animation Styles
   =============================================== */
.hero-title-animated {
    opacity: 1;
    position: relative;
}

.hero-title-animated.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: #64c8ff;
    font-weight: 300;
}

.hero-title-animated.glow-pulse {
    animation: heroGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle-animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-subtitle-animated.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Text Keyframe Animations */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes heroGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.1),
            0 0 20px rgba(100, 200, 255, 0.2),
            0 0 30px rgba(100, 200, 255, 0.1);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(100, 200, 255, 0.4),
            0 0 60px rgba(100, 200, 255, 0.2);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for hero animations */
@media (max-width: 768px) {
    .hero-title-animated.typing::after {
        font-size: 0.9em;
    }
}