/* 松田南々美 ポートフォリオ - スタイルシート */

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #FAFAFA;
  color: #333333;
}

/* Font classes */
.font-mincho {
  font-family: 'Shippori Mincho', serif;
}

/* Watermark styles */
.watermark {
  position: absolute;
  top: 2.5rem;
  font-size: 15rem;
  line-height: 1;
  font-family: 'Shippori Mincho', serif;
  color: #1a1a1a;
  opacity: 0.03;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .watermark {
    font-size: 25rem;
  }
}

.watermark-left {
  left: -2.5rem;
}

.watermark-right {
  right: -2.5rem;
}

.watermark-center {
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .watermark-left {
    left: 2.5rem;
  }
  .watermark-right {
    right: 2.5rem;
  }
}

/* Animation classes */
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero animation trigger */
.hero-content.loaded {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Selection styling */
::selection {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Button hover effects */
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.3);
}

/* Input focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Service card hover effects */
.group:hover .border-slate-200 {
  border-color: #94a3b8;
}

/* Smooth transitions */
a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* Loading animation for form submission */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #166534;
}

.toast.error {
  background: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .watermark {
    opacity: 0.02;
  }
  
  section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Print styles */
@media print {
  nav,
  .animate-bounce,
  .watermark {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
  }
}
