@charset "utf-8";
@import url("root.css");

/***************************************
-------------- NEWS --------------
***************************************/
.news_wrap {
  width: 94%;
  margin: auto;
}
.news_list {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  dt a,
  dd a {
    width: fit-content;
    display: flex;
    flex-shrink: 0;
    font-size: 1.8rem;
  }
  dd a:hover {
    text-decoration: underline;
  }
}
.news_list:not(:last-of-type) {
  padding-bottom: 2rem;
  border-bottom: 2px dotted #999;
  margin-bottom: 2rem;
}

@media (max-width: 599px) {
  .news_list {
    flex-wrap: wrap;
    dt {
      width: 100%;
      margin-bottom: 1rem;
    }
    dd {
      width: 100%;
    }
  }
}

#news_detail {
  .detail_date {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto 2rem;
    span {
      margin: 0;
    }
  }
  h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--base-color01);
    margin-bottom: 2rem;
  }
  .detail_text {
    margin-bottom: clamp(15px, 3vw, 30px);
  }
}

.detail_img_wrap {
  display: flex;
  width: 100%;
  margin-bottom: clamp(10px, 2vw, 20px);
  gap: clamp(10px, 2vw, 20px) 2%;
  flex-wrap: nowrap;
  .detail_img_box {
    width: 49%;
    height: auto;
    aspect-ratio: 1/1;
    a {
      width: 100%;
      img {
        aspect-ratio: 1/1;
        object-fit: cover;
      }
    }
  }
}

@media (max-width: 599px) {
  .detail_img_wrap {
    flex-wrap: wrap;
  }
}

/* ソート・フィルター機能 -  */

.news_filter_wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(8px, 3vw, 24px);
  margin-bottom: clamp(16px, 4vw, 32px);
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.news_filter_wrap:hover {
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news_filter_wrap form {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 2vw, 20px);
  align-items: end;
  flex-direction: row;
}

.filter_section {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1vw, 8px);
  min-width: clamp(60px, 15vw, 140px);
  flex: 1;
}

.filter_section label {
  font-weight: 600;
  font-size: clamp(9px, 1.2vw, 13px);
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: clamp(1px, 0.5vw, 4px);
}

.filter_section select {
  padding: clamp(6px, 1.5vw, 12px) clamp(8px, 2vw, 16px);
  border: 2px solid #e5e7eb;
  border-radius: clamp(3px, 0.5vw, 6px);
  font-size: clamp(10px, 1.4vw, 14px);
  background: #ffffff;
  color: #374151;
  transition: all 0.2s ease;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right clamp(6px, 1.5vw, 12px) center;
  background-repeat: no-repeat;
  background-size: clamp(10px, 2vw, 16px);
  padding-right: clamp(24px, 5vw, 40px);
  appearance: none;
  width: 100%;
}

.filter_section select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter_section select:hover {
  border-color: #d1d5db;
}

.filter_section button {
  padding: clamp(6px, 1.5vw, 12px) clamp(10px, 3vw, 24px);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: clamp(4px, 1vw, 8px);
  font-size: clamp(10px, 1.4vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.filter_section button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.filter_section button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
}

.reset_btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 1vw, 6px);
  padding: clamp(6px, 1.5vw, 12px) clamp(10px, 2.5vw, 20px);
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  text-decoration: none;
  border-radius: clamp(3px, 0.5vw, 6px);
  font-size: clamp(10px, 1.4vw, 14px);
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
  white-space: nowrap;
}

.reset_btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.reset_btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(107, 114, 128, 0.2);
}

/* アイコン付きリセットボタン */
.reset_btn::before {
  content: "↻";
  font-size: clamp(12px, 2vw, 16px);
  font-weight: bold;
}

/* レスポンシブデザイン */
/* @media (max-width: 768px) {
  .news_filter_wrap {
    padding: 20px;
    margin-bottom: 24px;
  }

  .news_filter_wrap form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter_section {
    width: 100%;
    min-width: unset;
  }

  .filter_section select,
  .filter_section button,
  .reset_btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .news_filter_wrap {
    padding: 16px;
    border-radius: 8px;
  }

  .filter_section label {
    font-size: 12px;
  }

  .filter_section select,
  .filter_section button,
  .reset_btn {
    padding: 10px 16px;
    font-size: 13px;
  }
} */
