/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 初期状態で要素を非表示 */
.hero-content,
.section-header,
.concept-item,
.service-card,
.work-item,
.stat-item,
.contact-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* 段階的な表示 */
.hero-content {
    animation-delay: 0.2s;
}

.section-header {
    animation-delay: 0.4s;
}

.concept-item:nth-child(1) { animation-delay: 0.6s; }
.concept-item:nth-child(2) { animation-delay: 0.8s; }
.concept-item:nth-child(3) { animation-delay: 1.0s; }

.service-card:nth-child(1) { animation-delay: 0.6s; }
.service-card:nth-child(2) { animation-delay: 0.8s; }
.service-card:nth-child(3) { animation-delay: 1.0s; }

.work-item:nth-child(1) { animation-delay: 0.6s; }
.work-item:nth-child(2) { animation-delay: 0.8s; }
.work-item:nth-child(3) { animation-delay: 1.0s; }

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.8s; }
.stat-item:nth-child(3) { animation-delay: 1.0s; }
.stat-item:nth-child(4) { animation-delay: 1.0s; }

/* カスタムプロパティ */
:root {
    --primary-blue: #0EA5E9;
    --dark-blue: #0B1220;
    --accent-blue: #6366F1;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --light-gray: #F1F5F9;
    --light-blue: #F0F9FF;
    --border-color: #E2E8F0;
    --header-height: 80px;
    
    /* ビビットカラー */
    --vivid-cyan: #00ffdd;
    --vivid-teal: #00c3ff;
    --electric-blue: #001eff;
}

/* ベーススタイル */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100%;
    overflow-x: hidden;
}

[id] {
    scroll-margin-top: var(--header-height);
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.logo {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.social {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link.twitter {
    background: var(--dark-blue);
}


.social-link.twitter::after {
    content: '𝕏';
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 0;
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ヒーローセクション */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--vivid-cyan) 0%, var(--vivid-teal) 50%, var(--electric-blue) 100%);
}

.hero-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><path d="M0,300 L80,290 L160,270 L240,240 L300,180 L350,100 L380,40 L400,0 L400,300 Z" fill="rgba(0,0,0,0.15)"/></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hero-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}


.hero-icon {
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-symbol {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 8px;
    position: relative;
}

.icon-symbol::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 4px;
}



