/* Modernized CSS for Shinyo Enterprises using Bootstrap and Tailwind CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #F9FAFB;
  color: #4B5563;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Links */
a {
  color: #D7003A;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3B82F6;
}

/* Header */
#header .inner {
  background-color: #FEF3F2;
  padding: 1rem 0;
  border-bottom: 2px solid #D7003A;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
#mainNav {
  background-color: #FEF3F2;
}

#mainNav .panel {
  display: flex;
  justify-content: flex-end;
}

#mainNav ul {
  display: flex;
  list-style: none;
}

#mainNav ul li a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #4B5563;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#mainNav ul li a:hover,
#mainNav ul li.active a {
  background-color: #D7003A;
  color: #FFFFFF;
}

#mainNav ul li a span {
  font-size: 0.875rem;
  font-weight: 400;
}

/* Mobile Menu Toggle */
a#menu {
  display: none;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #D7003A;
  padding: 0.75rem;
  text-align: center;
}

/* Main Banner */
#mainBanner {
  position: relative;
  margin: 2rem 0;
  background-image: url('images/shiroinami.jpg');
  background-color: #1F2937;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slogan {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(31, 41, 55, 0.8);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  color: #FFFFFF;
}

.slogan-aligned {
  background: rgba(31, 41, 55, 0.8);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 6px;
  color: #FFFFFF;
}

.slogan h2,
.slogan-aligned h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.slogan h3,
.slogan-aligned h3 {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Grid Section */
.gridWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.grid {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.grid h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #D7003A;
  margin-bottom: 0.5rem;
}

.grid p.img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.grid_text {
  font-size: 0.875rem;
  margin: 0.5rem 0;
  color: #4B5563;
}

p.readmore a {
  display: inline-block;
  font-weight: 600;
  color: #3B82F6;
  transition: color 0.3s ease;
}

p.readmore a:hover {
  color: #D7003A;
}

/* Content Section */
section.content {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

h3.heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #D7003A;
  margin-bottom: 1rem;
}

section.content p {
  color: #4B5563;
}

section.content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

/* Footer */
#footer .inner {
  background-color: #1F2937;
  color: #4B5563;
  padding: 2rem 0;
  border-top: 3px solid #D7003A;
}

#footer .gridWrapper {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#footer .grid p {
  color: #4B5563;
  font-size: 0.875rem;
}

.tel strong {
  font-size: 1.25rem;
  color: #D7003A;
}

#footer .copyright {
  font-size: 0.75rem;
  opacity: 0.8;
  color: #4B5563;
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Fade Animations */
.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 960px) {
  #mainNav .panel {
    display: none;
  }

  a#menu {
    display: block;
  }

  a#menu.menuOpen + .panel {
    display: block;
  }

  #mainNav ul {
    flex-direction: column;
  }

  #mainNav ul li a {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
  }
}

@media (max-width: 768px) {
  .slogan h2,
  .slogan-aligned h2 {
    font-size: 1.5rem;
  }

  .slogan h3,
  .slogan-aligned h3 {
    font-size: 1rem;
  }

  .gridWrapper {
    grid-template-columns: 1fr;
  }

  #footer .gridWrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .slogan h2,
  .slogan-aligned h2 {
    font-size: 1.25rem;
  }

  .slogan h3,
  .slogan-aligned h3 {
    font-size: 0.875rem;
  }

  .alignleft {
    float: none;
    margin: 0 auto 1rem;
    display: block;
  }
}