/*
Theme Name: 武田オートサービス 中古車サイト
Description: 武田オートサービス様のオリジナルテーマ（しのぶ屋風デザイン完成版）
Version: 1.6
*/

/* --- 1. カラー＆基本設定 --- */
:root {
    --primary-color: #0b3b6f; /* 信頼のディープブルー */
    --accent-color: #e65100;  /* 強調オレンジ */
    --text-color: #333333;
    --border-color: #e0e6ed;
}

/* サイト全体の背景色を純白（#ffffff）に設定 */
body {
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    background-color: #ffffff !important;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding { padding: 50px 0; }
.bg-white { background-color: #ffffff; }
.text-center { text-align: center; }

/* --- 2. しのぶ屋風ヘッダーデザイン --- */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.site-logo a {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.global-nav a {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    padding: 8px 0;
    transition: color 0.2s;
}

.global-nav a:hover {
    color: var(--primary-color);
}

.header-contact-btn {
    background: var(--accent-color);
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.header-contact-btn:hover {
    opacity: 0.85;
}

/* --- 3. メインビジュアル＆検索エリア --- */
.hero-section {
    position: relative;
    background: #111;
    height: 550px !important; /* ★縦幅を400pxから550pxへ拡大 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.hero-copy h1 {
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    margin: 0 0 10px;
}

.hero-copy p {
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.hero-search-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 40px;
}

.search-box-inner {
    background: #ffffff;
    border-top: 4px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.search-box-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.search-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 12px;
}

.search-inputs-grid select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fafafa;
    font-size: 0.95rem;
}

.search-btn-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    min-height: 48px;
}

/* --- 4. 見出し・カード・コンテンツ --- */
.section-title-wrap {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.2;
}

.car-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card-item { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 30px 20px; text-align: center; }
.feature-icon-box { font-size: 2.8rem; margin-bottom: 15px; }
.feature-card-item h3 { color: var(--primary-color); font-size: 1.15rem; margin-bottom: 10px; }
.feature-card-item p { font-size: 0.9rem; color: #666; margin: 0; text-align: left; }

/* --- 5. しのぶ屋風 予算から探すエリア --- */
.price-search-section {
    background: #fdf5ee; /* ベージュ背景 */
    padding: 40px 0 50px;
    margin-bottom: 20px;
}

.price-search-title-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.price-search-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #111111;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-icon-head {
    color: #ea5504;
    font-size: 2rem;
}

.price-search-sub {
    font-size: 0.9rem;
    color: #333333;
    font-weight: bold;
    margin: 2px 0 0;
    letter-spacing: 0.05em;
}

.price-btn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.price-btn-card {
    background: #ea5504; /* 鮮やかなオレンジ */
    color: #ffffff !important;
    position: relative;
    padding: 45px 10px !important;
    min-height: 110px;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(234, 85, 4, 0.2);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.price-btn-card:hover {
    background: #d84b00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(234, 85, 4, 0.35);
}

.price-btn-text {
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    line-height: 1;
    z-index: 2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.price-btn-text .unit {
    font-size: 1.3rem !important;
    font-weight: bold !important;
}

.price-btn-icon {
    position: absolute;
    right: 2px !important;
    top: -2px !important;
    font-size: 4rem !important;
    opacity: 0.2 !important;
    z-index: 1;
    pointer-events: none;
    filter: brightness(2);
}

/* --- 6. メーカーから探す --- */
.maker-grid-8col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .maker-grid-8col {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }
}

.banner-link-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18) !important;
}

.maker-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.maker-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.maker-img {
    width: 85%;
    max-width: 90px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 4px;
    display: block;
}

.maker-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* --- 7. テーブルのPC/スマホ切り替え設定 --- */
.pc-only-table {
    display: block;
}
.sp-only-table {
    display: none;
}

@media screen and (max-width: 767px) {
    .pc-only-table {
        display: none;
    }
    .sp-only-table {
        display: block;
    }
}

/* --- 8. お問い合わせ・来店予約フォームのスタイル --- */
.shinobu-form-wrapper {
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin: 40px auto;
    max-width: 960px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.shinobu-form-header {
    background: #ea5504;
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    position: relative;
}

.shinobu-form-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #ea5504 transparent transparent transparent;
}

.shinobu-form-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 4px;
    letter-spacing: 0.05em;
}

.shinobu-form-sub {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.03em;
}

.shinobu-form-body {
    padding: 20px 30px 25px !important;
}

.shinobu-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 3px !important;
}

.shinobu-form-row:has(textarea) {
    align-items: flex-start;
}

.shinobu-form-label {
    width: 220px;
    font-weight: bold;
    color: #222222;
    font-size: 1rem;
    flex-shrink: 0;
}

.shinobu-form-label .asterisk {
    color: #e60000;
    margin-left: 2px;
}

.shinobu-form-field {
    flex-grow: 1;
}

.shinobu-form-field input[type="text"],
.shinobu-form-field input[type="tel"],
.shinobu-form-field input[type="email"],
.shinobu-form-field textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #333333;
    box-sizing: border-box;
    outline: none;
}

.shinobu-form-field input:focus,
.shinobu-form-field textarea:focus {
    border-color: #ea5504;
}

.shinobu-form-field textarea {
    height: 140px;
    resize: vertical;
}

.shinobu-form-field .wpcf7-list-item {
    display: inline-block;
    margin-right: 18px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.shinobu-form-field .wpcf7-list-item label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222222;
    cursor: pointer;
}

.shinobu-form-field input[type="radio"] {
    margin-right: 4px;
    vertical-align: middle;
}

.shinobu-form-submit {
    text-align: center;
    margin-top: 20px !important;
}

.shinobu-form-submit input[type="submit"] {
    background: #f39800;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    padding: 12px 60px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.shinobu-form-submit input[type="submit"]:hover {
    background: #ea5504;
}

/* --- 9. スマホ対応メディアクエリ --- */
@media (max-width: 991px) {
    .car-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .search-inputs-grid { grid-template-columns: 1fr 1fr; }
    .search-btn-submit { grid-column: span 2; }
}

@media (max-width: 767px) {
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .global-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-section { height: 400px !important; } /* スマホ時も320pxから400pxへ拡大 */
    .hero-copy h1 { font-size: 1.4rem; }
    .feature-cards { grid-template-columns: 1fr; }
    .search-inputs-grid { grid-template-columns: 1fr; }
    .search-btn-submit { grid-column: span 1; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }

    /* 予算ボタン スマホ表示 */
    .price-btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .price-btn-card {
        padding: 30px 5px !important;
        min-height: 80px;
    }
    .price-btn-text {
        font-size: 1.45rem !important;
    }
    .price-btn-text .unit {
        font-size: 1rem !important;
    }
    .price-btn-icon {
        font-size: 2.8rem !important;
    }

    /* フォーム スマホ表示 */
    .shinobu-form-body { padding: 25px 15px !important; }
    .shinobu-form-row { flex-direction: column; align-items: flex-start; margin-bottom: 15px !important; }
    .shinobu-form-label { width: 100%; margin-bottom: 6px; }
    .shinobu-form-field { width: 100%; }
}