/* ページ全体のスタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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

/* トップバーのスタイル */
.top-bar {
    background-color: #dce0e8;
    color: #101516;
    padding: 10px 0;
    top: 0px;
    position: static;
    z-index: 9999;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Added padding for small screens */
}

.top-bar .logo {
    font-size: 24px;
    flex-shrink: 0; /* Prevents the logo from shrinking */
}

.top-bar .logo img {
    height: auto; /* Adjusts height automatically */
    max-height: 60px; /* Maximum height for the logo */
}

.top-bar nav ul {
    list-style: none;
    display: flex;
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    align-items: center; /* Aligns items vertically */
}

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

.top-bar nav ul li a {
    color: #101516;
    text-decoration: none;
    font-size: 1rem; /* Adjust font size */
}

/* Responsive Design Adjustments */
@media only screen and (max-width: 768px) {
    .top-bar {
	position: static;
    }

    .top-bar .container {
        flex-direction: column; /* Stack logo and nav vertically on small screens */
        align-items: flex-start;
    }

    .top-bar nav {
	margin: 0 auto;
    }

    .top-bar nav ul {
        flex-direction: column; /* Stack nav items vertically */
        margin-top: 10px; /* Adds some space between logo and nav items */
    }

    .top-bar nav ul li {
        margin-right: 0; /* Remove horizontal margin */
        margin-bottom: 10px; /* Adds vertical space between items */
    }
}

/* Further adjustments for very small screens */
@media only screen and (max-width: 480px) {
    .top-bar .logo img {
        max-width: 80%; /* Reduces logo size for very small screens */
        margin: 0 auto; /* Centers logo */
    }

    .top-bar nav ul li a {
        font-size: 0.9rem; /* Smaller font size for better readability */
    }
}
/* スライドショーのスタイル */
.slideshow {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slideshow-container {
    display: flex;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
}
.first-slide {
    position: relative;
}

.first-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 21, 22, 0.5); /* 透かしの色 */
    z-index: 1;
}

.first-slide img {
    position: relative;
    z-index: -1; /* 画像を透かし層の下に配置 */
}

.first-slide p {
    position: absolute;
    z-index: 2; /* テキストを透かし層より前面に配置 */
    top: 50%;
    left: 50%;
    font-size: 2rem;
    font-weight: bold;
    color: #d93733;
    transform: translate(-50%, -50%);
    padding: auto;
    margin: 0;
    text-align: center;
}


.slide-controls {
    text-align: center;
    padding: 20px 0;
    background: #dce0e8
}

.prev, .next {
    cursor: pointer;
    padding: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    margin: 0 10px;
}

.prev:hover, .next:hover {
    background-color: #555;
}

/* Responsive Design Adjustments */
@media only screen and (max-width: 768px) {
    .slide p {
        font-size: 1rem; /* Smaller font size for smaller devices */
    }

    .prev, .next {
        padding: 20px; /* Larger buttons for easier touch */
    }
}

@media only screen and (max-width: 480px) {
    .slide p {
        font-size: 0.8rem; /* Even smaller font size for mobile devices */
    }
}

/* 会社概要セクションのスタイル */
.company {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.company h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.company-info p {
    font-size: 16px;
    margin-bottom: 15px;
}

.company-info ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.company-info li {
    font-size: 16px;
}
.company-table {
    width: 100%; /* Full-width to utilize space */
    border-collapse: collapse; /* Ensures clean table design */
    margin-top: 20px; /* Space from the preceding content */
    margin-bottom: 20px; /* Space before the following content */
}

.company-table th, .company-table td {
    text-align: left; /* Align text to the left */
    padding: 8px; /* Padding for cell spacing */
    border-bottom: 1px solid #ddd; /* Horizontal line for separation */
}

.company-table th {
    background-color: #f2f2f2; /* Slightly different background for header */
    font-weight: bold; /* Bold font for header */
}

.company-table td {
    background-color: #ffffff; /* White background for cells */
}


.Taro-content {
    display: flex;
    align-items: center; /* 中央揃え */
    justify-content: center;
    flex-wrap: wrap; /* 画面が狭い時に要素を折り返す */
}

.Taro-image {
    flex: 1; /* フレキシブルなサイズ調整 */
    max-width: 40%; /* 画像の最大幅を制限 */
    margin-right: 20px; /* 画像とテキストの間隔 */
    text-align: center;
}

.Taro-image img {
    width: 100%; /* 画像の幅をコンテナに合わせる */
    height: auto; /* 画像の高さを自動調整 */
    max-height: 400px;
    max-width: 341.862px;
}

.Taro-info {
    flex: 1; /* フレキシブルなサイズ調整 */
    max-width: 60%; /* テキストの最大幅を制限 */
}

/* スモールスクリーン用の調整 */
@media (max-width: 550px) {
    .Taro-content {
	display: inline;
    }

    .Taro-image {
        max-width: 100%; /* 画像の幅を全幅に */
        margin-right: 0;
        margin-bottom: 20px; /* 画像とテキストの間隔 */
    }

    .Taro-info {
        max-width: 100%; /* テキストの幅を全幅に */
    }
}

/* ニュースセクションのスタイル */
.news {
    padding: 40px 0;
}

.news h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.news-article {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.news-article img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-article h3 {
    font-size: 20px;
    margin: 10px 0;
}

.news-article a {
    text-decoration: none;
    color: #333;
}

.news-article p {
    font-size: 16px;
}

/* ホバーエフェクト */
.news-article:hover {
    border-color: #555;
}

/* お問い合わせリンクのスタイル */
.contact-link {
    text-align: center;
    margin: 20px 0;
}

.contact-link a {
    background-color: #101516;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* フッターのスタイル */
footer {
    background-color: #d93733;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
