/* Ouchi Zukan Web Styles - Based on Original Design */

/* Font Configuration */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-weight: 500;
  color: #222;
}

.font-en {
  font-family: "Jaldi", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
}

/* Color Variables */
:root {
  --primary: #222222;
  --secondary: #159A8B;
  --gray-50: #F6F6F6;
}

/* Swiper Customizations */
.category-swiper .swiper-slide {
  width: auto !important;
}

@media (min-width: 1024px) {
  .hero-swiper .swiper-button-next:after,
  .hero-swiper .swiper-button-prev:after {
    display: none;
  }
  .hero-swiper .swiper-button-prev {
    left: calc(50% - 42.7vw - 12px);
  }
  .hero-swiper .swiper-button-next {
    right: calc(50% - 42.7vw - 12px);
  }
}

/* Hero Swiper Pagination */
.hero-swiper-wrapper .swiper-pagination {
  bottom: 4px;
}

.hero-swiper-wrapper .swiper-pagination-bullet {
  width: 3px !important;
  height: 3px !important;
  background: #d6d6d6;
  opacity: 1;
  margin: 0 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-swiper-wrapper .swiper-pagination-bullet-active {
  background: #000;
}

/* Custom utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hamburger Animation */
.hamburger-line {
  transition: all 0.3s ease;
}

/* Button Shadow Effects */
.shadow-button {
  position: relative;
}

.shadow-button::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid var(--primary);
  transition: all 0.1s ease;
  z-index: -1;
}

@media (min-width: 1024px) {
  .shadow-button::before {
    top: 7px;
    left: 7px;
  }
}

.shadow-button:hover {
  transform: translate(7px, 7px);
}

.shadow-button:active {
  transform: translate(7px, 7px);
}

/* Header Transitions */
#main-header {
  transition: all 0.3s ease;
}

#logo-img {
  transition: all 0.3s ease;
}

/* Card Hover Effects */
.work-card {
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.work-card img {
  transition: transform 0.3s ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 767px) {
  .modal-content {
    height: 100vh;
    max-height: 100vh;
  }
}

/* Category Items */
.category-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-item:hover {
  background-color: #f3f4f6;
}

.category-item.selected {
  background-color: var(--primary);
  color: white;
}

.category-item.selected:hover {
  background-color: #374151;
}

/* Search Section */
.search-section {
  background-color: #f9fafb;
}

/* Tags */
.tag {
  background-color: var(--gray-50);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Article Cards */
.article-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.article-card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.article-card img {
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #000;
  color: white;
}

footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .text-responsive-xl {
    font-size: 1.375rem; /* 22px */
  }
}

@media (min-width: 1024px) {
  .text-responsive-xl {
    font-size: 2.5rem; /* 40px */
  }
}

/* Loading Animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Focus States */
.focus-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Utilities */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

/* Writing Mode for Japanese Text */
.vertical-rl {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Border Utilities */
.border-primary {
  border-color: var(--primary);
}

.border-secondary {
  border-color: var(--secondary);
}

/* Background Utilities */
.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}