:root {
    /* フォント関連 */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 14px;
    --font-size-large: 28px;
    --font-size-medium: 24px;
    --font-size-small: 16px;
    --font-size-xsmall: 14px;
    --font-color-primary: #3498db;
    --font-color-secondary: #666;
    
    /* 背景色関連 */
    --background-color-light: #ffffff;
    --background-color-dark: #000000;
    --background-color: #f4f4f4;
    --background-color-section: #f4f4f4;
    
    /* ボーダーとシャドウ */
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* ヒーローセクション */
    --hero-height: 300px;
    --hero-background-image: url('../image/company.jpg');
    --hero-font-size-h1: 2.5em;
    --hero-font-size-p: 1.2em;
    --hero-text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);

    /* アニメーション */
    --animation-duration: 0.3s;
    --animation-delay-1: 0.2s;
    --animation-delay-2: 0.4s;
    --animation-delay-3: 0.6s;
    --animation-delay-4: 0.8s;
    --animation-delay-5: 1s;
}

/* Reset some default styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
}

/* Base body styling */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
}

/* Container for consistent page width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero section styles */
.hero {
    position: relative;
    height: var(--hero-height);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: var(--hero-background-image);
    background-size: cover;
    background-position: center;
    margin-top: 60px;


    .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

    h1 {
    font-size: var(--hero-font-size-h1);
    margin-bottom: 20px;
    padding: 10px;
    text-shadow: var(--hero-text-shadow);
}

    p {
    font-size: var(--hero-font-size-p);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: var(--hero-text-shadow);
}
}
/* Text section styles */
.txt {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: var(--background-color);
    margin: auto;
}

.txt--in {
    background-color: var(--background-color-light);
    padding: 20px;
    max-width: 800px;
    width: 100%;
}

.home_about--ttl {
    text-align: center;
    font-size: var(--font-size-large);
}

/* Company overview styles */
.company-overview {
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--background-color-light);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

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


    th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

    th {
    background-color: #f2f2f2;
    font-weight: bold;
}

    tr:nth-child(even) {
    background-color: #f9f9f9;
}
}


/* スマホ幅のデザイン調整 */
@media (max-width: 768px) {
    /* Heroセクションの高さを調整 */
    .hero {
        height: 200px;
        background-position: center;
    

        h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

        p {
        font-size: 1em;
        margin-bottom: 10px;
    }
}

    .txt {
        padding: 10px;
    }

    .txt--in {
        padding: 10px;
    }

    .company-overview {
        padding: 10px;
        margin-bottom: 10px;
    }

    .company-table {
        font-size: 0.9em;
    

        th, td {
        padding: 6px;
    }
}

    /* Worksセクションのカルーセルデザイン */
    .works .container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
    }

    .works-carousel {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .works-item {
        flex: 0 0 auto;
        width: 150px;
        background-color: var(--background-color-light);
        border-radius: var(--border-radius);
        padding: 10px;
        box-sizing: border-box;
        scroll-snap-align: start;
    

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

        h3 {
        font-size: 1em;
        margin-bottom: 5px;
    }

        p {
        font-size: 0.8em;
        color: var(--font-color-secondary);
    }
}
}