/*
Theme Name: WapanJP - NONJOHN Style
Description: 完全複製 NONJOHN 酒器網站的設計風格和效果
Author: Your Name
Author URI: 
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wapanjp
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

/* National Park Font */
@import url('https://fonts.googleapis.com/css2?family=National+Park:wght@200;300;400;500;600;700;800&display=swap');

/* National Park Font Classes */
.national-park-logo {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.05em;
}

.national-park-light {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.national-park-regular {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.national-park-medium {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.national-park-semibold {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.national-park-bold {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.national-park-extrabold {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

/* CSS Variables */
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
  --primary-color: #1a1a1a;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --border-color: #e5e5e5;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  /* scroll-behavior: smooth; - 移除，改用 JavaScript 控制 */
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Typography */
.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.font-shippori {
  font-family: 'Shippori Mincho', serif;
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Custom utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Button hover effects */
.btn-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Link styling */
a {
  color: inherit;
  text-decoration: none;
}

/* Selection styling */
::selection {
  background: rgba(66, 66, 66, 0.2);
  color: inherit;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
}

/* Custom section padding */
.section-padding {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 0;
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

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

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.site-logo .site-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.site-logo .site-title:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* 為NONJOHN Clone Style範本添加特定的標題樣式 */
.site-header .site-logo .site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* 為產品介紹範本添加更小的字距 */
.wapan-products-template .site-header .site-logo .site-title {
  letter-spacing: -0.05em !important;
}

.site-header .site-logo .site-title:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-2px);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-navigation a {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.main-navigation a:hover {
  opacity: 0.7;
}

.online-store-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.online-store-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.online-store-btn img {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  gap: 0.25rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  background: white;
  height: 2px;
  width: 1.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  padding: 2rem 1rem;
}

.mobile-menu a {
  display: block;
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.5rem 0;
  transition: opacity 0.3s ease;
}

.mobile-menu a:hover {
  opacity: 0.7;
}

.mobile-menu .online-store-btn {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile Menu Scrollbar */
.mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 4s ease;
  opacity: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 20s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  width: 12rem;
  height: auto;
}

@media (min-width: 768px) {
  .hero-logo img {
    width: 18rem;
  }
}

.hero-copy {
  margin-bottom: 3rem;
}

.hero-copy p {
  color: white;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-copy p {
    font-size: 1.5rem;
  }
}

.hero-cta {
  margin-bottom: 4rem;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-cta a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-cta img {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.scroll-indicator .line {
  width: 2px;
  height: 2rem;
  background: white;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Slide Navigation */
.slide-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slide-dot.active {
  opacity: 1;
}

.slide-dot:hover {
  opacity: 0.6;
}

.slide-count {
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Concept Section */
.concept-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

@media (min-width: 1024px) {
  .concept-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 1024px) {
  .concept-container {
    padding: 0 2rem;
  }
}

.concept-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .concept-block {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.concept-block:last-child {
  margin-bottom: 0;
}

.concept-text h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .concept-text h2 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .concept-text h2 {
    font-size: 2.25rem;
  }
}

.concept-text h3 {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  font-weight: 300;
}

@media (min-width: 768px) {
  .concept-text h3 {
    font-size: 1.5rem;
  }
}

.concept-text p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.concept-text .concept-content {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .concept-text p {
    font-size: 1.125rem;
  }
  
  .concept-text .concept-content {
    font-size: 1.125rem;
  }
}

.concept-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 12rem;
  margin-top: 3rem;
}

.concept-icon {
  width: 3rem;
  height: 3rem;
  opacity: 0.6;
}

.concept-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Images Grid */
.concept-images {
  position: relative;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  place-items: center;
}

.concept-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Section */
.product-section {
  padding: 5rem 0;
  background: white;
}

@media (min-width: 1024px) {
  .product-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 1024px) {
  .product-container {
    padding: 0 2rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.product-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  color: #6b7280;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.25rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.product-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-btn {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 120px;
}

.product-btn-primary {
  background: var(--primary-color);
  color: white;
}

.product-btn-primary:hover {
  background: #374151;
  transform: translateY(-2px);
}

.product-btn-secondary {
  background: #f59e0b;
  color: white;
}

.product-btn-secondary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

@media (min-width: 1024px) {
  .about-section {
    padding: 8rem 0;
  }
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .about-container {
    padding: 0 2rem;
  }
}

.about-logo {
  width: 9.375rem;
  height: 9.375rem;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.about-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-text p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .about-text p {
    font-size: 1.125rem;
  }
}

.about-signature {
  margin-top: 2.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

/* Social Section */
.social-section {
  padding: 5rem 0;
  background: white;
}

@media (min-width: 1024px) {
  .social-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 1024px) {
  .social-container {
    padding: 0 2rem;
  }
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

.social-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.social-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.social-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.social-content {
  padding: 1.5rem;
}

.social-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1.5rem;
}

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

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2rem;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
  }
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #60a5fa;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1rem;
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.footer-copyright {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-copy p {
    font-size: 1rem;
  }
  
  .concept-block {
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .concept-text h2 {
    font-size: 1.5rem;
  }
  
  .concept-text h3 {
    font-size: 1.125rem;
  }
  
  .concept-text p {
    font-size: 0.875rem;
  }
  
  .product-grid {
    gap: 1.5rem;
  }
  
  .social-grid {
    gap: 1.5rem;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}
