/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

h1, h2, h3, h4, .header-logo, .btn, .tag, .stack-label {
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

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

/* ===== Header ===== */
.header {
  background: #4a6a85;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo {
  font-family: "Audiowide", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 32px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  background: url('images/hero-bg.png') center center / cover no-repeat;
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #333;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #5a7d9a;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== About ===== */
.about {
  background: #fff;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 16px;
  color: #555;
}

/* ===== Services ===== */
.services {
  background: #f0f4f7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: #fff;
  border: 1px solid #e0e6eb;
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 2rem;
  color: #5a7d9a;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* ===== Profile ===== */
.profile {
  background: #fff;
}

.profile-content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-photo {
  flex-shrink: 0;
}

.profile-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.profile-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.profile-stack h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.stack-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.stack-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  min-width: 120px;
  flex-shrink: 0;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: #e8eef2;
  color: #5a7d9a;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== Contact ===== */
.contact {
  background: #3a3a3a;
  text-align: center;
}

.contact .section-title {
  color: #fff;
}

.contact > .container > p {
  color: #aaa;
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: #5a7d9a;
  color: #fff;
  border: 1px solid #5a7d9a;
}

.btn-primary:hover {
  background: #4a6a85;
  border-color: #4a6a85;
}

.contact .btn-primary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.contact .btn-primary:hover {
  background: #fff;
  color: #3a3a3a;
}

.btn-outline {
  background: transparent;
  color: #5a7d9a;
  border: 1px solid #5a7d9a;
}

.btn-outline:hover {
  background: #5a7d9a;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #333;
  color: #999;
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* ===== AI Note ===== */
.ai-note {
  background: #e8eef2;
  text-align: center;
  padding: 16px 0;
}

.ai-note p {
  font-size: 0.8rem;
  color: #5a7d9a;
}

/* ===== Scroll Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .sp-only {
    display: inline;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-nav a {
    margin-left: 16px;
    font-size: 0.8rem;
  }

  .profile-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .stack-group {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .stack-label {
    min-width: auto;
  }

  .stack-tags {
    justify-content: center;
  }
}
