/*nav*/
header nav a {
    color: #333 !important;
}
/*ヘッダー*/
body {
    padding-top: 100px; 
}
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}
/* ヘッダーを固定 */
header {
    position: fixed; 
    top: 0;    
    left: 0;      
    width: 100%;  
    z-index: 1000; 
}
.slider-fade1 h1 {
    font-size: 3rem;
    line-height: 1.2;
}
.navbar-header-custom {
    padding-bottom: 10px; 
}
@media (max-width: 992px) {
    .slider-fade1 .item {
        min-height: 12.5vh; 
    }
    .slider-fade1 h1 {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
  
  .slider-fade1 .item {
    min-height: 10vh; 
    padding-top: 8vh; 
  }
  .slider-fade1 h1 {
    font-size: 2rem; 
    line-height: 1.2;
  }
  .navbar-header-custom img#logo {
    max-height: 40px; 
  }
}
/**メイン**/
.news-detail-section {
  padding: 60px 0;
}

.news-detail-section .container {
  max-width: 800px;   /* 横幅を少しコンパクトに */
}

.news-detail-header {
  margin-bottom: 40px;
}

.news-date {
   font-size: 14px;
  color: #888;
  text-align: right;
}

.news-title {
 font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  margin-bottom: 15px;
}

.news-detail-body {
  text-align: left;   /* 本文は左寄せ */
  line-height: 1.9;
  font-size: 1rem;
}

.news-text {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .news-detail-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-title {
    font-size: 1.3rem;
  }
}

/*戻るボタン*/
.back-button {
  text-align: center;
  margin-top: 60px;
}

.back-button a {
  display: inline-block;
  padding: 12px 40px;
  background-color: #232E99;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.back-button a:hover {
  opacity: 0.85;
}
.back-button {
  text-align: center;
  margin: 80px 0 40px;
}
/*フッター*/
footer {
    margin-top: 40px;
    background-color: #232E99; 
    color: #fff;
}

footer .container,
footer .footer-bottom {
    background-color: #232E99 !important; 
}
footer,
footer .container,
footer .footer-bottom,
footer .footer-copy,
footer .footer-policy {
    background-color: #232E99 !important;
    opacity: 1 !important;
    filter: none !important;
}
footer .footer-bottom::before,
footer .footer-bottom::after {
    content: none !important;
}
footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.footer-bottom {
    pointer-events: auto;
}
.footer-bottom a {
    pointer-events: auto;
}

/*メイン*/
#detail {
    padding: 40px 50px; /* 上下40pxはそのまま、左右を50pxずつ空ける */
    box-sizing: border-box; /* 余白込みで幅を計算 */
}
@media (max-width: 768px) {
    #detail {
        padding-left: 20px;
        padding-right: 20px;
    }
}
#up_ymd {
    text-align: right;
    font-size: 13px;
}

/*フッターを固定*/
html, body {
    height: 100%;
    margin: 0;
}

.main-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#detail {
    flex: 1; 
}

footer {
    background-color: #232E99;
    margin-top: 0;
}
@media (max-width: 576px) {
  footer .footer-bottom {
      flex-direction: column !important; 
      align-items: center;
      gap: 10px; 
  }

  
  footer .footer-copy {
      order: 3;
      margin: 0;
  }

  footer .footer-policy {
      display: flex !important;
      flex-direction: column !important;
      gap: 5px;
      order: 1; 
      padding: 0;
      margin: 0;
      list-style: none;
  }

  footer .footer-policy li {
      margin: 0;
      padding: 0;
  }
  }