/* ============================================================
   SUN TRUCK - GLOBAL & UI REPRODUCTION v11.0 (Expanded & Solid)
   ============================================================ */

/* --- 1. グローバルヘッダー完全透過＆最上部配置 --- */
.site-header,
.site-header .inside-header,
.main-navigation,
.main-navigation ul,
.main-navigation li,
.main-navigation a,
.header-wrap {
    background: transparent !important;
    background-color: transparent !important;
}

.site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border: none !important;
}

.site-logo img, 
.header-image {
    filter: invert(1);
    transition: filter 0.3s ease;
}

.main-navigation a {
    color: #ffffff !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 900 !important;
}
.main-navigation a:hover {
    color: #eaeaea !important;
}

.site-content {
    padding-top: 0 !important;
}

/* --- 2. HOME（トップページ）スクロールアニメーション修正 --- */
.home #section2,
.home .section-2,
.home .panel-2 {
    background-color: #ffffff !important;
}
.home #section2 h2,
.home .section-2 h2,
.home .panel-2 h2,
.home #section2 .text-3d {
    color: #000000 !important;
}

/* --- 3. STOCKS GeneratePressレイアウト強制リセット --- */
.post-type-archive-inventory .site-content,
.post-type-archive-inventory #primary,
.post-type-archive-inventory #main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
.post-type-archive-inventory #right-sidebar,
.post-type-archive-inventory #left-sidebar {
    display: none !important;
}

/* --- 4. STOCKS ヒーロー画像エリア --- */
.st-hero-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; 
}
.st-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.st-hero-header h1 {
    position: relative; z-index: 2;
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 46px; letter-spacing: 0.1em; color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); margin: 0;
}

/* --- 5. STOCKS 浮遊検索UI --- */
.st-stocks-wrapper { 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px 100px; 
}
.st-floating-search {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    max-width: 1100px; 
    margin: -80px auto 60px;
    position: relative;
    z-index: 10;
    padding: 40px 50px;
}

/* アイコン群 */
.st-icon-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px; 
    border-bottom: 1px solid #eaeaea; 
    padding-bottom: 30px; 
    margin-bottom: 30px;
}

/* 完全な横長枠 (1.39:1) */
.st-cat-item {
    background: #ffffff !important;
    border: 2px solid #f2f2f2 !important; 
    aspect-ratio: 1.39 / 1 !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    cursor: pointer !important; 
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    outline: none !important;
    padding: 0 !important; 
}

/* ホバー時（控えめなグレーの変化） */
.st-cat-item:not(.is-active):hover { 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; 
    border-color: #e0e0e0 !important; 
    background: #fafafa !important;
    transform: translateY(-2px) !important; 
}

/* 選択（アクティブ）時：ピンク背景（50%透過）＋ピンク枠線＋影 */
.st-cat-item.is-active {
    box-shadow: 0 6px 15px rgba(225, 107, 140, 0.3) !important; /* 薄いピンクの影 */
    border-color: #E16B8C !important; /* ピンクの枠線 */
    background: rgba(225, 107, 140, 0.5) !important; /* ピンク背景（50%透過） */
    transform: translateY(-2px) !important; 
}

/* 画像エリアの枠 */
.st-cat-icon { 
    width: 80% !important; 
    height: 55% !important; 
    margin-bottom: 6px !important; 
    position: relative !important;
    background-color: transparent !important;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* 通常時の画像表示 */
.st-cat-icon img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain !important; 
    transition: opacity 0.3s ease !important; 
    filter: none !important; /* 通常時は無加工 */
}

/* アクティブ時に少しだけアイコンを拡大して「選んでる感」を出す */
.st-cat-item.is-active .st-cat-icon {
    transform: scale(1.08) !important;
}

/* 【追加】アクティブ時のアイコン白抜き */
.st-cat-item.is-active .st-cat-icon img {
    filter: brightness(0) invert(1) !important;
}

/* フォント設定 */
.st-cat-label { 
    font-family: 'Noto Sans JP', sans-serif !important; 
    font-weight: 900 !important; 
    font-size: 14px !important; 
    color: #555 !important; 
    transition: color 0.3s ease !important;
}

/* ホバー時はテキストを濃い黒に */
.st-cat-item:not(.is-active):hover .st-cat-label {
    color: #111 !important;
}

/* アクティブ時はテキストを白に（背景がピンクなので） */
.st-cat-item.is-active .st-cat-label { 
    color: #fff !important; 
}

