/* =========================================================
   M'S STABLE — ABOUT PAGE
   ※ 共通パーツ（Header / Footer / ボタン / 見出し等）は
     style.css を参照。このファイルにはAboutページ専用の
     パーツのみを記述しています。
========================================================= */


/* PC専用の改行（SPでは非表示） */

.pc-show-break {
    display: inline;
}


/* =========================================================
   ABOUT KV
========================================================= */

.about-kv__image {
    width: 100%;

    overflow: hidden;
}

.about-kv__image img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: cover;
    object-position: center bottom;
}

.about-kv__heading {
    position: relative;

    width: 100%;

    padding: 0px 0 12px;

    background: #4E5D35;

    text-align: center;
}

.about-kv__emblem {
    position: absolute;

    top: -75px;
    left: 50%;

    width: 150px;
    height: 150px;

    background: transparent;

    overflow: hidden;

    border-radius: 50%;

    transform: translateX(-50%);
}

.about-kv__emblem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   SECTION TITLE UNDERLINE
   手描き風のライン画像を見出しの下にアクセントとして入れる。
   「動物たちとの出会い」「M's Stableについて」
   「私たちの取り組み」の3箇所のみに適用。
   テキストをspanで囲み、線の幅がテキストの文字数（幅）に
   自動的に合うようにしている */

.title-underline {
    position: relative;

    display: inline-block;
}

.title-underline::after {
    content: "";

    position: absolute;

    left: -14px;
    right: -14px;
    bottom: -12px;

    height: 24px;

    background: url('../images/about-line.png') no-repeat center / 100% 100%;
}


/* =========================================================
   ABOUT HORSES
========================================================= */

.about-horses-section {
    width: 100%;

    padding-top: 100px;
    padding-bottom: 100px;
}

.about-horses-section .content-heading {
    font-weight: 700;
    letter-spacing: .03em;
}

.about-horses-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 40px 30px;

    width: min(100% - 80px, 1200px);

    margin: 0 auto;
}

.horse-card {
    text-align: center;
}

.horse-card__photo {
    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0 0 16px;

    overflow: hidden;

    background: #eee;
}

.horse-card__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.horse-card__name {
    margin: 0 0 4px;

    color: #303531;

    font-size: 16px;
    font-weight: 700;
}

.horse-card__en {
    margin: 0;

    color: #a49a89;

    font-size: 12px;
    letter-spacing: .08em;
}


/* =========================================================
   ABOUT DIVIDER
========================================================= */

.about-divider {
    position: relative;

    width: 100%;

    overflow: hidden;
}

.about-divider img {
    display: block;

    width: 100%;
    height: 320px;

    object-fit: cover;
    object-position: center 75%;
}

.about-divider::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 140px;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 249, 229, 0) 0%,
            rgba(255, 249, 229, .03) 15%,
            rgba(255, 249, 229, .18) 32%,
            rgba(255, 249, 229, .50) 48%,
            rgba(255, 249, 229, .82) 63%,
            rgba(255, 249, 229, .97) 78%,
            #fff9e5 100%
        );

    pointer-events: none;
}


/* =========================================================
   ABOUT PHILOSOPHY
========================================================= */

.about-philosophy-section {
    width: 100%;

    padding: 40px 0;

    background: #fff9e5;
}

.about-philosophy-content {
    width: min(100% - 80px, 1200px);

    margin: 0 auto;

    text-align: center;
}

.about-philosophy-content .content-title {
    color: #303531;

    font-weight: 700;
    letter-spacing: .03em;

    text-align: center;
}

.about-philosophy-emblem {
    width: 200px;

    margin: 0 auto 40px;
}

.about-philosophy-emblem img {
    display: block;

    width: 100%;
    height: auto;
}

.about-philosophy-text {
    display: flex;

    flex-direction: column;

    gap: 22px;

    width: min(100%, 720px);

    margin: 0 auto;
}

.about-philosophy-text .content-text {
    color: #303530;

    text-align: left;
}


/* =========================================================
   ABOUT EXPERIENCE
========================================================= */

.about-experience-section {
    width: 100%;

    padding: 180px 50px 0;

    background: #fff;

    text-align: center;
}

