html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}


a {
    color: inherit;
    text-decoration: none;
    all: unset;
}
e
a:visited {
    color: inherit;
}

a:hover {
    cursor: pointer;
    text-decoration: underline;
}

body {
    color: rgb(255, 255, 255);
    font-size: 150%;
    text-align: center;
    background-color: rgb(170, 170, 170);
    margin: 0;
    padding: 0;
}

#top_image {
    background-image: url("../images/top/museum_art03.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center; /* 中央揃え */
    justify-content: center; /* 中央揃え */
}


header {
    background-color: rgba(255, 255, 255, 0.3);
    height: 100%;
    padding: 10px 0;
}

header #title{
    color: white;
    -webkit-text-stroke: 5px black;
    paint-order: stroke fill;
    text-align: left;
    font-family: 'Dancing Script', cursive;
}

header #Navbar{
    color: white;
    text-align: right;
    font-size: 70%;
}

header #Navbar #images img{
    max-width: 50px;
    height: auto;
}

.subtitle{
    text-align: left;
    color: white;
    -webkit-text-stroke: 5px black;
    paint-order: stroke fill;
}

#gallery{
    background-color: pink;
    padding-bottom: 10%;
}

#gallery #topgallery{
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

#gallery #topgallery img{
    height: 200px;
    width: auto;
    object-fit: contain;
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

#event #topevent{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    font-size: 50%;
    color:black;
}

#event #topevent img{
    height: auto;
    width: 200px;
}

#event{
    background-color: rgb(255, 255, 154);
}

#news{
    background-color: rgb(127, 191, 250);
}

#news #topnews{
    color: black;
    text-align: left;
    font-size: 70%;
    padding: 10px 0;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px 0;
}

footer{
    text-align: left;
    font-size: 60%;
    background-color: black;
    color: white;
    min-height: 100px;
}

.slider-container {
    position: relative;
    width: 80%; /* スライダーの幅を調整 */
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.slider img {
    width: 300px; /* 画像のサイズ調整 */
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }