/* style.css - モダンミニマル・レスポンシブデザイン */
:root {
  --main-blue: #2563eb;
  --main-blue-dark: #1d4ed8;
  --main-blue-light: #3b82f6;
  --light-blue: #eff6ff;
  --accent-blue: #dbeafe;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #fff;
  --card-bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

#nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--main-blue);
}

.nav-cta {
  background: var(--main-blue);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--main-blue-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Sections */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--main-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2rem 0;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--main-blue);
  background: var(--light-blue);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem 0;
  line-height: 1.8;
}

.hero-visual {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-blue) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.6;
  animation: blob 15s infinite alternate;
}

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60% 60% 40% / 50% 60% 40% 50%;
  }
}

/* CTA Buttons */
.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--main-blue);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.btn:hover {
  background: var(--main-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.secondary {
  background: transparent;
  color: var(--main-blue);
  border-color: var(--main-blue);
}

.btn.secondary:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn svg {
  flex-shrink: 0;
}

/* Card List */
.card-list {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.works-grid {
  grid-template-columns: repeat(2, 1fr);
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--main-blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Service Cards */
.service-card {
  display: flex;
  flex-direction: column;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--light-blue);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--main-blue);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Work Cards */
.work-card {
  position: relative;
}

.work-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-blue) 0%, var(--main-blue-light) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.work-meta {
  margin-bottom: 1rem;
}

.work-scope {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--main-blue);
  background: var(--light-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--bg);
  border: 2px solid var(--main-blue);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-blue);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tech-category h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tech-badge:hover {
  border-color: var(--main-blue);
  color: var(--main-blue);
}

/* About Section */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-image {
  flex-shrink: 0;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-blue);
  box-shadow: var(--shadow-md);
}

.about-text {
  flex: 1;
}

.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.about-points li:last-child {
  border-bottom: none;
}

.about-points svg {
  color: var(--main-blue);
  flex-shrink: 0;
}

/* Career Timeline */
.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.career-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.career-item:hover {
  background: var(--light-blue);
}

.career-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--main-blue);
  min-width: 120px;
}

.career-title {
  font-weight: 500;
}

/* Blog Cards */
.blog-card {
  text-align: center;
}

.blog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card h3 {
  color: var(--text-muted);
}

/* Contact Section */
#contact {
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--bg) 100%);
  text-align: center;
  max-width: none;
  padding: 6rem 1.5rem;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.5rem 0 1rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-email a {
  color: var(--main-blue);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--text);
  color: #fff;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.sns {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: all var(--transition);
}

.sns a:hover {
  background: var(--main-blue);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom small {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid,
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .process-timeline::before {
    display: none;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-points li {
    justify-content: center;
  }

  .career-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .works-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  #hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .sp-only {
    display: inline;
  }
}

@media (min-width: 601px) {
  .sp-only {
    display: none;
  }
}

/* Fade-in animation */
.pre-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fadein {
  opacity: 1;
  transform: translateY(0);
}

/* Google Form iframe */
iframe {
  width: 100%;
  min-height: 480px;
  border: none;
  border-radius: var(--radius);
  background: #fff;
}
