/* ============================================
   Shinohara Construction - Sub-page styles
   (Works archive / Blog archive / Single post)
   Uses the same design tokens as the main React site
   ============================================ */

:root {
    --sh-navy: oklch(18% .04 245);
    --sh-blue: oklch(48% .13 245);
    --sh-blue-dark: oklch(42% .13 245);
    --sh-sky: oklch(57.7% .05 245);
    --sh-bg: oklch(98.5% .003 90);
    --sh-border: oklch(88% .02 245);
    --sh-text: oklch(25% .06 245);
    --sh-font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    --sh-font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
}

body.shinohara-subpage {
    margin: 0;
    font-family: var(--sh-font-sans);
    color: var(--sh-text);
    background: #fff;
    line-height: 1.7;
}

.sh-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link (visually hidden until keyboard-focused) */
.sh-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--sh-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 4px 0;
    font-weight: 700;
    text-decoration: none;
}
.sh-skip-link:focus {
    left: 0;
}

/* Header */
.sh-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--sh-border);
}
.sh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1120px;
    margin: 0 auto;
}
.sh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sh-navy);
    font-family: var(--sh-font-serif);
    font-weight: 700;
    font-size: 1.1rem;
}
.sh-logo img { height: 40px; width: auto; display: block; }
.sh-nav { display: flex; align-items: center; gap: 28px; }
.sh-nav a {
    color: var(--sh-navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.sh-nav a:hover { color: var(--sh-blue); }
.sh-nav .sh-cta {
    background: var(--sh-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
}
.sh-nav .sh-cta:hover { background: var(--sh-blue-dark); color: #fff; }

/* Page header / hero */
.sh-page-hero {
    background: var(--sh-bg);
    padding: 56px 0 40px;
    text-align: center;
}
.sh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-sky);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.sh-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--sh-blue);
    display: inline-block;
}
.sh-page-title {
    font-family: var(--sh-font-serif);
    font-weight: 700;
    color: var(--sh-navy);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 0 0 12px;
}
.sh-page-desc {
    color: var(--sh-text);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Archive grid */
.sh-archive-section { padding: 56px 0 80px; }
.sh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) { .sh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sh-grid { grid-template-columns: 1fr; } }

.sh-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.sh-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.sh-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--sh-bg);
    display: block;
}
.sh-card-body { padding: 18px 20px 22px; }
.sh-card-date {
    font-size: 0.75rem;
    color: var(--sh-sky);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.sh-card-title {
    font-family: var(--sh-font-serif);
    font-weight: 700;
    color: var(--sh-navy);
    font-size: 1.1rem;
    margin: 0 0 8px;
    line-height: 1.4;
}
.sh-card-excerpt {
    font-size: 0.875rem;
    color: var(--sh-text);
    margin: 0;
}

.sh-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--sh-sky);
}

/* Pagination */
.sh-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.sh-pagination a, .sh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sh-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--sh-navy);
    font-size: 0.875rem;
}
.sh-pagination .current { background: var(--sh-blue); color: #fff; border-color: var(--sh-blue); }
.sh-pagination a:hover { border-color: var(--sh-blue); color: var(--sh-blue); }

/* Single post */
.sh-single { padding: 56px 0 80px; }
.sh-single-header { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.sh-single-date { color: var(--sh-sky); font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; display: block; }
.sh-single-title {
    font-family: var(--sh-font-serif);
    font-weight: 700;
    color: var(--sh-navy);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin: 0;
    line-height: 1.4;
}
.sh-single-image { max-width: 900px; margin: 0 auto 40px; }
.sh-single-image img { width: 100%; border-radius: 8px; display: block; }
.sh-single-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--sh-text);
}
.sh-single-content p { margin: 0 0 1.4em; }
.sh-single-content h2, .sh-single-content h3 {
    font-family: var(--sh-font-serif);
    color: var(--sh-navy);
    margin: 1.6em 0 0.6em;
}
.sh-single-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sh-back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--sh-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.sh-back-link:hover { color: var(--sh-blue-dark); }
.sh-back-link-wrap { max-width: 720px; margin: 0 auto; }

/* Footer */
.sh-footer {
    background: var(--sh-navy);
    color: rgba(255,255,255,0.75);
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
}
.sh-footer a { color: rgba(255,255,255,0.9); }
