/*
Theme Name: LLC.OHANA Child
Template: swell
Version: 1.0.0
Description: LLC.OHANA ジムニー中古車サイト用SWELLチャイルドテーマ
*/

/* ========================================
   ブランドカラー変数
======================================== */
:root {
  --ohana-orange:       #F59400;
  --ohana-orange-dark:  #D97E00;
  --ohana-orange-light: #FFF3E0;
  --ohana-border:       #DDDDDD;
  --ohana-text:         #333333;
  --ohana-text-light:   #666666;
}

/* ========================================
   ボタン（オレンジ）
======================================== */
.ohana-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--ohana-orange);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
}
.ohana-btn:hover {
  background: var(--ohana-orange-dark);
  color: #fff !important;
}
.ohana-btn--block {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 18px;
}

/* ヘッダーの「お問い合わせ」ボタン */
.header_btn a {
  background: var(--ohana-orange) !important;
  color: #fff !important;
}
.header_btn a:hover {
  background: var(--ohana-orange-dark) !important;
}

/* ========================================
   ページヘッダー（詳細ページ上部の背景付き見出し）
======================================== */
.ohana-page-header {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a3728 center/cover no-repeat;
}
.ohana-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.ohana-page-header__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}

/* ========================================
   詳細ページ（車両・パーツ共通）
======================================== */
.ohana-detail {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 5%;
}
.ohana-detail__title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 32px;
}
.ohana-detail__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .ohana-detail__body { grid-template-columns: 1fr; }
}

/* ギャラリー */
.ohana-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}
.ohana-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.ohana-gallery__thumb {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.7;
  width: 100%;
  transition: opacity 0.2s;
}
.ohana-gallery__thumb.is-active,
.ohana-gallery__thumb:hover {
  opacity: 1;
  outline: 2px solid var(--ohana-orange);
}
.ohana-gallery__thumb--empty {
  background: #EEE;
  aspect-ratio: 1;
  border-radius: 2px;
}

/* 価格ボックス */
.ohana-price-boxes {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ohana-price-box {
  flex: 1;
  min-width: 140px;
  background: var(--ohana-orange-light);
  border-radius: 4px;
  padding: 14px 18px;
}
.ohana-price-box__label {
  font-size: 12px;
  color: var(--ohana-text-light);
  margin-bottom: 6px;
}
.ohana-price-box__value {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
.ohana-price-box__sold {
  font-size: 20px;
  font-weight: 900;
  color: #999;
  line-height: 1;
}

/* スペックテーブル（車両詳細） */
.ohana-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
.ohana-spec-table th,
.ohana-spec-table td {
  border: 1px solid var(--ohana-border);
  padding: 12px 14px;
  vertical-align: top;
}
.ohana-spec-table th {
  background: #FAF7F4;
  font-weight: 700;
  width: 28%;
  white-space: nowrap;
}

/* ========================================
   お問い合わせフォーム（CF7）スタイル
======================================== */
.ohana-contact-wrap .wpcf7-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
}
.ohana-contact-wrap .wpcf7-form input[type="text"],
.ohana-contact-wrap .wpcf7-form input[type="email"],
.ohana-contact-wrap .wpcf7-form input[type="tel"],
.ohana-contact-wrap .wpcf7-form textarea {
  width: 100%;
  border: 1px solid var(--ohana-border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 15px;
  box-sizing: border-box;
}
.ohana-contact-wrap .wpcf7-form input[type="submit"] {
  background: var(--ohana-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}
.ohana-contact-wrap .wpcf7-form input[type="submit"]:hover {
  background: var(--ohana-orange-dark);
}

/* ========================================
   車両・パーツ詳細：サイドバー非表示＆フルワイド
======================================== */
body.single-car .l-sidebar,
body.single-parts .l-sidebar {
  display: none !important;
}
body.single-car #content,
body.single-parts #content {
  max-width: 100% !important;
  width: 100% !important;
}

/* ページヘッダーをフルワイドに */
.ohana-page-header {
  width: 100% !important;
  height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #4a3728 !important;
  margin-bottom: 40px !important;
  position: relative !important;
}

/* ========================================
   AAオークション料金テーブル
======================================== */
.ohana-aa-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5%;
}
.ohana-aa-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ohana-orange);
  display: inline-block;
  padding-bottom: 4px;
}
.ohana-aa-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 2px solid var(--ohana-orange);
}
.ohana-aa-table td {
  border: 1px solid var(--ohana-orange);
  padding: 14px 18px;
  font-size: 15px;
  vertical-align: middle;
  text-align: center;
}
.ohana-aa-table td:first-child {
  background: var(--ohana-orange-light);
  font-weight: 700;
  width: 22%;
}