/* =============================================
   Shoe Guide Page
   ============================================= */

/* Hero */
.sg-hero {
    position: relative;
    height: clamp(450px, 45vw, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sg-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sg-hero-inner {
    position: relative;
    z-index: 1;
    padding: 0 clamp(16px, 7vw, 100px) clamp(32px, 4vw, 60px);
    max-width: calc(780px + clamp(16px, 7vw, 100px));
}

.sg-hero-title {
    font-size: clamp(40px, 6.7vw, 96px);
    font-weight: 400;
    line-height: 1.05;
    color: #222;
    margin: 0 0 0;
}

.sg-hero-text {
    font-size: clamp(15px, 1.4vw, 16px);
    line-height: 1.67;
    color: #222;
    max-width: min(720px, 100%);
    margin: 0;
    padding-left: clamp(0px, 20vw, 286px);
    margin-top: clamp(-70px, -7vw, -20px);
}

/* List section */
.sg-list-section {
    padding: 30px clamp(24px, 4vw, 72px) 120px;
}

.sg-list-label {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.01em;
    color: #222;
    margin: 0 0 60px;
}

.sg-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    row-gap: 60px;
}

/* Card */
.sg-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sg-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 20px;
}

.sg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
}

.sg-card:hover .sg-card-img {
    transform: scale(1.04) translateZ(0);
}

.sg-card-title,
.sg-card-text,
.sg-card-arrow {
    padding-left: 20px;
    padding-right: 20px;
}

.sg-card-title {
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sg-card-text {
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.67;
    letter-spacing: 0.01em;
    color: #222;
    margin-bottom: 8px;
    /* display: -webkit-box; */
    /* line-clamp: 3; */
    /* -webkit-line-clamp: 3; */
    /* -webkit-box-orient: vertical; */
    /* overflow: hidden; */
}

.sg-card-arrow {
    font-size: 30px;
    color: #222;
    display: block;
    margin-top: 0;
    line-height: 1;
}

/* =============================================
   Shoe Guide Detail (Show) Page
   ============================================= */

/* Hero */
.sg-show-hero {
    position: relative;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    height: 420px;
    overflow: hidden;
    margin-top: 140px;
    margin-bottom: 60px;
}

.sg-show-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sg-show-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.10) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 24px 48px;
}

.sg-show-hero-title {
    font-size: 42px;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 12px;
}

.sg-show-hero-date {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
}

/* Body */
.sg-show-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 24px 30px;
}

.sg-show-summary-title {
    font-size: 36px;
    letter-spacing: 0.01em;
    color: #222;
    margin: 0 0 24px;
}

.sg-show-summary-text {
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.67;
    color: #222;
}

.sg-show-summary-text ul,
.sg-show-summary-text ol {
    margin: 0;
    padding-left: 20px;
}

.sg-show-summary-text li {
    margin-bottom: 6px;
}

.sg-show-divider {
    border: none;
    border-top: 1px solid #7e7e7e;
    margin: 42px 0;
}

.sg-show-content {
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.67;
    color: #222;
}

.sg-show-content h2 {
    font-family: 'Baskervville', serif;
    font-size: 22px;
    letter-spacing: 0.01em;
    color: #222;
    margin: 32px 0 12px;
}

.sg-show-content h3 {
    font-family: 'Baskervville', serif;
    font-size: 20px;
    letter-spacing: 0.01em;
    color: #222;
    margin: 32px 0 12px;
}

.sg-show-content p {
    margin: 0 0 20px;
}

.sg-show-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.sg-show-content th,
.sg-show-content td {
    border: 1px solid #ddd;
    padding: 10px 16px;
    text-align: center;
}

.sg-show-content th {
    background: #f5f3f0;
    font-weight: 600;
}

.sg-show-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
}

/* Other Guides */
.sg-show-others {
    width: 90%;
    margin: 0 auto;
    padding: 0 24px 120px;
}

.sg-show-others-title {
    font-size: 18px;
    letter-spacing: 0.01em;
    color: #222;
    text-align: center;
    margin: 42px 0 36px;
}

.sg-show-others-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sg-show-other-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.sg-show-other-card:hover {
    opacity: 0.7;
}

.sg-show-other-label {
    font-size: 14px;
    color: #222;
    letter-spacing: 0.01em;
}

.sg-show-other-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #222;
    line-height: 1.40;
}

.sg-show-other-arrow {
    font-size: 24px;
    color: #222;
}

/* Responsive */
@media (max-width: 1280px) {
    .sg-list {
        gap: 18px;
        row-gap: 60px;
    }
}

@media (max-width: 1100px) {
    /* Gutters follow the header (logo + mobile menu) so the hero and body line up with it. */
    .sg-show-hero {
        width: auto;
        margin-left: clamp(24px, 4vw, 60px);
        margin-right: clamp(24px, 4vw, 60px);
        margin-top: 120px;
    }

    .sg-show-body {
        padding: 0 clamp(24px, 4vw, 60px) 18px;
    }
}

@media (max-width: 1024px) {
    .sg-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .sg-hero-inner {
        padding: 0 clamp(16px, 7vw, 100px) clamp(32px, 4vw, 60px);
    }

    .sg-show-others {
        padding: 0 24px 90px;
    }
}

@media (max-width: 768px) {
    .sg-hero-inner {
        padding: 0 30px 42px 30px;
        max-width: 100%;
    }

    .sg-hero-text {
        padding-left: 0;
        margin-top: 12px;
        max-width: 100%;
    }

    .sg-list-section {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .sg-card-title,
    .sg-card-text,
    .sg-card-arrow {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 680px) {
    .sg-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        row-gap: 30px;
    }
    .sg-show-others-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

}

@media (max-width: 480px) {
    .sg-show-hero {
        margin-top: 108px;
    }

    .sg-show-hero-title {
        font-size: 36px;
    }

    .sg-show-others {
        width: 96%;
    }

    .sg-list {
        gap: 16px;
        row-gap: 30px;
    }

    .sg-list-section {
        padding: 42px clamp(20px, 4vw, 72px) 90px;
    }

    .sg-list-label {
        margin: 0 0 42px;
    }
}

@media (max-width: 340px) {
    .sg-show-hero {
        margin-left: clamp(20px, 4vw, 60px);
        margin-right: clamp(20px, 4vw, 60px);
    }
    .sg-show-hero-title {
        font-size: 30px;
    }

    .sg-show-hero-date {
        font-size: 12px;
    }

    .sg-hero-inner {
        padding: 0 24px 30px 24px;
        max-width: 100%;
    }

    .sg-hero-title {
        font-size: 36px;
    }

    .sg-hero-text {
        font-size: 14px;
    }

    .sg-list {
        grid-template-columns: 1fr;
        row-gap: 42px;
    }

    .sg-list-label {
        margin: 0 0 30px;
    }

    .sg-list-section {
        padding: 30px clamp(20px, 4vw, 72px) 90px;
    }

    .sg-show-others-grid {
        grid-template-columns: 1fr;
    }
}
