/* Base styles and reset */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --bg-color: #fff;
    --accent-color: #45b7aa;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p { margin-bottom: 15px; }


/* Basic header styles */
header {
    background-color: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0; /* Adjust margin as necessary */
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #007bff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        background: #fff;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .main-nav ul li {
        margin: 0 0 10px;
        width: 100%;
    }

    .main-nav ul li a {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav.active {
        right: 0;
    }
}

/* Legal page specific styles */
main {
    padding: 20px 0;
}

main h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

main section {
    margin-bottom: 20px;
}

main section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

main section p, main section ul {
    margin: 0 0 10px;
    line-height: 1.6;
}

main section ul {
    list-style-type: disc;
    padding-left: 20px;
}




/* Hero section styles */
#about-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    margin-top: 0;
    padding-top: 0;
}


#about-hero h1 {
    font-size: 2.5rem;
    color: #333;
}

#company-overview, #mission-vision, #business-areas, #company-history {
    padding: 50px 0;
}

#company-overview h2, #mission-vision h2, #business-areas h2, #company-history h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#company-overview table, #mission-vision .mission, #business-areas .business-list, #company-history .timeline {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

#company-overview th, #company-overview td {
    padding: 10px;
    border: 1px solid #ddd;
}

#mission-vision .mission, #business-areas .business-list li, #company-history .timeline li {
    margin-bottom: 20px;
}

#business-areas .business-list li h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#business-areas .business-list li p {
    margin: 0;
}

#company-history .timeline li {
    list-style: none;
}

#company-history .timeline li time {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}



/* Adjust hero section margin */
.hero {
    margin-top: 0; /* ヒーローセクションの上部余白を削除 */
    padding-top: 0;
}


/* Hero section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* ヒーローセクションの上部余白を削除 */
    padding-top: 0; /* ヒーローセクションのパディングを削除 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
    margin-left: 5%;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #666;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

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

.hero-logo {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-logo img {
    width: 50px;
    margin-right: 10px;
}

.hero-logo span {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
}


.hero-description-en, .hero-description-jp {
    margin-bottom: 0.5em;
}

.hero-description-jp {
    font-size: 0.95em;  /* PCでの表示サイズを少し大きくする */
    color: #555;
    line-height: 1.6;   /* 行間を少し広げる */
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8em;  /* メインタイトルのサイズを調整 */
    }

    .hero-subtitle {
        font-size: 1.1em;  /* サブタイトルのサイズを調整 */
    }

    .hero-description-en {
        font-size: 0.9em;
    }

    .hero-description-jp {
        font-size: 0.85em;  /* スマートフォンでの日本語テキストサイズを調整 */
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5em;  /* さらに小さい画面でのメインタイトルサイズ */
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-description-en,
    .hero-description-jp {
        font-size: 0.8em;  /* さらに小さい画面での説明文サイズ */
    }
}




/* Buttons */
.button, .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover, .cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f8f8f8;
}

/*  products */
#products {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.product-category {
    margin-bottom: 40px;
}

.product-category h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.product-category p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #357ab8;
}

/* メディアクエリを追加して、大きな画面でのレイアウトを調整 */
@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item {
        flex-direction: row;
        align-items: stretch;
    }

    .product-item img {
        width: 40%;
        height: auto;
    }

    .product-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 60px; /* モバイル用のヘッダー高さに調整 */
    }
}

/* News section */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-list .date {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary-color);
}


/* Related Sites Section Styles */
#related-sites {
    padding: 50px 0;
    background-color: #f9f9f9;
}

#related-sites .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#related-sites h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

#related-sites .site-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

#related-sites .site {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    text-align: center;
}

#related-sites .site h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#related-sites .site p {
    font-size: 1rem;
    margin-bottom: 20px;
}

#related-sites .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#related-sites .btn:hover {
    background-color: #0056b3;
}



/* Footer *//* Footer Styles */
footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    color: #333;
    font-family: Arial, sans-serif;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-links, .footer-contact, .footer-social, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-links ul, .footer-social ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links a, .footer-legal a, .footer-contact p, .footer-contact a {
    color: #333;
    text-decoration: none;
}

.footer-links a:hover, .footer-legal a:hover, .footer-contact a:hover {
    text-decoration: underline;
}

.footer-social ul {
    display: flex;
    gap: 10px;
}

.footer-social a {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #007bff;
}

.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-bottom {
    background-color: #e0e0e0;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo, .footer-links, .footer-contact, .footer-social, .footer-legal {
        text-align: center;
    }
}


/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content {
        margin-left: 5%;
        max-width: 90%;
    }

    .hero-image {
        width: 100%;
        opacity: 0.3;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links, .social-links {
        margin-top: 20px;
    }
}