/* =============================================================================
   LSK Property Theme - Main Stylesheet
   ============================================================================= */

/* -----------------------------------------------------------------------------
   リセット & ベース
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1a365d;
    --navy-dark: #0f2440;
    --navy-light: #2a4a7f;
    --gold: #c9a84c;
    --gold-dark: #b08f3a;
    --gold-light: #dbc278;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --red: #dc2626;
    --green: #16a34a;
    --yellow: #eab308;
    --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-sm: 4px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--gray-900);
    line-height: 1.8;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

/* -----------------------------------------------------------------------------
   レイアウト
   ----------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding: 60px 0;
}

/* -----------------------------------------------------------------------------
   ボタン
   ----------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-base);
    line-height: 1.5;
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}
.btn-navy:hover {
    background: var(--navy-dark);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: 16px 48px;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* -----------------------------------------------------------------------------
   ヘッダー
   ----------------------------------------------------------------------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: none;
}

@media (min-width: 768px) {
    .logo-sub {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
    background: var(--gray-100);
    color: var(--navy);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
}

.nav-cta:hover {
    background: var(--gold-dark) !important;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    .main-nav.is-open {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    .nav-list a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* -----------------------------------------------------------------------------
   ヒーロー
   ----------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--navy);
    padding: 100px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    opacity: 0.95;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-search-form {
    display: flex;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: var(--radius);
}

.hero-search-form select,
.hero-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-base);
    background: var(--white);
    color: var(--gray-900);
}

.hero-search-form .btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-lead {
        font-size: 0.95rem;
    }
    .hero-search-form {
        flex-direction: column;
    }
}

.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .sp-only {
        display: inline;
    }
}

/* -----------------------------------------------------------------------------
   セクション共通
   ----------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
}

.section-action {
    text-align: center;
    margin-top: 48px;
}

.section-properties {
    background: var(--gray-50);
}

/* -----------------------------------------------------------------------------
   物件カード
   ----------------------------------------------------------------------------- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.property-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.property-card-image {
    position: relative;
    aspect-ratio: 3/2;
    background: var(--gray-200);
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.property-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.status-active { background: var(--green); }
.status-negotiating { background: var(--yellow); color: var(--gray-900); }
.status-sold { background: var(--gray-500); }

.property-card-body {
    padding: 16px 20px 20px;
}

.property-type-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.property-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.5;
}

.property-card-location {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.property-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.property-card-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 4px;
}

.property-card-area {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.no-properties {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-500);
    padding: 60px 0;
}

/* -----------------------------------------------------------------------------
   特徴セクション
   ----------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* -----------------------------------------------------------------------------
   CTAセクション
   ----------------------------------------------------------------------------- */
.section-cta {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.section-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.section-cta p {
    opacity: 0.85;
    margin-bottom: 32px;
}

/* -----------------------------------------------------------------------------
   ページヘッダー
   ----------------------------------------------------------------------------- */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

.page-header-sm {
    padding: 20px 0;
    text-align: left;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-description {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* パンくず */
.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    margin: 0 6px;
}

/* -----------------------------------------------------------------------------
   物件一覧レイアウト
   ----------------------------------------------------------------------------- */
.property-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.property-archive-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .property-archive-layout {
        grid-template-columns: 1fr;
    }
    .property-sidebar {
        order: -1;
    }
}

/* サイドバー */
.sidebar-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

/* 検索フォーム */
.property-search-form .search-field {
    margin-bottom: 16px;
}

.property-search-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.property-search-form select,
.property-search-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-base);
    background: var(--white);
}

.property-search-form select:focus,
.property-search-form input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(26,54,93,0.1);
}

/* 検索結果情報 */
.search-result-info {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.clear-filter {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--gold-dark);
}

/* ページネーション */
.pagination-wrap {
    margin-top: 48px;
    text-align: center;
}

.pagination-wrap .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pagination-wrap .page-numbers.current {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* 結果なし */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-500);
}

.no-results p {
    margin-bottom: 12px;
}

/* サイドバー物件リスト */
.sidebar-property-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-property-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-property-list a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--gray-700);
    font-size: 0.85rem;
}

.sidebar-property-list img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sidebar-property-title {
    display: block;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-property-price {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   物件詳細
   ----------------------------------------------------------------------------- */
.property-detail {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

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

.property-detail-header {
    margin-bottom: 32px;
}

.property-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 8px;
    margin-bottom: 4px;
}

.property-detail-location {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ギャラリー */
.property-gallery {
    margin-bottom: 32px;
}

.property-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.property-gallery-main img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.property-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スペック表 */
.detail-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    width: 140px;
    background: var(--gray-50);
    font-weight: 500;
    color: var(--gray-700);
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

/* 案件概要・詳細 */
.property-summary,
.property-content,
.property-note {
    margin-bottom: 32px;
}

.summary-text,
.note-text {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray-700);
}

.entry-content {
    line-height: 2;
}

.entry-content p {
    margin-bottom: 16px;
}

/* お問い合わせCTA */
.property-cta {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.property-cta h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.property-cta p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* -----------------------------------------------------------------------------
   お問い合わせフォーム
   ----------------------------------------------------------------------------- */
.contact-page {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.required {
    color: var(--red);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-base);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.form-actions {
    text-align: center;
}

/* アラート */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-error ul {
    list-style: disc;
    padding-left: 20px;
}

/* -----------------------------------------------------------------------------
   会社概要
   ----------------------------------------------------------------------------- */
.company-page {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.company-about {
    margin-bottom: 48px;
}

.company-about p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.company-table {
    margin-bottom: 48px;
}

.company-services {
    list-style: disc;
    padding-left: 20px;
}

.company-services li {
    margin-bottom: 4px;
}

.company-cta {
    text-align: center;
    padding: 48px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.company-cta h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.company-cta p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* -----------------------------------------------------------------------------
   404ページ
   ----------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.4rem;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.error-page p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* -----------------------------------------------------------------------------
   フッター
   ----------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-nav h3,
.footer-contact h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gold);
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}
