@charset "utf-8";

/* News&Topics
-------------------------------------------------------*/
.area_news {
  padding: 32px 0;
  display: grid;
  gap: 32px;
}
.news_title {
  width: 100%;
  text-align: center;
}
.news_title img {
  max-width: 236px;
}
.area_news .line {
  width: 100%;
  text-align: center;
  margin-top: -30px;
}
.area_news .line .line_b {
  max-width: 600px;
}
.news_box {
  padding: 12px 24px;
  background-color: #f7fbfb;
  border-radius: 24px;
}

.accordion-title {
  padding: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 1.2em;
  color: #4c371f;
  transition: color 0.3s;
  position: relative;
  padding-right: 30px; /* アイコンのためのスペース */
}
.accordion-title::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='currentColor'%3E%3Cpath d='M9 18l6-6-6-6v12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.accordion-title:hover .title {
  color: #025853;
}
.accordion-title:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* 日付、タイトル、カテゴリのスタイル */
.accordion-title .title {
  font-weight: bold;
  line-height: 120%;
  flex-grow: 1;
}
.accordion-title .title.other {
  font-size: 16px;
  font-weight: 400;
}

.accordion-title .date {
  font-size: 0.6em;
  color: #666;
}

.accordion-title .category {
  background-color: #025853;
  color: #e0e0e0;
  margin: 0 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.6em;
}

/* その他のお知らせのスタイル */
.other_news {
  display: grid;
  gap: 16px;
}
.other_news .accordion-item {
  border: 1px solid #cecece;
  border-radius: 8px;
}
.other_news .accordion-title {
  font-size: 1.1em;
  font-weight: bold;
}

/* 臨時ニュースカテゴリのスタイル */
.rinji_news {
  margin-bottom: 0;
}
.rinji_news .accordion-title .category {
  background-color: #c20b0b;
}

.accordion-content {
  padding: 10px;
  text-align: left;
}
.accordion-content p {
  letter-spacing: 0.12em;
  line-height: 150%;
  font-size: 1.1em;
}
.accordion-content p a {
  text-decoration: underline;
}
.accordion-content p strong {
  font-weight: bold;
}

/* お知らせ詳細のアニメーション設定 */
.accordion-item[open] .accordion-content {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ユーザーエージェントスタイルの▼を無効化 */
summary {
  list-style: none;
}
summary::marker,
summary::-webkit-details-marker {
  display: none;
}
