@charset "UTF-8";

/* ============================================
   特選物流倉庫ページ専用スタイル
   サイトのトンマナ（濃紺 #1b4965 / ブルー #5fa8d3 / 白）に統一
   ============================================ */
.warehouse-page {
  background-color: var(--main-blue, #5fa8d3);
  padding: 80px 5% 60px;
  min-height: 100vh;
  color: #fff;
}

/* ページタイトル（デザインカンプ：左揃え・太字） */
.warehouse-page .page-title {
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------
   ページイントロダクション（説明文）
   --------------------------------- */
.wh-intro {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 50px 60px;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
}

.wh-intro__catch {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: #fff;
}

.wh-intro__text {
  font-size: 1.05rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}


/* ---------------------------------
   倉庫タイプ比較セクション
   --------------------------------- */
.wh-compare {
  margin-top: 50px;
  padding-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.wh-compare__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: #fff;
}

.wh-compare__lead {
  font-size: 1rem;
  line-height: 2;
  text-align: center;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* 比較カードのグリッドレイアウト */
.wh-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 35px;
}

/* カード共通 */
.wh-compare__card {
  background-color: #fff;
  border-radius: 8px;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 一般倉庫カード（控えめに） */
.wh-compare__card--standard {
  background-color: #f6f9fc;
  color: #555;
}

/* 大型倉庫カード（推し）：濃紺ベースで存在感 */
.wh-compare__card--large {
  background-color: #fff;
  border: 2px solid #1b4965;
  /* ほんのり浮かせる */
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(27, 73, 101, 0.25);
}

/* RECOMMEND バッジ */
.wh-compare__badge {
  position: absolute;
  top: -14px;
  right: 25px;
  background-color: #1b4965;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(27, 73, 101, 0.3);
}

/* カードタイトル */
.wh-compare__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(27, 73, 101, 0.15);
}

.wh-compare__card--standard .wh-compare__card-title {
  color: #1b4965;
}

.wh-compare__card--large .wh-compare__card-title {
  color: #1b4965;
  font-size: 1.35rem; /* 推しは少し大きめ */
}

/* リスト */
.wh-compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wh-compare__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #333;
  letter-spacing: 0.03em;
}

.wh-compare__list li:last-child {
  margin-bottom: 0;
}

/* アイコン：メリット（プラス） */
.wh-compare__icon-pos {
  position: absolute;
  left: 0;
  top: 5px;
  color: #5fa8d3;
  font-size: 1rem;
}

/* 大型倉庫側のメリットアイコンは濃いめに（強調） */
.wh-compare__card--large .wh-compare__icon-pos {
  color: #1b4965;
}

/* アイコン：デメリット（マイナス） */
.wh-compare__icon-neg {
  position: absolute;
  left: 0;
  top: 5px;
  color: #b0b0b0;
  font-size: 1rem;
}

/* クロージング文 */
.wh-compare__closing {
  text-align: center;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 25px 20px;
  background-color: rgba(27, 73, 101, 0.4);
  border-radius: 6px;
  border-left: 3px solid #fff;
}

/* ---------------------------------
   レスポンシブ
   --------------------------------- */
@media screen and (max-width: 768px) {
  .wh-compare {
    margin-top: 35px;
    padding-top: 30px;
  }

  .wh-compare__title {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }

  .wh-compare__lead {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 30px;
  }

  /* スマホでは縦積み */
  .wh-compare__grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }

  .wh-compare__card {
    padding: 28px 22px;
  }

  /* スマホでは推しカードの浮き上がりをリセット（不自然になるため） */
  .wh-compare__card--large {
    transform: translateY(0);
  }

  .wh-compare__card-title {
    font-size: 1.1rem;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .wh-compare__card--large .wh-compare__card-title {
    font-size: 1.15rem;
  }

  .wh-compare__list li {
    font-size: 0.88rem;
    padding-left: 24px;
    margin-bottom: 12px;
  }

  .wh-compare__lead br {
    display: none;
  }

  .wh-compare__closing {
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 20px 15px;
  }

  .wh-compare__closing br {
    display: none;
  }

  .wh-compare__badge {
    font-size: 0.7rem;
    padding: 5px 14px;
    right: 15px;
  }
}


/* ---------------------------------
   タブメニュー（エリア切替）
   --------------------------------- */
.wh-tab-area {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: flex-start;
}

.wh-tab-menu {
  display: flex;
  gap: 0;
}

.wh-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 30px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

/* タブ間の区切り線 */
.wh-tab-btn + .wh-tab-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background-color: rgba(255, 255, 255, 0.4);
}

.wh-tab-btn.is-active {
  color: #fff;
}

/* パネル表示制御 */
.wh-panel {
  display: none;
}

.wh-panel.is-show {
  display: block;
}

/* ---------------------------------
   スクロールテーブル（固定列・固定行対応）
   --------------------------------- */
.wh-table-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 6px;
  scrollbar-width: auto; /* Firefox：太めのスクロールバー */
  scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.15);
  cursor: grab; /* ドラッグでのスクロールが可能であることを明示 */
}

.wh-table-wrapper:active {
  cursor: grabbing;
}

.wh-table-wrapper::-webkit-scrollbar {
  height: 14px;
  width: 14px;
}

.wh-table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 7px;
}

.wh-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.wh-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.wh-table {
  width: auto;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  /* table-layout は auto（デフォルト）のままにすることで、
     物件名が長い列だけ自然に広がる */
}

