@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP&family=Sawarabi+Mincho&display=swap');

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Sawarabi Mincho', 'Noto Serif JP', 'Yu Mincho', 'Georgia', serif;
  color: #3c3c3c;
  background: repeating-linear-gradient(45deg, #fffaf0, #fffaf0 10px, #f6f0e6 10px, #f6f0e6 20px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
}


header {
  background: radial-gradient(circle at center, #a30000 0%, #5a0000 100%);
  color: #fff5f5;
  padding: 2em;
  text-align: center;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
  border-bottom: 4px double #fff0f0;
  position: relative;
}

.header-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
}

.left-text, .right-text {
  font-size: 2.5em;
  font-weight: bold;
  color: #fff0f0;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  font-family: 'Sawarabi Mincho', 'Georgia', serif;
}

.logo {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  padding: 10px;
  background-color: #fff5f5;
  box-shadow: 0 0 20px #b62828;
  opacity: 0;
  transform-origin: center;
  animation: stampIn 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes stampIn {
  0% {
    transform: scale(4) rotate(-30deg);
    opacity: 0;
    filter: blur(10px);
  }
  60% {
    transform: scale(0.95) rotate(3deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

main {
  padding: 3em 2em;
  text-align: center;
  flex: 1;
  background: linear-gradient(to bottom, rgba(255, 250, 240, 0.95), rgba(246, 240, 230, 0.95));
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

h1 {
  font-size: 2.5em;
  color: #b62828;
  font-family: 'Noto Serif JP', serif;
}

p.blurb {
  font-size: 1.2em;
  color: #4b4b4b;
  max-width: 800px;
  margin: 1em auto;
  font-family: 'Sawarabi Mincho', 'Georgia', serif;
}

ul {
  list-style-type: none;
  padding: 0;
  margin-top: 2em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}

li {
  display: inline-block;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.3s; }
li:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.pdf-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at 30% 30%, #d43131, #8b0000);
  border-radius: 50%;
  border: 3px solid #7a0000;
  text-align: center;
  padding: 1em;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(139, 0, 0, 0.5);
  transition: transform 0.3s, background-color 0.3s;
  overflow-wrap: break-word;
  word-break: break-word;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Sawarabi Mincho', 'Georgia', serif;
}

.pdf-button:hover {
  transform: scale(1.05);
  background-color: #a82020;
}

#pdf-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

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

#pdf-viewer iframe {
  width: 80%;
  height: 80%;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#pdf-controls {
  margin-top: 1em;
}

#pdf-controls button {
  margin: 0 1em;
  padding: 0.5em 1em;
  background: #fff5f5;
  border: 1px solid #c92b2b;
  color: #8b0000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#pdf-controls button:hover {
  background-color: #ffeaea;
}

footer {
  padding: 1em;
  background-color: #8b0000;
  color: #fff0f0;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(139, 0, 0, 0.3);
  font-size: 1em;
  font-family: 'Sawarabi Mincho', 'Georgia', serif;
}

@media (max-width: 600px) {
  .left-text, .right-text {
    font-size: 2em;
  }

  .pdf-button {
    width: 180px;
    height: 180px;
    font-size: 1em;
    padding: 0.5em;
  }

  #pdf-viewer iframe {
    width: 95%;
    height: 80%;
  }

  .header-text {
    flex-direction: column;
    gap: 0.5em;
  }
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.logo-link:active {
  transform: scale(0.9);
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.language-toggle {
  position: absolute;
  top: 1.2em;
  right: 1.5em;
}

#lang-switch {
  background: radial-gradient(circle at 30% 30%, #fff5f5, #ffeaea);
  color: #8b0000;
  border: 2px solid #fff0f0;
  border-radius: 20px;
  padding: 0.4em 1em;
  font-size: 1em;
  font-family: 'Sawarabi Mincho', 'Noto Serif JP', serif;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);
}

#lang-switch:hover {
  background: radial-gradient(circle at 30% 30%, #ffeaea, #ffd6d6);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.4);
}

#lang-switch:active {
  transform: scale(0.95);
  background: #fff0f0;
}
