/* 基本設定 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #df2020;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ヘッダー - 縦型ナビゲーション */
header {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 120px;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.logo img {
    max-width: 80px;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 60%;
}

.header-contact {
    text-align: center;
    padding: 0 1rem;
}

.header-contact a {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.header-contact a:hover {
    background-color: #df2020;
    transform: translateY(-2px);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
    background-color: var(--secondary-color);
    padding: 10px;
    border-radius: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* メインコンテンツ */
main {
    margin-left: 120px;
    padding: 0;
    transition: all 0.3s ease;
}

/* メインビジュアル */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 86, 179, 0.7)), 
                url(../images/mv.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.5), rgba(75, 0, 0, 0));
    opacity: 0.6;
    animation: movingGlow 7s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes movingGlow {
    0% {
        transform: translateX(-50%);
        opacity: 0.4;
    }
    100% {
        transform: translateX(50%);
        opacity: 0.8;
    }
}











.hero-content {
    max-width: 600px;
    animation: slideInFromRight 1s ease-in-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #df2020;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 会社概要セクション */
.about {
    padding: 5rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    animation: fadeIn 1s ease-in-out;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    position: relative;
    animation: slideInFromLeft 1s ease-in-out;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    z-index: -1;
    animation: borderPulse 3s infinite;
}

/* グローバルネットワークセクション */
.network {
    padding: 5rem;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%230056b3" opacity="0.2"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

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

.network-map {
    position: relative;
    height: 500px;
    margin: 3rem auto;
    background: url('https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2094&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.location-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: markerPulse 2s infinite;
    cursor: pointer;
}

.location-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 102, 0, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.location-marker.tokyo {
    top: 35%;
    left: 85%;
}

.location-marker.china {
    top: 40%;
    left: 75%;
}

.location-marker.usa {
    top: 40%;
    left: 20%;
}

.location-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 86, 179, 0.9);
    color: var(--white);
    padding: 1.5rem;
    transition: all 0.5s ease;
    opacity: 0;
}

.location-marker.active .location-info {
    bottom: 0;
    opacity: 1;
}

.location-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.location-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* サービスセクション */
.services {
    padding: 5rem;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-in-out;
    animation-fill-mode: both;
}

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

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-icon {
    height: 150px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #df2020;
}

.service-link i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 契約フローセクション */
.process {
    padding: 5rem;
    background-color: var(--light-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 1;
}

.step {
    text-align: center;
    width: 20%;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }
.step:nth-child(5) { animation-delay: 0.9s; }

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* お問い合わせセクション */
.contact {
    padding: 5rem;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    animation: slideInFromLeft 1s ease-in-out;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.contact-text p {
    margin-bottom: 0;
}

.contact-form {
    flex: 1;
    animation: slideInFromRight 1s ease-in-out;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #df2020;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* アクセスマップセクション */
.map {
    padding: 0;
    height: 500px;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 51, 102, 0.9);
    color: var(--white);
    padding: 2rem;
    z-index: 10;
}

.map-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.map-overlay p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* フッター */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    max-width: 100px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

@keyframes borderPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes mapAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    header {
        width: 100px;
        padding: 1.5rem 0;
    }

    .logo h1 {
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .hero {
        padding: 0 3rem;
    }

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

    .about-content,
    .contact-container {
        flex-direction: column;
    }

    .about-image {
        margin-top: 2rem;
    }

    .process-steps {
        flex-wrap: wrap;
    }

    .step {
        width: 45%;
        margin-bottom: 2rem;
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        transform: translateX(-100%);
        width: 250px;
    }

    header.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
    }

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

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

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

    main {
        margin-left: 0;
    }

    .hero {
        padding: 0 2rem;
        height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about,
    .network,
    .services,
    .process,
    .contact {
        padding: 3rem 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .step {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}