/*
=====================================
物件詳細ページ専用CSS v4
ndetail4.php用スタイル
- PC: 適度なサイズ + サムネイル方式
- SP: スライダー表示を分かりやすく
- YouTube埋め込み対応（レスポンシブ）
=====================================
*/

:root {
  --detail-primary: #0095d8;
  --detail-accent-orange: #f08200;
  --detail-accent-red: #e60012;
  --detail-type1: #0075c1;
  --detail-type2: #f08200;
  --detail-type3: #00b0ec;
  --detail-type4: #e60012;
}

/* ========================================
   レイアウト
======================================== */
.white-space {
  height: 20px;
}

/* ========================================
   物件タイトルエリア
======================================== */
.property-first {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.property-first.type01 {
  background-color: #e3f2fd;
  border: 2px solid var(--detail-type1);
}

.property-first.type02 {
  background-color: #fff3e0;
  border: 2px solid var(--detail-type2);
}

.property-first.type03 {
  background-color: #e1f5fe;
  border: 2px solid var(--detail-type3);
}

.property-first.type04 {
  background-color: #ffebee;
  border: 2px solid var(--detail-type4);
}

.property-first h2 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.property-first h2 span {
  display: inline-block;
  padding: 5px 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}

.property-first h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.property-first h3 span {
  color: var(--color-text);
}

/* ========================================
   画像スライダーエリア（PC用：大画像+サムネイル）
======================================== */
.slider-area {
  margin-bottom: 30px;
}

.slider-block {
  position: relative;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

/* PC用メインスライダー */
.detail-slider-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
}

.detail-slider-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.detail-slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  min-height: 400px;
}

.detail-slider-slide img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 画像サイズクラス */
.slider-item.wid img {
  width: 100%;
  height: auto;
}

.slider-item.hei img {
  width: auto;
  height: 100%;
  max-height: 500px;
}

/* スライダーコントロール */
.detail-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.detail-slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.detail-slider-arrow.prev {
  left: 15px;
}

.detail-slider-arrow.next {
  right: 15px;
}

/* スライダーカウンター */
.detail-slider-counter {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
}

/* サムネイル（PC用） */
.detail-thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  max-width: 700px;
  margin: 0 auto;
}

.detail-thumbnail-item {
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease;
  aspect-ratio: 1;
  background-color: #ddd;
}

.detail-thumbnail-item:hover {
  border-color: var(--detail-primary);
  transform: scale(1.05);
}

.detail-thumbnail-item.active {
  border-color: var(--detail-accent-orange);
  box-shadow: 0 2px 8px rgba(240, 130, 0, 0.5);
}

.detail-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   SP用スライダー（分かりやすく）
======================================== */
.sp-slider-hint {
  display: none;
  text-align: center;
  padding: 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  color: #666;
  font-size: 14px;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.sp-slider-hint i {
  font-size: 20px;
  margin: 0 5px;
  animation: swipe-hint 1.5s ease-in-out infinite;
}

@keyframes swipe-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* SP用ドットナビゲーション */
.detail-slider-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.detail-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-slider-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

/* ========================================
   物件データテーブル
======================================== */
.property-data {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.property-data table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-data th {
  background-color: #eaf6fd;
  font-weight: bold;
  text-align: left;
  padding: 12px 15px;
  border: 1px solid #ddd;
  width: 20%;
  vertical-align: top;
}

.property-data td {
  background-color: white;
  padding: 12px 15px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.property-data tr:hover {
  background-color: #f9f9f9;
}

/* YouTube埋め込み */
.youtube-embed {
  margin: 20px 0;
  width: 100%;
  max-width: 640px;
}

.youtube-embed iframe {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  display: block;
}

/* 旧クラス名との互換 */
.youtube {
  margin: 20px 0;
}

.youtube iframe {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border-radius: 8px;
}

/* ========================================
   空室情報・お問い合わせボタン
======================================== */
.vacancy-information {
  margin: 30px 0;
}

.vacancy-information a {
  display: block;
  background-color: #e9bc00;
  color: #000;
  text-align: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.vacancy-information a:hover {
  background-color: #d4a800;
}

.contact-block.bukken {
  margin: 30px 0;
}

.contact-block.bukken a {
  display: block;
  background-color: #4169e1;
  color: white;
  text-align: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.contact-block.bukken a:hover {
  background-color: #3557c7;
}

.contact-block02 {
  margin: 30px 0;
}

.contact-block02 a {
  display: block;
  background-color: #e60044;
  color: white;
  text-align: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
  position: relative;
  padding-left: 50px;
}

.contact-block02 a:hover {
  background-color: #cc003a;
}

.contact-block02.koki a {
  background-color: #00008b;
}

.contact-block02.koki a:hover {
  background-color: #000070;
}

.arrow-ico::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: solid 8px transparent;
  border-left: solid 12px white;
}

/* ========================================
   地図
======================================== */
.gmap-i {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gmap-i iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.map-big {
  text-align: center;
  padding: 10px;
  background-color: #f5f5f5;
}

.map-big a {
  color: var(--detail-primary);
  font-weight: bold;
}

/* ========================================
   連絡先情報
======================================== */
.contact-info {
  margin: 30px 0;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
  text-align: center;
}

.contact-info p {
  margin: 0;
  line-height: 1.8;
}

.contact-info .free {
  font-size: 28px;
  font-weight: bold;
  color: var(--detail-accent-red);
  display: inline-block;
  margin: 10px 0;
}

.contact-info .spok {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 10px;
}

/* ========================================
   レスポンシブ（SP）
======================================== */
@media (max-width: 768px) {
  /* サムネイルを非表示 */
  .detail-thumbnail-container {
    display: none;
  }
  
  /* SP用ヒント表示 */
  .sp-slider-hint {
    display: block;
  }
  
  /* SP用ドット表示 */
  .detail-slider-dots {
    display: flex;
  }
  
  /* スライダー調整 */
  .detail-slider-container {
    max-width: 100%;
  }
  
  .detail-slider-slide {
    min-height: 300px;
  }
  
  .detail-slider-slide img {
    max-height: 400px;
  }
  
  .detail-slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .detail-slider-arrow.prev {
    left: 10px;
  }
  
  .detail-slider-arrow.next {
    right: 10px;
  }
  
  .detail-slider-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .property-first {
    padding: 15px;
  }
  
  .property-first h2 {
    font-size: 16px;
  }
  
  .property-first h3 {
    font-size: 20px;
  }
  
  .property-data {
    padding: 0 10px;
  }
  
  .property-data table {
    font-size: 14px;
  }
  
  .property-data th,
  .property-data td {
    display: block;
    width: 100%;
    padding: 10px;
  }
  
  .property-data th {
    background-color: #eaf6fd;
    border-bottom: none;
  }
  
  .property-data td {
    border-top: none;
    margin-bottom: 10px;
  }
  
  .youtube iframe,
  .youtube-embed iframe {
    height: 250px;
  }
  
  .vacancy-information a,
  .contact-block.bukken a,
  .contact-block02 a {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .contact-info .free {
    font-size: 24px;
  }
  
  .gmap-i iframe {
    height: 300px;
  }
}

/* ========================================
   YouTube レスポンシブ（480px以下）
======================================== */
@media (max-width: 480px) {
  .youtube iframe,
  .youtube-embed iframe {
    height: 200px;
  }
}