@charset "UTF-8";
/* ===================================================
   km_voice_add.css
   対象ページ：喜びの声（熊本・男性 / voice-mens）
   クラスプレフィックス：km-voice-
   =================================================== */

.km-voice-wrap {
  max-width: 900px;
  margin: 0 auto !important;
  padding: 0 16px 40px !important;
  box-sizing: border-box;
}

.km-voice-wrap * {
  box-sizing: border-box;
}

/* ---------- タイトルヒーロー ---------- */
.km-voice-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e5fc9 0%, #2f7bf0 55%, #4a9bff 100%);
  border-radius: 14px;
  padding: 36px 28px 44px;
  margin: 0 0 24px !important;
  text-align: center;
}

.km-voice-hero::before {
  content: "\201C";
  position: absolute;
  top: -30px;
  left: 10px;
  font-family: Georgia, serif;
  font-size: 160px;
  line-height: 1;
  color: #ffffff;
  opacity: 0.08;
  pointer-events: none;
}

.km-voice-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: #fdfdfd;
  border-radius: 100% 100% 0 0 / 28px 28px 0 0;
}

.km-voice-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 5px 18px;
  letter-spacing: 2px;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

.km-voice-hero-title {
  position: relative;
  z-index: 1;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.km-voice-hero-quote {
  color: #ffe66a;
}

.km-voice-hero-sub {
  position: relative;
  z-index: 1;
  font-size: 14px !important;
  color: #e3edff !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  margin: 0 !important;
}

/* ---------- 2カラムグリッド ---------- */
.km-voice-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

.km-voice-grid + .km-voice-grid {
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px dashed #e0e0e0;
}

.km-voice-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.km-voice-item:hover,
.km-voice-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.km-voice-item-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 拡大アイコン（ホバー時） ---------- */
.km-voice-item {
  position: relative;
}

.km-voice-item::after {
  content: "🔍";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.km-voice-item:hover::after,
.km-voice-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

/* タッチ端末（ホバー非対応）では常時表示し、タップで即座に新しいタブが開くことを示す */
@media (hover: none) {
  .km-voice-item::after {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 新形式：写真＋コメント＋お名前カード ---------- */
.km-voice-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.km-voice-card .km-voice-item {
  border-radius: 0;
  box-shadow: none;
}

.km-voice-card .km-voice-item:hover,
.km-voice-card .km-voice-item:focus-visible {
  transform: none;
  box-shadow: none;
}

.km-voice-comment {
  position: relative;
  background: linear-gradient(135deg, #fff7e6, #ffedf0);
  padding: 22px 16px 16px;
  margin: 0;
}

.km-voice-comment::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff7e6;
}

.km-voice-comment::after {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 12px;
  font-size: 46px;
  font-family: Georgia, serif;
  color: #f5c800;
  opacity: 0.6;
  line-height: 1;
}

.km-voice-comment-text {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  line-height: 1.8;
  color: #3d3d3d;
  margin: 0;
}

.km-voice-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 16px;
  margin: 0;
  background: #ffffff;
}

.km-voice-name-age {
  background: #333333;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.km-voice-name-text {
  font-size: 13px;
  font-weight: 700;
  color: #3d3d3d;
}

/* ---------- モバイル対応 ---------- */
@media screen and (max-width: 480px) {
  .km-voice-grid {
    gap: 8px;
  }

  .km-voice-hero {
    padding: 28px 20px 36px;
  }

  .km-voice-hero-title {
    font-size: 21px !important;
  }

  .km-voice-hero-sub {
    font-size: 12.5px !important;
  }
}
