@charset "UTF-8";
/*============================================================================

開業実績 Page

============================================================================*/
.achievement_list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* カード間の隙間 */
  margin: 60px 0;
  justify-content: flex-start; /* これで最後の段でも左寄せになり、大きくなりません */
}
@media (max-width: 767px) {
  .achievement_list {
    flex-direction: column;
    align-items: center;
  }
}

.achievement_item {
  /* 幅を固定値に設定 */
  width: calc((100% - 80px) / 3);
  border-radius: 20px;
  box-shadow: 0 0 20px #d5d5d5;
  display: flex;
  flex-direction: column;
  flex-grow: 0; /* カードが伸縮しないように設定 */
  flex-shrink: 0; /* カードが縮まないように設定 */
}

.achievement_img {
  width: 100%;
  height: 280px; /* ご指定の固定の高さ */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  position: relative;
}
.achievement_img img {
  width: 100%;
  height: 280px;
  -o-object-fit: cover;
     object-fit: cover; /* 画像がはみ出すことなく、コンテナを完全に覆う */
  -o-object-position: center;
     object-position: center; /* 画像の中心を基準にする */
  display: block; /* 画像の下の余白を削除 */
}
.achievement_img .tag {
  position: absolute;
  color: #ffffff;
  background: #ff7d43;
  border: 1px solid #ff7d43;
  border-radius: 0 5px 5px 0;
  padding: 5px 10px 5px 20px;
  margin-right: 10px;
  top: 20px;
  left: -10px;
  z-index: 2;
}

.achievement_body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* 残りのスペースを埋めて、すべてのカードの高さが揃うようにする */
}

.achievement_title {
  display: flex;
  align-items: center;
  height: 30px;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 5px;
  padding-bottom: 20px;
  border-bottom: solid 1px #ddd;
}

.achievement_address,
.achievement_name,
.achievement_date,
.achievement_facilities {
  font-size: 16px;
  color: #555;
  margin-bottom: 5px;
}

.achievement_url {
  margin-top: auto;
}
.achievement_url a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 2px solid #ccc;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.3s ease-in-out; /* アニメーションを追加 */
}
.achievement_url a::after {
  content: "";
  background: url(/images/new_window.png) no-repeat center;
  background-size: cover;
  margin-left: 5px;
  width: 16px;
  height: 16px;
}
.achievement_url a:hover {
  border-color: #19a568; /* ホバー時のボーダー色を緑に設定 */
}

/* ---ここからスマートフォン向けスタイル--- */
@media screen and (max-width: 640px) {
  .achievement_list {
    margin: 30px 0;
    padding: 0;
    gap: 20px;
    justify-content: center;
  }
  .achievement_item {
    width: 100%;
    max-width: 350px;
    margin-bottom: 0;
  }
  .achievement_title {
    height: 50px;
  }
}/*# sourceMappingURL=achievement.css.map */