@charset "UTF-8";

body {
  margin: 0;
  background-color: #C8D6E0;
  color: #2D6982;
  font-family: "Noto Sans JP", "Shippori Mincho", serif;
  font-size: 17px;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center; /* 縦中央 */
  min-height: 100vh; /* 画面全体を対象に */

.container {
  text-align: center;
}

.art-image {
  max-width: 80%;
  height: auto;
  margin-bottom: 20px;
}

.text p {
  margin: 6px 0;
  font-size: 15px; /* パソコンでの文字サイズ */
  line-height: 1.7;
}


.back-link {
  text-align: center;
  margin: 40px 0 60px;
}

.back-link a {
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  font-size: 1rem;
  color: #2D6982;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.back-link a:hover {
  border-bottom: 1px solid #2D6982;
  opacity: 0.7;
}

}




/* --- スマホ用（文字を大きく） --- */
@media (max-width: 768px) {

body{
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding-top: 0;
}

 .art-image {
width: 100vw;
max-width: none;
height: auto;
margin: 0;
display: block;
}

 .text p {
    font-size: 10px;
    line-height: 1.8;
    margin: 8px 16px;
    padding: 0 16px;
    box-sizing: border-box;}

}

 .back-link a {
    font-size: 1.1rem;
  }
}


/* 画像を中央寄せ */
.art-image {
  display: block;
  margin: 0 auto;
  width: 90%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
}

/* スマホ時に少し拡大（横いっぱいに） */
@media (max-width: 768px) {
  .art-image {
    width: 100%;
    max-width: none;
    margin:0 auto;
  }
}


