body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #f5f5f5;
  background-color: #000;
}

/* ==== Header ==== */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #e60000;
  transition: background-color 0.3s ease;
}

.logo img {
  height: 75px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
  padding-bottom: 0.2rem;
}

nav a:hover {
  color: #e60000;
}

/* ==== Hero Section ==== */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.hero img {
  width: calc(100% - 120px);
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ==== About Section ==== */
.about,
.portfolio,
.contact {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about p {
  font-size: 0.95rem;
  line-height: 1.3;
}

.about a.company-link {
  color: #e60000;
  text-decoration: none;
  font-weight: bold;
}

.about a.company-link:hover {
  text-decoration: underline;
}

/* ==== Gallery ==== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s;
}

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

/* ==== Contact Form ==== */
form {
  display: grid;
  gap: 0.75rem;
  max-width: 400px;
  margin: auto;
}

input,
textarea,
button {
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #111;
  color: #f5f5f5;
  width: 100%;
}

textarea {
  resize: vertical;
}

button {
  background-color: #e60000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ff3333;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #000;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.9rem;
}
/* ====== レスポンシブデザイン ====== */
@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* ← ロゴとナビを下揃え */
    padding: 0.5rem 1rem;
    flex-direction: row;
  }

  .logo img {
    height: 50px;
    width: auto;
    display: block;
  }

  nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end; /* ← ナビ項目を下に揃える */
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1.8rem; /* ← 間隔を広げた（1.2 → 1.8rem） */
    list-style: none;
    margin: 0;
    padding: 0;
  }

  nav a {
    font-size: 0.8rem;
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 500;
    letter-spacing: 0.04em; /* 少しだけ広めに */
  }

  nav a:hover {
    color: #e60000;
  }

  .hero img {
    width: 100%;
    border-radius: 0;
  }

  .about, .portfolio, .contact {
    padding: 2rem 1rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}


@media (max-width: 480px) {
nav ul {
gap: 0.3rem;
}


.gallery {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}


.about, .portfolio, .contact {
padding: 1.5rem 0.8rem;
}
}
