/* ==========================================
   Reset & Base Styles
   ========================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #4a4a4a;
}

a:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* ==========================================
   Layout
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 6rem 0;
  z-index: 10;
}

/* ==========================================
   Parallax Scene
   ========================================== */

#parallax-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.geometric-object {
  position: absolute;
  will-change: transform;
  color: #d1d5db;
  opacity: 0.08;
}

/* Text Objects (Slash and Dot) */
.text-object {
  position: absolute;
  will-change: transform;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #9ca3af;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Color intensity variations */
.text-object.color-light {
  color: #d1d5db;
  opacity: 0.12;
}

.text-object.color-medium {
  color: #9ca3af;
  opacity: 0.16;
}

.text-object.color-dark {
  color: #6b7280;
  opacity: 0.22;
}

/* Size variations for text objects (4 levels) */

/* Extra Small (minimum size) */
.text-object.size-xs.slash {
  font-size: clamp(5rem, 15vw, 20rem);
}

.text-object.size-xs.dot {
  font-size: clamp(4rem, 12vw, 16rem);
}

/* Small (a bit larger) */
.text-object.size-sm.slash {
  font-size: clamp(5rem, 18vw, 22rem);
}

.text-object.size-sm.dot {
  font-size: clamp(4rem, 15vw, 18rem);
}

/* Medium (larger) */
.text-object.size-md.slash {
  font-size: clamp(8rem, 25vw, 32rem);
}

.text-object.size-md.dot {
  font-size: clamp(6.5rem, 20vw, 26rem);
}

/* Large (very large) */
.text-object.size-lg.slash {
  font-size: clamp(12rem, 35vw, 45rem);
}

.text-object.size-lg.dot {
  font-size: clamp(10rem, 30vw, 38rem);
}

@media (prefers-reduced-motion: reduce) {
  .geometric-object,
  .text-object {
    transform: none !important;
  }
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #111827;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #6b7280;
  max-width: 48rem;
  margin: 3rem auto 0;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

/* ==========================================
   Section Titles
   ========================================== */

.section-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
}

/* ==========================================
   Domains Section
   ========================================== */

.domains-section {
  /* background removed to allow parallax objects to show through */
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(100, 100, 100, 0.08);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card p {
  color: #6b7280;
  line-height: 1.7;
}

/* ==========================================
   Why Section
   ========================================== */

.why-section {
  /* background removed to allow parallax objects to show through */
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  background: rgba(100, 100, 100, 0.08);
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.value-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-item p {
  color: #6b7280;
  line-height: 1.7;
}

/* ==========================================
   Message Section
   ========================================== */

.message-section {
  /* background removed to allow parallax objects to show through */
}

.message-box {
  background: rgba(100, 100, 100, 0.08);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.message-name {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.message-text {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.9;
  color: #374151;
}

/* ==========================================
   Works Section
   ========================================== */

.works-section {
  /* background removed to allow parallax objects to show through */
}

.work-card {
  background: rgba(100, 100, 100, 0.08);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.work-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.work-card p {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================
   Company Section
   ========================================== */

.company-section {
  /* background removed to allow parallax objects to show through */
}

.company-box {
  background: rgba(100, 100, 100, 0.08);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row dt {
  font-weight: 700;
  color: #111827;
}

.info-row dd {
  color: #374151;
}

@media (max-width: 768px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-section {
  /* background removed to allow parallax objects to show through */
}

.contact-form {
  background: rgba(100, 100, 100, 0.08);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.375rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: #374151;
}

.submit-button:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

.submit-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
  z-index: 10;
}

.footer p {
  font-size: 0.9375rem;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================
   Responsive
   ========================================== */

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

  .section-title {
    margin-bottom: 3rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

