/* --- CSS Reset (Simple) --- */
body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
}

/* --- Fonts --- */
.raleway {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.raleway-bold {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
.site-header .logo {
  height: 80%;
}
.site-header .menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #555;
  transition: color 0.3s ease;
}
.site-header .menu-toggle:hover {
  color: #d9000d;
}
.site-header nav {
  display: block;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-header nav.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.site-header nav ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
  flex-direction: row;
}
.site-header nav ul li {
  height: 100%;
}
.site-header nav ul li a {
  display: flex;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  align-items: center;
}
.site-header nav ul li a:hover {
  color: #d9000d;
}

/* --- Hero Section (Main Visual) --- */
.hero {
  height: 75vh;
  max-height: 700px;
  background-image: url("./hero.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  color: white;
  text-align: center;
}

/* --- General Styles --- */
.container {
  width: 100%;
  padding: 60px;
  box-sizing: border-box;
}
.section-title {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #222;
  letter-spacing: 1px;
}

/* --- Service Section --- */
#services {
  background-color: #f9f9f9;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
  gap: 30px;
}
.service-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item::before {
  content: "";
  display: block;
  background-position: 50%;
  background-size: cover;
  width: 100%;
  height: 220px;
}
.service-item#service1::before {
  background-image: url("./section1.webp");
}
.service-item#service2::before {
  background-image: url("./section2.webp");
}
.service-item#service3::before {
  background-image: url("./section3.webp");
}
.service-item#service4::before {
  background-image: url("./section4.webp");
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.service-item-content {
  padding: 20px;
}
.service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #333;
}
.service-item h4 {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
  font-weight: 500;
}
.service-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6rem;
  margin-bottom: 1.4rem;
}

/* --- About Section --- */
#about {
  background-color: #fff;
}
.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}
.about-text {
  flex: 3;
  min-width: 300px;
}
.about-text h3 {
  font-size: 2rem;
}
.about-text h4 {
  margin-bottom: 20px;
}
.about-text .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 25px;
}
.about-text p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #444;
}
.about-image-container {
  flex: 2;
  min-width: 250px;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
.about-image-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Skills & Languages Sections --- */
.skills-languages-block {
  margin-top: 40px;
}
.skills-languages-block h4 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  display: inline-block;
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background-color: #4a4a4a;
  color: #fff;
  padding: 6px 15px;
  font-size: 0.85rem;
  border-radius: 4px;
  font-weight: 500;
}
.link {
  text-decoration: underline;
}

/* --- Contact Section --- */
#contact {
  text-align: center;
  background-color: #f0f0f0;
}
#contact .section-title {
  margin-bottom: 20px;
}
#contact p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-block;
  background-color: #383838;
  color: #fff;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  min-width: 180px;
  text-align: center;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-btn:hover {
  background-color: #555;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #777;
  background-color: #fff;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  .site-header .menu-toggle {
    display: block;
  }
  .site-header nav {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  .site-header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .site-header nav ul li {
    width: 100%;
  }
  .site-header nav ul li a {
    display: block;
    padding: 20px 30px;
  }
  .container {
    padding: 40px 30px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .about-text {
    order: 2;
    text-align: center;
  }
  .about-image-container {
    order: 1;
    margin-bottom: 30px;
    max-width: 400px;
  }
  .skills-languages-block h4 {
    display: block;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
  }
  .tags-container {
    justify-content: center;
  }
  .contact-btn {
    width: 70%;
    margin-bottom: 10px;
  }
}
