/* 光南台乗馬クラブ - 馬たちページ専用スタイル */

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-1%, -1%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(56, 100, 56, 0.48) 0%,
            rgba(56, 100, 56, 0.18) 50%,
            rgba(56, 100, 56, 0.56) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 2rem;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-title-sub {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   イントロセクション
   ======================================== */
.intro {
    padding: 10rem 2rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.intro-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(8rem, 25vw, 20rem);
    color: var(--sage-pale);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 2.2;
    color: var(--forest-dark);
    letter-spacing: 0.1em;
}

/* ========================================
   馬紹介セクション
   ======================================== */
.horses {
    padding: 2rem 2rem 6rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.horses .section-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    position: relative;
}

.horses .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--sage) 50%, transparent 100%);
}

.horses .section-eyebrow {
    color: var(--sage);
    font-size: 0.8rem;
}

.horses .section-title {
    color: var(--forest-dark);
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.horse-card {
    max-width: 1400px;
    margin: 0 auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    transition: all 0.4s ease;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(156, 203, 156, 0.1);
}

.horse-card:first-child {
    padding-top: 0;
}

.horse-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.horse-card:hover {
    background: rgba(238, 247, 238, 0.3);
}

.horse-card:nth-child(even) {
    direction: rtl;
}

.horse-card:nth-child(even)>* {
    direction: ltr;
}

.horse-image {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(92, 74, 58, 0.08);
}

.horse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(1.02) contrast(1.05);
}

.horse-card:hover .horse-image img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.08);
}

.horse-info {
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horse-name {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--forest-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.horse-name-en {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: var(--sage-deep);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.8;
}

.horse-meta {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.horse-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.horse-meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--sage-deep);
    font-weight: 500;
    text-transform: uppercase;
}

.horse-meta-value {
    font-family: 'Shippori Mincho', serif;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.horse-personality {
    background: transparent;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    border-top: 1px solid rgba(156, 203, 156, 0.15);
    border-bottom: 1px solid rgba(156, 203, 156, 0.15);
}

.horse-personality::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-family: 'Shippori Mincho', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--sage-light);
    opacity: 0.4;
    pointer-events: none;
}

.horse-personality-title {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--sage);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.horse-personality-text {
    color: var(--forest-dark);
    line-height: 1.9;
    font-size: 1rem;
    padding-left: 1rem;
    position: relative;
    font-family: 'Shippori Mincho', serif;
    font-weight: 400;
}

.horse-description {
    color: var(--text-light);
    line-height: 2;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.horse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.horse-tag {
    background: rgba(255, 255, 255, 0.8);
    color: var(--forest);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid rgba(156, 203, 156, 0.25);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.horse-tag:hover {
    background: var(--sage);
    color: var(--white);
    border-color: var(--sage);
    transform: translateY(-2px);
}

/* ========================================
   レジェンドセクション
   ======================================== */
.legend {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--cream-warm) 100%);
}

.legend-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.legend-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.legend-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: var(--sage-deep);
    margin-bottom: 1.5rem;
}

.legend-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--forest-dark);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.legend-text {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 2.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.legend-tribute {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
}

/* ========================================
   CTAセクション
   ======================================== */
.cta {
    padding: 12rem 2rem;
    background: var(--forest-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(156, 203, 156, 0.1) 0%, transparent 50%);
    animation: ctaGlow 10s ease infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5%, 5%);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 2;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--forest-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 1024px) {
    .horse-card {
        grid-template-columns: 1fr;
        padding: 3rem 0;
        gap: 2rem;
    }

    .horse-card:nth-child(even) {
        direction: ltr;
    }

    .horse-image {
        min-height: 400px;
    }

    .horse-info {
        padding: 0 2rem 2rem;
    }
}

