/**
 * シャインエステート 公開サイト共通スタイル
 *
 * v2.0 リファクタ (Phase 4) で includes/header.php / includes/footer.php
 * のインライン <style> ブロック（合計706行）を外部化。
 *
 * 構成:
 *   1. Header / Navbar / Layout (header.php 由来)
 *   2. Footer (footer.php 由来)
 *   3. Mobile Bottom Bar (footer.php 由来)
 *
 * 更新時は ?v=YYYYMMDD のキャッシュバスティングを必ず更新すること。
 */

/* ============================================================
 * 1. Header / Navbar / 共通レイアウト
 * ============================================================ */
        :root {
            --primary:       #0ea5e9;
            --primary-dark:  #0284c7;
            --primary-light: #e0f2fe;
            --primary-50:    #f0f9ff;
            --bg:            #f8fafc;
            --card-bg:       #ffffff;
            --text:          #1e293b;
            --muted:         #64748b;
            --border:        #e2e8f0;
            --radius-sm:     4px;
            --radius-md:     6px;
            --radius-lg:     8px;
            --radius-xl:     12px;
            --radius:        12px;
            --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
            --shadow:        0 2px 12px rgba(0,0,0,0.08);
            --shadow-md:     0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
        }

        * { box-sizing: border-box; }

        body {
            font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }
        h1, h2, h3, h4 {
            font-feature-settings: "palt";
            letter-spacing: 0.04em;
            line-height: 1.3;
        }

        /* ─── Navbar ─── */
        .navbar-shine {
            background: #fff;
            border-bottom: 1px solid var(--border);
            padding: 0 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 8px rgba(0,0,0,0.06);
        }
        .navbar-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .navbar-brand-shine {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        .brand-logo {
            display: block;
            height: 44px;
            width: auto;
        }
        @media (max-width: 480px) {
            .brand-logo { height: 36px; }
        }
        .navbar-nav-shine {
            display: flex;
            align-items: center;
            gap: 4px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .navbar-nav-shine a {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            color: var(--muted);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: var(--radius-lg);
            transition: color 0.15s ease, background-color 0.15s ease;
        }
        .navbar-nav-shine a:hover,
        .navbar-nav-shine a.active {
            color: var(--primary);
            background: var(--primary-light);
        }
        .navbar-nav-shine .btn-contact {
            background: var(--primary);
            color: #fff !important;
            padding: 8px 18px;
            border-radius: var(--radius-lg);
            font-weight: 600;
        }
        .navbar-nav-shine .btn-contact:hover {
            opacity: 0.88;
            background: var(--primary);
            color: #fff !important;
        }
        .hamburger {
            display: none;
            background: none;
            border: none;
            font-size: 1.4rem;
            color: var(--text);
            cursor: pointer;
            padding: 6px;
        }
        .mobile-menu {
            display: none;
            background: #fff;
            border-top: 1px solid var(--border);
            padding: 12px 20px 16px;
        }
        .mobile-menu.open { display: block; }
        .mobile-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 8px;
            color: var(--text);
            text-decoration: none;
            font-size: 0.95rem;
            border-bottom: 1px solid var(--border);
        }
        .mobile-menu a:last-child { border-bottom: none; }

        /* ─── Main ─── */
        main { flex: 1; }

        /* ─── Property Cards ─── */
        .property-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
        }
        .property-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
        }
        .property-card-img {
            height: 180px;
            background: linear-gradient(135deg, var(--primary-light), #bae6fd);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .property-card-img i {
            font-size: 3.5rem;
            color: var(--primary);
            opacity: 0.5;
        }
        .property-card-img .trans-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.03em;
        }
        .trans-badge-売買 { background: #0ea5e9; color: #fff; }
        .trans-badge-賃貸 { background: #10b981; color: #fff; }
        .property-card-body {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .property-card-type {
            font-size: 0.75rem;
            color: var(--primary);
            font-weight: 600;
            letter-spacing: 0.04em;
            margin-bottom: 4px;
        }
        .property-card-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .property-card-address {
            font-size: 0.8rem;
            color: var(--muted);
            margin-bottom: 10px;
            display: flex;
            align-items: flex-start;
            gap: 4px;
        }
        .property-card-specs {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .property-spec-item {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }
        .spec-label {
            font-size: 0.7rem;
            color: var(--muted);
            letter-spacing: 0.03em;
        }
        .spec-value {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
        }
        .property-card-price {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--primary-dark);
            margin-bottom: 14px;
        }
        .property-card-price .price-unit {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--muted);
        }
        .property-card-footer {
            margin-top: auto;
        }
        .btn-detail {
            display: block;
            width: 100%;
            padding: 10px;
            background: var(--primary);
            color: #fff;
            text-decoration: none;
            border-radius: var(--radius-lg);
            font-size: 0.88rem;
            font-weight: 600;
            text-align: center;
            transition: opacity 0.15s ease;
        }
        .btn-detail:hover {
            opacity: 0.88;
            color: #fff;
        }

        /* ─── Buttons ─── */
        .btn-sky {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 12px 28px;
            border-radius: var(--radius-lg);
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: opacity 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .btn-sky:hover {
            opacity: 0.88;
            color: #fff;
        }
        .btn-sky-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
            padding: 10px 24px;
            border-radius: var(--radius-lg);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.15s ease, color 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .btn-sky-outline:hover {
            background: var(--primary);
            color: #fff;
        }

        /* ─── Section titles ─── */
        .section-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 6px;
        }
        .section-title span {
            color: var(--primary);
        }
        .section-subtitle {
            color: var(--muted);
            font-size: 0.9rem;
            margin-bottom: 28px;
        }

        /* ─── Pagination ─── */
        .pagination-shine {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 40px;
            flex-wrap: wrap;
        }
        .pagination-shine a,
        .pagination-shine span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        }
        .pagination-shine a {
            background: #fff;
            color: var(--text);
            border: 1px solid var(--border);
        }
        .pagination-shine a:hover {
            background: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        .pagination-shine span.current {
            background: var(--primary);
            color: #fff;
            border: 1px solid var(--primary);
        }
        .pagination-shine span.disabled {
            background: #f1f5f9;
            color: #cbd5e1;
            border: 1px solid var(--border);
        }

        /* ─── Form styles ─── */
        .form-control-shine, .form-select-shine {
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 0.9rem;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            background: #fff;
            width: 100%;
        }
        .form-control-shine:focus, .form-select-shine:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
        }
        .form-label-shine {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 6px;
            display: block;
        }

        /* ─── Info grid (detail page) ─── */
        .info-grid {
            width: 100%;
            border-collapse: collapse;
            display: table;
        }
        .info-item {
            display: table-row;
            border-bottom: 1px solid #f1f5f9;
        }
        .info-item:last-child {
            border-bottom: none;
        }
        .info-item-label {
            display: table-cell;
            width: 40%;
            padding: 9px 12px 9px 4px;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--muted);
            vertical-align: middle;
            white-space: nowrap;
        }
        .info-item-value {
            display: table-cell;
            padding: 9px 4px;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text);
            vertical-align: middle;
        }

        /* ─── Misc ─── */
        .container-shine {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .badge-type {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            background: var(--primary-light);
            color: var(--primary-dark);
        }
        .divider {
            height: 1px;
            background: var(--border);
            margin: 40px 0;
        }
        /* ─── Page Hero ─── */
        .page-hero {
            background: linear-gradient(135deg, #0284c7, #0ea5e9);
            padding: 48px 0 52px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .page-hero::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(255,255,255,0.06);
        }
        .page-hero::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -20px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
        }
        .page-hero-inner {
            position: relative;
            z-index: 1;
        }
        .page-hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.18);
            border-radius: 50px;
            padding: 5px 16px;
            font-size: 0.8rem;
            color: #fff;
            font-weight: 600;
            margin-bottom: 14px;
            backdrop-filter: blur(4px);
        }
        .page-hero h1 {
            color: #fff;
            font-size: clamp(1.6rem, 4vw, 2.2rem);
            font-weight: 900;
            margin-bottom: 10px;
        }
        .page-hero p {
            color: rgba(255,255,255,0.85);
            font-size: 0.95rem;
            max-width: 440px;
            margin: 0 auto;
        }
        .page-section {
            padding: 48px 0 72px;
        }
        .page-section-narrow {
            max-width: 680px;
            margin: 0 auto;
        }

        .hp-field {
            position: absolute;
            left: -9999px;
            opacity: 0;
            height: 0;
            width: 0;
            overflow: hidden;
            tab-index: -1;
        }

        @media (max-width: 768px) {
            .navbar-nav-shine { display: none; }
            .hamburger { display: block; }
            .section-title { font-size: 1.25rem; }
        }
        @media (max-width: 480px) {
        }

        /* ─── 営業カレンダー ─────────────────────────── */
        .cal-wrap { background:#fff; border-radius:14px; box-shadow:0 2px 12px rgba(0,0,0,0.07); overflow:hidden; border:1px solid #e2e8f0; }
        .cal-header { background:linear-gradient(135deg,#0284c7,#0ea5e9); color:#fff; font-weight:800; font-size:1rem; text-align:center; padding:12px 0; letter-spacing:0.04em; }
        .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
        .cal-dow { text-align:center; font-size:0.75rem; font-weight:700; color:#94a3b8; padding:8px 0 6px; border-bottom:1px solid #f1f5f9; }
        .cal-dow.cal-sun { color:#ef4444; }
        .cal-dow.cal-sat { color:#3b82f6; }
        .cal-empty { padding:8px 0; }
        .cal-day { position:relative; text-align:center; padding:6px 2px 4px; min-height:46px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; border-top:1px solid #f1f5f9; font-size:0.85rem; }
        .cal-day.cal-sun .cal-num { color:#ef4444; }
        .cal-day.cal-sat .cal-num { color:#3b82f6; }
        .cal-day.cal-today { background:#e0f2fe; }
        .cal-day.cal-today .cal-num { color:#0284c7; font-weight:900; }
        .cal-day.cal-closed { background:#fee2e2; }
        .cal-badge { font-size:0.62rem; font-weight:800; color:#dc2626; background:#fecaca; border-radius:3px; padding:1px 4px; margin-top:2px; line-height:1.4; }
        .cal-hname { display:none; }
        .cal-day.cal-extra { background:#ffedd5; }
        .cal-day.cal-extra .cal-badge { color:#c2410c; background:#fed7aa; }

/* ============================================================
 * 2. Footer
 * ============================================================ */
/* ─── Footer ─── */
.footer-shine {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 160px;
}
.footer-col-brand {
    flex: 1;
    min-width: 220px;
}
.footer-brand {
    margin-bottom: 14px;
}
.footer-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
}
@media (max-width: 480px) {
    .footer-brand-logo { height: 40px; }
}
.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06C755;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.15s ease;
}
.footer-line-btn:hover {
    opacity: 0.85;
    color: #fff;
}
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: #38bdf8;
}
.footer-links .bi-chevron-right {
    font-size: 0.7rem;
    margin-right: 4px;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
}
.footer-bottom-contact {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s ease;
}
.footer-bottom-contact:hover {
    opacity: 0.85;
    color: #38bdf8;
}

/* ============================================================
 * 3. Mobile Bottom Bar (固定バー)
 * ============================================================ */
/* デフォルトは非表示（PC） */
.mobile-bottom-bar { display: none; }

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
        /* iOS Safari のホームバー領域考慮 */
    }
    .mobile-bottom-bar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px 10px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 600;
        transition: color 0.15s ease, background 0.15s ease;
        border-right: 1px solid #f1f5f9;
    }
    .mobile-bottom-bar a:last-child { border-right: none; }
    .mobile-bottom-bar a i {
        font-size: 1.25rem;
        line-height: 1;
        margin-bottom: 1px;
    }
    .mobile-bottom-bar a:hover,
    .mobile-bottom-bar a:active {
        color: #0ea5e9;
        background: #f0f9ff;
    }
    .mobile-bottom-bar .mbb-line i    { color: #06C755; }
    .mobile-bottom-bar .mbb-tel i     { color: #ef4444; }
    .mobile-bottom-bar .mbb-contact i { color: #0ea5e9; }
    /* バーの高さ分、本文下部にパディングを付与してコンテンツの隠れを防ぐ */
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
