/* ============================================================
 * Voice (合格者の声) ページ専用 CSS
 * ============================================================ */

/* ページ背景グラジェント */
/* ページ背景は shared.css の .page-id-31 ルール (装飾 + 204deg gradient) に統合済み。 */

/* ============================================================
 * セクションタイトル（margin は voice 固有値）
 * ============================================================ */
.aoi-page-voice .aoi-section-title-wrap {
  margin: 50px 0 40px;
}

/* ============================================================
 * フィルター (.aoi-voice-filter)
 * ============================================================ */
.aoi-voice-filter.aoi-white-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 16px;
}

.aoi-voice-filter.aoi-white-box > div {
  min-width: 0;
}

.aoi-voice-filter select,
.aoi-voice-filter input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid #d0e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1c4660;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.aoi-voice-filter select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%231c4660' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.aoi-voice-filter__submit {
  display: flex;
  justify-content: flex-end;
}

.aoi-voice-filter__submit button {
  width: 100%;
  height: 44px;
  padding: 0 24px;
  background: #1c4660;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
 * 合格者カードグリッド
 * ============================================================ */
.voice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-item {
  border: 1px solid #b8e8ed;
  border-top: 3px solid #17bfbd;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.voice-item::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 72px;
  height: 72px;
  background-image: url(../assets/images/sakura.svg);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.voice-item__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.voice-item__badge-wrap {
  margin-bottom: 4px;
}

.voice-item .voice-graduate-year-and-text {
  display: inline-block;
  font-size: 12px;
  background: #e5f5f9;
  border-radius: 10px;
  padding: 4px 10px;
  color: #1c4660;
  margin: 0;
}

.voice-item__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-item .voice-university {
  font-size: 16px;
  font-weight: 700;
  color: #1c4660;
  line-height: 1.4;
  margin: 0;
}

.voice-item .voice-faculty {
  font-size: 12px;
  color: #797979;
  margin: 0;
  text-align: left;
}

.voice-item .voice-name {
  font-size: 14px;
  font-weight: 500;
  color: #1c4660;
  margin: 0;
}

.voice-item__quote {
  margin: 8px 0;
  border-left: 3px solid #d0e8f0;
  padding-left: 12px;
}

.voice-item .voice-message {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  text-align: left;
  margin: 0;
  border-left: none;
  padding: 0;
}

.voice-item .aoi_outline_and_arrow_button {
  margin-top: 16px;
}

.voice-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.voice-item__tag {
  background: #e5e5e5;
  color: #1c4660;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}

.js-voice-item.is-hidden {
  display: none;
}

/* ============================================================
 * タブレット (max-width: 959px): 2 カラム
 * ============================================================ */
@media (max-width: 959px) {
  .aoi-voice-filter.aoi-white-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
 * SP (max-width: 599px): 1 カラム
 * ============================================================ */
@media (max-width: 599px) {
  .aoi-voice-filter.aoi-white-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .voice-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
 * 末端余白: voice-list とフッターが密着しないよう下方向の padding を追加
 * ============================================================ */
.aoi-page-voice .clever-container {
  padding-bottom: 80px;
}

@media (max-width: 599px) {
  .aoi-page-voice .clever-container {
    padding-bottom: 48px;
  }
}
