@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap");

html[lang="ja"] body {
    font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.rugs-gallery-slide {
    display: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.rugs-gallery-slide.is-active {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--text);
    padding: 10px 16px;
    border: 1px solid var(--line);
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.breadcrumb-nav {
    margin: 22px 0 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb-nav a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-nav [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.filter-bar select {
    min-width: 10rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.project-card .rug-price {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin: 4px 0 8px;
}

.project-thumb img[src*="no-image"],
.rugs-gallery-main img[src*="no-image"],
.hero-image img[src*="no-image"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #e5e7eb;
}

.project-card .rug-meta {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.tags .status-available {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
    font-size: 0.62rem;
    text-transform: none;
    padding: 7px 11px 7px 9px;
}

.tags .status-sold {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

.tags .status-made_to_order {
    background: #f5f0ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.tags .status-showcase {
    background: #fff;
    border-color: var(--line);
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.rugs-gallery-main {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.rugs-gallery-main {
    line-height: 0;
}

.rugs-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.rugs-gallery-thumbs button {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.rugs-gallery-thumbs button.is-active {
    border-color: var(--primary);
}

.rugs-gallery-thumbs img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    display: block;
}

.detail-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    background: #fff;
}

.detail-panel dl {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.detail-panel dt {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.detail-panel dd {
    color: var(--text);
    font-size: 0.95rem;
}

.detail-note {
    border-left: 3px solid #c4b5fd;
    padding-left: 14px;
    margin-top: 18px;
    color: var(--muted);
}

.placeholder-banner {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.process-card img {
    border-radius: 10px;
    margin-bottom: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.process-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Homepage hero — match hirewes.dev hero-banner presentation */
@media (min-width: 769px) {
    #home.hero {
        align-items: center;
    }

    #home.hero .hero-image {
        width: 100%;
    }

    #home.hero .hero-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 280px;
        aspect-ratio: 8 / 5;
        object-fit: cover;
        object-position: center top;
        border-radius: 25px;
        display: block;
    }
}

@media (max-width: 768px) {
    #home.hero .hero-image {
        width: min(100%, 320px);
    }

    #home.hero .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 8 / 5;
        object-fit: cover;
        object-position: center;
        border-radius: 25px;
        margin: 0 auto;
    }
}