/* ナビゲーションタブ */
.nav-tabs {
    background: var(--light-gray);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.nav-tabs .tab-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.tab {
    padding: 15px 25px;
    background: var(--white);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    width: 160px;
    min-height: 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.tab:hover::before {
    left: 100%;
}

.tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

/* セクション共通 */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section:hover::before {
    opacity: 1;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 60%;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Concept セクション */
.concept-section {
    background: var(--white);
}

.concept-content {
    max-width: 1000px;
    margin: 0 auto;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.concept-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.concept-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

.concept-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.concept-item:hover .concept-number {
    opacity: 1;
    transform: scale(1.1);
}

.concept-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    min-width: 60px;
    text-align: center;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.concept-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 0;
}

.concept-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* About セクション */
.about-section {
    background: var(--light-blue);
}

.about-section .section-content {
    max-width: 900px;
}

.company-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 25px;
}

.company-info h3:first-child {
    margin-top: 0;
}

.company-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.value-list {
    list-style: none;
    padding: 0;
}

.value-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.value-list li:last-child {
    border-bottom: none;
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-item:hover .stat-number {
    transform: scale(1.2);
    color: var(--accent-blue);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.video-block {
    position: relative;
    background: var(--primary-blue);
    border-radius: 16px;
    padding: 40px;
    color: var(--white);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid var(--primary-blue);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.learn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--dark-blue);
}

/* Service セクション */
.service-section {
    background: var(--light-gray);
    position: relative;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.service-card:hover h3 {
    color: var(--primary-blue);
    transform: translateX(5px);
}


.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.service-features li {
    padding: 10px 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Works セクション */
.works-section {
    background: var(--light-blue);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.work-item-link,
.work-item-link:link,
.work-item-link:visited,
.work-item-link:hover,
.work-item-link:active {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    border: none !important;
    outline: none !important;
}

.work-item-link h3,
.work-item-link p,
.work-item-link span,
.work-item-link div,
.work-item-link * {
    text-decoration: none !important;
    color: inherit;
    border-bottom: none !important;
}

.work-item-link:hover h3 {
    color: var(--primary-blue) !important;
}

.work-item-link .work-item {
    border: 1px solid var(--border-color) !important;
}

.work-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.work-item[style*="cursor: pointer"]:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.2);
}

.work-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.work-item:hover .work-category {
    transform: scale(1.1);
    background: var(--primary-blue);
    color: var(--white);
}

.work-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 16/9;
    min-height: 200px;
    max-height: 300px;
}

.work-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* より具体的なセレクターで確実に適用 */
.work-item .work-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* さらに具体的なセレクター */
.works-grid .work-item .work-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.work-item.manufacturing .work-image {
    background-image: url('../images/image4.png');
}

.work-item.it-company .work-image {
    background-image: url('../images/image5.png');
}

.work-item.retail-company .work-image {
    background-image: url('../images/image6.png');
}

.work-overlay {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    z-index: 10;
}

.work-category {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.work-link-icon {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.work-item-link:hover .work-link-icon,
.work-item[style*="cursor: pointer"]:hover .work-link-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.work-link-icon svg {
    width: 20px;
    height: 20px;
}

.work-content {
    padding: 30px;
}

.work-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.work-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.work-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--light-gray);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* About セクション */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact セクション */
.contact-section {
    background: var(--light-blue);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.contact-method {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-method h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.contact-method .contact-detail {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-method .contact-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.contact-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.contact-detail {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.company-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.company-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.company-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-form {
    background: var(--white);
    padding: 25px 20px 20px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-fields {
    flex: 1;
}

.form-actions {
    margin-top: auto;
    padding-top: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}

/* Contact Form 7 スタイル */
.wpcf7 {
    width: 100%;
}

.wpcf7 .form-fields {
    flex: 1;
}

.wpcf7 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wpcf7 .form-group {
    margin-bottom: 18px;
}

.wpcf7 .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.wpcf7 .form-group input[type="text"],
.wpcf7 .form-group input[type="email"],
.wpcf7 .form-group input[type="tel"],
.wpcf7 .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.wpcf7 .form-actions {
    margin-top: auto;
    padding-top: 15px;
}

.wpcf7 .submit-btn,
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 .submit-btn:hover,
.wpcf7 input[type="submit"]:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.wpcf7 .wpcf7-response-output {
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.wpcf7 .wpcf7-mail-sent-ok {
    border-color: #10b981;
    background-color: #d1fae5;
    color: #065f46;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
    border-color: #ef4444;
    background-color: #fee2e2;
    color: #991b1b;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

.wpcf7 .wpcf7-spinner {
    margin-left: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.privacy-link {
    color: var(--primary-blue);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* お問い合わせメッセージ */
.contact-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* フッター */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 25px;
    justify-content: center;
}

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

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

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* デスクトップ向け大画面対応 */
@media (min-width: 1025px) {
    .nav-tabs .container {
        flex-direction: row;
        gap: 20px;
    }
    
    .nav-tabs .tab-row {
        display: contents;
    }
    
    .tab {
        width: 160px;
        min-height: 55px;
    }
}

/* ハンバーガーメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding-top: 80px;
    text-align: center;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 15px 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #007bff;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mobile-social .social-link {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    position: relative;
}

.mobile-social .social-link::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mobile-social .social-link.twitter::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}


.mobile-social .social-link:hover {
    transform: scale(1.1);
}

/* タブレット向けレスポンシブデザイン */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
        max-width: 100%;
    }
    
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    /* ヘッダー */
    .header .container {
        padding: 15px 40px;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
    }
    
    .logo {
        flex: 0 0 auto;
        max-width: 180px;
        z-index: 10;
    }
    
    .logo-image {
        max-height: 45px;
        width: auto;
    }
    
    .nav {
        gap: 20px;
        flex: 1;
        justify-content: center;
        margin: 0 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    .social {
        flex: 0 0 auto;
        gap: 12px;
    }
    
    /* ヒーローセクション */
    .hero {
        height: 50vh;
        min-height: 400px;
        max-height: 500px;
        overflow: visible;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .hero-center {
        padding: 0 30px;
    }
    
    /* ナビゲーションタブ */
    .nav-tabs .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 30px 40px;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .nav-tabs .tab-row {
        display: flex;
        gap: 15px;
        justify-content: center;
    }
    
    .nav-tabs .tab-row:first-child {
        margin-bottom: 5px;
    }
    
    .nav-tabs .tab-row:first-child .tab {
        width: 180px;
        flex: none;
    }
    
    .nav-tabs .tab-row:last-child .tab {
        width: 180px;
        flex: none;
    }
    
    .tab {
        padding: 15px 20px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 8px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    /* セクション */
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.1rem;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    /* サービスグリッド */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* ワークスグリッド */
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* コンセプトグリッド */
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .concept-item {
        display: flex;
        align-items: flex-start;
        gap: 25px;
        padding: 25px;
    }
    
    .concept-number {
        font-size: 1.8rem;
        min-width: 60px;
    }
    
    .concept-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    /* About Usセクション */
    .section-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
    }
    
    .content-left {
        padding-right: 20px;
    }
    
    .company-info h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        margin-top: 30px;
    }
    
    .company-info h3:first-child {
        margin-top: 0;
    }
    
    .company-info p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    /* 統計情報 */
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: none;
    }
    
    .stat-item {
        padding: 25px 20px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* コンタクトセクション */
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
    
    .form-row {
        display: flex;
        gap: 20px;
    }
    
    .form-group {
        flex: 1;
    }
    
    /* フッター */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        text-align: left;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-social {
        justify-content: flex-end;
    }
    
    .footer {
        position: relative;
        z-index: 1;
        clear: both;
    }
}

/* スマートフォン向けレスポンシブデザイン */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
    }
    
    .logo {
        flex: 1;
        max-width: 200px;
    }
    
    .logo-image {
        max-height: 40px;
        width: auto;
    }
    
    .nav {
        display: none;
    }
    
    .social {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .social {
        position: static;
        order: 3;
    }
    
    .hero {
        height: 45vh;
        min-height: 350px;
        max-height: 450px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
        padding: 0 10px;
        margin-bottom: 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-center {
        padding: 0 20px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }
    
    .concept-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .concept-number {
        font-size: 2rem;
        min-width: auto;
    }
    
    .concept-text h3 {
        font-size: 1.2rem;
    }
    
    .concept-text p {
        font-size: 0.95rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .company-images {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .company-image {
        height: 100px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 25px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 25px;
    }
    
    .work-content {
        padding: 25px;
    }
    
    .company-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .nav-tabs .container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .nav-tabs .tab-row {
        display: flex;
        gap: 12px;
        justify-content: center;
    }
    
    .nav-tabs .tab-row:first-child {
        margin-bottom: 3px;
    }
    
    .nav-tabs .tab-row:first-child .tab {
        width: 100px;
        flex: none;
    }
    
    .nav-tabs .tab-row:last-child .tab {
        width: 120px;
        flex: none;
    }
    
    .tab {
        padding: 12px 10px;
        font-size: 0.8rem;
        text-align: center;
        border-radius: 8px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 40vh;
        min-height: 320px;
        max-height: 400px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    .hero-center {
        padding: 0 15px;
        max-width: 95%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* iOS zoom防止 */
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .nav-tabs .container {
        padding: 15px;
        max-width: 320px;
    }
    
    .nav-tabs .tab-row:first-child .tab {
        width: 90px;
        font-size: 0.75rem;
    }
    
    .nav-tabs .tab-row:last-child .tab {
        width: 110px;
        font-size: 0.75rem;
    }
    
    .tab {
        padding: 10px 8px;
        min-height: 40px;
    }
}
