:root {
  --primary: #0077b3;
  --primary-dark: #005a87;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --text-main: #2d3748;
  --text-sub: #718096;
  --accent: #e2e8f0;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Poppins", sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  background-color: var(--bg-white);
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: 0.3s;
}

.header-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(circle at top right, #f0f7ff, #ffffff);
}

.hero-tag {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.3;
  margin: 1.5rem 0;
}

.hero-subtitle {
  color: var(--text-sub);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); margin-left: 1rem; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 4rem; position: relative; }
.section-title::after { content: ''; display: block; width: 40px; height: 3px; background: var(--primary); margin: 15px auto; }

/* --- Cards --- */
.service-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card, .project-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  transition: 0.4s;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }

.project-category { color: var(--primary); font-size: 0.8rem; font-weight: 700; }

/* --- About --- */
.profile-card {
  display: flex;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
}

.profile-en { font-size: 1rem; color: var(--text-sub); font-weight: normal; margin-left: 10px; }

.skills span {
  display: inline-block;
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 0.85rem;
}

/* --- Footer --- */
.footer { padding: 80px 0 40px; text-align: center; border-top: 1px solid var(--accent); }
.contact-btn {
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.contact-btn:hover { border-bottom-color: var(--primary); }

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-nav { 
    display: none; 
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title { 
    font-size: 2rem;
    margin: 1rem 0;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 0.9rem 2rem;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-outline {
    margin-left: 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
  }

  .service-grid, .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card, .project-item {
    padding: 2rem 1.5rem;
  }

  .profile-card {
    padding: 2rem 1.5rem;
  }

  .skills span {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .contact-btn {
    font-size: 1.2rem;
    word-break: break-all;
  }
}