/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;

  }

  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
  
/* Banner section */
.banner {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust the height */
    overflow: hidden;
    color: white; /* Text color */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  /* Slideshow background animation */
  .banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    animation: slideshow 12s infinite;
  }
  
  /* Slideshow keyframes */
  @keyframes slideshow {
    0% {
      background-image: url('/image/product.png');
    }
    33% {
      background-image: url('/image/image2.png');
    }
    66% {
      background-image: url('/image/image3.jpg');
    }
    86%{
      background-image: url('/image/background2.png');
    }
    100% {
      background-image: url('/image/image4.png');
    }
  }
  
  /* Text Styling */
  .banner-text h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow:0 4px 8px rgba(0, 0, 0, 2);
  }
  
  .banner-text p {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 5px 0;
    text-shadow: #222 2px 2px 3px, #222 -2px 2px 3px, #222 2px -2px 3px, #222 -2px -2px 3px;
  }
  
  
  /* Content Section */
  main {
    padding: 40px 20px;
    text-align: center;
  }
  
  .content-heading {
    color: #78c043;
    font-size: 40px;
    margin-bottom: 15px;
    text-decoration: underline;
    text-underline-offset: 12px;
  }
  
  .content-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
  }

/* Image Links Section */
/* Container for all image links */
.image-links {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    gap: 10px; /* Spacing between sections */
  }
  
  /* Individual link sections */
  .image-link {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    height: 160px; /* Fixed height for consistency */
  }
  
  /* Clickable link area */
  .image-link a {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  
  /* Text area */
  .text-section {
    background-color: #8bc34a; /* Green background */
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    width: 30%; /* Controls the size of the text section */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Prevent text wrapping */
  }
  
  /* Image styling */
  .image-link img {
    width: 70%; /* Remaining space for the image */
    height: 100%;
    object-fit: cover; /* Ensures the image fits perfectly without distortion */
  }
  
  /* News Section */
  .news-section {
    padding: 20px;
    background-color: #f4f4f4;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .news-section h2 {
    color: #4caf50;
    border-bottom: 2px solid #a4d65e;
    padding-bottom: 10px;
  }
  
  .news-scrollable {
    max-height: 120px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
  }
  
  .news-item {
    margin-bottom: 10px;
  }
  
  .news-item span {
    color: #666;
    font-size: 14px;
  }
  
  .news-item a {
    color: #4caf50;
    text-decoration: none;
  }
  
  .news-item a:hover {
    text-decoration: underline;
  }  

/* Responsive Design */

/* Laptop (1024px and below) */
@media (max-width: 1025px) {
  .header-container {
    flex-direction: row;
    padding: 10px 15px;
  }

  .banner {
    height: 290px;
  }

  .image-links {
    flex-direction: column;
    gap: 15px;
  }

  .contact-section {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

}

/* Tablet (768px and below) */
@media (max-width: 769px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .banner {
    height: 250px;
  }

  .image-links {
    flex-direction: column;
    gap: 20px;
  }

  .content-paragraph {
    font-size: 14px;
  }
}

/* Mobile L (425px and below) */
@media (max-width: 426px) {
  .header-container {
    padding: 10px;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
  }

  .banner {
    height: 190px;
  }

  .content-heading{
    font-size: larger;
  }

  .image-links {
    gap: 10px;
  }

  .image-link {
    width: 100%;
    height: 120px;
    align-items: center;
    justify-content: center;
  }

  .image-link .text-section{
    font-size: large;
  }

  .content-paragraph {
    font-size: 13px;
    padding: 10px;
  }

  .contact-section {
    padding: 10px;
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile M (375px and below) */
@media (max-width: 376px) {
  .header-container {
    padding: 5px;
  }

  .company-name h1{
    font-size: medium;
  }

  .navbar {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
  }

  .banner {
    height: 180px;
  }

  .content-heading{
    font-size: 18px;
  }

  .content-paragraph {
    font-size: 12px;
  }

  .image-link {
    width: 100%;
  }

  .contact-section {
    padding: 5px;
  }
}

/* Mobile S (320px and below) */
@media (max-width: 321px) {

  .company-name h1{
    font-size: 11px;
  }

  .company-name p{
    font-size: 9px;
  }

  .navbar {
    gap: 5px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .navbar a{
    font-size: 10px;
  }

  .banner {
    height: 190px;
  }

  .content-heading{
    font-size: 15px;
  }

  .content-paragraph {
    font-size: 11px;
  }

  .image-link {
    width: 100%;
  }

  .image-link .text-section{
    font-size: medium;
  }

  .contact-section {
    font-size: 12px;
  }
}
  