/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.logo h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.logo span {
    font-size: 1rem;
    color: #b0b3b8;
    font-weight: 500;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: #1a1a1a;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.nav a:hover {
    color: #1a1a1a;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #b0b3b8;
    margin: 3px 0;
    transition: 0.3s;
}

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

/* ヒーローセクション */
.hero {
    background: #fafafa;
    color: #1a1a1a;
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-content h2 .cyber {
    background: linear-gradient(90deg, #00fff0 0%, #6e72fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00fff0 0%, #6e72fc 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    padding: 14px 28px;
    position: relative;
    cursor: pointer;
    transition: 
        opacity 0.2s ease,
        transform 0.2s ease;
    text-decoration: none;
}
.cta-button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* サービスセクション */
.services {
    padding: 80px 0 70px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #999;
}

.service-icon i {
    transition: color 0.2s ease;
}

.service-card:hover .service-icon i {
    color: #00fff0;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 会社概要セクション */
.company {
    padding: 80px 0 70px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.company-info {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.company-info h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.company-info ul {
    list-style: none;
}

.company-info li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1rem;
}

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

.placeholder-image {
    width: 100%;
    height: 280px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
}

/* お問い合わせセクション */
.contact {
    padding: 80px 0 70px 0;
    background: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.contact-methods {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-method {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method strong {
    color: #333;
    min-width: 120px;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    min-width: 320px;
    max-width: 600px;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    outline: none;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a1a1a;
    background: #fff;
}

.submit-button {
    width: 100%;
    max-width: 250px;
    background: linear-gradient(90deg, #00fff0 0%, #6e72fc 100%);
    color: #fff;
    padding: 0.9rem 0;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: 
        opacity 0.2s ease,
        transform 0.2s ease;
    min-height: 44px;
    position: relative;
    margin: 0 auto;
    display: block;
}

.submit-button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* フッター */
.footer {
    background: #333;
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    border-top: 1px solid #222;
    box-shadow: 0 -2px 8px rgba(30,40,90,0.03);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 1.2rem;
}

.footer-logo h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #b0b3b8;
}

.footer-contact p {
    font-size: 1rem;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: #b0b3b8;
    font-size: 0.95rem;
    margin-top: 1.2rem;
}

/* モバイルナビゲーション */
.nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30,40,90,0.08);
    z-index: 999;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding-bottom: 1rem;
}

.nav.active ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
}

.nav.active li {
    border-bottom: 1px solid #ececec;
}

.nav.active a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: none;
    color: #23272f;
    text-align: left;
}

.nav.active a:hover {
    background: #f6f8fa;
    color: #555;
}

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

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

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

/* レスポンシブデザイン */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 5vw;
    }
    .header {
        padding: 1rem 0 1rem 0;
    }
    .menu-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 16px rgba(30,40,90,0.08);
        z-index: 999;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav.active {
        max-height: 300px;
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    .nav li {
        border-bottom: 1px solid #ececec;
    }
    .nav a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: none;
        color: #23272f;
        text-align: left;
    }
    .nav a:hover {
        background: #f6f8fa;
        color: #555;
    }
    .hero {
        padding: 60px 0 40px 0;
    }
    .hero-content h2 {
        font-size: 1.7rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 13px 0;
        width: 90vw;
        max-width: 320px;
        font-size: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .contact-form {
        padding: 1.2rem 0.5rem;
        min-width: 0;
        max-width: 100vw;
    }
    .services h2, .about-text h2, .contact h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .hero {
        padding: 60px 0 40px 0;
    }
    .cta-button {
        font-size: 1rem;
        padding: 15px 20px;
        width: 90vw;
        max-width: 320px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button:hover {
        opacity: 0.8;
        transform: translateY(-2px);
    }
    .services, .about, .contact {
        padding: 60px 0 50px 0;
    }
    .service-card {
        padding: 1.5rem;
    }
    
    .about-content {
        padding: 0;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .submit-button {
        max-width: none;
        width: 100%;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.2s ease;
}

.about-text {
    animation: slideInLeft 0.6s ease-out;
}

.about-image {
    animation: slideInRight 0.6s ease-out;
}

.contact-form {
    animation: fadeInUp 0.6s ease-out;
}

/* ローディングアニメーション */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 成功メッセージ */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideInScale 0.3s ease-out;
}

.success-content h3 {
    color: #23272f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-content button {
    background: linear-gradient(90deg, #00fff0 0%, #6e72fc 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.success-content button:hover {
    transform: translateY(-2px);
}

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

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}