/* セル共通 */
.wh-table th,
.wh-table td {
  padding: 18px 22px;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1.7;
  border-bottom: 1px solid rgba(27, 73, 101, 0.12);
  box-sizing: border-box;
}

/* ---------------------------------
   ヘッダー行（物件名）＝上固定
   濃紺背景 × 白文字 → サイトの主要カラーで視認性と存在感を確保
   --------------------------------- */
.wh-table thead th,
.wh-table thead td {
  position: sticky;
  top: 0;
  z-index: 10;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* 物件名セル：濃紺ベースで存在感 */
.wh-table thead td {
  background-color: #1b4965;
  color: #fff;
  font-size: 1rem;
  padding: 22px;
  border-bottom: 3px solid #5fa8d3; /* アクセントライン：サイトのブルー */
  border-right: 1px solid rgba(95, 168, 211, 0.3);
}

.wh-table thead td:last-child {
  border-right: none;
}

/* ---------------------------------
   左カラム（項目名ラベル）＝左固定
   白背景 × 濃紺文字 → ヘッダーと対になるカラー
   --------------------------------- */
.wh-table th.wh-th-label {
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: #e8eff5; /* 薄いブルーグレーで白セルと差別化 */
  color: #1b4965;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  border-right: 2px solid #1b4965;
  box-sizing: border-box;
}

/* 左上の角セル（左固定＋上固定の交差点） */
.wh-table thead th.wh-th-label {
  z-index: 15;
  background-color: #1b4965;
  color: #fff;
  font-size: 0.85rem;
  border-right: 2px solid rgba(95, 168, 211, 0.5);
  border-radius: 6px 0 0 0; /* 左上の角R */
}

/* ---------------------------------
   データセル：白ベースで高い可読性
   --------------------------------- */
.wh-table tbody td {
  background-color: #fff;
  color: #333;
  min-width: 350px;
  border-right: 1px solid rgba(27, 73, 101, 0.08);
}

.wh-table tbody td:last-child {
  border-right: none;
}

/* 右上の角 */
.wh-table thead td:last-child {
  border-radius: 0 6px 0 0;
}

/* 右下の角 */
.wh-table tbody tr:last-child td:last-child {
  border-radius: 0 0 6px 0;
}

/* 左下の角 */
.wh-table tbody tr:last-child th.wh-th-label {
  border-radius: 0 0 0 6px;
}

/* 偶数行にごく薄い色を敷いて視線誘導 */
.wh-table tbody tr:nth-child(even) td {
  background-color: #f6f9fc;
}

.wh-table tbody tr:nth-child(even) th.wh-th-label {
  background-color: #dce6ef; /* 偶数行は少し濃いブルーグレー */
}

/* ホバー時：行全体をうっすらブルーに */
.wh-table tbody tr:hover td {
  background-color: #eaf3fa;
  transition: background-color 0.2s ease;
}

.wh-table tbody tr:hover th.wh-th-label {
  background-color: #cddcea;
  transition: background-color 0.2s ease;
}

/* ---------------------------------
   スクロールヒント
   --------------------------------- */
.wh-scroll-hint {
  text-align: right;
  font-size: 0.8rem;
  margin-top: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.7);
  display: none;
}

@media screen and (max-width: 1024px) {
  .wh-scroll-hint {
    display: block;
  }
}

/* ---------------------------------
   CTAエリア
   --------------------------------- */
.wh-cta-area {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 50px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wh-cta-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- ローディングアニメーション --- */
.wh-loading-container {
  text-align: center;
  padding: 80px 20px;
}

.wh-spinner {
  width: 45px;
  height: 45px;
  margin: 0 auto 15px;
  border: 5px solid #f0f0f0;
  border-top: 5px solid #1c3c5a;
  border-radius: 50%;
  animation: wh-spin 1s linear infinite;
}

.wh-loading-text {
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.05em;
}

@keyframes wh-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------------------------------
   レスポンシブ
   --------------------------------- */
@media screen and (max-width: 768px) {
  .warehouse-page {
    padding: 70px 3% 50px;
  }

  .warehouse-page .page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .wh-tab-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .wh-table th,
  .wh-table td {
    padding: 14px 16px;
    font-size: 0.82rem;
  }

  .wh-table thead td {
    font-size: 0.9rem;
    padding: 16px;
  }

  .wh-table th.wh-th-label {
    position: sticky;
    left: 0;
    z-index: 10;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    font-size: 13px;
    padding: 10px 5px;
    box-sizing: border-box;
  }

  .wh-table tbody td {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    font-size: 14px;
    box-sizing: border-box;
  }

  .wh-intro {
    padding: 35px 25px;
    margin-bottom: 35px;
    border-radius: 10px;
  }

  .wh-intro__catch {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 18px;
    letter-spacing: 0.08em;
  }

  .wh-intro__text {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  /* スマホでは改行をリセットして自然に折り返す */
  .wh-intro__text br {
    display: none;
  }

  .wh-cta-area {
    padding: 40px 20px;
    margin-top: 60px;
  }

  .wh-cta-text {
    font-size: 1rem;
  }
}

/* ============================================
   新着バッジ（NEW!）のスタイル（点滅アニメーション付）
   ============================================ */
.wh-new-badge {
  display: block;
  width: max-content;
  margin: 0 auto 6px;
  background-color: #e63946; /* プレミアムレッド */
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  box-shadow: 0 0 4px rgba(230, 57, 70, 0.4);
  animation: wh-blink 1.2s ease-in-out infinite alternate;
}

@keyframes wh-blink {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: 0 0 2px rgba(230, 57, 70, 0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.8);
  }
}