@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
html {
    font-size: 100%;
    scroll-behavior: smooth;
    }

body {
    font-size: min(1.5vw, 16px);
    font-family: 'Noto Serif JP', serif;
    line-height: 2.0;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #000000;
    color: #FFFFFF;
}

body a {
    color: #ff6090;
    text-decoration: none;
}

.top-img img {
    width: 50%;
    height: auto;
}

.home-img img {
    width: 50%;
    height: auto;
}

.update-log {
    font-weight: 400;
}

.here-is {
    font-family: Noto Sans JP;
    display: inline-block;
}

.description {
    max-width: 350px;
    width: 33vw;
}

.huseji {
    background-color: #FFFFFF;
    width: auto;
    max-height: 100px;
    height: 6.5em;
}

.banner img {
    width: 20%;
    max-width: 10em;
    height: auto;
    margin: 0 auto;
}

.sousaku-links {
    margin: 30px 0 30px 0;
    display: flex;
    justify-content: center;
}

.sousaku-links img {
    width: 30%;
}

.external-links img {
    width: 6%;
    padding: 2vw;
}

.admin-contact {
    margin: 30px 0 30px 0;
}

footer {
    margin: 100px 0 100px 0;
}

.reply-container {
    margin: 30px 0 30px 0;
}

.reply {
    margin: 0 auto;
    background: #FFFFFF;
    color: #000;
    width: 25vw;
    max-width: 300px;
    height: 200px;
    border: 1px solid #000;
    overflow-y: scroll;
    font-family: Noto Sans JP;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 20%;
    max-width: 200px;
    box-sizing: border-box;
  }

#message {
  width: 30%;
  max-width: 300px;
  box-sizing: border-box;
}


.ichji-gallery {
    column-count: 3;
    margin: 70px 1vw 70px 1vw;
}

.ichji-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.ichji-gallery > div {
    break-inside: avoid;
    word-break: break-all;
    margin: 0 0 10px;
}

.niji-gallery {
    margin: 70px 1vw 70px 1vw;
    column-count: 5;
}

.niji-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.niji-gallery > div {
    break-inside: avoid;
    word-break: break-all;
    margin: 0 0 10px;
}
.niji-gallery p {
    font-size: min(1.5cqw, 18px);
}

.thumb {
  aspect-ratio: 1 / 1;   /* ← 正方形 */
  overflow: hidden;
  object-fit: cover;
}

.nsfw-gallery {
    margin: 70px 1vw 70px 1vw;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 300px));
    gap: 10px;
    justify-content: center;
}

.nsfw-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 背景全体を覆う */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* ポップアップ本体 */
.modal-content {
  background: #111;
  width: 80%;
  max-width: 800px;
  height: 90vh;
  padding: 20px;
  border-radius: 10px;
  overflow-y: auto;
}

#modalImages img {
  max-width: 100%;
  margin-bottom: 10px;
}

.modal-images img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.return_top {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #555;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    align-content: center;
    border: solid thin;
    width: 40px;
    height: 40px;
}

.return_top.visible {
    opacity: 1;
    visibility: visible;
}