@charset "UTF-8";

/* ========== CSS RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Yu Gothic UI", "Helvetica Neue", sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  color: #222;
  line-height: 1.75;
  font-size: 16px;
  background-image: url("images/backpc.JPG");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.narration{
  text-align: center;
}

main {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  box-sizing: border-box;
}

h1, h2, h3 {
  text-align: center;
  color: #0a3d62;
  margin-bottom: 1em;
  font-weight: 600;
}

section {
  margin: 0;
  padding: 2em 1.5em;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e0e0e0;
}

.responsive-img {
  width: 100%;
  max-width: 95%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ========== HEADER / NAVIGATION ========== */
.main-header {
  background-color: #2c3e50;
  padding: 1em 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.custom-nav {
  overflow-x: auto;
  white-space: nowrap;
  background-color: #34495e;
  padding: 0.5em 0;
}

.custom-nav-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

.custom-nav-list li a {
  color: white;
  background-color: #2980b9;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s ease;
  white-space: nowrap;
}

.custom-nav-list li a:hover {
  background-color: #3498db;
  transform: scale(1.05);
}

/* ========== BUTTON / LINK STYLES ========== */
.fixed-button {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-color: #27ae60;
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
  z-index: 999;
}

.fixed-button:hover {
  background-color: #1e8449;
  transform: scale(1.05);
}

.fixed-size {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.fixed-size:hover {
  transform: scale(1.04);
}

.sns-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em;
  margin: 1.5em 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== SEARCH BOX ========== */
.search {
  text-align: center;
  padding: 1.5em 0;
}

.search input[type="text"] {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.search button {
  margin-top: 1em;
  padding: 12px 20px;
  background-color: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search button:hover {
  background-color: #3498db;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fixed-button {
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

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

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fixed-size, .responsive-img, .card {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.fixed-size:hover, .responsive-img:hover, .card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 1em;
  background-color: #2c3e50;
  color: white;
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 0 1em;
    width: 100%;
  }

  h1, h2, h3 {
    font-size: 1.3em;
    line-height: 1.4;
  }

  .custom-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-content: center;
    gap: 0.5em;
    padding: 0.5em;
    list-style: none;
  }

  .custom-nav-list li a {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #2980b9;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    white-space: normal;
  }

  .fixed-button {
    font-size: 14px;
    padding: 10px 18px;
  }

  .sns-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .fixed-size {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0.5em auto;
  }

  .responsive-img {
    max-width: 90%;
    margin: 1.5em auto;
  }

  section {
    padding: 1.5em 1em;
  }

  .search input[type="text"] {
    width: 95%;
  }

  .search button {
    width: 95%;
  }
}


