/* ============================================================
   Gifted 経営理念セクション：完全整合版（タイトル＋金ラベル修復）
============================================================ */

.philosophy-section.flat {
  position: relative !important;
  z-index: 5 !important;
  background: #0d1526 !important;
  margin-top: -55px !important;
  padding: 36px 0 10px !important;
  text-align: center !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

/* ===== ラベル（GIFTED WORDPRESS） ===== */
.philosophy-section.flat .section-label {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfab6e !important;
  margin-bottom: 18px;
  font-weight: 600;
  position: relative;
}
.philosophy-section.flat .section-label::before,
.philosophy-section.flat .section-label::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 1px;
  background: #cfab6e;
}
.philosophy-section.flat .section-label::before { left: -46px; }
.philosophy-section.flat .section-label::after { right: -46px; }

/* ===== タイトル ===== */
.philosophy-section.flat .section-title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 auto 6px !important;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
}

/* スマホ折り返し */
@media (max-width: 768px) {
  .philosophy-section.flat .section-title {
    white-space: normal !important;
    font-size: 1.25rem !important;
    line-height: 1.45 !important;
  }
}

/* ===== サブコピー ===== */
.philosophy-section.flat .sub-copy {
  font-size: 0.9rem !important;
  opacity: 0.85 !important;
  margin-bottom: 16px !important;
  color: #fff !important;
}

/* ===== ボタン ===== */
.philosophy-section.flat .action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px !important;
  flex-wrap: wrap;
  margin-top: 12px !important;
}

.philosophy-section.flat .action-buttons .btn {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-width: 220px !important;
  height: 52px !important;
  padding: 0 44px !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: 2px solid #fff !important;
  transition: all 0.3s ease;
  box-sizing: border-box !important;
}

/* 金ボタン */
.philosophy-section.flat .action-buttons .btn.btn-main {
  background: #cfab6e !important;
  border-color: #cfab6e !important;
  color: #0d1526 !important;
}
.philosophy-section.flat .action-buttons .btn.btn-main:hover {
  background: #e0bb7e !important;
  transform: translateY(-2px);
}

/* 白枠ボタン */
.philosophy-section.flat .action-buttons .btn.btn-sub {
  background: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}
.philosophy-section.flat .action-buttons .btn.btn-sub:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* スマホ調整 */
@media (max-width: 768px) {
  .philosophy-section.flat {
    margin-top: -28px !important;
    padding: 50px 0 60px !important;
  }
  .philosophy-section.flat .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .philosophy-section.flat .action-buttons .btn {
    width: 80%;
    min-width: 200px;
    height: 50px !important;
  }
}


/* ============================================================
   Gifted Voice Section（フルワイド×横5枚×ボタン見切れ防止Ver.）
============================================================ */

section.gifted-voice-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(to bottom, #FAFAFA, #FFFFFF);
  overflow: hidden;
  padding: 120px 0;
}

/* 横並びで5枚をフルワイド配置 */
.voice-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 40px;
  padding: 0 4vw;
}

/* 横長やや縦長カード */
.voice-card.horizontal {
  flex: 0 0 calc(20% - 32px);
  display: flex;
  flex-direction: column;
  height: 320px; /* ← 高さをさらに20px拡張 */
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  background-image: linear-gradient(#fff,#fff),
    linear-gradient(135deg,#CFAB6E,#F8EED8);
  animation: floatSlim 6s ease-in-out infinite;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* ブロークン上下配置 */
.voice-card:nth-child(1){ margin-top: 0;    animation-delay: 0s; }
.voice-card:nth-child(2){ margin-top: 60px; animation-delay: .6s; }
.voice-card:nth-child(3){ margin-top: -50px;animation-delay: 1.2s; }
.voice-card:nth-child(4){ margin-top: 80px; animation-delay: 1.8s; }
.voice-card:nth-child(5){ margin-top: -60px;animation-delay: 2.4s; }

/* 浮遊アニメーション */
@keyframes floatSlim {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-22px) scale(1.02); }
}
.voice-card.horizontal:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow: 0 18px 50px rgba(0,0,0,0.15);
}

/* 画像部分 */
.voice-thumb {
  height: 65%; /* ← 70% → 65% に減らし、下に余白確保 */
  overflow: hidden;
}
.voice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.voice-card.horizontal:hover .voice-thumb img {
  transform: scale(1.08);
}

/* 星＋ボタン部分（下中央） */
.voice-content {
  height: 35%; /* ← 比率調整で下側に余裕を作成 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 8px; /* ← 余裕を追加 */
}
.voice-stars {
  margin-bottom: 14px; /* 星とボタン間も広げる */
}
.voice-stars .star {
  color: #ccc;
  font-size: 1.1rem;
  margin: 0 2px;
}
.voice-stars .star.active { color: #CFAB6E; }

/* 中央ボタン */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: 1px solid #0d1526;
  border-radius: 30px;
  color: #0d1526;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.btn-more:hover {
  background: linear-gradient(135deg,#CFAB6E,#E0BB7E);
  color:#fff;
  border-color:#CFAB6E;
}

/* スマホ表示 */
@media (max-width: 768px){
  .voice-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }
  .voice-card.horizontal {
    flex: none;
    width: 100%;
    max-width: 500px;
    height: 340px; /* ← スマホでも余裕を確保 */
    margin-top: 0 !important;
    animation-delay: 0s !important;
  }
  .voice-thumb {
    height: 65%;
  }
  .voice-content {
    height: 35%;
    padding-bottom: 10px;
  }
  @keyframes floatSlim {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-14px); }
  }
}