/* 「私たちの取り組み」の見出しを削除し、代わりに動画の背景に
   角を切り落としたスタンプ（チケット）風の図形を入れ、
   その上にタイトルロゴ画像を少し重ねて配置している */

.about-experience-media {
    position: relative;

    width: min(100% - 80px, 1000px);

    margin: 0 auto 60px;
}

.about-experience-badge {
    position: absolute;

    top: -90px;
    left: 50%;

    z-index: 2;

    width: 420px;
    height: auto;

    transform: translateX(-50%);

    pointer-events: none;
}

.about-experience-photo {
    display: flex;

    flex-direction: column;

    width: 100%;

    margin: 0;

    padding: 40px 50px;

    background: #EEE7DC;

    clip-path: polygon(
        24px 0, calc(100% - 24px) 0, 100% 24px,
        100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%,
        0 calc(100% - 24px), 0 24px
    );

    text-align: left;
}

.about-experience-tagline {
    width: 100%;

    margin: 0 0 30px;

    color: #303531;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .03em;

    text-align: center;
}

.about-experience-photo__row {
    display: flex;

    align-items: flex-start;

    gap: 50px;

    width: 100%;
}

.about-experience-photo__video {
    position: relative;

    flex: 0 0 42%;

    aspect-ratio: 16 / 9;
}

.about-experience-photo__video video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.about-experience-video-toggle {
    position: absolute;

    right: 12px;
    bottom: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: rgba(48, 53, 48, .55);

    color: #fff;
    font-size: 14px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    transition: background .3s ease;
}

.about-experience-video-toggle:hover {
    background: rgba(48, 53, 48, .8);
}

.about-experience-photo__text {
    flex: 1;
}

.about-experience-caption {
    width: auto;

    margin: 0;

    color: #303530;

    font-size: 15px;
    line-height: 1.9;

    text-align: left;
}

.about-experience-youtube-btn {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: fit-content;

    margin-top: 30px;

    padding: 10px 30px;

    background: #fff;

    color: #303531;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;

    text-decoration: none;

    border: 2px solid #303531;

    z-index: 2;

    transition: background .3s ease, color .3s ease;
}

.about-experience-youtube-btn::after {
    content: "→";

    font-size: 14px;

    transition: transform .3s ease;
}

.about-experience-youtube-btn::before {
    content: "";

    position: absolute;

    box-sizing: border-box;

    left: 6px;
    top: 6px;

    width: 100%;
    height: 100%;

    border: 1px solid #d4d4d4;

    z-index: -1;

    transition: .4s ease;
}

.about-experience-youtube-btn:hover {
    background: #303531;

    color: #fff;
}

.about-experience-youtube-btn:hover::before {
    left: 0;
    top: 0;

    border-color: #303531;
}

.about-experience-youtube-btn:hover::after {
    transform: translateX(4px);
}

.about-experience-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

    width: min(100% - 80px, 1200px);

    margin: 0 auto;
}

.experience-card {
    overflow: hidden;

    text-align: left;

    border: 1px solid #ded7c8;
}

.experience-card__photo {
    width: 100%;

    aspect-ratio: 4 / 3;

    margin: 0;

    overflow: hidden;

    background: #eee;
}

.experience-card__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.experience-card__title {
    margin: 0 0 10px;

    padding: 20px 20px 0;

    color: #303531;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.6;
}

.experience-card__text {
    margin: 0 0 24px;

    padding: 0 20px;

    color: #303530;

    font-size: 13px;
    line-height: 1.8;
}

.experience-card__text a {
    color: #66784A;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.experience-card__text a:hover {
    color: #4E5D35;
}

/* =========================================================
   ABOUT PROFILE
========================================================= */

.about-profile-section {
    width: 100%;

    padding: 100px 0;

    background: #ece9e2;
}

.about-profile-inner {
    display: flex;

    gap: 60px;

    width: min(100% - 80px, 1000px);

    margin: 0 auto;

    text-align: left;
}

.about-profile-name-block {
    flex: 0 0 180px;
}

.about-profile-role {
    margin: 0 0 4px;

    color: #303531;

    font-size: 12px;
    letter-spacing: .08em;
}

.about-profile-name {
    margin: 0 0 4px;

    color: #303531;

    font-size: 20px;
    font-weight: 700;
}

.about-profile-name-en {
    margin: 0;

    color: #a49a89;

    font-size: 12px;
    letter-spacing: .08em;
}

