/* === 全体リセット === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
  scroll-behavior: smooth;
}

/* === ヘッダー === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.logo img {
  height: 28px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 18px;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    border: 1px solid #eee;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* === Hero === */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgba(30, 136, 229, 0.6),
    rgba(66, 165, 245, 0.4)
  );
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 90%;
  text-align: center;
  animation: fadeInUp 1.2s ease both;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero h1 br { display: none; }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero h1 br { display: inline; }
  .hero { height: 85vh; }
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* === ボタン === */
.btn {
  display: inline-block;
  background: #42a5f5;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(66,165,245,0.3);
  transition: all 0.25s ease;
}

.btn:hover {
  background: #1e88e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,136,229,0.4);
}

/* === フェードアニメーション === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === セクション共通 === */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 1.2s ease both;
  color: #222; /* ← 文字色統一 */
}

.section img {
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* === タイトル === */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

.section-title span {
  font-size: 0.9rem;
  color: #555;
}

.section-title::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #555;
  margin-top: 8px;
  border-radius: 2px;
}

/* === WORKS / ABOUT / CONTACT 背景（元の青グラデに戻す） === */
#works {
  background: linear-gradient(to bottom, #bbdefb 0%, #64b5f6 100%);
  border-top: 1px solid #64b5f6;
  border-bottom: 1px solid #42a5f5;
}

#about {
  background: linear-gradient(to bottom, #64b5f6 0%, #1e88e5 100%);
  border-top: 1px solid #42a5f5;
  border-bottom: 1px solid #1976d2;
  color: #222; /* ← 白文字→濃いグレー */
}

#about .section-title span { color: #555; }

#contact {
  background: linear-gradient(to bottom, #1e88e5 0%, #1565c0 100%);
  border-top: 1px solid #1976d2;
  border-bottom: 1px solid #0d47a1;
  color: #222; /* ← 白文字→濃いグレー */
}

#contact a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

#contact .section-title span { color: #555; }

/* === フッター === */
.footer {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #444;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}
