:root {
    --primary-color: #354ab4;
    --secondary-color: #5364c9;
    --accent-color: #899ed6;
    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f8f9fa;
    --gray-200: #e5e7eb;
    --gray-600: #666666;
    --black: #000000;
    --text-primary: #333333;
    --gradient-primary: linear-gradient(135deg, #5364c9 0%, #899ed6 100%);
    --gradient-secondary: linear-gradient(135deg, #354ab4 0%, #5364c9 100%);
    --blue-overlay-light: rgba(53, 74, 180, 0.7);
    --blue-overlay-medium: rgba(83, 100, 201, 0.8);
    --blue-overlay-heavy: rgba(137, 158, 214, 0.9);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--white);
}

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

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* ヘッダー - クリーンなデザイン */
header {
    background: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 8px;
}

.logo-svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    nav {
        padding: 1rem 24px;
    }
}

/* ヒーローセクション - 実写写真背景 */
.hero {
    background-image: 
        linear-gradient(var(--blue-overlay-medium), var(--blue-overlay-light)),
        url('../images/hero-background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255 255 255 / 0.03)'%3e%3cpath d='m0 .5 32 32m0-32L0 32.5'/%3e%3c/svg%3e");
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    animation: fadeInUp 1s ease-out both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* タイピングアニメーション用のカーソル */
.hero-subtitle::after {
    content: '|';
    position: absolute;
    margin-left: 2px;
    animation: blink 1s infinite;
    color: rgba(255, 255, 255, 0.9);
    opacity: var(--cursor-opacity, 1);
    transition: opacity 0.5s ease;
}

@keyframes blink {
    0%, 50% { opacity: var(--cursor-opacity, 1); }
    51%, 100% { opacity: 0; }
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.cta-buttons.show {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 抽象的なイラスト要素 */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-delay: 4s;
}

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

/* セクション共通スタイル - 大きな余白 */
section {
    padding: 120px 0;
}

.section-title {
    position: relative;
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}


.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--gray-600);
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 価値提案セクション - クリーンな3カラム */
.value-props {
    background: var(--white);
}

.value-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    position: relative;
}


.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.value-card:hover::before {
    background: rgba(255, 255, 255, 0.90);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.value-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Aboutセクション - シンプルな背景 */
.about {
    background: var(--gray-50);
}

.mission-vision {
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(83, 100, 201, 0.03) 0%, rgba(137, 158, 214, 0.05) 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(83, 100, 201, 0.1);
}

.mission-card, .vision-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(53, 74, 180, 0.08);
    position: relative;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(53, 74, 180, 0.15);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mission-card .mission-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.vision-card .vision-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* 数値カウントアップアニメーション */
.counter-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 2.5rem;
    display: inline-block;
    margin-right: 0.2rem;
}

.metric-number {
    transition: all 0.3s ease;
}

/* フェードインアニメーション */
.fade-in-up {
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* カードホバーエフェクト強化 */
.value-card:hover,
.service-card:hover,
.case-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(53, 74, 180, 0.15);
}

/* ボタンホバーエフェクト強化 */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 74, 180, 0.3);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 74, 180, 0.2);
}

/* 完全オーダーメイドプロセスセクション */
.custom-process-section {
    margin-top: 4rem;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.process-step {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 300px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
}

.step-1 { background: var(--gradient-primary); }
.step-2 { background: var(--gradient-secondary); }
.step-3 { background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%); }

.process-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.process-step p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 1rem;
}

.process-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.benefit-icon {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .process-step {
        max-width: none;
        width: 100%;
    }
    
    .process-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* メイン事業セクション - ミニマルデザイン */
.main-service {
    background: var(--gray-100);
}

.service-grid {
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}


.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.service-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.75rem;
}

/* 事例セクション */
.case-studies {
    background: var(--white);
}

.case-card {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.case-content {
    min-width: 0;
}

.case-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.case-image {
    width: 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .case-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .case-images {
        width: 100%;
        order: -1;
    }

    .case-image {
        width: 100%;
        height: 180px;
    }
}


.case-card > * {
    position: relative;
    z-index: 1;
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.case-metrics {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    font-family: 'Inter', sans-serif;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* 会社概要セクション */
.company {
    background: var(--white);
}

.company-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.5rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.company-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

.company-table td {
    color: var(--gray-600);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.company-table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company-table th,
    .company-table td {
        padding: 1rem;
    }
    
    .company-table th {
        width: 35%;
    }
}

/* お問い合わせセクション */
.contact {
    background: var(--gray-100);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

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

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

.submit-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* フッター */
footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 80px;
}

footer p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* ヒーローセクションのテキスト改行修正 */
    .hero h1 {
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.6;
    }
    
    /* プロセスセクションのテキスト改行修正 */
    .custom-process-section h3 {
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .case-metrics {
        justify-content: space-around;
    }
    
    .service-grid {
        gap: 1.5rem;
    }

    .about {
        background-attachment: scroll;
    }
}

/* 写真の読み込み改善 */
.hero {
    background-image: 
        linear-gradient(var(--blue-overlay-medium), var(--blue-overlay-light)),
        url('../images/hero-background.avif');
}

@media (min-width: 1200px) {
    .hero {
        background-image: 
            linear-gradient(var(--blue-overlay-medium), var(--blue-overlay-light)),
            url('../images/hero-background.avif');
    }
}

/* ==================================
   フォームメッセージのアニメーション
   ================================== */

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

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

/* フォームメッセージのスタイル */
.form-message {
    position: relative;
    z-index: 1000;
}

.form-message + * {
    margin-top: 0 !important;
}

/* 送信ボタンのスタイル強化 */
.submit-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-btn:disabled {
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 74, 180, 0.4);
}

/* バリデーションエラー時のフィールドアニメーション */
input[style*="border-color: red"], 
textarea[style*="border-color: red"] {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}