<style>
  * {
    box-sizing: border-box;
  }

  body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #333;
    background: #fff;
  }

  header {
    text-align: center;
    padding: 0.6em 1em 0.3em;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
  }

  .header-inner img {
    height: 70px;
    margin: 0 auto;
  }

  .slogan {
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
    margin: 0;
  }

  main {
    padding: 0.5em 1em;
    max-width: 1100px;
    margin: auto;
  }

  h1 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 0.3em;
  }

  .intro {
    text-align: center;
    font-size: 0.95em;
    max-width: 800px;
    margin: 0 auto 1em;
  }

  .grid {
    display: grid;
    gap: 0.8em;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 0.8em;
  }

  .category {
    background: #f9f9f9;
    padding: 0.8em;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.4em;
  }

  .category h2 {
    font-size: 1.1em;
    margin: 0 0 0.2em;
    text-align: center;
  }

  .category-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
  }

  .category-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .category-slider img.active {
    opacity: 1;
    z-index: 1;
  }

  footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1em 1em 0.6em;
    font-size: 0.85em;
    margin-top: 2em;
  }

  footer a {
    color: #fff;
    text-decoration: underline;
  }

  .slogan-footer {
    font-style: italic;
  }

  /* Pop-up overlay */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
  }

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

  .popup-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  }

  .popup-overlay:after {
    content: "×";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: white;
    cursor: pointer;
  }

  @media (max-width: 600px) {
    h1 {
      font-size: 1.3em;
    }

    .category h2 {
      font-size: 1em;
    }

    .intro {
      font-size: 0.9em;
    }
  }
</style>
