/*
 Theme Name:   Storefront Child - Unlimited Importique
 Theme URI:    https://uimportique.com/
 Description:  Unlimited Importique custom child theme for Storefront
 Author:       Unlimited Importique
 Author URI:   https://uimportique.com/
 Template:     storefront
 Version:      1.0.0
 Text Domain:  storefront-child
*/

/* ============================================================
   1. STOREFRONT THEME OVERRIDES
   (旧: WordPress追加CSS 16ブロック統合)
   ============================================================ */

/* --- Header --- */
.site-header {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

body {
    font-family: 'Noto Serif JP', 'Lato', sans-serif;
    color: #333;
}

/* --- Home page title hidden --- */
.home .entry-header {
    display: none;
}

/* --- Site Logo / Title --- */
.site-title a {
    font-family: 'Cinzel', serif;
    color: #111;
    letter-spacing: 0.1em;
}

/* --- Navigation --- */
.main-navigation ul li a {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #333;
    letter-spacing: 0.05em;
}

.main-navigation ul li a:hover {
    color: #D4AF37;
}

/* --- Footer --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding-top: 3em;
}

.site-footer a {
    color: #fff;
}

.site-footer .widget ul li,
.site-footer .widget ul li a,
.site-footer .widget-area ul li,
.site-footer .widget-area ul li a,
.site-footer li,
.site-footer li a {
    color: #fff !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3 {
    color: #D4AF37;
}

/* --- WooCommerce --- */
.woocommerce ul.products li.product .price {
    color: #D4AF37;
}

.woocommerce a.button,
.woocommerce button.button {
    background-color: #333;
    color: #fff;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: #D4AF37;
}

/* --- WooCommerce Credit Hidden --- */
.site-info .powered-by-woocommerce,
.site-info .powered-by-wordpress,
.woocommerce-credits,
.site-info {
    display: none !important;
}

/* --- Brand Section Opacity Fix --- */
.ui-brands-list span {
    opacity: 1;
}


/* ============================================================
   2. SPRING THEME - BASE
   ============================================================ */

:root {
    --color-gold: #D4AF37;
    --color-text: #333333;
}

.ui-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
   3. HERO SECTION
   ============================================================ */

.ui-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ui-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.ui-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.ui-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.35) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(0,0,0,0.15) 100%
    );
}

.ui-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 16px 80px;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ui-hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    margin-bottom: 16px;
    color: #1f2937;
}

.ui-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: #111827;
    line-height: 1.2;
}

.ui-hero-title span {
    color: var(--color-gold);
    font-style: italic;
    font-family: 'Noto Serif JP', serif;
}

.ui-hero-desc {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
    color: #374151;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}


/* ============================================================
   4. CTA BUTTON
   ============================================================ */

.btn-gold {
    display: inline-block;
    background-color: var(--color-gold);
    color: #fff;
    padding: 14px 36px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-gold:hover {
    background-color: #b8960e;
    transform: translateY(-1px);
    color: #fff;
}


/* ============================================================
   5. TRUST BAR
   ============================================================ */

.ui-trust-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid rgba(212,175,55,0.3);
    padding: 16px 0;
    z-index: 10;
}

.ui-trust-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #4b5563;
    font-family: 'Cinzel', serif;
}

.ui-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui-trust-svg {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    flex-shrink: 0;
}


/* ============================================================
   6. SECTION COMMON
   ============================================================ */

.ui-section {
    padding: 96px 0;
}

.ui-section-gray {
    background: #f9fafb;
}

.ui-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.ui-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.ui-section-line {
    width: 48px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto;
}

.ui-section-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto;
    opacity: 0.5;
}


/* ============================================================
   7. SCROLL ANIMATION
   ============================================================ */

.ui-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ui-fade-in.ui-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   8. CHOOSE YOUR STYLE
   ============================================================ */

.ui-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ui-entrance-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.ui-entrance-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.ui-entrance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ui-entrance-card:hover .ui-entrance-image img {
    transform: scale(1.05);
}

.ui-entrance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    transition: background 0.4s ease;
}

.ui-entrance-card:hover .ui-entrance-overlay {
    background: rgba(0,0,0,0.25);
}

