/* ===================================
   淀川区不動産ガイド - メインスタイル
   GEOファースト設計 / さくらインターネット対応
   =================================== */

/* リセット・ベース */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.7;
}
a { color: #1a6b3a; text-decoration: none; }
a:hover { color: #0d4a28; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* カラー変数 */
:root {
    --color-primary: #1a6b3a;
    --color-primary-dark: #0d4a28;
    --color-primary-light: #e8f5ee;
    --color-accent: #f0a500;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-bg: #f8f9fa;
    --color-white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
    --radius: 8px;
    --max-width: 1200px;
}

/* レイアウト */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* ヘッダー */
.site-header {
    background: var(--color-white);
    border-bottom: 3px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.header-logo a { display: flex; flex-direction: column; }
.logo-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.logo-sub { font-size: 0.7rem; color: var(--color-text-light); }
.header-nav ul { display: flex; gap: 8px; align-items: center; }
.header-nav a {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background 0.2s;
}
.header-nav a:hover { background: var(--color-primary-light); text-decoration: none; }
.btn-contact {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: 4px;
}
.btn-contact:hover { background: var(--color-primary-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: 0.3s; }

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d9b5a 100%);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}
.hero-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 40px; opacity: 0.9; }

/* 検索フォーム */
.search-form {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 4px;
}
.search-field select,
.search-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s;
}
.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--color-primary);
}
.btn-search {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-search:hover { background: var(--color-primary-dark); }

/* 物件カード */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.property-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}
.property-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.property-card a { display: block; color: inherit; }
.property-card a:hover { text-decoration: none; }
.property-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 3rem;
}
.property-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8f5ee, #c8e6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.property-body { padding: 16px; }
.property-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 8px;
}
.property-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}
.property-rent {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.property-rent span { font-size: 0.85rem; font-weight: 400; color: var(--color-text-light); }
.property-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.property-address { font-size: 0.85rem; color: var(--color-text-light); }

/* エリアカード */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.area-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-primary);
    transition: box-shadow 0.2s;
}
.area-card:hover { box-shadow: var(--shadow-hover); }
.area-card a { color: inherit; }
.area-card a:hover { text-decoration: none; }
.area-name { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.area-station { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 10px; }
.area-desc { font-size: 0.9rem; line-height: 1.6; color: var(--color-text); margin-bottom: 12px; }
.area-rent-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.area-rent-table th, .area-rent-table td { padding: 4px 8px; text-align: left; }
.area-rent-table th { color: var(--color-text-light); font-weight: 500; }
.area-rent-table td { font-weight: 700; color: var(--color-primary); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--color-white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    padding: 18px 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--color-primary-light); }
.faq-q-mark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}
.faq-answer {
    padding: 0 20px 18px 60px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    display: none;
}
.faq-answer.open { display: block; }

/* パンくずリスト */
.breadcrumb {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}
.breadcrumb ol {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.breadcrumb li::after { content: ' ›'; margin-left: 4px; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--color-primary); }

/* ページヘッダー */
.page-header {
    background: var(--color-primary-light);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 8px; }
.page-header p { color: var(--color-text-light); font-size: 0.95rem; }

/* 物件詳細 */
.property-detail { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.property-detail-header { margin-bottom: 24px; }
.property-detail-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.property-detail-rent { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.property-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--color-text-light); }
.property-specs {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.property-specs h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.spec-item { display: flex; flex-direction: column; }
.spec-label { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 2px; }
.spec-value { font-size: 0.95rem; font-weight: 500; }

/* 相場表 */
.market-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.market-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
}
.market-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.market-table tr:last-child td { border-bottom: none; }
.market-table tr:hover td { background: var(--color-primary-light); }
.market-price { font-weight: 700; color: var(--color-primary); }

/* ボタン */
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.2s; text-align: center; }
.btn-primary { background: var(--color-primary); color: var(--color-white); border: none; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); text-decoration: none; }

/* フッター */
.site-footer { background: #1a2a1e; color: #ccc; margin-top: 80px; }
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
.footer-logo { font-size: 1.2rem; font-weight: 700; color: var(--color-white); margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav h3 { font-size: 0.9rem; font-weight: 700; color: var(--color-white); margin-bottom: 12px; }
.footer-nav a { font-size: 0.85rem; color: #aaa; display: block; padding: 3px 0; }
.footer-nav a:hover { color: var(--color-white); text-decoration: none; }
.footer-nav li { margin-bottom: 4px; }
.footer-bottom {
    border-top: 1px solid #2d4a33;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title { font-size: 1.6rem; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .header-nav { display: none; }
    .header-nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-white); padding: 16px; box-shadow: var(--shadow); }
    .header-nav.open ul { flex-direction: column; }
    .hamburger { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .property-grid { grid-template-columns: 1fr; }
    .area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .search-grid { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; }
    .section-title { font-size: 1.4rem; }
}
