/* --- ベース設定 --- */
:root {
  --primary-color: #333;
  --accent-color: #007bff;
  --bg-light: #f9f9f9;
  --bg-dark: #222;
  --text-color: #444;
  --white: #fff;
  --spacing: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- レイアウトユーティリティ --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--spacing) 0;
}

.bg-light {
  background-color: var(--bg-light);
}
.bg-dark {
  background-color: var(--bg-dark);
}
.text-white {
  color: var(--white);
}
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* --- ヘッダー --- */
.header {
  background: var(--white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav ul {
  display: flex;
  gap: 20px;
}

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

/* --- ヒーローセクション --- */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 10px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.8;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bg-dark);
}

/* --- Skills グリッド --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.skill-card h3 {
  margin-bottom: 10px;
}

/* --- Works グリッド --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.work-item {
  transition: transform 0.3s;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-image {
  height: 200px;
  background-color: #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin-bottom: 15px;
}

.text-link {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.9rem;
}

/* --- コンタクト & フッター --- */
.contact-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
}

/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .header .container {
    flex-direction: column;
    gap: 15px;
  }
}
