/* --- 全体設定 --- */
body {
    font-family: "Noto Sans JP", sans-serif, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333333;
    background-color: #f8f8f8;
    line-height: 1.6;
}

.site-wrapper {
    max-width: 1000px; /* 全体の幅を1000pxに合わせる */
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* --- ヘッダーとナビゲーション --- */
.site-header {
    background-color: #4682B4;
    padding: 20px 0;
    border-bottom: none;
    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: #f1c40f;
    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: white; /* ホバー時の色 */
}

/* ナビゲーションのホバーアニメーション（下線）*/
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1c40f;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- リンクの色固定 --- */
/* 全てのリンクの状態に対して同じ色を設定 */
a:link,
a:visited,
a:hover,
a:active {
    color: #335359; /* リンクの色を固定 */
    text-decoration: none; /* 下線をなくしたい場合 */
}

/* ヘッダーとフッターのナビゲーションリンクは別途設定されているため影響しません */
.main-nav a,
.footer-nav a {
    /* これらのスタイルは既存のままで、上記の色固定の影響を受けません */
    color: #f1c40f; /* main-navのリンク色を上書き */
}

.footer-nav a {
    color: #dddddd; /* footer-navのリンク色を上書き */
}


/* --- 賃貸情報トップセクション --- */
.info-section {
    margin-bottom: 30px; /* 全体的な下マージン */
    padding: 0 10px; /* 左右の余白を少し確保 */
    line-height: 1.2; /* このセクションの行間をリセット */
}

/* info-section内のpタグに特定のマージンとフォントサイズを設定 */
.info-section p {
    margin-top: 0 !important;
    margin-bottom: 5px !important; /* 行間を調整 */
    line-height: 1.2 !important; /* 行の高さを強制的に詰める */
    font-size: 12pt !important; /* 文字サイズを12ptに強制的に指定 */
    color: #335359 !important;
    font-family:"Yu Gothic Medium", "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN" !important;
}

/* 最後のpタグの下マージンは特に不要なためリセット */
.info-section p:last-child {
    margin-bottom: 0 !important;
}

.info-title {
    padding-left: 0.5em; /* インデントの代替 */
}

.update-info {
    padding-left: 0.5em; /* インデントの代替 */
}

.update-info img {
    vertical-align: middle;
    margin-left: 5px;
}

.contact-message {
    padding-left: 0.5em; /* インデントの代替 */
}

/* --- ナビゲーションアクション --- */
.back-to-top-link {
    display: block;
    text-align: right; /* 元のalign="right"に対応 */
    margin-top: 20px; /* 上部のスペース */
    margin-bottom: 20px; /* 下部のスペース */
    padding-right: 10px; /* 右端に少しスペース */
}

.up-icon {
    vertical-align: middle;
}

/* --- フッター --- */
.site-footer {
    background-color: #4682B4;
    color: white;
    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;
    }
}

/* 旧CSSから引き継がれるが、今回の依頼範囲外のスタイル */
/* このpタグのスタイルは、info-section p で上書きされます */
p {
    color: #335359;
    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;
    clear: both;
    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 rgba(0,0,0,0.15);
    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 rgba(0,0,0,0.08);
    border-radius: 8px;
    background-color: #ffffff;
}

/* 物件情報ボックス (現在は.property-sectionが全体のボックスの役割を担う) */
.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: #4682B4;
}

/* メイン物件画像のラッパー */
.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: #4682B4;
}
.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;
}
/* アイコンを削除し、代わりにシンプルな丸（バレット）をCSSで生成 */
.property-features li img {
    display: none; /* imgタグを非表示にする */
}
.property-features li::before {
    content: '•'; /* シンプルな丸（バレット） */
    color: #4682B4; /* メインカラーに合わせる */
    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; /* 親要素の角丸に合わせる */
}
.rentout-overlay img {
    max-width: 80%;
    height: auto;
}

/* PC表示時のレイアウト (768px以上) */
@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; /* .boxを画像より右に配置 */
        margin-left: 30px; /* 画像との間に余白 */
        flex-basis: 499px; /* .boxの幅を調整 */
        flex-grow: 0;
        flex-shrink: 1;
        box-sizing: border-box;
        padding: 0; /* .box自身のパディングをリセット（親で調整するため） */
    }

    .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; /* PCではタイトルを左寄せに */
        padding-left: 5px; /* 左寄せにした際のパディング */
    }

    .property-features {
        text-align: left; /* PCではリストを左寄せに */
        margin-left: 0; /* 中央寄せを解除 */
        max-width: none; /* 幅制限を解除 */
        padding-left: 5px; /* 左寄せにした際のパディング */
    }
}
/* --- 会社情報セクションのレイアウト調整 --- */
.company-info-section {
    display: flex; /* Flexboxコンテナにする */
    flex-direction: column; /* デフォルトは縦並び（モバイルファースト） */
    align-items: center; /* 中央寄せ */
    margin-bottom: 30px;
    padding: 15px; /* 全体のパディング */
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* 賃貸物件セクションと統一感 */
    border-radius: 8px; /* 賃貸物件セクションと統一感 */
    background-color: #ffffff; /* 賃貸物件セクションと統一感 */
}

