@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Noto+Sans+JP:wght@400;700&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: #0a0a0a;
  color: rgba(255, 255, 255, 1);
  font-family: "Noto Sans JP", Arial, sans-serif;
  font-size: 1em;
  background-image: url("assets/bg.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Art Deco gold divider */
.deco-divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  align-self: center;
  margin: 10px 0;
}

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 8px;
}

.lang-switcher a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
  color: #c9a84c;
  border: 1px solid #c9a84c;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: rgba(0, 0, 0, 0.6);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background-color: #c9a84c;
  color: #0a0a0a;
}

/* Section */
.gjs-section {
  display: flex;
  padding: 50px 0;
}

/* Container */
.gjs-container {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Headings - art deco gangster style */
.gjs-heading {
  margin: 0;
  color: #c9a84c;
  text-align: center;
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 20px 0;
}

.gjs-heading::before,
.gjs-heading::after {
  content: '◆';
  margin: 0 12px;
  font-size: 0.5em;
  vertical-align: middle;
  color: #c9a84c;
}

/* History item dates */
.history-item {
  flex: 0 0 auto;
  border-bottom: 2px solid #c9a84c;
  border-left: none;
  border-top: none;
  border-right: none;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
  color: #c9a84c;
  letter-spacing: 0.05em;
}

/* History content blocks */
.historyblock {
  align-self: center;
  width: 600px;
  max-width: 100%;
  padding: 10px;
  line-height: 1.8;
}

/* Grid */
.gjs-grid-row {
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 8px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.gjs-grid-column {
  gap: 8px;
  flex-direction: row;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Links - gold theme */
.gjs-link {
  vertical-align: top;
  max-width: 100%;
  display: inline-block;
  text-decoration: none;
  color: #c9a84c;
  transition: color 0.3s ease;
}

.gjs-link:hover {
  color: #e8d48b;
  text-decoration: underline;
}

.gjs-link-box {
  display: block;
  vertical-align: top;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 197px;
}

/* Logo */
.logo-img {
  color: black;
  width: 640px;
  max-width: 100%;
  align-self: center;
}

/* Key art */
.keyart-img {
  color: black;
  width: 800px;
  max-width: 100%;
  align-self: center;
  border: 2px solid #c9a84c33;
}

/* Intro text */
.intro-text {
  padding: 10px;
  text-align: center;
  font-size: 1.05em;
  line-height: 2;
  max-width: 640px;
  align-self: center;
}

/* Images */
.img-small {
  color: black;
  width: 344px;
  max-width: 100%;
  align-self: center;
}

.img-medium {
  color: black;
  width: 480px;
  max-width: 100%;
  align-self: center;
}

.img-wide {
  color: black;
  width: 600px;
  max-width: 100%;
  align-self: center;
}

.img-full {
  color: black;
  width: 480px;
  max-width: 100%;
  align-self: center;
}

.img-package {
  color: black;
  width: 290px;
  max-width: 60%;
  align-self: center;
}

.img-grid {
  color: black;
  width: 320px;
  max-width: 100%;
}

/* Grid rows for paired images */
.grid-row-pair {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 8px;
  display: flex;
}

/* Congrats banner */
.congrats-banner {
  margin: 0;
  width: 640px;
  max-width: 100%;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.congrats-link {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #c9a84c;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.congrats-link:hover {
  border-color: #e8d48b;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.congrats-link:hover .congrats-banner {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.congrats-link:active {
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
}

.congrats-link:active .congrats-banner {
  transform: scale(0.98);
}

.congrats-link-label {
  display: block;
  text-align: center;
  padding: 10px 0;
  background-color: rgba(201, 168, 76, 0.15);
  color: #c9a84c;
  font-size: 0.9rem;
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
}

.congrats-link:hover .congrats-link-label {
  background-color: rgba(201, 168, 76, 0.25);
}

.congrats-column {
  flex-direction: column;
}

.congrats-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Illustration credit */
.illustration-credit {
  font-size: 0.85rem;
  text-align: center;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.illustration-credit a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.illustration-credit a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* Lawson thumbnail gallery */
.lawson-gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.lawson-thumb {
  width: 260px;
  max-width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lawson-thumb:hover {
  transform: scale(1.03);
  border-color: #c9a84c;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

/* Lawson CTA button */
.lawson-cta {
  text-align: center;
  margin-top: 4px;
}

.lawson-cta-link {
  display: inline-block;
  padding: 10px 28px;
  color: #c9a84c;
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 1px solid #c9a84c;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lawson-cta-link:hover {
  background-color: #c9a84c;
  color: #0a0a0a;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4);
}

/* Lightbox overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #c9a84c;
  border-radius: 4px;
}

/* Message section */
.message-text {
  padding: 10px;
  align-self: center;
  text-align: center;
}

/* Footer */
.footer-row {
  flex-direction: column;
}

.footer-column {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.footer-link {
  display: block;
  padding-top: 0px;
  padding-bottom: 0px;
  align-self: center;
}

.footer-logo {
  width: 120px;
  align-self: center;
}

.footer-copyright {
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 20px;
  opacity: 75%;
  color: rgba(255, 255, 255, 1);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .gjs-grid-row,
  .grid-row-pair {
    flex-direction: column;
  }
  .gjs-container {
    width: 100%;
  }
  .logo-img {
    width: 480px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  body {
    font-size: 0.75em;
  }
  .gjs-heading {
    font-size: 1.4em;
  }
  .gjs-heading::before,
  .gjs-heading::after {
    display: none;
  }
  .gjs-grid-row,
  .grid-row-pair {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
  }
  .gjs-grid-column {
    justify-content: flex-start;
    align-self: stretch;
    align-items: stretch;
    flex: 1 1 0%;
  }
  .gjs-section {
    padding-left: 0;
  }
  .gjs-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo-img {
    width: 278px;
    align-self: center;
  }
  .keyart-img {
    max-width: 100%;
  }
  .img-small,
  .img-medium,
  .img-wide,
  .img-full,
  .img-grid {
    max-width: 100%;
  }
  .congrats-banner {
    max-width: 100%;
    align-self: center;
  }
  .footer-link {
    align-self: center;
  }
}