.ui-entrance-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.ui-entrance-title {
    font-family: 'Cinzel', serif;
    font-size: 1.875rem;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ui-entrance-brands {
    color: rgba(255,255,255,0.9);
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.ui-entrance-btn {
    display: inline-block;
    border: 1px solid white;
    color: white;
    padding: 12px 32px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

.ui-entrance-btn:hover {
    background: white;
    color: black;
}


/* ============================================================
   9. CURATED EDITS
   ============================================================ */

.ui-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.ui-section-subtitle {
    font-family: 'Noto Serif JP', serif;
    color: #6b7280;
    font-size: 0.875rem;
}

.ui-view-all {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease;
}

.ui-view-all:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.ui-edits-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    min-height: 450px;
}

.ui-edit-main {
    position: relative;
    overflow: hidden;
    background: white;
    min-height: 450px;
}

.ui-edit-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ui-edit-main:hover img {
    transform: scale(1.03);
}

.ui-edit-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.ui-edit-tag {
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.ui-edit-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.ui-edit-title-large {
    font-size: 2rem;
}

.ui-edit-desc {
    color: rgba(255,255,255,0.8);
    font-family: 'Noto Serif JP', serif;
    font-size: 0.875rem;
}

.ui-edits-sub {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ui-edit-sub-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: white;
    min-height: 200px;
}

.ui-edit-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ui-edit-sub-card:hover img {
    transform: scale(1.05);
}

.ui-edit-sub-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.ui-edit-sub-tag {
    color: var(--color-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    display: block;
}

.ui-edit-sub-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}


/* ============================================================
   10. BRANDS LIST
   ============================================================ */

.ui-brands {
    padding: 64px 0;
    border-top: 1px solid #f3f4f6;
}

.ui-brands-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #9ca3af;
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 32px;
}

.ui-brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.ui-brands-list span {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: default;
}

.ui-brands-list span:hover {
    color: var(--color-gold);
}


/* ============================================================
   11. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .ui-hero-title {
        font-size: 2.5rem;
    }

    .ui-hero-content {
        padding-bottom: 70px;
    }

    .ui-dual-grid {
        grid-template-columns: 1fr;
    }

    .ui-entrance-image {
        aspect-ratio: 16/9;
    }

    .ui-section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ui-trust-inner {
        flex-direction: column;
        gap: 8px;
    }

    .ui-trust-item {
        justify-content: center;
    }

    .ui-brands-list span {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .ui-edits-grid {
        grid-template-columns: 1fr;
    }

    .ui-edit-main {
        min-height: 350px;
    }
}


/* ============================================================
   12. STEP 4+5: デザイン微調整＆追加修正
   ============================================================ */

/* --- ヒーロー上部の余白除去 --- */
.home .site-content > .content-area {
    padding-top: 0;
    margin-top: 0;
}

.home .entry-content {
    margin-top: 0;
    padding-top: 0;
}

.home .type-page {
    margin-top: 0;
    padding-top: 0;
}

.home .hentry {
    margin-bottom: 0;
}

/* --- ② トラストバー中央揃え修正 --- */
.ui-trust-bar {
    display: flex;
    justify-content: center;
}

.ui-trust-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 48px;
}

/* --- ③ CURATED EDITS 背景サイズ調整 --- */
.ui-section-gray {
    padding: 72px 0;
}

.ui-edits-grid {
    max-height: 600px;
}

.ui-edit-main {
    max-height: 600px;
}

.ui-edit-main img {
    max-height: 600px;
}

/* --- ④ サブカード（Quiet Luxury / Spring GOLF）の下端揃え --- */
.ui-edits-sub {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
}

.ui-edit-sub-card {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ui-edit-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ⑤ ブランドリンクのスタイル --- */
.ui-brands-list a {
    text-decoration: none;
    color: inherit;
}

.ui-brands-list a:hover span {
    color: var(--color-gold);
}

/* --- ヒーローテキスト text-shadow --- */
.ui-hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ui-hero-subtitle {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* --- CTAボタン box-shadow --- */
.btn-gold {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* --- カード画像 暖かみフィルター --- */
.ui-entrance-image img {
    filter: saturate(1.05) brightness(1.02);
}

.ui-edit-main img,
.ui-edit-sub-card img {
    filter: saturate(1.05) brightness(1.02);
}
