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のリンク色を上書き */
}
/* --- フッター --- */
.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;
}
/* --- レスポンシブ対応 (調整が必要な場合あり) --- */
@media (max-width: 768px) {
    .site-wrapper {
        padding: 15px;
    }
    .main-nav li {
        margin: 0 10px;
    }
    .site-footer {
        padding: 20px 0;
    }
}
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; /* 上下マージンをまとめて設定 */
}
/* アンカーリンクの調整 */
a.anchor{
    display: block;
    padding-top: 50px;
    margin-top: -50px;
}
/* --- 会社情報セクションのレイアウト調整 --- */
.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-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;
    }
}
