/* 光南台乗馬クラブ - 馬紹介ページ専用スタイル */
/*
  このファイルは「馬紹介ページ固有」の差分のみを保持する。
  ヒーロー・イントロ・馬セクション・CTAの共通スタイルは horses.css を再利用。
*/

/* ========================================
   馬たち
   ======================================== */
.friends-page .horses {
    padding-top: 8rem;
}

.horses .horse-card {
    max-width: 1180px;
    padding: 2.25rem 0;
}

.horses .horse-image {
    min-height: 330px;
    border-radius: 16px;
}

.horses .horse-info {
    justify-content: center;
    padding: 0.75rem 3rem;
}

.horses .horse-name {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 0.9rem;
}

.horses .horse-meta {
    gap: 2rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.95rem;
}

.horses .horse-personality {
    background: transparent;
    padding: 1.05rem 1.15rem 1rem;
    margin-bottom: 0;
    border: 1px solid rgba(156, 203, 156, 0.18);
    border-radius: 10px;
}

.horses .horse-personality::before {
    content: '性格';
    position: static;
    display: block;
    margin-bottom: 0.55rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.72rem;
    line-height: 1;
    color: var(--sage-deep);
    opacity: 0.85;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.horses .horse-personality-text {
    margin: 0;
    padding-left: 0;
    line-height: 1.8;
    color: var(--text);
}

.horse-note {
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    color: var(--text-light);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.98rem;
    line-height: 1.9;
    text-align: center;
}

/* ========================================
   他の動物たち
   ======================================== */
.small-friends {
    padding: 8rem 2rem;
    background: var(--white);
}

.small-friends.animals {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.small-friends .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.small-friends-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.small-friend-card {
    background: var(--sage-pale);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(92, 74, 58, 0.08);
    transition: all 0.4s ease;
    min-height: 0;
}

.small-friend-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(92, 74, 58, 0.15);
}

.small-friend-card.is-large {
    grid-column: span 2;
    grid-row: span 2;
}

.small-friend-card.is-tall {
    grid-row: span 2;
}

.small-friend-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--sage-pale);
}

.small-friend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(1.05);
}

.small-friend-card:hover .small-friend-image img {
    transform: scale(1.06);
}

/* ========================================
   レスポンシブ - 他の動物たち
   ======================================== */
@media (max-width: 1024px) {
    .horses .horse-card {
        padding: 2rem 0;
        gap: 1.25rem;
    }

    .horses .horse-image {
        min-height: 320px;
    }

    .horses .horse-info {
        padding: 0 1.25rem 0.5rem;
    }

    .horses .horse-name {
        margin-bottom: 0.85rem;
    }

    .small-friends {
        padding: 7rem 2rem;
    }

    .small-friends-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
    }

    .small-friend-card.is-large {
        grid-column: span 2;
    }

    .small-friend-card.is-tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .friends-page .horses {
        padding-top: 6rem;
    }

    .horses .horse-card {
        padding: 1.8rem 0;
    }

    .horses .horse-image {
        min-height: 300px;
        border-radius: 16px;
    }

    .horses .horse-info {
        padding: 1rem 0.75rem 0.25rem;
    }

    .horses .horse-name {
        font-size: clamp(1.6rem, 6vw, 2rem);
        margin-bottom: 0.8rem;
    }

    .horses .horse-meta {
        gap: 0.9rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .horses .horse-personality {
        padding: 1rem 1rem 0.95rem;
    }

    .horses .horse-personality::before {
        position: static;
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    /* 他の動物たち - スマホ最適化 */
    .small-friends {
        padding: 4.5rem 0.75rem 5rem;
    }

    .small-friends .section-header {
        margin-bottom: 2.25rem;
    }

    .small-friends .section-title {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
        line-height: 1.35;
    }

    .small-friends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 0.625rem;
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .small-friend-card {
        border-radius: 18px;
        /* タップ時のフィードバック */
        -webkit-tap-highlight-color: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .small-friend-card:active {
        transform: scale(0.98);
    }

    .small-friend-card.is-large {
        grid-column: span 2;
    }

    .small-friend-card.is-tall {
        grid-column: span 2;
        grid-row: auto;
    }

    .small-friend-image {
        aspect-ratio: 1;
        height: auto;
    }

    .small-friend-card.is-large .small-friend-image,
    .small-friend-card.is-tall .small-friend-image {
        aspect-ratio: 16 / 9;
    }
}

/* 小型スマホ向け追加調整 (375px以下) */
@media (max-width: 375px) {
    .horses .horse-image {
        min-height: 300px;
    }

    .horses .horse-info {
        padding: 1rem 0.5rem 0.5rem;
    }

    .horses .horse-name {
        font-size: clamp(1.45rem, 6.5vw, 1.8rem);
    }

    .small-friends {
        padding: 4rem 0.625rem 4.5rem;
    }

    .small-friends .section-header {
        margin-bottom: 2rem;
    }

    .small-friends-grid {
        gap: 0.5rem;
        max-width: 100%;
    }

    .small-friend-card {
        border-radius: 16px;
    }
}
