/* リセットCSS */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

/* カスタムプロパティ */
:root {
    --primary-color: #0369a1;
    --secondary-color: #0284c7;
    --accent-color: #075985;
    --sky-light: #bae6fd;
    --sky-medium: #7dd3fc;
    --sky-dark: #0c4a6e;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #075985 100%);
    --gradient-hero: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 50%, #0ea5e9 100%);
    --gradient-futuristic: linear-gradient(45deg, #0369a1, #0284c7, #0ea5e9, #075985);
    --shadow-sky: 0 10px 30px rgba(3, 105, 161, 0.4);
    --shadow-xl: 0 25px 50px rgba(3, 105, 161, 0.3);
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #7dd3fc 0%, #3b82f6 50%, #1e40af 100%);
    overflow-x: hidden;
    position: relative;
}

/* 動的背景パターン */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(3, 105, 161, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(7, 89, 133, 0.15) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(0.5deg); }
    66% { transform: translateY(10px) rotate(-0.5deg); }
}

/* 共通スタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(186, 230, 253, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(3, 105, 161, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-image {
    height: 112px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* メインコンテンツ */
main {
    padding-top: 70px;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}


.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.5)); }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-white);
    line-height: 1.8;
    margin-bottom: 32px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sky);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ヒーロー視覚効果 */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* モバイル用画像は最初は隠す */
.hero-mobile-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient-futuristic);
    border-radius: 20px;
    animation: floatFuturistic 8s ease-in-out infinite;
    box-shadow: var(--shadow-sky);
}

.element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 2s;
    transform: rotate(45deg);
}

.element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    border-radius: 50%;
}

.element:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes floatFuturistic {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-30px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(-20px) rotate(180deg) scale(0.9); }
    75% { transform: translateY(-40px) rotate(270deg) scale(1.05); }
}

/* セクション共通スタイル */
section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* About セクション */
.about {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.about-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
}

.about-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.company-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(224, 242, 254, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.company-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.company-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-item {
    text-align: center;
    padding: 20px;
    background: rgba(224, 242, 254, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sky);
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sky);
}

.value-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(224, 242, 254, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sky);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Services セクション */
.services {
    background: rgba(179, 229, 252, 0.3);
    backdrop-filter: blur(10px);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.service-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Showcase セクション */
.showcase {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.showcase-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.1);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.showcase-image {
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.placeholder-image {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.showcase-content {
    padding: 24px;
}

.showcase-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.showcase-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.showcase-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: rgba(224, 242, 254, 0.8);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-weight: 500;
}

/* News セクション */
.news {
    background: rgba(179, 229, 252, 0.3);
    backdrop-filter: blur(10px);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    border-radius: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 0 15px;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sky);
}

.news-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.news-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact セクション */
.contact {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-item span {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

/* コンタクトボタンエリア */
.contact-button-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(3, 105, 161, 0.2);
}

.contact-button-area h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-button-area p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    min-width: 200px;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--sky-dark) 0%, var(--accent-color) 100%);
    color: var(--text-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-image {
    height: 96px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(224, 242, 254, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
        gap: 20px;
        backdrop-filter: blur(15px);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-video {
        display: none !important;
    }
    
    .hero-mobile-image {
        display: block !important;
    }
    
    .hero {
        background: var(--gradient-hero);
    }
    
    .hero-accent-image {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto;
        display: block;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-background {
        width: 100%;
        height: 200px;
        top: auto;
        bottom: 0;
    }
    
    .company-values {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 120px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .showcase-item {
        margin: 0 10px;
        padding: 30px 20px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-image {
        height: 100px;
    }
    
    .hero-video {
        display: none !important;
    }
    
    .hero-mobile-image {
        display: block !important;
    }
    
    .hero {
        background: var(--gradient-hero) !important;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .footer-logo-image {
        height: 22px;
        opacity: 0.8;
    }
}