/*
Theme Name: Fujihouse Real Estate
Theme URI: https://www.fuji-house.com/
Author: Custom Build
Author URI: https://www.fuji-house.com/
Description: 不動産売買・仲介、戸建て注文住宅、分譲住宅向けカスタムWordPressテーマ。おすすめ物件表示、会員登録フロー（仮登録→本登録→ログイン後ダッシュボード）、物件カスタム投稿タイプ、物件詳細ページデザインを内包。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fujihouse
Tags: real-estate, custom-post-type, custom-menu, two-columns, right-sidebar, full-width-template, translation-ready
*/

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: #2a8c4a; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; margin: 0 0 0.6em; }
ul, ol { padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }

:root {
    --color-primary: #2a8c4a;
    --color-primary-dark: #1f6b38;
    --color-accent: #d92121;
    --color-bg: #f7f7f5;
    --color-border: #e3e3e0;
    --color-text: #333;
    --color-muted: #888;
    --sidebar-width: 180px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
}

/* ============================================
   Layout: Fixed Left Sidebar Navigation
============================================ */
.site-wrapper { display: flex; min-height: 100vh; }
.site-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--color-border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.site-content { margin-left: var(--sidebar-width); flex: 1; min-width: 0; }

.site-logo { padding: 18px 16px; border-bottom: 1px solid var(--color-border); }
.site-logo a { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #1a1a1a; }
.site-logo .logo-mark { color: var(--color-primary); font-size: 18px; }
.site-logo .logo-text { font-size: 14px; line-height: 1.2; }

.sidebar-nav { padding: 8px 0; flex: 1; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    color: #2a2a2a; font-weight: 600; font-size: 14px;
    border-bottom: 1px solid #f0f0ee;
}
.sidebar-nav li a:hover { background: #f7faf7; color: var(--color-primary); }
.sidebar-nav .nav-icon { width: 22px; height: 22px; display:inline-flex; align-items:center; justify-content:center; color: var(--color-primary); }

.sidebar-property { padding: 14px 16px; background: #fafaf7; border-top: 1px solid var(--color-border);}
.sidebar-property .label { font-size: 13px; font-weight: 700; margin-bottom: 8px; display:flex; align-items:center; gap:6px;}
.sidebar-property .btn-row { display: flex; gap: 6px; }
.sidebar-property .btn-row a {
    flex: 1; padding: 8px 6px; text-align: center;
    background: var(--color-primary); color: #fff !important;
    font-size: 12px; border-radius: 3px; font-weight: 700;
}
.sidebar-property .btn-row a:hover { background: var(--color-primary-dark); opacity: 1; }

.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--color-border); }
.sidebar-bottom a {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; font-size: 13px; font-weight: 700;
    color: #fff;
}
.sidebar-bottom .info-store { color: #333 !important; background: #fff; border-bottom: 1px solid var(--color-border);}
.sidebar-bottom .info-tel { background: var(--color-accent); font-size: 16px; }
.sidebar-bottom .info-contact { background: #444; }

/* ============================================
   Hero
============================================ */
.hero {
    position: relative; height: 600px; overflow: hidden;
    background: #ddd;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; left: 0; bottom: 60px;
    padding: 32px 40px; max-width: 600px;
}
.hero-overlay .eyebrow {
    color: #fff; font-size: 13px; letter-spacing: 2px; font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    margin-bottom: 12px;
}
.hero-overlay h1 {
    background: rgba(255,255,255,.9);
    display: inline; padding: 8px 18px;
    font-size: 38px; line-height: 1.6;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero-overlay .subtitle {
    background: rgba(255,255,255,.9);
    display: inline-block;
    padding: 6px 14px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}
.hero-dots {
    position: absolute; right: 20px; bottom: 20px;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.5); border: none;
}
.hero-dot.active { background: #fff; }

/* ============================================
   Section Common
============================================ */
.section { padding: 80px 6%; }
.section-title {
    margin-bottom: 40px;
    display: flex; align-items: baseline; gap: 14px;
    border-left: 6px solid var(--color-primary); padding-left: 14px;
}
.section-title .en { font-size: 32px; letter-spacing: 2px; }
.section-title .ja { font-size: 16px; color: #555; }
.section-title-center {
    text-align: center; border: none; padding: 0; display: block;
    margin-bottom: 40px;
}
.section-title-center .en { display:block; font-size: 26px; letter-spacing: 3px; color: var(--color-primary);}
.section-title-center .ja { display:block; font-size: 20px; margin-top: 6px;}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-text p { margin: 0 0 1em; }
.about-text .lead { font-weight: 700; font-size: 18px; line-height: 1.8; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-images img { border-radius: 4px; box-shadow: var(--shadow-sm); }
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 28px;
    border: 1px solid #333; color: #333 !important;
    font-weight: 700; font-size: 14px;
    background: #fff;
    transition: all .2s;
}
.btn:hover { background: var(--color-primary); color: #fff !important; border-color: var(--color-primary); opacity: 1;}
.btn .arrow { color: var(--color-primary); }
.btn:hover .arrow { color: #fff; }
.btn-primary { background: var(--color-primary); color: #fff !important; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-accent { background: #f29400; color: #fff !important; border-color: #f29400; }
.btn-accent:hover { background: #d97f00; border-color: #d97f00; }

/* Information */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-card { background: #fff; }
.info-card .info-thumb {
    height: 200px; background-size: cover; background-position: center;
    background-color: #eee; position: relative;
}
.info-card .info-tag {
    position: absolute; left: 0; top: 12px;
    background: rgba(0,0,0,.7); color: #fff;
    padding: 4px 14px; font-size: 12px; font-weight: 700;
}
.info-card .date { color: #888; font-size: 13px; margin-top: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border);}
.info-card h3 { font-size: 16px; margin-top: 10px; }
.info-card a { color: #333; }

/* Services */
.services { background: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: #fff; border: 1px solid #d4d4d0;
    padding: 36px 24px; text-align: center;
    transition: all .25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md);}
.service-card .ico {
    width: 64px; height: 64px; margin: 0 auto 14px;
    color: var(--color-primary);
}
.service-card .lbl { font-size: 13px; color: #666; }
.service-card h3 { font-size: 22px; color: var(--color-primary); }
.service-card p { font-size: 14px; color: #555; text-align: left; }

/* Properties */
.properties-bg { background: #fff; }
.property-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
.property-type-card {
    height: 240px; position: relative; overflow: hidden;
    background-size: cover; background-position: center;
}
.property-type-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,.6));
}
.property-type-card .label-box {
    position: absolute; left: 0; bottom: 0;
    background: rgba(0,0,0,.65); color: #fff;
    padding: 14px 24px; min-width: 220px;
}
.property-type-card .label-box .ja { font-size: 20px; font-weight: 800; }
.property-type-card .label-box .en { font-size: 11px; letter-spacing: 1px; opacity:.8; }

/* おすすめ物件 / 50坪以上 (recommended properties) */
.recommend-bg { background: #fafaf7; }
.prop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.prop-card {
    background: #fff; border: 1px solid var(--color-border);
    transition: all .2s; position: relative;
    display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prop-card .prop-thumb {
    height: 130px; background:#eef1ec; background-size: cover; background-position: center;
    position: relative;
}
.prop-card .badge-status {
    position: absolute; top: 6px; left: 6px;
    background: #f5bfbf; color: #c00; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 2px;
}
.prop-card .badge-new {
    position: absolute; top: 6px; right: 6px;
    background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 2px;
}
.prop-card .prop-price {
    background: #2c2c2c; color: #fff;
    padding: 6px 12px; font-size: 18px; font-weight: 800;
}
.prop-card .prop-price small { font-weight: 400; font-size: 12px; }
.prop-card .prop-meta { padding: 10px 12px; flex: 1; }
.prop-card .prop-meta .area { font-size: 12px; color: #555; line-height: 1.5; }
.prop-card .prop-meta .title { font-size: 13px; margin-top: 6px; color: #222; font-weight: 700; }
.prop-card .prop-meta .addr { font-size: 11px; color: #777; margin-top: 6px; }
.prop-card .fav {
    position: absolute; left: 8px; bottom: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: 1px solid #ddd;
    display:flex; align-items:center; justify-content:center; color:#bbb;
}
.prop-card .fav.active { color: var(--color-accent); }

.prop-list-cta { text-align: center; margin-top: 36px; }
.prop-list-cta .btn-accent { padding: 16px 50px; font-size: 15px; }

/* Footer */
.site-footer {
    background: #1f2a26; color: #cfd6d2;
    padding: 50px 6% 24px;
}
.footer-info { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-info h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-info a { color: #cfd6d2; }
.footer-bottom { border-top: 1px solid #3a4a45; padding-top: 16px; font-size: 12px; text-align:center; color: #99a8a3;}

/* ============================================
   Forms (会員登録 / ログイン)
============================================ */
.form-page-wrap {
    max-width: 760px; margin: 0 auto;
    padding: 50px 24px;
}
.breadcrumb { font-size: 12px; color: #777; margin-bottom: 20px; }
.breadcrumb a { color: #777; }
.form-page-title h1 { font-size: 28px; margin-bottom: 4px; }
.form-page-title .sub { color: #777; font-size: 14px; margin-bottom: 30px; }

.step-indicator {
    display: flex; justify-content: center; gap: 24px;
    margin: 16px 0 40px;
}
.step-indicator .step {
    display: flex; flex-direction: column; align-items: center; position: relative;
    color: #aaa; font-size: 13px;
}
.step-indicator .step .num {
    width: 32px; height: 32px; border-radius: 50%;
    background: #ccc; color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.step-indicator .step.active .num { background: #2a6dbf; }
.step-indicator .step.active { color: #2a6dbf; }
.step-indicator .step.done .num { background: #2a8c4a; }
.step-indicator .step::after {
    content: ''; position: absolute; top: 16px; right: -24px;
    width: 24px; height: 1px; background: #ccc;
}
.step-indicator .step:last-child::after { display: none; }

.form-card {
    background: #fff; border: 1px solid var(--color-border);
    padding: 36px;
}
.form-row {
    display: grid; grid-template-columns: 160px 1fr;
    gap: 20px; align-items: center; padding: 16px 0;
    border-bottom: 1px solid #f0f0ee;
}
.form-row:last-child { border-bottom: none; }
.form-row label { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.required-badge { background: #d92121; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 700; }
.optional-badge { background: #5a8fd0; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ccc; border-radius: 3px; font-size: 14px;
    background: #fde9e0;
}
.form-row .row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { text-align: center; margin-top: 30px; }
.form-actions button, .form-actions .btn-submit {
    border: 1px solid #f29400; color: #f29400; background: #fff;
    padding: 14px 60px; font-size: 16px; font-weight: 700;
    border-radius: 3px; cursor: pointer; transition: all .2s;
}
.form-actions button:hover, .form-actions .btn-submit:hover {
    background: #f29400; color: #fff;
}
.form-actions .btn-submit-fill {
    background: #f29400; color: #fff;
}
.form-actions .btn-secondary {
    border-color: #999; color: #666; margin-top: 12px;
}
.form-confirm-row {
    display: grid; grid-template-columns: 160px 1fr;
    gap: 20px; padding: 18px 0;
    border-bottom: 1px solid #f0f0ee;
}
.form-confirm-row label { font-weight: 700; color: #555; }
.form-page-message {
    text-align: center; padding: 40px 20px;
}
.form-page-message h2 { font-size: 32px; margin-bottom: 24px; }
.form-page-message p { font-size: 15px; line-height: 2; }

/* ============================================
   会員ダッシュボード
============================================ */
.dashboard-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 30px 5%; }
.dashboard-side {
    background: #fff; border: 1px solid var(--color-border); padding: 14px 0;
    align-self: start;
}
.dashboard-side ul { list-style: none; padding: 0; margin: 0;}
.dashboard-side li a {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; color: #333; font-size: 14px;
    border-bottom: 1px solid #f0f0ee;
}
.dashboard-side li a:hover { background: #f7faf7; color: var(--color-primary); }
.dashboard-side li.active a { color: var(--color-primary); font-weight: 700; background: #eaf5ee;}
.dashboard-main {}
.dashboard-main h1 { font-size: 22px; margin-bottom: 16px; }
.dashboard-filters {
    background: #fff; border: 1px solid var(--color-border);
    padding: 16px; display:grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px;
}
.dashboard-filters label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 4px; }

/* ============================================
   物件詳細
============================================ */
.property-detail-wrap { padding: 24px 4% 60px; max-width: 1280px; margin: 0 auto; }
.property-detail-head {
    background: #fff; border: 1px solid var(--color-border); padding: 18px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 24px;
}
.property-gallery {}
.property-gallery .main-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    background: #eef1ec;
}
.property-gallery .thumbs { display: flex; gap: 6px; margin-top: 6px; }
.property-gallery .thumbs img { width: 64px; height: 48px; object-fit: cover; border: 1px solid #ddd; cursor: pointer; }
.property-summary h1 { font-size: 22px; line-height:1.4; margin-bottom: 8px; }
.property-summary .price { font-size: 32px; font-weight: 800; color: var(--color-accent); margin: 8px 0;}
.property-summary .price small { font-size: 14px; color: #555; font-weight: 400; }
.property-summary .meta-list { list-style: none; padding: 0; margin: 14px 0; font-size: 13px;}
.property-summary .meta-list li {
    padding: 8px 0; display:grid; grid-template-columns: 100px 1fr; gap: 8px;
    border-bottom: 1px dashed #e3e3e0;
}
.property-summary .meta-list li span:first-child { color: #777; font-weight: 600;}
.property-actions { display: flex; gap: 8px; margin-top: 14px; }
.property-actions .btn { flex: 1; justify-content: center; }

.property-section {
    background: #fff; border: 1px solid var(--color-border);
    margin-bottom: 18px; padding: 20px;
}
.property-section h2 {
    font-size: 17px; padding-left: 12px; border-left: 4px solid var(--color-primary);
    margin-bottom: 14px;
}
.property-spec-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.property-spec-table th, .property-spec-table td {
    padding: 10px 12px; border: 1px solid #e3e3e0; text-align: left;
}
.property-spec-table th { background: #f7f7f5; width: 18%; font-weight: 600; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .about, .info-grid, .services-grid, .property-types { grid-template-columns: 1fr; }
    .footer-info { grid-template-columns: 1fr; }
    .property-detail-head { grid-template-columns: 1fr; }
    .dashboard-wrap { grid-template-columns: 1fr; }
    .dashboard-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    .site-sidebar {
        transform: translateX(-100%);
        transition: transform .3s; width: 240px;
    }
    .site-sidebar.open { transform: translateX(0); --sidebar-width: 240px; }
    .site-content { margin-left: 0; }
    .mobile-toggle {
        position: fixed; top: 12px; left: 12px; z-index: 200;
        width: 44px; height: 44px;
        background: var(--color-primary); color: #fff; border:none; border-radius: 4px;
        font-size: 20px;
    }
    .hero { height: 380px; }
    .hero-overlay h1 { font-size: 22px; }
    .section { padding: 50px 5%; }
    .form-row { grid-template-columns: 1fr; }
    .form-confirm-row { grid-template-columns: 1fr; }
}
.mobile-toggle { display: none; }
@media (max-width: 768px) { .mobile-toggle { display: block; } }
