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

:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --dark: #1e1b4b;
  --text: #374151;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ナビゲーション */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ヒーローセクション */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  padding: 2rem;
}

.greeting {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 2.5rem;
}

.clock {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 0.75rem 2rem;
  display: inline-block;
}

/* セクション共通 */
.section {
  padding: 5rem 2rem;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 3rem;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section > p {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79,70,229,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

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

/* ダークセクション */
.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h2 {
  color: var(--white);
}

.tech-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tech-name {
  width: 120px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

.bar-wrapper {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), #a5b4fc);
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* コンタクト */
.contact-form {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}

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

.contact-form button {
  padding: 0.875rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--primary-light);
}

.form-result {
  text-align: center;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  min-height: 1.5rem;
}

/* フッター */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