@media (max-width: 768px) {
    /* ヒーローセクション - スマホ最適化 */
    .hero {
        min-height: 450px;
        height: 60vh;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        letter-spacing: 0.08em;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .hero-title-sub {
        font-size: clamp(0.9rem, 3.5vw, 1.15rem);
        letter-spacing: 0.2em;
    }

    /* イントロセクション */
    .intro {
        padding: 6rem 1.5rem;
    }

    .intro-bg-text {
        font-size: clamp(7rem, 40vw, 12rem);
        opacity: 0.8;
    }

    .intro-text {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        line-height: 2.1;
        letter-spacing: 0.08em;
    }

    /* 馬紹介セクション */
    .horses {
        padding: 1.5rem 1.25rem 5rem;
    }

    .horses .section-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .horse-card {
        padding: 2.5rem 0;
        border-radius: 0;
    }

    .horse-image {
        min-height: 380px;
        border-radius: 20px;
        /* タップ時のフィードバック */
        -webkit-tap-highlight-color: transparent;
    }

    .horse-info {
        padding: 2rem 1.5rem 1.5rem;
    }

    .horse-name {
        font-size: clamp(1.75rem, 6.5vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .horse-name-en {
        font-size: 0.8rem;
        letter-spacing: 0.25em;
        margin-bottom: 1.75rem;
    }

    .horse-meta {
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .horse-meta-label {
        font-size: 0.7rem;
    }

    .horse-meta-value {
        font-size: 1rem;
    }

    .horse-personality {
        padding: 1.75rem 0 1.5rem;
        margin-bottom: 1.5rem;
    }

    .horse-personality::before {
        font-size: 3.5rem;
        top: -0.3rem;
    }

    .horse-personality-title {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
    }

    .horse-personality-text {
        font-size: 0.95rem;
        line-height: 2;
        padding-left: 0.85rem;
    }

    .horse-description {
        font-size: 0.95rem;
        line-height: 2;
        margin-bottom: 1.5rem;
    }

    .horse-tags {
        gap: 0.6rem;
        margin-top: 1.5rem;
    }

    .horse-tag {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
        /* タップターゲット最適化 */
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }

    .horse-tag:active {
        transform: scale(0.97);
    }

    /* レジェンドセクション */
    .legend {
        padding: 6rem 1.5rem;
    }

    .legend-icon {
        width: 85px;
        height: 85px;
        font-size: 2.5rem;
        margin-bottom: 1.75rem;
    }

    .legend-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }

    .legend-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 1.5rem;
    }

    .legend-text {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        line-height: 2.1;
        margin-bottom: 1.25rem;
    }

    .legend-tribute {
        font-size: 0.95rem;
        margin-top: 1.75rem;
    }

    /* CTAセクション */
    .cta {
        padding: 6rem 1.5rem;
    }

    .cta-title {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cta-text {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        line-height: 2;
    }

    .cta-button {
        /* タップターゲット最適化 */
        padding: 1.25rem 2.5rem;
        min-height: 56px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 400px;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .cta-button:active {
        transform: scale(0.98);
    }

    .cta-button svg {
        width: 18px;
        height: 18px;
    }
}

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

    .hero-content {
        padding: 1.75rem 1.25rem;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.25em;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        letter-spacing: 0.06em;
        margin-bottom: 1.25rem;
    }

    .hero-title-sub {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .intro {
        padding: 5rem 1.25rem;
    }

    .intro-text {
        font-size: 1rem;
        line-height: 2;
    }

    .horses {
        padding: 1.25rem 1rem 4rem;
    }

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

    .horses .section-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .horse-card {
        padding: 2rem 0;
    }

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

    .horse-info {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .horse-name {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
    }

    .horse-name-en {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .horse-meta {
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .horse-personality {
        padding: 1.5rem 0 1.25rem;
        margin-bottom: 1.25rem;
    }

    .horse-personality::before {
        font-size: 3rem;
    }

    .horse-personality-text {
        font-size: 0.9rem;
        padding-left: 0.65rem;
    }

    .horse-description {
        font-size: 0.9rem;
    }

    .horse-tags {
        gap: 0.5rem;
    }

    .horse-tag {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }

    .legend {
        padding: 5rem 1.25rem;
    }

    .legend-icon {
        width: 75px;
        height: 75px;
        font-size: 2.2rem;
    }

    .legend-title {
        font-size: clamp(1.4rem, 6.5vw, 1.9rem);
    }

    .legend-text {
        font-size: 0.95rem;
    }

    .cta {
        padding: 5rem 1.25rem;
    }

    .cta-title {
        font-size: clamp(1.5rem, 7.5vw, 2rem);
    }

    .cta-text {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 1.125rem 2rem;
        font-size: 0.9rem;
    }
}