/* 検索下部トグル */
.st-search-bottom { display: flex; align-items: center; gap: 20px; }
.st-toggle-group { display: flex; background: #f1f1f1; border-radius: 6px; overflow: hidden; }
.st-toggle-btn { padding: 12px 24px; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 14px; color: #777; cursor: pointer; margin: 0; transition: 0.2s; }
.st-toggle-btn input { display: none; }
.st-toggle-btn.is-active { background: #E16B8C !important; color: #fff !important; }
.st-select-wrapper { flex: 1; position: relative; }
.st-select-wrapper::after { content: "▼"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #777; pointer-events: none; }
.st-select-wrapper select { width: 100%; height: 48px; border: 1px solid #ddd; border-radius: 6px; padding: 0 35px 0 15px; background: #fcfcfc; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 15px; cursor: pointer; appearance: none; }
.st-btn-clear { background: #f1f1f1; color: #555; height: 48px; padding: 0 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; text-decoration: none !important; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 13px; }

/* --- 6. STOCKS 横長カードUI --- */
.st-inventory-list { display: flex; flex-direction: column; gap: 30px; }
.st-card-horizontal { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: 0.3s; overflow: hidden; }
.st-card-horizontal:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.1); transform: translateY(-3px); }

.st-card-inner { display: flex; text-decoration: none !important; color: inherit; padding: 25px; gap: 30px; }

.st-card-media { width: 300px; flex-shrink: 0; }
.st-card-main-img { height: 200px; border-radius: 6px; overflow: hidden; background: #eee; margin-bottom: 10px; }
.st-card-main-img img { width: 100%; height: 100%; object-fit: cover; }
.st-card-sub-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-card-sub-imgs img { width: 100%; height: 60px; object-fit: cover; border-radius: 4px; background: #eee; }

.st-card-info { flex: 1; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #eaeaea; padding-right: 30px; }
.st-card-id { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 11px; color: #888; margin-bottom: 8px; }
.st-card-title { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 22px; color: #111; margin: 0 0 15px 0; line-height: 1.4; }
.st-card-price-label { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 11px; color: #777; margin: auto 0 5px 0; }
.st-card-price .price-num { font-family: 'Anton', sans-serif; font-size: 42px; color: #E16B8C !important; line-height: 1; }
.st-card-price .price-unit { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 16px; color: #E16B8C !important; margin-left: 4px; }

.st-card-meta { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; }
.st-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.st-meta-grid .meta-item { display: flex; flex-direction: column; gap: 5px; }
.st-meta-grid .meta-label { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 10px; color: #888; }
.st-meta-grid .meta-val { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 13px; color: #111; }

.st-btn-detail { background: #1b263b; color: #fff; text-align: center; padding: 14px 0; border-radius: 6px; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; font-size: 14px; margin-top: 15px; transition: 0.2s; }
.st-card-horizontal:hover .st-btn-detail { background: #E16B8C !important; }

.st-no-results { text-align: center; padding: 60px; background: #f9f9f9; border-radius: 8px; font-family: 'Noto Sans JP', sans-serif; font-weight: 900; }

@media (max-width: 1024px) {
    .st-floating-search { margin: -50px 20px 40px; padding: 25px; }
    .st-icon-grid { grid-template-columns: repeat(4, 1fr); }
    .st-search-bottom { flex-wrap: wrap; }
    .st-select-wrapper { flex: 100%; }
    .st-toggle-group { width: 100%; display: flex; }
    .st-toggle-btn { flex: 1; text-align: center; }
    
    .st-card-inner { flex-direction: column; padding: 20px; gap: 20px; }
    .st-card-media { width: 100%; }
    .st-card-main-img { height: 250px; }
    .st-card-info { border-right: none; padding-right: 0; border-bottom: 1px solid #eaeaea; padding-bottom: 20px; }
    .st-card-meta { width: 100%; }
}
@media (max-width: 600px) {
    .st-icon-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   STOCKS 新規12項目 (タグ＆サブスペック) 用スタイル
   ============================================================ */

/* 特徴タグ（バッジ） */
.st-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.st-tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #E16B8C !important;
    color: #E16B8C !important;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    background-color: rgba(225, 107, 140, 0.05) !important;
}

/* 金額エリアの調整 */
.st-card-price-wrap {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eaeaea;
}

/* 詳細サブスペックエリア */
.st-sub-spec-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sub-spec-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    color: #555;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 4px;
}
.sub-spec-item strong {
    color: #333;
    margin-right: 5px;
}
.sub-spec-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    color: #555;
    padding: 4px 10px;
}
.sub-spec-group span strong {
    color: #333;
}

/* スマホ対応の微調整 */
@media (max-width: 1024px) {
    .st-card-price-wrap { border-bottom: none; padding-bottom: 0; }
    .st-sub-spec-list { display: none; }
}