﻿/* 不動産ガイドの一覧・記事に使う写真とレイアウト */

.sg-guide .sg-hub-hero {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    background: white;
    border: 1px solid var(--sg-line);
    border-radius: 6px;
    overflow: hidden;
}

.sg-guide .sg-hub-hero>div {
    padding: clamp(22px,3.5vw,44px);
    align-self: center;
}

.sg-guide .sg-hub-hero>img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 290px;
    object-fit: cover;
    object-position: 50% 48%;
}

.sg-guide .sg-hub-hero h1 {
    margin: 0 0 12px;
}

.sg-guide .sg-hub-hero p:last-child {
    margin-bottom: 0;
}

.sg-guide .sg-card {
    border-radius: 6px;
}

.sg-guide .sg-card:first-child .sg-photo--card {
    aspect-ratio: 2.25;
}

.sg-guide .sg-card:not(:first-child) .sg-card-link {
    display: grid;
    grid-template-columns: 35% minmax(0,1fr);
}

.sg-guide .sg-card:not(:first-child) .sg-photo--card {
    aspect-ratio: auto;
    align-self: stretch;
}

.sg-guide .sg-card:not(:first-child) .sg-card-copy {
    padding: 18px;
}

.sg-guide .sg-card:not(:first-child) h3 {
    font-size: 19px;
    margin: 9px 0;
    line-height: 1.55;
}

.sg-guide .sg-card:not(:first-child) p {
    font-size: 14px;
    margin: 0 0 12px;
}

.sg-guide .sg-card:not(:first-child) .sg-read {
    padding-top: 8px;
}

.sg-guide .sg-entry-photo {
    width: 96px;
    height: 96px;
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.sg-guide .sg-entry-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sg-guide .sg-article-hero {
    overflow: hidden;
    border-radius: 4px;
}

.sg-guide .sg-story-photo {
    margin: 18px 0 26px;
    max-width: 670px;
}

.sg-guide .sg-story-photo img {
    width: 100%;
    aspect-ratio: 2.18;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.sg-guide .sg-story-photo figcaption {
    font-size: 14px;
    line-height: 1.7;
    color: #46564d;
    border-left: 3px solid var(--sg-accent);
    padding-left: 10px;
    margin-top: 8px;
}

@media(max-width:650px) {
    .sg-guide .sg-hub-hero {
        grid-template-columns: minmax(0,1fr);
    }

    .sg-guide .sg-hub-hero>div {
        padding: 20px;
    }

    .sg-guide .sg-hub-hero>img {
        min-height: 0;
        height: auto;
        aspect-ratio: 2.9;
        object-position: 50% 48%;
    }

    .sg-guide .sg-card:not(:first-child) .sg-card-link {
        grid-template-columns: 104px minmax(0,1fr);
    }

    .sg-guide .sg-card:not(:first-child) .sg-card-copy {
        padding: 13px;
    }

    .sg-guide .sg-card:not(:first-child) .sg-photo--card {
        align-self: start;
        margin: 14px 0 14px 12px;
        aspect-ratio: 4/5;
        border-radius: 3px;
    }

    .sg-guide .sg-card:not(:first-child) h3 {
        font-size: 17px;
    }

    .sg-guide .sg-card:not(:first-child) p {
        line-height: 1.6;
    }

    .sg-guide .sg-entry-photo {
        width: 70px;
        height: 70px;
    }

    .sg-guide .sg-story-photo img {
        aspect-ratio: 1.66;
    }
}

@media(max-width:345px) {
    .sg-guide .sg-card:not(:first-child) .sg-card-link {
        grid-template-columns: 78px minmax(0,1fr);
    }
}

@media print {
    .sg-guide .sg-story-photo {
        break-inside: avoid;
    }
}
