body {
  font-family: "noto-sans-jp", sans-serif;
  max-width: 100%;
  /* margin: 2rem auto;
  padding: 1rem; */
}



#works-detail {
  margin: 0 auto;
}
.work-detail-inner{
max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
.work-detail-inner img {
border-radius: 10px;
max-width: 960px;
  width: 100%;
  margin-bottom: 30px;
}


.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.work-item img {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.work-item h3 {
  margin-top: 0.5rem;
  font-size: 1rem;
}

#work-image {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.tag {
  display: inline-block;
  background-color: #eee;
  padding: 4px 8px;
  margin: 0 4px 4px 0;
  border-radius: 4px;
  font-size: 0.8rem;
}
.menu-container{
  margin: 50px auto;
  max-width: 960px;
  width: 100vw;

}
.nav-buttons {
  display: flex;
      justify-content: space-between;
      align-items: center;
}

.nav-link,
.back-link {
width: 100%;

}

.nav-link:hover,
.back-link:hover {
  text-decoration: none;
}
.detail-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px; /* 左右の間隔を調整 */
  margin-bottom: 50px;
}

.detail-text-left {
  display: flex;
  flex-direction: column;
  gap: 0; /* 上下の間隔を調整 */
  flex: 0.5; /* 左側を広げる */
}

.detail-text-right {
  flex: 1; /* 右側を広げる */
  text-align: left; /* テキストを右寄せ */
}

.detail-title{
  font-weight: 700;
}
.detail-subtitle .detail-description{
  white-space: pre-line;
}

.detail-description {
  white-space: pre-wrap; 
}
.detail-url a{
margin-top: 10px;
 color: var(--main);
display: inline-block;
font-weight: 700;
}

.menu-item {
  font-family: "montserrat", sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  padding: 5px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.menu-item:hover {
  border: 1px solid var(--main);
  border-radius: 50px;
  color: var(--main);
}

.menu-item.current {
  font-weight: 700;
  border: 1px solid var(--main);
  border-radius: 50px;
  color: var(--main);
}

.main-container {
  display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      max-width: 960px;
      margin: 0 auto;
}

.menu-container {
  display: flex;
  gap: 10px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons img {
  width: 50px;
  height: 50px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ビューポートの高さを確保 */
  margin: 0;
}

#footer {
  margin-top: auto; /* フッターをページの下部に固定 */
}

.external-link::after {
  content: url(../img/external_icon.svg);
  display: inline-block;
  width: 80px;
  vertical-align: middle;
  position: absolute;
  transform: translate(5px, 1px);
}

/* ------------------ sp ------------------ */
/* ------------------ sp ------------------ */
/* ------------------ sp ------------------ */
/* ------------------ sp ------------------ */
/* ------------------ sp ------------------ */
/* ------------------ sp ------------------ */
/* spsp */

@media screen and (max-width: 430px)
{
  .nav-buttons {
    
    display: flex; /* フレックスボックスを有効化 */
    justify-content: center; /* 水平方向にセンター揃え */
    margin: 0 auto; /* 必要に応じて上下左右の余白を設定 */
    gap: 10px; /* ボタン間の間隔を調整 */
    margin-bottom: 20px;
    width: 100%;
  }
  .menu-container{
  margin: 30px auto;
  width: 95vw;
  }
  .nav-buttons img {
    width: 40px;
    height: 40px;
}
  .menu-item{
    font-size: 16px;
    padding: 5px 10px;
    margin: 0 auto;
  }
  .main-container{
    display: block;
  text-align: center;
  
 }
  .work-detail-inner{
      max-width: 90vw;
  }
  .detail-text-left {
    padding-bottom: 10px;
  }
.detail-text{
  display: block;
}

}