.about-profile-body-block {
    flex: 1;
}

.about-profile-body {
    margin: 0 0 20px;

    color: #303530;

    font-size: 15px;
    line-height: 1.9;
}

.about-profile-body:last-child {
    margin-bottom: 0;
}


/* =========================================================
   OTHER ACTIVITIES
========================================================= */

.about-other-heading {
    width: 100%;

    padding: 60px 0 0;

    text-align: center;
}

.service-other-section {
    width: 100%;

    padding: 100px 0;

    background: #fff;
}

/* Other Activities Marquee（ラフのように、正方形の写真が
   途切れず自動で左に流れ続けるカルーセル。カードはHTML側で
   2セット並べておき、ちょうど半分だけtranslateXすることで
   継ぎ目なくループする） */

.service-other-marquee {
    width: 100%;

    overflow: hidden;
}

.service-other-track {
    display: flex;

    align-items: flex-start;

    gap: 30px;

    width: max-content;

    animation: serviceOtherMarquee 106s linear infinite;
}

.service-other-marquee:hover .service-other-track {
    animation-play-state: paused;
}

@keyframes serviceOtherMarquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

.service-other-card {
    flex: 0 0 auto;

    width: 280px;

    text-align: center;
}

.service-other-card__photo {
    width: 280px;
    height: 280px;

    margin: 0;

    background: #d9d9d9;

    overflow: hidden;
}

.service-other-card__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   TABLET (max-width: 900px)
========================================================= */

@media screen and (max-width: 900px) {

    .about-horses-grid {
        gap: 30px 20px;
    }

    .about-experience-cards {
        gap: 24px;
    }

}


/* =========================================================
   SP (max-width: 767px)
========================================================= */

@media screen and (max-width: 767px) {

    .pc-show-break {
        display: none;
    }


    /* KV */

    .about-kv__image img {
        height: 220px;
    }

    .about-kv__heading {
        padding: 20px 0 40px;
    }

    .about-kv__emblem {
        top: -45px;

        width: 90px;
        height: 90px;
    }


    /* Horses */

    .about-horses-section {
        padding: 60px 0;
    }

    .about-horses-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px 16px;

        width: calc(100% - 40px);
    }


    /* Divider */

    .about-divider img {
        height: 180px;
    }

    .about-divider::after {
        height: 70px;
    }


    /* Philosophy */

    .about-philosophy-section {
        padding: 60px 0;
    }

    .about-philosophy-emblem {
        width: 140px;

        margin: 0 auto 30px;
    }

    .about-philosophy-text {
        gap: 18px;

        width: calc(100% - 40px);
    }

    .about-philosophy-text .content-text {
        text-align: left;
    }


    /* Experience */

    .about-experience-section {
        padding: 90px 0 0;
    }

    .about-experience-media {
        width: calc(100% - 40px);
    }

    .about-experience-badge {
        top: -48px;

        width: 240px;
    }

    .about-experience-photo {
        padding: 36px 24px;
    }

    .about-experience-tagline {
        margin: 0 0 20px;

        font-size: 17px;
    }

    .about-experience-photo__row {
        flex-direction: column;

        gap: 24px;
    }

    .about-experience-photo__video {
        flex: none;

        width: 100%;
    }

    .about-experience-caption {
        font-size: 14px;
    }

    .about-experience-youtube-btn {
        width: 100%;

        margin-top: 24px;

        padding: 10px 20px;
    }

    .about-experience-cards {
        grid-template-columns: 1fr;

        gap: 30px;

        width: calc(100% - 40px);
    }


    /* Profile */

    .about-profile-section {
        padding: 60px 0;
    }

    .about-profile-inner {
        flex-direction: column;

        gap: 20px;

        width: calc(100% - 40px);
    }

    .about-profile-name-block {
        flex: none;
    }

    .about-profile-body {
        font-size: 14px;
    }


    /* Other Activities */

    .about-other-heading {
        padding: 40px 0 0;
    }

    .service-other-section {
        padding: 60px 0;
    }

    .service-other-track {
        gap: 16px;

        animation-duration: 66s;
    }

    .service-other-card {
        width: 120px;
    }

    .service-other-card__photo {
        width: 120px;
        height: 120px;
    }

}
