/*--------all----------*/
html{
    font-size: 100%;
}
body{
    color: #2d2d2d;  
}
#wrapper{
    width: 100vh;
    margin: 0 auto;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: #3f3f3f;
    display: block;
}
img{
    vertical-align: bottom;
}
h2{
    font-family: 'Vollkorn', serif;
    color: #4c4343;
    font-size: 30px;
    margin-bottom: 40px;
}
h3{
    color: #4c4c4c;
    font-size: 22px;
    margin-bottom: 20px;
}
/*--------top----------*/
.top-nav ul{
    display: flex;
    gap: 20px;
    position: absolute;
    top: 2px;
    right: 14px;
    z-index: 2;
}
.top-nav a{
    font-family: 'Vollkorn', serif;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    padding: 10px;
}
.top-nav a:hover{
    color: #999;
}
.top-img{
font-family: 'EB Garamond', serif;
    font-size: 50px;
    letter-spacing: 1.4px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    width: 100vw;
    height: 600px;
    background: url(images/top3.1.jpg) no-repeat center center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}
#top{
    position: relative;
    margin-bottom: 140px;
}
/*--------news----------*/
#news{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 140px;
}
#news p{
    width: auto;
    height: 80px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}
#news .news-box{
    font-size: 20px;
    width: 100%;
    margin-bottom: 50px;
    background-color: #949494;
}
#news .news-topick a{
    color: #fff;
    border-bottom: solid 1px #fff;
}
#news .news-topick a:hover{
    color: #4c4343;
    border-bottom: solid 1px  #4c4343;
}
#news .news-content{
    padding-bottom: 20px;
}
/*--------work----------*/
#work{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 140px;
}
.work-box{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.work-item img{
    display: block;
    width: 100%;
    height: auto;
    transition: 0.3 ease;
}
.work-item{
    background-color: rgba(0, 0, 0, 0.5);
}
.work-item:hover{
    filter: brightness(80%);
}
/*--------about----------*/
#about{
    margin-bottom: 140px;
}
.about-img{
    margin-bottom: 20px;
}
.about-topic{
    font-size: 18px;
}
.about-topic-sub{
    font-size: 18px;
    margin-bottom: 40px;
}
#about h2,#about h3{
    text-align: center;
}
.about-item{
    display: flex;
    align-items: bottom;
}
.about-item dt,.about-item{
    line-height: 1.5;
}
.about-career .about-item dt,.about-award .about-item dt{
    width: 90px;
    flex-shrink: 0;
}
.about-career .about-item dd,.about-award .about-item dd{
    margin: 0;
    flex: 1;
}
.about-activ .about-item dt{
    width: 130px;
    flex-shrink: 0;
}
.about-activ .about-item dd{
    margin: 0;
    flex: 1;
}
.about-intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-career{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-wrapper{
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
}
.about-activ{
    width: 350px;
    padding-right: 30px;
    border-right: solid 2px #949494;
}
.about-award{
    width: 400px;
}
/*--------footer----------*/
.footer-nav ul{
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.footer-nav a{
    font-family: 'Vollkorn', serif;
    padding: 10px;
}
.footer-nav a:hover{
    color: #9b9b9b;
}

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

.modal img {
    display: block;
    margin: 50px auto 20px auto;
    max-width: 70%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
#modal-caption {
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  display: block;
}
.caption-title {
    font-size: 20px;
    padding-bottom: 8px;
}
.caption-ex{
    font-size: 14px;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.modal-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* モーダル画面の縦の大部分を占める */
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* アスペクト比を保ちつつ全体を表示 */
  display: block;
}

.modal-prev{
    position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 2em;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 30;
}
.modal-next {
    position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 2em;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 20;
}
.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/*-------@media----------*/
@media screen and (max-width:600px){
.top-nav ul{
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .top-img{
        font-size: 40px;
    }
    #news p{
        width: 100%;
    }  
    .work-box{
        flex-direction: column;
    }
      .about-wrapper{
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding-top: 40px;
    }
    .about-activ{
        padding-right: 0px;
        border-right: none;
        margin-bottom: 40px;
    }
    .about-award{
    width: 350px;
}
/*-------@media-modal----------*/
.modal img {
    max-width: 60%;
}
.modal-prev,.modal-next {
    font-size: 1.2em;
    padding: 6px 8px;
  }
}