body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background: linear-gradient(to right, #000428, #004e92);
  color: #fff;
}

/* 入力フォームのズーム防止対策 */
input, textarea, button {
  font-size: 16px;
}

/* ローディング */
#loader {
  position: fixed;
  inset: 0;
  background-color: #000428;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.draw-text {
  width: 80%;
  max-width: 600px;
  height: 100px;
}

.draw-text text {
  font-family: 'Arial', sans-serif;
  font-size: 48px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.5s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: block;
  user-select: none;
}

.menu-toggle.active::before {
  content: "×";
}

.menu-toggle::before {
  content: "☰";
}

nav {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  padding: 10px 20px;
}

nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

nav.active {
  display: block;
}

@media (min-width: 768px) {
  nav {
    position: static;
    display: flex !important;
    gap: 20px;
    background: none;
    padding: 0;
  }

  nav a {
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}

.catch {
  text-align: center;
  margin: 40px 20px 20px;
  font-size: 1.6rem;
  font-weight: bold;
}

.intro, .company, .contact, .news {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 60px 0 20px;
  font-weight: bold;
  scroll-margin-top: 80px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto 60px;
  max-width: 1200px;
  padding: 0 20px;
}

.service {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.service.visible {
  opacity: 1;
  transform: translateY(0);
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: none;
  border-radius: 5px;
}

.contact form {
  margin-top: 20px;
}

.contact button {
  margin-top: 10px;
  padding: 10px 20px;
  font-weight: bold;
  background-color: #0077ff;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #005fcc;
}

#form-success {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#form-success .box {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.5);
}