body {
  padding: 0;
  margin: 0;
  font-family: 'Noto Sans JP', Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ヘッダーアニメーションの追加 */
.header {
  display: flex;
  width: 100%;
  align-items: center;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
  box-sizing: border-box;
  animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
  0% {
      opacity: 0;
      transform: translateY(-20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.header a {
  margin-left: 3%;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #0066cc;
  transition: width 0.3s ease;
}

.header a:hover {
  color: #0066cc;
  transform: translateY(-2px);
}

.header a:hover::before {
  width: 100%;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: 5%;
  width: 200px;
  height: 100%;
}

.menu a {
  margin: 0 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  color: black;
  text-decoration: none;
  padding: 5px;
}

.menu a:hover, .menu a.active {
  color: #0066cc;
  transform: translateY(-2px);
}

.menu a::after, .menu a.active::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #0066cc;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.menu a:hover::after, .menu a.active::after {
  width: 100%;
}

.content {
  width: 100%;
  min-height: 500px;
}

/* ヒーロー部分のアニメーション追加 */
.hero {
  display: flex;
  width: 100%;
  height: 600px;
  background-color: #f5f5f5;
  background-image: url(../img/p0101_l.png);
  background-size: cover;
  background-position: center;
  filter: saturate(65%);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
      left: -100%;
  }
  20% {
      left: 100%;
  }
  100% {
      left: 100%;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.hero-text {
  margin: auto;
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  position: relative;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.3s;
}

@keyframes slideUp {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ドットをアニメーション化するために必要 */
.dot {
  color: #0066cc;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}

.about {
  width: 100%;
  padding: 80px 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.6s;
}

.about-card {
  width: 95%;
  max-width: 1200px;
  height: 400px;
  margin: 0 auto 60px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: cardAppear 0.8s ease forwards;
}

@keyframes cardAppear {
  0% {
      transform: translateY(20px);
      opacity: 0;
  }
  100% {
      transform: translateY(0);
      opacity: 1;
  }
}

.about-card:nth-child(1) {
  animation-delay: 0.8s;
}

.about-card:nth-child(2) {
  animation-delay: 1.0s;
}

.about-card:nth-child(3) {
  animation-delay: 1.2s;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.about-card h2 {
  color: #222;
  font-weight: 800;
  margin: 0;
  padding: 30px 40px 0;
  font-size: 2.2rem;
  position: relative;
}

.about-card h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 40px;
  width: 60px;
  height: 4px;
  background-color: #0066cc;
  transition: all 0.5s ease;
}

.about-card h2:hover::after {
  width: 240px;
}

.card-discription {
  width: 50%;
  padding: 20px 0;
}

.card-discription p {
  color: #444;
  padding: 20px 40px;
  font-size: 1.05rem;
  line-height: 2.2;
}

.card-image {
  width: 50%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  overflow: hidden;
  position: relative;
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.7s ease;
  z-index: 1;
}

.about-card:hover .card-image::before {
  left: 100%;
}

.footer {
  width: 100%;
  padding: 60px 0;
  background-color: #222;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Source Code Pro', monospace;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
  }
  
  .card-discription, .card-image {
    width: 100%;
  }
  
  .card-image {
    min-height: 300px;
    order: -1;
  }
  
  .hero-text {
    font-size: 2.5rem;
  }
}