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

/***************************************
-------------- VOICE COMMON STYLES --------------
***************************************/
/* 共通カードスタイル */
.voice_card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.voice_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.voice_card_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 共通バッジスタイル */
.voice_card_badge {
  color: #100168;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 600;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* 共通テキストスタイル */
.voice_card_text {
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.6;
  color: #333;
  margin: 0 0 1rem 0;
}

/* 共通日付スタイル */
.voice_card_date,
.detail_date .date {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* 共通画像スタイル */
.voice_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/***************************************
-------------- VOICE INDEX PAGE --------------
***************************************/
#voice {
  margin-bottom: clamp(50px, 10vw, 100px);
}

.voice_wrap {
  width: 94%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: flex-start;
}

/* 一覧ページ専用カードスタイル */
#voice .voice_card {
  flex: 1;
  min-width: 240px;
  max-width: 315px;
  padding: 2rem 1.5rem;
  text-align: center;
}

#voice .voice_card_img {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0 auto 1rem;
  position: relative;
}

#voice .voice_card_content {
  padding: 0;
}

#voice .voice_card_text {
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#voice .voice_card_date {
  text-align: right;
  display: block;
}

/***************************************
-------------- VOICE DETAIL PAGE --------------
***************************************/
#voice_detail {
  min-height: 60vh;
}

#voice_detail .detail_date {
  text-align: right;
  margin-bottom: 1rem;
}

#voice_detail .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;
}

/* 詳細ページ画像スタイル - サイズ調整可能 */
#voice_detail .voice_card_img {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

#voice_detail .detail_img_box {
  flex: 0 0 calc(50% - 0.5rem); /* デフォルト2列 */
  background: #f8f9fa;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 画像サイズバリエーション */
#voice_detail .detail_img_box.size-full {
  flex: 0 0 100%; /* 1列表示 */
}

#voice_detail .detail_img_box.size-third {
  flex: 0 0 calc(33.333% - 0.67rem); /* 3列表示 */
}

#voice_detail .detail_img_box.size-quarter {
  flex: 0 0 calc(25% - 0.75rem); /* 4列表示 */
}

#voice_detail .detail_img_box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

#voice_detail .detail_img_box:hover img {
  transform: scale(1.05);
}

/* 詳細ページテキストエリア */
#voice_detail .voice_card_text {
  font-size: clamp(1.5rem, 2.5vw, 1.7rem);
  line-height: 1.8;
  text-align: left;
  margin-bottom: 2rem;
  /* 省略なし */
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
}

/* 戻るボタン */
.btn_back {
  display: inline-block;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #100168, #4545b0);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 1, 104, 0.3);
  margin-top: 2rem;
}

.btn_back:hover {
  background: linear-gradient(135deg, #0f0157, #3a3a95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 1, 104, 0.4);
}

/***************************************
-------------- RESPONSIVE DESIGN --------------
***************************************/
/* 一覧ページレスポンシブ */
@media (max-width: 1200px) and (min-width: 901px) {
  #voice .voice_card {
    flex: 0 0 calc(50% - 1.33rem);
    max-width: none;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .voice_wrap {
    gap: 1.5rem;
  }

  #voice .voice_card {
    flex: 0 0 calc(50% - 1rem);
    max-width: none;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .voice_wrap {
    width: 100%;
    gap: 1.2rem;
  }

  #voice .voice_card {
    flex: 0 0 calc(50% - 0.6rem);
    min-width: unset;
    max-width: none;
    padding: 1.2rem;
  }
}

/* 詳細ページレスポンシブ */
@media (max-width: 768px) {
  #voice_detail .detail_img_box {
    flex: 0 0 100%; /* タブレットで1列 */
  }

  #voice_detail .detail_img_box.size-third,
  #voice_detail .detail_img_box.size-quarter {
    flex: 0 0 calc(50% - 0.5rem); /* 2列に変更 */
  }
}

@media (max-width: 599px) {
  #voice_detail .detail_img_box,
  #voice_detail .detail_img_box.size-third,
  #voice_detail .detail_img_box.size-quarter {
    flex: 0 0 100%; /* スマホで全て1列 */
  }

  .voice_card_img {
    width: 100%;
    height: auto;
  }
}

/***************************************
-------------- UTILITY CLASSES --------------
***************************************/
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}
