/* ============================================
   基本設定
============================================ */
:root {
    /* カラーパレット */
    --primary-color: #ff6b35;      /* オレンジ */
    --secondary-color: #4ecdc4;    /* ターコイズ */
    --accent-color: #ffe66d;       /* イエロー */
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    
    /* フォント */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* スペーシング */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* トランジション */
    --transition: all 0.3s ease;
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   ヘッダー & ナビゲーション
============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 1px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-link.contact-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
}

.nav-link.contact-btn::after {
    display: none;
}

.nav-link.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   ヒーローセクション
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1565c0;
    overflow: hidden;
}

/* 動画背景 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* 動画を暗くするオーバーレイ */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 60px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    margin-bottom: 30px;
}

.hero-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-main {
    display: block;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--white);
}

/* ============================================
   セクション共通スタイル
============================================ */
section {
    padding: var(--section-padding);
}

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

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   会社概要セクション
============================================ */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
}

.about-needs {
    margin-bottom: 40px;
}

.about-needs li {
    font-size: 16px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-needs i {
    color: var(--secondary-color);
    font-size: 20px;
}

.about-solution {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.about-solution h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-solution p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.about-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid var(--gray-light);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-description {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   事業部セクション
============================================ */
.divisions {
    background: #1565c0;
    color: var(--white);
}

.divisions .section-subtitle,
.divisions .section-title {
    color: var(--white);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.division-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: var(--transition);
}

.division-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.division-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 72px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
}

.division-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.division-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.division-description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.division-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.division-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.division-features i {
    color: var(--accent-color);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.required {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: var(--font-main);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

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

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
}

.info-card a {
    color: var(--primary-color);
}

.info-card a:hover {
    text-decoration: underline;
}

.company-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
}

.company-name-en {
    font-size: 14px;
    color: var(--gray);
}

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

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

.footer-logo .logo-text {
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   トップへ戻るボタン
============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ============================================
   レスポンシブデザイン
============================================ */

/* タブレット */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* モバイル */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-main {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 24px;
    }
    
    .logo-sub {
        font-size: 8px;
    }
    
    .hero-main {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
}