/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #1a1a2e;
  --border-color: #e1e8ed;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 20px auto 0;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4fc3f7 0%, #1976d2 100%);
  position: relative;
  padding: 100px 20px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.9;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 8px;
  animation: fadeInUp 1s ease;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 2;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
  display: inline-block;
  padding: 15px 50px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  opacity: 0.7;
}

.hero-scroll span {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: white;
  margin: 10px auto 0;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }

  50% {
    transform: translateY(20px);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Section */
.service {
  padding: 100px 20px;
  background: var(--bg-gray);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Profile Section */
.profile {
  padding: 100px 20px;
  background: white;
}

.profile-content {
  max-width: 900px;
  margin: 0 auto;
}

.profile-info {
  background: var(--bg-gray);
  padding: 50px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.profile-position {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 5px;
}

.profile-location {
  color: var(--text-light);
  margin-bottom: 30px;
}

.profile-description {
  margin-bottom: 40px;
}

.profile-description p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.profile-certifications h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.profile-certifications ul {
  list-style: none;
}

.profile-certifications li {
  padding: 10px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.profile-certifications li:last-child {
  border-bottom: none;
}

.profile-certifications i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* Skills Section */
.skills {
  padding: 100px 20px;
  background: var(--bg-gray);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-category-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category-title i {
  color: var(--secondary-color);
}

.skill-list {
  color: var(--text-light);
  line-height: 1.8;
}

/* Works Section */
.works {
  padding: 100px 20px;
  background: white;
}

.works-content {
  max-width: 1000px;
  margin: 0 auto;
}

.work-category {
  margin-bottom: 50px;
}

.work-category:last-child {
  margin-bottom: 0;
}

.work-category-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--secondary-color);
  font-weight: 600;
}

.work-item {
  background: var(--bg-gray);
  padding: 25px 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.work-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.work-title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.work-title-simple {
  font-size: 1.1rem;
  color: var(--text-color);
}

.work-tech {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 100px 20px;
  background: var(--bg-gray);
}

.contact-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 50px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.required {
  color: var(--accent-color);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-message {
  max-width: 700px;
  margin: 20px auto 0;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-description br {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .profile-info {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 30px 20px;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-logo {
    font-size: 1.5rem;
  }
}