@charset "UTF-8";

/* ==========================================================================
   1. 基本設定とリセット
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   2. レイアウトの土台
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. ヘッダー
   ========================================================================== */
header {
    background: #fff;
    border-bottom: 4px solid #b23a2b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    filter: none;
    transform: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
    font-size: 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #b23a2b;
}

/* ==========================================================================
   4. メインビジュアル
   ========================================================================== */
.hero-banner {
    width: 100%;
    height: 450px;
    background-image: linear-gradient(rgba(246,180,131,0.3), rgba(246,180,131,0.3)), url('images/bg_sunset_room.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* スマホ用改行設定 */
.sp-br { display: none; }
@media (max-width: 768px) {
    .sp-br { display: block; }
    .hero-content h1 { line-height: 1.4; }
}

/* ==========================================================================
   5. 検索ボックス
   ========================================================================== */
.search-box {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.search-box h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #b23a2b;
}

.search-submit {
    padding: 0 40px;
    background-color: #b23a2b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background-color: #8e2e22;
}

/* ==========================================================================
   6. 物件カード共通スタイル (ベースは検索結果の横長)
   ========================================================================== */
.search-result-header { margin: 40px 0 20px; }
.prop-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; }

.prop-card {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
    overflow: hidden;
}

.prop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prop-img-box {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    background: #eee;
}

.prop-img-box img { width: 100%; height: 100%; object-fit: cover; }

.prop-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.prop-title { font-size: 20px; color: #b23a2b; margin-bottom: 10px; }
.prop-details { font-size: 14px; color: #666; margin-bottom: 15px; }
.prop-address { display: block; margin-bottom: 5px; }

.prop-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 15px; }
.prop-price { font-size: 28px; font-weight: bold; color: #333; }
.prop-price span { font-size: 16px; margin-left: 2px; }

.prop-tag { display: flex; gap: 8px; margin-top: 10px; }
.prop-tag span { font-size: 11px; background: #f0f0f0; padding: 2px 8px; border-radius: 3px; color: #666; }

/* ==========================================================================
   7. トップページ「おすすめ物件」用グリッド
   ========================================================================== */
.pickup-section { margin-bottom: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; flex-direction: unset; }
.grid-3 .prop-card { flex-direction: column; height: 100%; }
.grid-3 .prop-card .prop-img-box { width: 100%; height: 200px; }
.grid-3 .prop-card .prop-price { font-size: 24px; }

/* ==========================================================================
   8. 偽広告セクション
   ========================================================================== */
.ad-section { margin-bottom: 60px; }
.fake-ad {
    padding: 25px 30px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}
.fake-ad:hover { opacity: 0.8; }
.ad-content { flex: 1; }
.fake-ad h3 { margin: 0 0 5px; font-size: 1.2rem; font-weight: bold; }
.fake-ad p { font-size: 0.95rem; margin: 0; }
.ad-action { margin-left: 20px; white-space: nowrap; }
.ad-btn {
    display: inline-block; padding: 10px 25px; font-size: 0.9rem;
    border-radius: 4px; text-align: center; font-weight: bold;
}

/* 正常 */
.ad-normal { background-color: #fff; border: 1px solid #b3e5fc; color: #555; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.ad-normal h3 { color: #0277bd; }
.ad-normal p strong { color: #0288d1; font-weight: bold; }
.ad-normal .ad-btn { background-color: #0288d1; color: #fff; border: none; }

/* 異常 */
.ad-glitch { background-color: #111; border: 1px solid #333; color: #888; }
.ad-glitch h3 { color: #d1561f; font-family: monospace; letter-spacing: 0.05em; }
.ad-glitch p strong { color: #aaa; text-decoration: line-through; }
.ad-glitch .ad-btn { background-color: #000; color: #d1561f; border: 1px solid #d1561f; }

/* ==========================================================================
   9. お知らせエリア
   ========================================================================== */
.news-area { margin-bottom: 80px; }

.section-title,
.news-area h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-left: 6px solid #b23a2b;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-radius: 0 4px 4px 0;
}

.news-list { list-style: none; background: #fff; border: 1px solid #ddd; }
.news-list li { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; }
.news-list li:last-child { border-bottom: none; }

.date { font-weight: bold; color: #888; width: 120px; }
.news-more { display: flex; justify-content: center; margin-top: 30px; }

.btn-outline {
    display: inline-block; padding: 12px 50px; border: 1px solid #b23a2b;
    color: #b23a2b; text-decoration: none; font-size: 14px; font-weight: bold;
    border-radius: 4px; transition: all 0.3s ease;
}
.btn-outline:hover { background: #b23a2b; color: #fff; }

/* ==========================================================================
   10. フッター
   ========================================================================== */
.site-footer { background: #333; color: #fff; padding: 60px 0 30px; margin-top: 80px; font-size: 14px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.4rem; font-weight: bold; margin-bottom: 15px; font-family: 'Shippori Mincho', serif; }
.footer-address { line-height: 1.8; color: #ccc; font-size: 0.9rem; }
.footer-links { display: flex; gap: 40px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #444; padding-top: 30px; text-align: center; }
.copyright { font-size: 12px; color: #888; margin-bottom: 15px; }
.system-note { font-size: 10px; color: #888; line-height: 1.4; font-family: "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.05em; }

/* ==========================================================================
   11. 侵食レベル演出 (共通部分)
   ========================================================================== */
/* Lv1 */
body.level-1 { background-color: #f4f4f4; }
body.level-1 .hero-banner { filter: grayscale(30%); }
body.level-1 .logo-img { transform: rotate(1deg); filter: none !important; transition: transform 0.5s ease; }

/* Lv2 */
body.level-2 { transform: rotate(0.3deg); overflow-x: hidden; }
body.level-2 .logo-img { transform: skewX(-15deg) scale(0.95); filter: blur(0.5px) !important; opacity: 0.9; }

/* Lv3 */
body.level-3 { background-color: #222 !important; color: #ddd !important; }
body.level-3 header, body.level-3 .search-box, body.level-3 .news-list, body.level-3 .prop-card { 
    background-color: #2a2a2a !important; border-color: #444 !important; color: #ccc !important; 
}
body.level-3 a { color: #d1561f !important; text-decoration: none; }
body.level-3 a:hover { text-decoration: line-through; cursor: help; }
body.level-3 .logo-img { transform: skewX(20deg) rotate(-3deg); filter: sepia(50%) opacity(0.7) !important; }

/* ==========================================================================
   12. 会社概要・その他ページ共通
   ========================================================================== */
.about-container, .news-list-container {
    max-width: 900px; margin: 0 auto 60px;
}
.page-header { margin: 30px 0 40px; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
.page-header h1 { font-family: 'Shippori Mincho', serif; font-size: 28px; color: #333; }

/* 会社概要 (about.php) */
.about-section { margin-bottom: 60px; }
.about-section h2 { font-size: 22px; border-left: 5px solid #b23a2b; padding-left: 15px; margin-bottom: 25px; color: #333; }
.message-box { background: #fff; padding: 40px; border: 1px solid #e0e0e0; line-height: 1.8; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.signature { text-align: right; font-weight: bold; font-size: 1.1rem; margin-top: 30px; font-family: 'Shippori Mincho', serif; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.spec-table th, .spec-table td { padding: 15px 20px; border: 1px solid #e0e0e0; }
.spec-table th { background: #f9f9f9; width: 30%; text-align: left; font-weight: bold; color: #555; }
.map-dummy { background: #fff; padding: 20px; border: 1px solid #e0e0e0; }
.map-placeholder { width: 100%; height: 300px; background-color: #eee; display: flex; align-items: center; justify-content: center; color: #999; margin-top: 10px; }

/* ==========================================================================
   13. お知らせ詳細・一覧ページ
   ========================================================================== */
/* 詳細 (news.php) */
.news-article {
    background: #fff; padding: 60px 80px; border: 1px solid #ddd;
    margin-bottom: 80px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-radius: 4px;
}
.news-header { border-bottom: 1px solid #eee; padding-bottom: 30px; margin-bottom: 40px; }
.news-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-family: "Helvetica Neue", Arial, sans-serif; }
.news-date { color: #888; font-weight: bold; font-size: 0.95rem; letter-spacing: 0.05em; }
.news-label { background-color: #f4f4f4; color: #555; padding: 4px 12px; font-size: 0.8rem; border-radius: 2px; font-weight: bold; }
.news-title-main {
    font-family: 'Shippori Mincho', serif; font-size: 28px; font-weight: 700; color: #333; line-height: 1.4; letter-spacing: 0.05em;
}
.article-content { font-size: 16px; line-height: 2; color: #444; min-height: 200px; margin-bottom: 60px; }
.article-footer { text-align: center; border-top: 1px solid #eee; padding-top: 40px; }
.back-btn {
    display: inline-block; padding: 12px 40px; border: 1px solid #ccc; color: #666;
    text-decoration: none; border-radius: 50px; transition: all 0.3s; font-size: 0.9rem; background: #fff;
}
.back-btn:hover { background: #f8f9fa; border-color: #b23a2b; color: #b23a2b; transform: translateY(-2px); }

/* 一覧 (news_list.php) */
.news-archive { list-style: none; border-top: 2px solid #b23a2b; background: #fff; border: 1px solid #ddd; border-top: none; }
.news-item { border-bottom: 1px solid #eee; transition: background 0.3s; }
.news-item:hover { background-color: #f9f9f9; }
.news-link {
    display: flex; align-items: center; padding: 25px 30px; text-decoration: none; color: #333; transition: color 0.3s;
}
.news-link:hover .news-title { color: #b23a2b; text-decoration: underline; }
.news-meta-col { display: flex; align-items: center; width: 220px; flex-shrink: 0; }
.news-meta-col .news-date { margin-right: 15px; }
.news-title-col { flex-grow: 1; }
.news-title { font-size: 16px; font-weight: bold; }

/* ==========================================================================
   14. その他パーツ (お問い合わせ・エラー等)
   ========================================================================== */
.mystery-blank { background-color: #000; color: transparent; cursor: pointer; user-select: none; padding: 0 5px; border-radius: 2px; }
.mystery-blank.revealed { background-color: transparent; color: #d1561f; text-decoration: line-through; font-weight: bold; }

/* リード文 */
.page-lead {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* お問い合わせフォーム */
.contact-container { 
    max-width: 800px; 
    margin: 60px auto 60px; 
    background: #fff; 
    padding: 50px; 
    border: 1px solid #ddd; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    border-radius: 4px; 
}

.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 10px; }
.required { background: #b23a2b; color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 2px; margin-left: 8px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.contact-form textarea { height: 180px; resize: vertical; }
.form-submit { text-align: center; margin-top: 40px; }
.submit-btn { background-color: #b23a2b; color: #fff; border: none; padding: 15px 60px; font-size: 18px; font-weight: bold; border-radius: 4px; cursor: pointer; box-shadow: 0 4px 10px rgba(178, 58, 43, 0.3); }

.error-page { padding: 80px 20px; text-align: center; min-height: 60vh; }
.error-code { font-size: 80px; font-weight: bold; color: #eee; line-height: 1; margin-bottom: 20px; font-family: 'Arial Black', sans-serif; }
.terminal-log { background: #222; color: #0f0; font-family: monospace; padding: 15px; text-align: left; display: inline-block; margin-top: 20px; border-left: 3px solid #d1561f; }
.glitch-text { color: red; animation: glitch 0.3s infinite; }
@keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } 100% { transform: translate(0); } }

/* ==========================================================================
   15. スマホ対応 (レスポンシブ共通)
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner { height: auto; flex-direction: column; padding: 15px 0; gap: 15px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-banner { height: 300px; }
    .hero-content h1 { font-size: 26px; }
    .search-box { margin-top: -30px; padding: 20px; }
    .search-form { flex-direction: column; }
    .search-submit { width: 100%; padding: 12px 0; }
    .prop-card { flex-direction: column; }
    .prop-img-box { width: 100%; height: 200px; }
    .fake-ad { flex-direction: column; text-align: center; gap: 15px; }
    .footer-content { flex-direction: column; gap: 30px; }
    .footer-links { flex-direction: column; gap: 20px; }
    
    /* お問い合わせフォーム（スマホ用） */
    .contact-container { 
        padding: 30px 20px; 
        margin: 30px auto 40px; /* マージンを詰める */
    }
    .page-lead {
        text-align: left; /* スマホでは左揃えにして読みやすく */
        font-size: 14px;
        margin-bottom: 30px;
    }
    .page-lead br {
        display: none; /* スマホでは改行を無効化して自然に折り返す */
    }
    
    .news-article { padding: 40px 20px; }
    .news-title-main { font-size: 22px; }
    .news-meta { flex-wrap: wrap; gap: 10px; }
    .news-link { flex-direction: column; align-items: flex-start; padding: 20px; }
    .news-meta-col { width: 100%; margin-bottom: 8px; }
    
    .contact-btn, .submit-btn { width: 100%; font-size: 16px; }
}