/*
Theme Name: Appma
Description: Appma official website theme
Version: 1.0
*/

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

:root {
  --color-bg: #fff;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --color-border: #d2d2d7;
  --color-surface: #f5f5f7;
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── Header ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 1px 0 var(--color-border); }

.logo {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

nav { display: flex; gap: 32px; align-items: center; }
nav a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
nav a:hover { color: var(--color-muted); }
nav .cta {
  background: var(--color-text);
  color: #fff;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 400;
  transition: opacity 0.2s;
}
nav .cta:hover { color: #fff; opacity: 0.8; }

/* ─── Sections ─── */
section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.35;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}
.hero-blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(180,180,220,0.35) 0%, transparent 70%);
  top: -150px; right: -150px;
  animation: blobMove1 12s ease-in-out infinite;
}
.hero-blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,220,240,0.3) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  animation: blobMove2 15s ease-in-out infinite;
}
.hero-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(220,200,240,0.25) 0%, transparent 70%);
  top: 30%; right: 25%;
  animation: blobMove3 10s ease-in-out infinite;
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 16px;
}
.hero-title-ja {
  font-family: var(--font-ja);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 40px;
}
.hero-description {
  font-size: 17px;
  font-weight: 300;
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: 56px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--color-text);
  color: #fff;
  padding: 14px 32px;
  border-radius: 980px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.8; color: #fff; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-text::after { content: '→'; }
.btn-text:hover { opacity: 0.6; }

/* ─── Stats ─── */
.stats { background: var(--color-surface); padding: 0; max-width: 100%; margin: 0; }
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
}
.stat { background: var(--color-surface); padding: 48px 40px; text-align: center; }
.stat-number {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--color-muted); font-weight: 300; }

/* ─── Section Labels ─── */
.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-ja);
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 48px;
}
.service-card {
  background: var(--color-bg);
  padding: 48px;
  transition: background 0.25s, box-shadow 0.25s;
}
.service-card:hover { background: var(--color-surface); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.service-card-number {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.service-card-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.service-card-title-ja { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.service-card-body { font-size: 15px; color: var(--color-muted); line-height: 1.8; }

/* ─── PoC ─── */
.poc-section { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.poc-lead {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin-bottom: 64px;
}
.poc-lead em {
  font-style: normal;
  font-weight: 500;
  border-bottom: 2px solid var(--color-text);
}
.poc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.poc-card { background: var(--color-bg); padding: 40px 36px; }
.poc-card-num { font-size: 11px; color: var(--color-muted); letter-spacing: 0.1em; margin-bottom: 24px; }
.poc-card-title { font-size: 18px; font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
.poc-card-body { font-size: 14px; color: var(--color-muted); line-height: 1.9; font-weight: 300; }
.poc-quote {
  margin-top: 80px;
  padding: 56px 48px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-text);
}
.poc-quote p { font-size: clamp(18px, 2.5vw, 26px); font-weight: 300; line-height: 1.9; max-width: 700px; }
.poc-quote cite { display: block; margin-top: 24px; font-size: 13px; color: var(--color-muted); font-style: normal; }

/* ─── Why ─── */
.why { background: var(--color-text); color: #fff; max-width: 100%; margin: 0; padding: 0; }
.why-inner { max-width: 1200px; margin: 0 auto; padding: 120px 48px; }
.why .section-label { color: rgba(255,255,255,0.4); }
.why .section-title { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.why-item-icon { font-family: var(--font-en); font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 32px; }
.why-item-title { font-size: 18px; font-weight: 500; margin-bottom: 12px; color: #fff; }
.why-item-body { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }

/* ─── Process ─── */
.process-list { margin-top: 64px; border-top: 1px solid var(--color-border); }
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 32px;
  transition: background 0.2s;
}
.process-item:hover { background: var(--color-surface); }
.process-step { font-family: var(--font-en); font-size: 13px; color: var(--color-muted); }
.process-title { font-size: 18px; font-weight: 400; }
.process-title span { display: block; font-size: 13px; color: var(--color-muted); font-weight: 300; margin-top: 4px; }
.process-duration { font-family: var(--font-en); font-size: 13px; color: var(--color-muted); text-align: right; }

/* ─── CTA ─── */
.cta-section { text-align: center; background: var(--color-surface); max-width: 100%; margin: 0; padding: 0; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 120px 48px; }
.cta-title {
  font-family: var(--font-ja);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 24px;
}
.cta-subtitle { font-size: 17px; color: var(--color-muted); margin-bottom: 48px; font-weight: 300; }

/* ─── Contact ─── */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label { font-size: 13px; color: var(--color-muted); }
.contact-field input,
.contact-field textarea {
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-ja);
  font-weight: 300;
  outline: none;
  background: transparent;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-field input:focus,
.contact-field textarea:focus { border-bottom-color: var(--color-text); }
.contact-field textarea { resize: none; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-family: var(--font-en); font-size: 13px; color: var(--color-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--color-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--color-text); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blobMove1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-40px,30px) scale(1.05); }
  66%     { transform: translate(20px,-20px) scale(0.95); }
}
@keyframes blobMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-40px) scale(1.08); }
  66%     { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes blobMove3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-30px,30px) scale(1.1); }
}

.hero-eyebrow  { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-title    { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero-title-ja { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.hero-description { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-actions  { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s both; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  header { padding: 0 24px; }
  nav a:not(.cta) { display: none; }
  section { padding: 80px 24px; }
  .hero-title { font-size: 42px; }
  .stats-inner { grid-template-columns: 1fr; padding: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .poc-section { padding: 80px 24px; }
  .poc-cards { grid-template-columns: 1fr; }
  .poc-quote { padding: 36px 24px; }
  .process-item { grid-template-columns: 48px 1fr; }
  .process-duration { display: none; }
  footer { flex-direction: column; gap: 16px; padding: 32px 24px; text-align: center; }
}
