/* ========================================
   リセット & ベーススタイル
   ======================================== */

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

:root {
    /* カラーパレット */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;

    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   ナビゲーション
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 35px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.logo span {
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #10b981;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #f59e0b;
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: #06b6d4;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-white);
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s forwards;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(145deg, #e0e0e0, #f5f5f5);
    color: #333;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 200, 200, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #d8d8d8, #eeeeee);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(250%);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Message セクション
   ======================================== */

.message-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.arrow-bg {
    position: absolute;
    width: 4px;
    height: 120px;
    bottom: -350px;
    z-index: 0;
    pointer-events: none;
    border-radius: 2px;
}

.arrow-1 {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.2));
    height: 200px;
    left: 5%;
    animation: floatUp1 3.5s infinite ease-in-out;
}

.arrow-2 {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.6), rgba(236, 72, 153, 0.2));
    height: 260px;
    left: 18%;
    animation: floatUp2 4.5s infinite ease-in-out 0.75s;
}

.arrow-3 {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0.2));
    height: 220px;
    left: 32%;
    animation: floatUp3 4s infinite ease-in-out 1.5s;
}

.arrow-4 {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.2));
    height: 240px;
    left: 46%;
    animation: floatUp4 4.25s infinite ease-in-out 2.25s;
}

.arrow-5 {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.2));
    height: 230px;
    left: 60%;
    animation: floatUp5 4.75s infinite ease-in-out 1.25s;
}

.arrow-6 {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.2));
    height: 210px;
    left: 74%;
    animation: floatUp1 3.8s infinite ease-in-out 0.5s;
}

.arrow-7 {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.6), rgba(168, 85, 247, 0.2));
    height: 250px;
    right: 12%;
    animation: floatUp2 4.2s infinite ease-in-out 1.8s;
}

.arrow-8 {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.6), rgba(20, 184, 166, 0.2));
    height: 215px;
    left: 88%;
    animation: floatUp3 4.6s infinite ease-in-out 0.3s;
}

.arrow-9 {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.6), rgba(251, 146, 60, 0.2));
    height: 225px;
    left: 11%;
    animation: floatUp4 3.9s infinite ease-in-out 2.8s;
}

.arrow-10 {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.6), rgba(244, 63, 94, 0.2));
    height: 235px;
    right: 6%;
    animation: floatUp5 4.4s infinite ease-in-out 3.2s;
}

@keyframes floatUp1 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-800px);
        opacity: 0;
    }
}

@keyframes floatUp2 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-900px);
        opacity: 0;
    }
}

@keyframes floatUp3 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-850px);
        opacity: 0;
    }
}

@keyframes floatUp4 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-750px);
        opacity: 0;
    }
}

@keyframes floatUp5 {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-820px);
        opacity: 0;
    }
}

.message-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.handwriting-text {
    font-family: 'Yuji Syuku', 'HGS行書体', 'HGP行書体', cursive;
    font-size: 2rem;
    line-height: 2.2;
    color: var(--text-dark);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .handwriting-text {
        font-size: 1.3rem;
        line-height: 2;
    }

    .message-content {
        padding: 2rem 0.5rem;
    }

    .message-section .container {
        padding: 0 7px;
    }
}

/* ========================================
   Page Hero (Introduction Page)
   ======================================== */

.page-hero {
    padding: 150px 0 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s ease backwards;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   About セクション
   ======================================== */

.about {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.animate {
    animation: fadeInUp 0.6s forwards;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.keyword-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem auto;
    padding: 0.6rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    animation: sparkle 4s infinite;
}

.keyword-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    20% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    20% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Engineers セクション
   ======================================== */

.engineers {
    background: white;
}

.engineers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.engineer-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.engineer-card.animate {
    animation: fadeInUp 0.6s forwards;
}

.engineer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.engineer-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.engineer-info {
    flex: 1;
}

.engineer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.engineer-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.engineer-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Services セクション
   ======================================== */

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
}

.service-card.animate {
    animation: fadeInLeft 0.6s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

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

/* ========================================
   Works セクション
   ======================================== */

.works {
    background: var(--light-bg);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    opacity: 0;
    transform: scale(0.9);
}

.work-card.animate {
    animation: zoomIn 0.6s forwards;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.work-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.work-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.work-image-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.work-image-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.work-image-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.work-card:hover .work-overlay {
    opacity: 0.95;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.work-overlay p {
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.work-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   Stats セクション
   ======================================== */

.stats {
    background: var(--gradient-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   Contact セクション
   ======================================== */

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(30px);
}

.info-item.animate {
    animation: fadeInRight 0.6s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 25px;
    height: 25px;
    color: white;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.contact-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.contact-button-container.animate {
    animation: fadeInUp 0.6s forwards;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h3 span {
    font-weight: 300;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1.5rem;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

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

    .about-grid,
    .services-grid,
    .works-grid {
        grid-template-columns: 1fr;
    }

    .engineers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .engineer-card {
        flex-direction: column;
        text-align: center;
    }

    .engineer-image {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .btn-large {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .contact-button-container {
        padding: 0;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 0.8rem;
    }

    .scroll-line {
        height: 40px;
    }

    .message-content {
        padding: 2rem 0.3rem;
    }

    .handwriting-text {
        font-size: 1.2rem;
    }

    .message-section .container {
        padding: 0 5px;
    }
}

/* ========================================
   Company Info Section
   ======================================== */

.company-info {
    background: var(--light-bg);
    padding: 100px 0;
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.company-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid #e2e8f0;
}

.company-value {
    padding: 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-row {
        grid-template-columns: 1fr;
    }

    .company-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 1.5rem;
    }

    .company-value {
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   Security Policy Section
   ======================================== */

.security-policy {
    background: white;
    padding: 100px 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-intro {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.policy-intro p {
    margin: 0;
    color: var(--text-dark);
}

.policy-item {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    border-radius: 10px;
}

.policy-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.policy-item p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
    text-align: right;
}

.policy-footer p {
    color: var(--text-light);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .policy-item {
        padding: 1.5rem;
    }

    .policy-item h3 {
        font-size: 1.1rem;
    }

    .policy-footer {
        text-align: center;
    }
}
