/**
 * Use Case Page Styles (page-usecase.php)
 *
 * セクション構成:
 * - section-usecase: 企業導入事例一覧ページ
 * - usecase-placeholder: 準備中プレースホルダー
 * - usecase-list: 企業一覧（2カラムグリッド）
 * - usecase-contact-btn: お問い合わせボタン
 */

/* =====================================
   Section Usecase: メインコンテナ（一覧ページ）
===================================== */
.section-usecase {
  position: relative;
  background-color: #f7f7f7;
  margin-bottom: 0;
  padding-bottom: 32px;
}

.section-usecase--list {
  margin-top: 50px;
}

.section-usecase-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 150px;
  font-size: 20px;
  text-align: center;
  color: #000;
  padding: 0 14px;
}

.section-usecase-title h2 {
  margin: 0;
  letter-spacing: 0.5em;
}

.section-usecase-title-p {
  margin: 0;
  margin-top: 10px;
  font-size: 14px;
  color: #000;
}

/* =====================================
   Usecase Placeholder (準備中アニメーション)
===================================== */
.usecase-placeholder {
  margin: 60px 0 80px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.usecase-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  background: transparent;
  padding: 0;
}

/* プレースホルダー用ロゴ（一覧用と区別） */
.usecase-placeholder .usecase-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.usecase-rotating {
  animation: usecase-fade 5s ease-in-out infinite;
}

.usecase-coming-soon-text {
  color: #333;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

@keyframes usecase-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* =====================================
   Usecase List（企業一覧グリッド）
===================================== */
.usecase-list {
  display: grid;
  gap: 30px;
  margin-bottom: 50px;
}

.usecase-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  display: grid;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usecase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
}

/* 企業ロゴ（一覧用） */
.usecase-item .usecase-logo {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.usecase-item .usecase-logo img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.usecase-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.usecase-company-name {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.usecase-location,
.usecase-business {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.usecase-location {
  margin: 0;
}

.usecase-business p {
  margin: 5px 0 0;
}

.usecase-label {
  font-weight: bold;
  color: #CF0D37;
}

.usecase-btn-wrapper {
  margin-top: 10px;
}

.usecase-detail-btn {
  display: inline-block;
  background-color: #CF0D37;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.usecase-detail-btn:hover {
  background-color: #A30A2C;
}

.no-usecase {
  text-align: center;
  padding: 50px 0;
  color: #666;
}

/* =====================================
   Contact Button（導入のご相談ボタン）
===================================== */
.usecase-contact-btn-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 30px !important;
}

.usecase-contact-btn {
  display: inline-block !important;
  background-color: #CF0D37 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 15px 40px !important;
  border: none !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgb(207 13 55 / 30%) !important;
}

.usecase-contact-btn:hover {
  background-color: #A30A2C !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgb(207 13 55 / 40%) !important;
}

.usecase-contact-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgb(207 13 55 / 30%) !important;
}

/* =====================================
   Responsive Design
===================================== */

/* プレースホルダー - スマホ対応 */
@media (width <= 600px) {
  .usecase-coming-soon-text {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .usecase-placeholder .usecase-logo {
    width: 60px;
    height: 60px;
  }

  .usecase-placeholder {
    margin: 40px 0 60px;
    min-height: 160px;
  }
}

/* PC版２カラムレイアウト */
@media (width >= 768px) {
  .usecase-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecase-item {
    grid-template-columns: 1fr;
  }
}
