/* --- 全体設定 --- */
:root {
    --primary-color: #4682B4;
    --accent-color: #f1c40f;
    --text-color-dark: #333333;
    --text-color-light: #335359;
    --light-background: #f8f8f8;
    --white-background: #ffffff;
    --shadow-light: rgba(0,0,0,0.05);
    --shadow-medium: rgba(0,0,0,0.08);
    --shadow-strong: rgba(0,0,0,0.15);
}

body {
    font-family: "Noto Sans JP", sans-serif, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text-color-dark);
    background-color: var(--light-background);
    line-height: 1.6;
}
.site-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white-background);
    box-shadow: 0 0 20px var(--shadow-light);
    border-radius: 8px;
}

/* --- ヘッダーとナビゲーション --- */
.site-header {
    background-color: var(--primary-color);
    padding: 20px 0;
    margin-bottom: 40px;
    border-radius: 8px 8px 0 0;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.main-nav li {
    margin: 0 25px;
}
.main-nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.2em;
    font-family: 'Yu Gothic UI Semibold','Yu Gothic UI','メイリオ', Meiryo,sans-serif;
    letter-spacing: 0.2em;
    display: block;
}
.main-nav a:hover {
    color: var(--white-background);
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

a {
    color: var(--text-color-light);
    text-decoration: none;
}
a:hover, a:active {
    color: var(--primary-color);
}
.main-nav a, .footer-nav a {
    color: var(--accent-color);
}

/* --- 賃貸情報トップセクション --- */
.info-section {
    margin-bottom: 30px;
    padding: 0 10px;
    line-height: 1.2;
}
.info-section p {
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
    font-size: 12pt;
    color: var(--text-color-light);
    font-family:"Yu Gothic Medium", "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN";
}
.info-section p:last-child {
    margin-bottom: 0;
}
.info-title,
.update-info,
.contact-message {
    padding-left: 0.5em;
}
.update-info img {
    vertical-align: middle;
    margin-left: 5px;
}

p {
    color: var(--text-color-light);
    font-family:"Yu Gothic Medium", "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN";
    line-height:1.3;
    font-size: 12pt;
}

hr {
    height: 4px;
    background-color: lightsteelblue;
    border: none;
    margin: 30px 0;
}
.img {
    width: calc(33.33% - 7px);
    height: auto;
    max-width: 155px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}
.img2 {
    width: 100%;
    height: auto;
    max-width: 300px;
    border: none;
    margin: 10px auto;
    display: block;
    box-shadow: 0 4px 8px var(--shadow-strong);
    border-radius: 6px;
}
.box .property-detail-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 5px;
    box-sizing: border-box;
}
.property-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    box-sizing: border-box;
    border: none;
    box-shadow: 0 5px 15px var(--shadow-medium);
    border-radius: 8px;
    background-color: var(--white-background);
}
.box {
    width: 100%;
    max-width: 510px;
    height: auto;
    position: relative;
    margin: 10px 0;
    padding: 5px 0px 0px 5px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-sizing: border-box;
}
.box .box-title {
    position: static;
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'Yu Gothic UI Semibold',sans-serif;
    background: none;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.main-property-image {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
    text-align: center;
}
a.anchor{
    display: block;
    padding-top: 50px;
    margin-top: -50px;
}
.section-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}
.section-title img {
    vertical-align: middle;
    margin: 0 10px;
}
.property-features {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 10px;
    font-size: 0.9em;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.property-features li {
    margin-top: 5px;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5em;
}
.property-features li img {
    display: none;
}
.property-features li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}
.image-overlay-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
    display: block;
    text-align: center;
}
.rentout-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    z-index: 5;
}
.rentout-overlay img {
    max-width: 80%;
    height: auto;
}
.rentout-overlay.is-hidden {
    display: none;
}
.property-section.is-rented .image-overlay-container {
    /* オーバーレイを強制表示（is-hiddenがあっても上書き） */
}
.property-section.is-rented a:not(.anchor) {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}
.property-section.is-rented .main-property-image a {
    pointer-events: none;
    cursor: default;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white-background);
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
    border-radius: 0 0 8px 8px;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav li {
    margin: 0 15px 10px;
}
/* --- アクセシビリティ用クラス --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .site-wrapper {
        padding: 15px;
    }
    .main-nav li {
        margin: 0 10px;
    }
    .site-footer {
        padding: 20px 0;
    }
}
@media (min-width: 768px) {
    .property-section {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
        padding: 25px;
    }
   .box {
        order: 2;
        margin-left: 30px;
        flex-basis: 499px;
        flex-grow: 0;
        flex-shrink: 1;
        box-sizing: border-box;
        padding: 0;
    }
    .main-property-image,
    .image-overlay-container {
        order: 1;
        margin-right: 0;
        flex-basis: 300px;
        flex-grow: 0;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    .box .box-title {
        text-align: left;
        padding-left: 5px;
    }
    .property-features {
        text-align: left;
        margin-left: 0;
        max-width: none;
        padding-left: 5px;
    }
}
.return-link {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}
.return-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-background);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.return-link a:hover {
    background-color: #2F6699;
    transform: translateY(-2px);
}