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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #7c3aed;
  --secondary-light: #f5f3ff;
  --accent: #06b6d4;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
}
.btn--lg { padding: 16px 40px; font-size: 16px; border-radius: 10px; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}
.logo-accent { color: var(--primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links li a:hover { color: var(--primary); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 0; }
.nav__mobile li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav__mobile.open { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(37,99,235,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(124,58,237,0.2) 0%, transparent 70%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37,99,235,0.3);
  border: 1px solid rgba(37,99,235,0.5);
  border-radius: 100px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__title .accent {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: scroll-dot 2s ease infinite;
}
@keyframes scroll-dot {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--primary);
  padding: 20px 0;
}
.features-bar__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.features-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.features-bar__icon { font-size: 20px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section--gray { background: var(--bg-gray); }
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section__title--left { text-align: left; }
.section__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card--primary .service-card__icon { color: var(--primary); }
.service-card--secondary .service-card__icon { color: var(--secondary); }
.service-card--tertiary .service-card__icon { color: #0891b2; }
.service-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.service-card--secondary .service-card__list li::before { background: var(--secondary); }
.service-card--tertiary .service-card__list li::before { background: #0891b2; }

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.about__visual {
  display: flex;
  justify-content: center;
}
.about__graphic {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: spin linear infinite;
}
.about__ring--1 {
  width: 280px; height: 280px;
  border-color: rgba(37,99,235,0.15);
  animation-duration: 20s;
}
.about__ring--2 {
  width: 200px; height: 200px;
  border-color: rgba(37,99,235,0.25);
  border-style: dashed;
  animation-duration: 14s;
  animation-direction: reverse;
}
.about__ring--3 {
  width: 130px; height: 130px;
  border-color: rgba(124,58,237,0.3);
  animation-duration: 8s;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.about__center {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
}
.about__text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.85;
}
.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat {}
.stat__num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__num small {
  font-size: 18px;
  font-weight: 500;
}
.stat__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== WORKS ===== */
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.work-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.work-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.work-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.work-card p strong { color: var(--text); }
.work-card__result {
  padding: 12px 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.work-card__result b { color: var(--primary); }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: 96px 0;
  text-align: center;
}
.cta__inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.cta__inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ===== CONTACT ===== */
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.required { color: #ef4444; }
.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form__group input.error,
.form__group textarea.error {
  border-color: #ef4444;
}
.form__error {
  font-size: 12px;
  color: #ef4444;
  min-height: 16px;
}
.form__submit { text-align: center; }
.form__success {
  display: none;
  padding: 20px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #15803d;
  text-align: center;
  font-weight: 500;
}
.form__success.visible { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer__brand .nav__logo { color: #fff; margin-bottom: 12px; display: inline-block; }
.footer__brand p { font-size: 13px; line-height: 1.75; }
.footer__links {
  display: flex;
  gap: 64px;
}
.footer__links h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}
.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===== UTILITIES ===== */
.pc-only { display: inline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__visual { order: -1; }
  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer__links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta { padding: 64px 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .features-bar__inner { gap: 24px; }
  .pc-only { display: none; }
  .about__graphic { width: 220px; height: 220px; }
  .about__ring--1 { width: 220px; height: 220px; }
  .about__ring--2 { width: 156px; height: 156px; }
  .about__ring--3 { width: 100px; height: 100px; }
  .about__center { width: 64px; height: 64px; font-size: 18px; }
  .about__stats { gap: 24px; }
}
