/****************************************/
/********** ArtLab-Tokyo [CSS] **********/
/****************************************/


/****************************** appedn ******************************/


/* ============== ニュース ============== */
/*- リセット -*/
#news_top .btn, #news_global_top .btn, #news_detail .btn, #contact .btn {
  width: auto;
}
#news_top nav, #news_global_top nav, #news_detail nav {
    position: relative !important;
    background: none;
}


    /* お知らせリスト スタイル */
    .news-list-item .date { color: #6c757d; white-space: nowrap; }
    .news-list-item .title { color: #007bff; text-decoration: none; }
    .news-list-item .title:hover { text-decoration: underline; }

    /* カテゴリーラベル共通 */
    .label-link { color: inherit; text-decoration: none; }
    .label-link:hover { color: inherit; text-decoration: none; }
    .badge-ygh { background-color: #007bff; color: white; }
    .badge-ogh { background-color: #28a745; color: white; }
    .badge-global { background-color: #ffc107; color: #212529; }

    /* カードスタイル */
    .news-card .card-title a {
        color: #212529; /* カードタイトルの色 */
        text-decoration: none;
    }
    .news-card .card-title a:hover {
        color: #007bff; /* ホバー時の色 */
        text-decoration: underline;
    }
    .news-card .card-img-top {
        aspect-ratio: 16 / 9; /* 画像のアスペクト比を維持 */
        object-fit: cover; /* 画像がコンテナに合わせてトリミングされる */
    }
    .news-card.h-100 {
        display: flex;
        flex-direction: column;
    }
    .news-card .card-body {
        flex-grow: 1; /* 内容が少なくても高さを揃える */
    }


    /* スマホ表示(md未満)での調整 */
    @media (max-width: 767.98px) {
      /* リスト項目の調整 */
      .news-list-item .row > div {
         flex-basis: auto; width: 100%; max-width: 100%;
         margin-bottom: 0.5rem;
         padding-right: 0 !important;
      }
      .news-list-item .row > div:last-child { margin-bottom: 0; }
      .news-list-item .date { white-space: normal; }

      /* カードはmd未満で1列表示になる (Bootstrap標準) */
    }



    /* 記事本文のスタイル例 */
    .article-body h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }
    .article-body p {
        line-height: 1.8;
        margin-bottom: 1rem;
    }
    .article-body ul {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }

    /* ページネーションボタン間のスペース */
    .article-pagination a {
        margin: 0 0.5rem; /* 左右に少し余白 */
    }



/* メールフォーム */
div#mform {
  max-width: 1000px;
  margin: 0 auto;
}

div#mform ::placeholder {
  color: #CCCCCC;
}

div.col_ttl {
  background-color: #0095d9;
  padding: 5px 0;
}

@media screen and (min-width: 48em) {
  #mform div.col_td {
    padding-right: 0 !important;
  }
}


div.col_ttl h2 {
  color: #FFF;
  text-align: center;
  font-size: 1.2rem;
  margin: 0;
}

div.col_th {
  background-color: #F0F0F0;
  border-bottom: 1px #FFF solid;
}

div.col_td {
  background-color: #FFF;
  border-bottom: 1px #F0F0F0 solid;
}

.col_th label,
.col_th .badge {
  margin: 1rem 0;
}

.col_td .form-group {
  margin: 1rem 0;
}

.col_td input[type=checkbox],
.col_td input[type=radio] {
  margin-right: 0.25rem;
}

p.error {
  color: #c9171e !important;
  margin-bottom: 1rem;
}

a.text-underline {
  text-decoration: underline;
}

.confirmation-details div.col_td {
    padding: 1rem 1rem;
}

h5.custom-h5-heading{
  font-weight: bold;
}



/* とりあえず上部エラー非表示 */
form>font, form>font+br{
  display: none;
}

div.error-message-field{
  color: #dc3545;
}



.btn.disabled, .btn:disabled {
  opacity: 0.1;
}


/* CMS画像 */
@media (max-width: 768px) {
  section div.article-body img {
    width: 100% !important;
    height: auto !important;
  }
}

.bg-base {
  height: 43.26vw;
  min-height: 191px !important;
}
@media (min-width: 576px) {
  .bg-base { height: 244px !important; }
}
@media (min-width: 768px) {
  .bg-base { height: 326px !important; }
}
@media (min-width: 992px) {
  .bg-base { height: 434px !important; }
}
@media (min-width: 1200px) {
  .bg-base { height: 515px !important; }
}
