/* Bootstrap 5 Custom Styles for Museum Website */
/* Design Concept: Elegant & Classic - 上品で洗練されたクラシックデザイン */

/* Reset and Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif JP", serif;
  line-height: 1.9;
  color: #2c2c2c;
  background-color: #f9f8f6;
  overflow-x: hidden;
  padding-top: 80px;
  letter-spacing: 0.02em;
}

/* Header Styles - Elegant & Classic Enhancement */
.header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(15px);
  border-bottom: 2px solid #d4c4b0;
  transition: all 0.4s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
  padding: 20px 0 !important;
}

.logo h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 3px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo p {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  color: #8b7355;
  font-style: italic;
  letter-spacing: 0.1em;
}

.nav-link {
  color: #2c2c2c !important;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.4s ease;
  position: relative;
  margin: 0 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-link:hover {
  color: #8b7355 !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: linear-gradient(90deg, #8b7355, #d4c4b0);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link::before {
  content: "◆";
  position: absolute;
  left: -10px;
  opacity: 0;
  color: #8b7355;
  font-size: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
  left: -15px;
}

/* Custom Hamburger Menu */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #2c2c2c;
  margin: 3px 0;
  transition: 0.3s;
  position: absolute;
}

.hamburger span:nth-child(1) {
  top: 6px;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: -80px; /* Offset header padding */
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.5),
    rgba(139, 69, 19, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 40px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background: linear-gradient(135deg, #8b7355, #6d5a43);
  color: white;
  padding: 18px 50px;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(139, 115, 85, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 115, 85, 0.35);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* About Section - Elegant Enhancement */
.about {
  background: linear-gradient(to bottom, #f9f8f6, #f5f3f0);
  border-top: 1px solid #e8e3dc;
  border-bottom: 1px solid #e8e3dc;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 70px;
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.05em;
}

.section-title::before {
  content: "❖";
  display: block;
  color: #8b7355;
  font-size: 20px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #8b7355,
    #d4c4b0,
    transparent
  );
  margin: 25px auto;
}

.text-lg-start .section-title::after {
  margin: 25px 0;
}

.text-lg-start .section-title::before {
  text-align: left;
}

.curator-message {
  background: white;
  padding: 50px;
  border-radius: 2px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e3dc;
  border-left: 3px solid #8b7355;
  margin-bottom: 30px;
  position: relative;
}

.curator-message::before {
  content: "❝";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: #d4c4b0;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.curator-message h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #1a1a1a;
  font-weight: 600;
}

.curator-message p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.curator-signature {
  margin-top: 30px;
  text-align: right;
  font-style: italic;
  color: #666;
}

.about-info h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #1a1a1a;
  font-weight: 600;
}

.collection-overview {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.overview-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.overview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.overview-item i {
  font-size: 32px;
  color: #8b4513;
  margin-bottom: 15px;
}

.overview-item h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-weight: 600;
}

.overview-item p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

/* Collection Section */
.collection {
  background: white;
}

.artwork-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid #e8e3dc;
  background: white;
}

.artwork-item::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid transparent;
  transition: all 0.5s ease;
  pointer-events: none;
}

.artwork-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(139, 115, 85, 0.15);
}

.artwork-item:hover::after {
  border-color: rgba(139, 115, 85, 0.3);
}

.artwork-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

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

.artwork-item:hover .artwork-image img {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
  transform: translateY(0);
}

.artwork-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* Footer - Elegant Enhancement */
.footer {
  background: #2c2520 !important;
  color: white;
  border-top: 3px solid #8b7355;
}

.footer-info h3 {
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-info p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #d4c4b0;
  margin-bottom: 0;
  letter-spacing: 0.08em;
}

.social-link {
  color: #d4c4b0 !important;
  font-size: 24px;
  transition: all 0.4s ease;
  text-decoration: none;
  position: relative;
}

.social-link::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.social-link:hover {
  color: #8b7355 !important;
  transform: translateY(-3px);
}

.social-link:hover::after {
  border-color: #8b7355;
}

.footer-bottom {
  color: #999;
  font-size: 14px;
}

/* Bootstrap 5 Responsive Overrides */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    margin-top: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-link {
    padding: 10px 0 !important;
    margin: 0;
  }

  .hero-content {
    padding: 0 15px;
  }

  .curator-message {
    padding: 30px 20px;
  }

  .overview-item {
    padding: 20px;
  }

  .collection-overview {
    gap: 20px;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 70px;
  }

  .hero {
    margin-top: -70px;
    min-height: 500px;
  }

  .artwork-image {
    height: 250px;
  }

  .curator-message {
    padding: 20px 15px;
  }

  .overview-item {
    padding: 15px;
  }
}

@media (max-width: 575.98px) {
  .logo h1 {
    font-size: 20px;
  }

  .logo p {
    font-size: 10px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .artwork-image {
    height: 200px;
  }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure Bootstrap utility classes work properly */
.text-center .section-title::after {
  margin: 20px auto;
}

.text-lg-start .section-title::after {
  margin: 20px 0;
}

@media (min-width: 992px) {
  .text-lg-start {
    text-align: left !important;
  }
}

/* Demo Notice Modal Styles */
.demo-notice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.demo-notice-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.demo-notice-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

.demo-notice-icon {
  font-size: 64px;
  color: #8b7355;
  margin-bottom: 20px;
}

.demo-notice-content h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.demo-notice-content p {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.demo-notice-btn {
  background: #8b7355;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Noto Serif JP", serif;
}

.demo-notice-btn:hover {
  background: #6d5a43;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

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

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

@media (max-width: 576px) {
  .demo-notice-content {
    padding: 30px 20px;
  }

  .demo-notice-icon {
    font-size: 48px;
  }

  .demo-notice-content h3 {
    font-size: 20px;
  }

  .demo-notice-content p {
    font-size: 14px;
  }
}
