@charset "UTF-8";
/**
* イベント・ニュース
-------------------------------------------------- */
.news {
  display: block;
}

.box .box-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.box-layout img {
  border: 0.1rem solid #dfdfdf;
}

.box-layout .left-box {
  margin-right: 3rem;
}

.news-title {
  border: none;
  padding: 0;
}

.news-title span {
  font-size: 1.8rem;
}

.news .right-box {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  color: #333;
}

.news .right-box::after {
  content: "";
}

.news .right-box dl {
  display: flex;
  margin-right: auto;
  font-size: 1.2rem;
  font-weight: 600;
}

.news-container {
  width: 80%;
  max-width: 100rem; /* 最大幅を設定 */
  margin: 0 auto;
}


/**
* ページ内タブリンク（ヘッダーと同様の下線アニメーション）
-------------------------------------------------- */
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 4rem 0;
}

.tab-button {
  position: relative;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  padding: 1rem 8rem;
  /* z-indexは必要に応じて調整 */
  z-index: 2;
}

.tab-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 4px;
  background: #91c31e;
  transition: all 0.3s;
}

.tab-button:hover::before {
  left: 0;
  width: 100%;
}

.tab-button.active::before {
  left: 0;
  width: 100%;
}

.tab-button:hover,
.tab-button.active {
  color: #91c31e;
}

.news-tabs{
  border-bottom: 1px #888 solid;
  margin-bottom: 3rem;
  padding-bottom: 1.9rem;
}

.tab-list li{
  width: 25%;
  text-align: center;
}

/**
* 以下、その他のニュース一覧用スタイル（変更なし）
-------------------------------------------------- */

.news-list {
  list-style: none;
  padding: 0;
}

.news-item {
  background-color: #fff;
  border-radius: 0; /* 角丸をなくす */
  padding: 1.5rem 2rem;
  margin-bottom: 0;
  border-bottom: 0.2rem dotted #ddd;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.news-item:last-child {
  border-bottom: none; /* 最後のアイテムの下線を消す */
}

.news-item:hover {
  background-color: #f9f9f9;
}

.news-item.has-stretched-link {
  position: relative;
}

.news-item.has-stretched-link .stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.news-item.has-stretched-link:hover {
  background-color: #f8f8f8;
  transition: background-color 0.2s ease;
}

.news-item-thumbnail {
  width: 24rem;
  margin-right: 2rem;
  flex-shrink: 0;
}

.news-item-content {
  margin-right: 2rem;
  flex-grow: 1;
}

.news-item-date {
  display: inline-block;
  font-size: 0.9em;
  color: #777;
  margin: 0 2rem 2rem 0;
}

.news-item-tag {
  display: inline-block;
  padding: 0.2rem 2rem;
  background-color: #91c31e;
  color: #fff;
  border-radius: 0.3rem;
  font-size: 0.8em;
}

/* ニュースタグカラー -----------------*/
.news-item-tag.event {
  background-color: #28a745;
}

.news-item-tag.notice {
  background-color: #17a2b8;
}

.news-item-tag.seminar {
  background-color: #ffc107;
}
/*-----------------ニュースタグカラー */

.news-item-title {
  font-size: 1.8rem;
  font-family: "メイリオ", "Meiryo", "ＭＳ ゴシック", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", sans-serif;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.news-item-title a {
  color: #333;
}

.news-item-arrow {
  padding: 3rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #fff;
  border: 0.1rem solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.news-item:hover .news-item-arrow {
  background-color: #91c31e;
  color: #fff;
  border-color: #91c31e;
}

.news-item-arrow::after {
  content: '→';
}

/*ページネーション*/
.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.2rem;
  color: #00373E;
  background-color: #fff;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: rgba(145, 195, 30, 0.8); /* #91c31e をやや透過 */
  color: #fff;
}

.pagination .current {
  background-color: #91c31e;
  color: #fff;
  border-color: #91c31e;
}


/**
* 詳細ページ
------------------------------------- */
.news-detail-inner {
  width: 80rem;
  margin: 0 auto;
}

.header-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.news-detail-meta {
  font-size: 0.9em;
  color: #888;
  margin: 3rem 0;
}

.news-detail-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

.news-detail-image {
  margin: 0 0 4rem;
}

.news-detail-image img {
  width: 100%;
  height: auto;
}

.news-detail-tbody {
  margin: 0 0 8rem;
  line-height: 1.6;
}

.internship-image {
  display: flex;
  margin: 0 0 4rem;
}


/*--------------------- Responsive ---------------------*/
@media screen and (max-width: 768px) {
  .wrapper {
    width: 100%;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  .tab-list {
    display: block;
    justify-content: left;
    padding-bottom: 1rem;
  }

  .tab-list li {
    display: block;
    width: 100%; /* 幅を100%にして縦並びに */
    padding: 0.5rem 0;
    font-size: 1.2rem;
    text-align: left; /* テキストは左寄せ */
  }
  .tab-list li a {
    text-decoration: none;
    padding: 0.5rem 0;
    color: #222;
    display: inline-block; /* テキスト幅に合わせたインラインブロック */
  }

  /* スマホ用：タブボタンのパディング・表示を調整し、下線の幅をテキスト幅に合わせる */
  .tab-button {
    padding: 0.5rem 1rem;
    display: inline-block;
    width: auto;
    position: relative;
  }

  .tab-button::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #91c31e;
    transition: all 0.3s;
  }

  .tab-button:hover::before {
    width: 100%;
  }

  .tab-button.active::before {
    width: 100%;
  }

  .pc-only {
    display: none;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .tabs {
    display: block;
    margin: 4rem 0;
  }

  /* ニュース一覧レイアウトの調整（スマホ用） */
  .news-item {
    display: block;
    margin: 0 0 2rem;
    padding: 0 0 2rem;
  }

  .news-item-thumbnail {
    width: 100%;
    margin: 0;
  }

  .news-item-content {
    margin: 2rem 0 0;
  }

  .news-item-title {
    font-size: 2.0rem;
    margin: 0 0 1rem;
  }

  .news-item-arrow {
    margin-left: auto;
  }

  /* 詳細ページ --------------- */
  .news-detail-inner {
    width: 100%;
    padding: 1.5rem;
  }

  .sub-content {
    display: block;
  }

  .sub-itembox {
    display: block;
  }

  .local-link {
    display: block;
    width: 100%;
  }

  .item-content {
    display: block;
    width: 100%;
    padding: 0 2rem;
  }

  .content-left {
    margin: 0;
    padding: 0;
  }

  .layout {
    display: block;
  }

  .sub-layout {
    width: 100%;
  }

  .subpage-ttl {
    font-size: 2.1rem;
  }

  .subtop-title {
    font-size: 4.2rem;
    margin: 0 0 4rem;
    padding: 0 2rem;
  }
}