.company-images-container {
    width: 100%;
    max-width: 350px; /* 画像コンテナの最大幅を設定 */
    text-align: center; /* 画像を中央寄せ */
    margin-bottom: 20px; /* 下にスペース */
}

.company-right-image {
    width: 100%;
    height: auto;
    max-width: 300px; /* 個々の画像の最大幅 */
    margin: 0 auto 10px auto; /* 中央寄せと画像間のスペース */
    display: block; /* imgをブロック要素にしてmargin: autoを有効に */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 影を追加 */
    border-radius: 4px; /* 少し角丸に */
}

/* 2枚目の画像に少しだけ上マージンを追加して間隔をあける */
.company-right-image.second-image {
    margin-top: 15px;
}

.company-details {
    width: 100%;
    max-width: 450px; /* dlの最大幅を設定 */
    margin-top: 0; /* 不要なマージンをリセット */
    margin-bottom: 0;
}

.company-details dt {
    font-weight: bold;
    color: #4682B4; /* タイトルと色を合わせる */
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.company-details dd {
    margin-bottom: 15px;
    padding-left: 1em; /* インデント */
}

/* --- アクセス・連絡先セクションの調整 --- */
.contact-access {
    margin-top: 40px; /* hrとの間隔を確保 */
    margin-bottom: 30px;
    padding: 0 10px; /* 左右の余白 */
}

.company-contact-info {
    text-align: center; /* 連絡先情報を中央寄せ */
    margin-bottom: 30px;
}

.company-contact-info .address-line,
.company-contact-info .business-hours,
.company-contact-info .holidays {
    margin-bottom: 5px;
    font-size: 1.05em;
    color: #335359;
}

.contact-item-group {
    margin-top: 15px;
    margin-bottom: 15px;
}

.contact-detail {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.contact-detail a {
    color: #335359; /* リンク色を統一 */
    text-decoration: none;
}
.contact-detail a:hover {
    text-decoration: underline;
}

.contact-icon {
    margin-right: 8px;
    color: #4682B4; /* アイコンの色 */
}

.section-separator {
    margin: 40px auto; /* 上下のマージンを調整し、中央寄せ */
    width: 80%; /* hrの幅を調整 */
}

.access-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.access-list li {
    margin-bottom: 20px;
}

.access-list p {
    margin: 0;
    line-height: 1.4;
}

.map-link {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.map-link img {
    vertical-align: middle;
    margin: 0 10px;
}

.map-container {
    text-align: center; /* iframeを中央寄せ */
    margin-top: 30px;
    margin-bottom: 50px;
}

.map-container iframe {
    max-width: 100%; /* 親要素に合わせて幅を調整 */
    height: 350px; /* 高さは固定 */
    border: 1px solid lightsteelblue;
    border-radius: 8px; /* iframeにも角丸 */
}


/* --- PC表示時のレイアウト (768px以上) --- */
@media (min-width: 768px) {
    /* 会社情報セクションを横並びにする */
    .company-info-section {
        flex-direction: row; /* 横並びに変更 */
        justify-content: center; /* 中央寄せ */
        align-items: flex-start; /* 上揃え */
        max-width: 850px; /* 全体の最大幅を設定 */
        margin-left: auto;
        margin-right: auto;
        padding: 25px; /* PCでのパディングを増やす */
    }

    .company-images-container {
        order: 1; /* 画像を左に配置 */
        margin-right: 40px; /* 右側に余白 */
        margin-bottom: 0; /* 下マージンをリセット */
        flex-shrink: 0; /* 縮まないように */
        max-width: 300px; /* 固定幅 */
    }

    .company-right-image {
        max-width: 100%; /* コンテナ内で100% */
        margin: 0 auto 15px auto; /* 画像間のマージン */
    }

    .company-details {
        order: 2; /* 詳細リストを右に配置 */
        flex-grow: 1; /* 残りのスペースを埋める */
        max-width: none; /* 幅の制限を解除 */
    }

    .company-details dt {
        margin-top: 0; /* PCでは上マージンを調整 */
    }
    .company-details dd {
        margin-bottom: 10px; /* ddの下マージンを調整 */
    }

    /* 連絡先・アクセス情報も横並びにする場合 */
    .contact-access {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap; /* 必要に応じて折り返す */
        max-width: 850px; /* 幅を揃える */
        margin-left: auto;
        margin-right: auto;
        padding: 0 25px; /* 左右パディングを増やす */
    }

    .company-contact-info {
        flex: 1; /* 残りスペースを埋める */
        min-width: 300px; /* 最小幅 */
        margin-right: 40px;
        text-align: left; /* 左寄せ */
        margin-bottom: 0;
    }

    .section-separator {
        display: none; /* PCでは水平線を非表示に */
    }

    .access-list {
        flex: 1; /* 残りスペースを埋める */
        min-width: 350px; /* 最小幅 */
        margin-left: 0; /* 中央寄せ解除 */
    }

    .map-container {
        padding: 0 25px; /* 左右パディング */
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }
}