*, *::before, *::after {
  box-sizing: border-box;
  margin-right: 1rem;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff8f0;
  color: #222;
  line-height: 1.6;
}
.header {
  background: linear-gradient(to right, #ef3366, #ffcc00);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 4px double #222;
}

.header nav {
  margin-top: 1rem;
}
.header nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.header h1 {
  font-size: 2rem;
  color: white;
  margin: 0;
}

h2 {
  margin-left: 2rem;
  margin-right: 2rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-left: 8px solid #ff3366;
  padding-left: 1rem;
  background: #fff3d1;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery {
    column-count: 5;
    column-gap: 15px;
    padding: 2rem 2rem;
}

@media (max-width: 1400px) {
    .gallery {
        column-count: 4;
    }
}
@media (max-width: 1200px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 1000px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 800px) {
    .gallery {
        column-count: 1;
    }
}


.pin {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #fff;
    border: 2px dashed #ff3366;
    padding: 1rem;
    box-shadow: 4px 4px #ffcc00;
}

.pin:hover {
    transform: translateY(-5px);
}

.pin img {
    width: 100%;
    border: 2px groove #ffcc00;
    display: block;
}

.pin-title {
    padding: 10px;
    font-weight: bold;
    font-size: 24px;
    color: #333;
}
.pin-summary {
    margin-top: 0.5rem;
    padding: 0 10px 10px 10px;
    font-size: 15px;
    color: #333;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: auto;
    max-width: 800px;
    width: 90%;
    overflow: hidden;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-image {
    width: 100%;
    display: block;
}

.modal-details {
    padding: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.modal-description {
    color: #666;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    z-index: 1001;
}
ul {
  padding-left: 1.5rem;
}

ul li::before {
  content: "◆ ";
  color: #ff3366;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid #ccc;
}
