/* =========================================================
   M'S STABLE
   COMMON / RESET
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');


html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;

    background: #fbf9f5;
}

html {
    scroll-padding-top: 80px;

    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}


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

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


/* About見出しの手動改行（PC/tablet/SPすべてで無効化し、1行のテキストとして流す） */

.sp-hide-break {
    display: none;
}


/* =========================================================
   Scroll Reveal（セクション単位で下からふわっと表示）
========================================================= */

.reveal-section {
    opacity: 0;

    transform: translateY(30px);

    transition: opacity 1.4s ease, transform 1.4s ease;
}

.reveal-section.is-visible {
    opacity: 1;

    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal-section {
        opacity: 1;

        transform: none;

        transition: none;
    }

}


/* =========================================================
   OPENING ANIMATION
   （TOPページ初回表示時のみのロゴ→KV導入演出。
     人参アイコンはローディング中央から
     TOPへ戻るボタンの位置へそのまま着地する）
========================================================= */

.opening-loader {
    position: fixed;
    inset: 0;

    z-index: 100000;

    display: flex;
    flex-direction: column;

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

    background: #fdf9ee;

    opacity: 1;
    visibility: visible;

    transition: opacity 1s ease;
}

.opening-loader.is-leaving {
    opacity: 0;

    pointer-events: none;
}

.opening-loader.is-done {
    visibility: hidden;
}

.opening-loader--skip {
    display: none;
}

.opening-loader__carrot {
    position: fixed;

    top: 50%;
    left: 50%;

    width: 56px;

    opacity: 0;

    transform: translate(-50%, -50%);

    animation:
        openingCarrotIn .8s ease .5s forwards,
        openingCarrotFloat 2.2s ease-in-out 1.3s infinite;

    transition:
        top 1.6s cubic-bezier(.4, 0, .2, 1),
        left 1.6s cubic-bezier(.4, 0, .2, 1),
        width 1.6s cubic-bezier(.4, 0, .2, 1),
        opacity 1.6s ease;
}

@keyframes openingCarrotIn {

    from {
        opacity: 0;

        transform: translate(-50%, -50%) translateY(10px);
    }

    to {
        opacity: 1;

        transform: translate(-50%, -50%) translateY(0);
    }

}

@keyframes openingCarrotFloat {

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

    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }

}

.opening-loader.is-leaving .opening-loader__carrot {
    top: calc(100% - 71.5px);
    left: calc(100% - 71.5px);

    width: 40px;

    opacity: 0;

    animation: none;
}

.opening-loader__dots {
    position: fixed;

    top: calc(50% + 30px);
    left: 50%;

    display: flex;

    gap: 4px;

    transform: translate(-50%, -50%);

    opacity: 0;

    animation: openingDotsFade .6s ease .9s forwards;

    transition: opacity .5s ease;
}

.opening-loader__dots span {
    color: #a49a89;

    font-size: 22px;
    line-height: 1;

    opacity: .25;

    animation: openingDotPulse 1.4s ease-in-out infinite;
}

.opening-loader__dots span:nth-child(2) {
    animation-delay: .2s;
}

.opening-loader__dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes openingDotsFade {

    to {
        opacity: 1;
    }

}

@keyframes openingDotPulse {

    0%,
    80%,
    100% {
        opacity: .25;

        transform: translateY(0);
    }

    40% {
        opacity: 1;

        transform: translateY(-4px);
    }

}

.opening-loader.is-leaving .opening-loader__dots {
    opacity: 0;

    animation: none;
}

.kv-section {
    opacity: 0;

    transform: translateY(20px);

    transition: opacity 1.1s ease, transform 1.1s ease;
}

.kv-section.is-visible {
    opacity: 1;

    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .opening-loader,
    .opening-loader__carrot,
    .opening-loader__dots,
    .opening-loader__dots span {
        transition: none;
        animation: none;
    }

    .opening-loader__carrot,
    .opening-loader__dots,
    .opening-loader__dots span {
        opacity: 1;
    }

    .opening-loader__carrot {
        transform: translate(-50%, -50%);
    }

    .kv-section {
        opacity: 1;

        transform: none;

        transition: none;
    }

}

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

    .opening-loader__carrot {
        top: 50%;

        width: 42px;
    }

    .opening-loader.is-leaving .opening-loader__carrot {
        top: calc(100% - 48px);
        left: calc(100% - 48px);

        width: 30px;
    }

    .opening-loader__dots {
        top: calc(50% + 22px);
    }

}


/* =========================================================
   HEADER
========================================================= */

.ms-header,
.ms-header * {
    box-sizing: border-box;
}

.ms-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    margin: 0;
    padding: 0;

    background: #fff9e5;

    z-index: 99999;
}

/* 管理者としてログインした状態で見ると、WordPress自体が
   ページ全体を管理バー（上部の黒いバー）の高さぶん下に
   ずらす（html { margin-top: 32px / 46px }）。ヘッダーは
   position: fixedなのでそのズレの影響を受けず、常にtop:0の
   ままになってしまう。その結果、本文（KVなど）だけが
   管理バーの高さぶん余分に下がり、ヘッダーとKVの間に
   その高さぶんの隙間ができてしまう。
   ※ ログインしていない一般の訪問者には管理バーは表示されない
     ため、この隙間も見えない（管理者だけに見える見え方の差）。 */

body.admin-bar .ms-header {
    top: 32px;
}

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

    body.admin-bar .ms-header {
        top: 46px;
    }

}


/* Header Inner */

.ms-header__inner {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0 48px 0 30px;
}


/* Logo */

.ms-header__logo {
    display: flex;
    align-items: center;

    width: 145px;
    max-width: 145px;

    margin: 0;
    padding: 0;

    line-height: 1;

    text-decoration: none;
}

.ms-header__logo img {
    display: block;

    width: 145px;
    max-width: 145px;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
}


/* Navigation */

.ms-header__nav {
    position: absolute;

    top: 50%;
    right: 48px;

    width: auto;

    margin: 0;
    padding: 0;

    transform: translateY(-50%);
}

.ms-header__nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    width: auto;

    gap: 58px;

    margin: 0;
    padding: 0;

    list-style: none;

    transform: translateY(14px);
}

.ms-header__nav ul li {
    display: block;

    width: auto;

    margin: 0;
    padding: 0;

    list-style: none;

    white-space: nowrap;
}

.ms-header__nav ul li::before,
.ms-header__nav ul li::after {
    display: none;

    content: none;
}


/* Navigation Text */

.ms-header__nav ul li a {
    position: relative;

    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 3px;

    width: auto;

    margin: 0;
    padding: 0;

    color: #3d521d;

    font-family: 'Prata', serif;

    font-size: 16px;
    font-weight: 500;

    line-height: 1;
    letter-spacing: .03em;

    text-decoration: none;

    background: transparent;

    border: 0;

    text-shadow: none;

    transition:
        color .3s ease,
        text-shadow .3s ease;
}


/* Navigation Japanese Sub Label */

.ms-header__nav-sub {
    display: block;

    color: #a49a89;

    font-family: 'Hind', sans-serif;

    font-size: 10px;
    font-weight: 400;

    line-height: 1;
    letter-spacing: .05em;

    transition: color .3s ease;
}

.ms-header__nav ul li a:hover .ms-header__nav-sub {
    color: #9d3d00;
}


/* Navigation Underline */

.ms-header__nav ul li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 1px;

    background: #fae370;

    transform: scaleX(0);

    transform-origin: right center;

    transition: transform .45s ease;
}


/* Navigation Hover */

.ms-header__nav ul li a:hover {
    color: #9d3d00;
}

.ms-header__nav ul li a:hover::after {
    transform: scaleX(1);

    transform-origin: left center;
}


/* Fixed Header Space */

body {
    padding-top: 80px;
}


/* Nav Open / Body Scroll Lock */

body.is-nav-open {
    overflow: hidden;
}


/* =========================================================
   HEADER - SP HAMBURGER MENU
   （PC / tabletでは非表示。767px以下でのみ表示）
========================================================= */

.ms-header__hamburger {
    display: none;

    position: absolute;

    top: 50%;
    right: 20px;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;

    cursor: pointer;

    transform: translateY(-50%);

    -webkit-tap-highlight-color: transparent;

    z-index: 100000;
}

.ms-header__hamburger-bar {
    position: absolute;

    left: 50%;

    width: 30px;
    height: 1.5px;

    background: #303530;

    transform: translate(-50%, -50%);

    transition:
        transform .35s ease,
        opacity .35s ease,
        top .35s ease;
}

.ms-header__hamburger-bar:nth-child(1) {
    top: 17px;
}

.ms-header__hamburger-bar:nth-child(2) {
    top: 27px;
}


/* Hamburger → × */

.ms-header__hamburger[aria-expanded="true"] .ms-header__hamburger-bar:nth-child(1) {
    top: 22px;

    transform: translate(-50%, -50%) rotate(45deg);
}

.ms-header__hamburger[aria-expanded="true"] .ms-header__hamburger-bar:nth-child(2) {
    top: 22px;

    transform: translate(-50%, -50%) rotate(-45deg);
}


/* SP Navigation Overlay */

.ms-nav-sp {
    position: fixed;

    inset: 0;

    background: #fff9e5;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-12px);

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    transition:
        opacity .4s ease,
        transform .4s ease,
        visibility 0s linear .4s;

    z-index: 99998;
}

.ms-nav-sp.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    transition:
        opacity .4s ease,
        transform .4s ease,
        visibility 0s linear 0s;
}

.ms-nav-sp ul {
    margin: 0;
    padding: 90px 32px 60px;

    list-style: none;
}

.ms-nav-sp ul li {
    margin: 0;
    padding: 0;

    list-style: none;

    border-bottom: 1px solid #d7b77f;
}

.ms-nav-sp ul li a {
    position: relative;

    display: block;

    padding: 15px 0;

    color: #303530;

    font-family: 'Prata', serif;

    font-size: 21px;
    font-weight: 500;

    line-height: 1.2;
    letter-spacing: .02em;

    text-transform: uppercase;

    text-decoration: none;

    transition: color .3s ease;
}

.ms-nav-sp ul li a:active {
    color: #9d3d00;
}

.ms-nav-sp__sub {
    display: block;

    margin-top: 6px;

    color: #a49a89;

    font-family: 'Hind', sans-serif;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: .08em;

    text-transform: none;
}


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

.kv-section {
    position: relative;

    width: 100vw;
    max-width: none;

    height: calc(100vh - 80px);
    min-height: 480px;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 0;

    overflow: hidden;
}


/* KV Image */

.kv-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.kv-image .kv-image__slide {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* KV Image Crossfade（2枚目をベース画像の上に重ね、ふわっとopacityで切り替え） */

.kv-image .kv-image__slide--fade {
    opacity: 0;

    transition: opacity 1.8s ease-in-out;
}

.kv-image .kv-image__slide--fade.is-active {
    opacity: 1;
}


/* KV Gradient */

.kv-section::after {
    content: "";

    position: absolute;

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

    height: 45%;
    min-height: 220px;
    max-height: 340px;

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

    pointer-events: none;

    z-index: 25;
}


/* KV Copy */

.kv-copy {
    position: absolute;

    left: 50%;
    bottom: 9%;

    display: block;

    width: 90%;
    max-width: 1000px;

    margin: 0;
    padding: 0;

    transform: translateX(-50%);

    text-align: center;

    opacity: 1;
    visibility: visible;

    z-index: 30;
}


/* KV Copy Intro（英字＋リード文をまとめて同時にフェードイン）

   ※ .kv-section自体がopacity:0の状態（オープニング演出中、
     is-visible付与前）でも、この要素のCSSアニメーションは
     ページ読み込み直後から独立して走ってしまうため、
     KVが実際に表示される頃には既にアニメーションが
     終わってしまっている（＝ぼやけたまま止まって見える）
     ケースがあった。
   　.kv-section.is-visible が付与されて実際に見え始めた
     タイミングでアニメーションを開始するようにし、
     常に見えている間にきちんとフェードインが完了するようにする。 */

.kv-copy-intro {
    opacity: 0;

    filter: blur(10px);

    transform: translateY(8px);
}

.kv-section.is-visible .kv-copy-intro {
    animation:
        kvLeadFade 1.6s ease-out forwards;

    animation-delay: .5s;
}


/* KV Text Color */

.kv-copy-lead,
.kv-copy-title,
.kv-copy-en {
    color: #4f6053;
}


/* KV Lead */

.kv-copy-lead {
    margin: 10px 0 0;
}


/* KV Title */

.kv-copy-title {
    display: block;

    margin: 0;
    padding: 0;

    color: #4f6053;

    font-size: 34px;
    font-weight: 500;

    line-height: 1.5;

    letter-spacing: .03em;

    white-space: nowrap;

    text-align: center;

    text-shadow: none;
}


/* KV English */

.kv-copy-en {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;

    letter-spacing: .16em;

    text-align: center;
}


/* KV Comma */

.kv-copy-title .comma {
    margin: 0 -.08em;
}


/* KV Lead Animation */

@keyframes kvLeadFade {

    0% {
        opacity: 0;

        filter: blur(10px);

        transform: translateY(8px);
    }

    60% {
        opacity: .7;

        filter: blur(4px);

        transform: translateY(2px);
    }

    100% {
        opacity: 1;

        filter: blur(0);

        transform: translateY(0);
    }

}


/* =========================================================
   COMMON CONTENT
========================================================= */

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

    margin: 0 auto;

    padding: 140px 0 0;
}

.content-en {
    margin: 0;

    color: #303531;

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

    line-height: 1.4;

    letter-spacing: .02em;
}

.content-ja {
    margin: 0 0 40px 22px;

    color: #303531;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.6;

    letter-spacing: .08em;
}

.content-title {
    margin: 0px 0 30px;

    font-size: 32px;

    line-height: 1.4;

    letter-spacing: .02em;
}

.content-text {
    margin: 0;

    color: #303530;

    font-size: 16px;
    font-weight: 400;

    line-height: 2;

    letter-spacing: .05em;
}


/* Content Heading（英字の煽り文なしで、見出し＋説明文のみのパターン。
   Aboutの動物紹介やServiceの案内文など、複数ページで共通利用） */

.content-heading {
    margin: 0 0 40px;

    text-align: center;

    font-size: 28px;
}

.content-heading_sub {
    margin: 0 auto 50px;

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

    text-align: left;

    color: #303530;

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

    line-height: 1.9;

    letter-spacing: 0.04em;
}


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

.about-section {
    position: relative;

    display: grid;

    grid-template-columns: 54% 46%;

    align-items: center;

    width: calc(100% - 160px);
    max-width: 1400px;

    margin: 0 auto;

    padding: 80px 0 0;
}

.about-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding-right: 50px;
}

.about-image {
    position: relative;

    display: flex;

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

    width: 100%;

    padding-left: 20px;

    z-index: 1;

    transform: translateY(25px);
}

.about-image img {
    display: block;

    width: 115%;
    max-width: 680px;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   BUTTON
========================================================= */

.farm-btn {
    position: relative;

    display: block;

    width: 190px;
    height: 36px;

    margin-top: 20px;
    margin-left: auto;

    text-decoration: none;

    transition: transform .3s ease;
}

.farm-btn span {
    position: absolute;

    inset: 0;

    display: flex;

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

    border: 2px solid #66784A;
    border-radius: 999px;

    background: transparent;

    color: #000;

    font-size: 14px;
    font-weight: 400;

    letter-spacing: .08em;

    z-index: 2;

    transition: .4s ease;
}

.farm-btn::before {
    content: "";

    position: absolute;

    box-sizing: border-box;

    left: 6px;
    top: 6px;

    width: 100%;
    height: 100%;

    border: 1px solid #D4D4D4;
    border-radius: 999px;

    z-index: 1;

    transition: .4s ease;
}

.farm-btn span::after {
    content: "→";

    position: absolute;

    right: 14px;

    color: #66784A;

    font-size: 14px;

    transition: .3s ease;
}

.farm-btn:hover::before {
    left: 0;
    top: 0;

    border: 2px solid #66784A;
}

.farm-btn:hover span {
    background: #66784A;

    color: #fff;

    border-color: #66784A;

    font-weight: 700;
}

.farm-btn:hover span::after {
    transform: translateX(4px);

    color: #fff;
}

.farm-btn:hover {
    transform: translateY(-4px);
}


/* =========================================================
   SERVICE
========================================================= */

.service-section {
    position: relative;

    padding-bottom: 25px;

    overflow: hidden;
}

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

    margin: 0 auto;

    text-align: center;
}

.service-content .content-en {
    margin: 0;

    text-align: center;
}

.service-content .content-ja {
    margin: 0 0 40px;

    text-align: center;
}

.service-content .content-title,
.service-content .content-text {
    text-align: center;
}


/* =========================================================
   SERVICE ARTICLE
========================================================= */

.article-list {
    width: min(100% - 80px, 1200px);

    margin: 0 auto;
}

.article-item {
    position: relative;

    display: grid;

    grid-template-columns: 380px 1fr;

    align-items: stretch;

    gap: 50px;

    padding: 10px 0 70px;

    border-bottom: 1px solid #d7b77f;
}

.article-item + .article-item {
    padding-top: 60px;
}

.article-image {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background-color: #d9d9d9;
}

.article-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-content {
    padding-top: 2px;
}

.article-title {
    margin: 0 0 38px;

    color: #333;

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

    line-height: 1.5;
}

.article-text {
    margin: 0;

    color: #333;

    font-size: 13px;

    line-height: 1.75;
}

/* PCでは詳しく見るボタンを絶対配置で固定せず、
   本文の直後（＝画像の高さに追従する位置）に
   自然に流し込むことで、画像下端とズレないようにする。
   （SP版の絶対配置は下部のメディアクエリ側で維持） */

/* TOPページのService一覧は、本文が短いカード（例：ふれあい体験）だと
   画像の高さに対してテキストが短く、ボタンが画像下端より
   かなり上に浮いてしまうため、本文エリアをflex columnにし、
   ボタンをmargin-top:autoで画像の下端（行の高さ）に
   ぴったり揃える */

.service-section .article-content {
    display: flex;

    flex-direction: column;
}

.service-section .farm-btn {
    margin-top: auto;
}

/* ボタン（＝画像下端）とゴールドの区切り線との間が
   狭く見えるため、余白を広げる */

.service-section .article-item {
    padding-bottom: 60px;
}

/* 画像の縦横比を固定し、差し替える写真の縦横比に関わらず
   3枚とも同じサイズ・同じ見え方になるようにする
   （縦横比を指定しないと、本文の文字量によって行の高さが
   変わり、画像ごとに表示サイズがバラついてしまうため） */

.service-section .article-image {
    aspect-ratio: 3 / 2;
}

/* 最後のカードは次に区切る要素が続かないため、
   下のゴールドラインを削除する */

.service-section .article-item:last-child {
    border-bottom: none;
}


/* =========================================================
   ANIMAL
========================================================= */

.content-animal-section {
    width: 100%;
    max-width: 100%;

    margin: 0;

    padding: 100px 0;

    background: url('../images/animalbag.jpg') no-repeat center center / cover, #4E5D35;

    box-sizing: border-box;

    text-align: center;
}


/* Animal Heading */

.content-animal-section .content-en {
    width: 100%;

    margin: 0;
    padding: 0;

    color: #fff;

    text-align: center;
}

.content-animal-section .content-ja {
    width: 100%;

    margin: 0 0 40px;
    padding: 0;

    color: #fff;

    text-align: center;
}


/* Animal Title */

.content-animal-section .content-title {
    width: 680px;
    max-width: calc(100% - 40px);

    margin: 0 auto 40px;
    padding: 0;

    color: #fff;

    text-align: center;
}


/* Animal Text */

.content-animal-section .content-text {
    width: 680px;
    max-width: calc(100% - 40px);

    margin: 0 auto;
    padding: 0;

    color: #fff;

    text-align: left;
}


/* =========================================================
   ANIMAL SLIDER
========================================================= */

.animal-slider {
    width: 100%;

    margin-top: 60px;

    overflow: hidden;
}

.animal-slider__track {
    display: flex;

    align-items: center;

    will-change: transform;
}

.animal-slider__set {
    display: flex;

    align-items: center;

    gap: 48px;

    padding-right: 48px;

    flex-shrink: 0;
}

.animal-slide {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.animal-slide__photo {
    position: relative;

    flex-shrink: 0;
}

.animal-slide__photo img {
    display: block;

    border-radius: 50%;

    object-fit: cover;
}

.animal-slide--lg .animal-slide__photo img {
    width: 260px;
    height: 260px;
}

.animal-slide--sm .animal-slide__photo img {
    width: 140px;
    height: 140px;
}

.animal-slide__num {
    position: absolute;

    left: -10px;
    bottom: 14px;

    padding: 2px 12px;

    background: #F3DE7B;

    color: #303531;

    font-family: 'Prata', serif;
    font-size: 26px;
    font-style: italic;

    line-height: 1.4;

    white-space: nowrap;
}

.animal-slide__caption {
    margin: 0;

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.7;

    letter-spacing: .04em;

    white-space: nowrap;
}

.animal-slide__mark {
    padding: 0 4px;

    background: #F3DE7B;
    color: #303531;

    font-weight: 700;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    width: 100%;
}

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

    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #d7b77f;
}

.accordion button {
    position: relative;

    display: block;

    width: 100%;

    padding: 28px 0;

    border: none;

    background: none;

    cursor: pointer;

    text-align: left;

    color: #303530;

    font-family: 'Hind', sans-serif;

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

.accordion button:hover {
    color: #a67c52;
}

.accordion-title {
    display: block;

    padding-right: 50px;
}

.icon {
    position: absolute;

    top: 50%;
    right: 0;

    width: 24px;
    height: 24px;

    transform: translateY(-50%);
}

.icon::before,
.icon::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    background: #303530;

    transition: .3s ease;
}

.icon::before {
    width: 16px;
    height: 2px;

    transform: translate(-50%, -50%);
}

.icon::after {
    width: 2px;
    height: 16px;

    transform: translate(-50%, -50%);
}

button[aria-expanded="true"] .icon::after {
    height: 0;
}

.accordion-content {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    padding-top: 0;
    padding-bottom: 0;

    color: #303530;

    transition:
        max-height .5s ease,
        opacity .35s ease,
        padding .35s ease;
}

button[aria-expanded="true"] + .accordion-content {
    max-height: 500px;

    opacity: 1;

    padding-bottom: 20px;
}

.accordion-content p {
    margin: 0;

    padding: 20px 0 30px;

    color: #555;

    font-size: 15px;

    line-height: 2;
}


/* =========================================================
   ACCESS
========================================================= */

.access-area {
    width: 100%;
}


/* Google Map */

.access-map {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    box-sizing: border-box;
}

.access-map iframe {
    display: block;

    width: 100%;
    max-width: 1100px;

    height: 500px;

    margin: 0 auto;

    border: 0;
}


/* Access Information */

.access-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: stretch;

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

    margin: 0 auto;

    padding: 100px 0;
}


/* Access Left */

.access-left {
    position: relative;

    padding-right: 80px;
}

.access-left::after {
    content: "";

    position: absolute;

    top: 5px;
    bottom: 5px;
    right: 0;

    width: 1px;

    background: #e6e6e6;
}

.access-logo {
    display: block;

    width: 180px;
    max-width: 100%;
    height: auto;

    margin: 0 0 50px;
}

.access-address {
    margin: 0 0 20px;

    color: #303530;

    font-size: 18px;

    line-height: 1.8;
}

.access-note {
    margin: 0 0 60px;

    color: #666;

    font-size: 15px;

    line-height: 2;
}


/* Contact */

.contact-list {
    display: flex;

    flex-direction: column;

    gap: 22px;

    margin: 0 0 20px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 12px;
}

.contact-link {
    display: flex;

    align-items: center;

    gap: 12px;

    color: inherit;

    text-decoration: none;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-item i {
    width: 22px;

    flex-shrink: 0;

    color: #303530;

    font-size: 20px;

    text-align: center;
}

.contact-item span {
    color: #1a73e8;

    font-size: 18px;

    line-height: 1.8;
}


/* Access Right */

.access-right {
    display: flex;

    flex-direction: column;

    gap: 70px;
}

.route-title {
    margin: 0 0 22px;

    color: #303530;

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

.route-image {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   INSTAGRAM
========================================================= */

.instagram-section {
    width: 100%;
}

.instagram-section .service-content {
    width: min(100% - 80px, 900px);
}

.instagram-section .content-section {
    width: auto;
    margin: 0;
    padding: 50px 0 0;
}

.instagram-section .content-text {
    margin-bottom: 25px;
}

.instagram-grid {
    display: grid;

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

    gap: 3px;

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

    margin: 0 auto 100px;
}

.instagram-item {
    display: block;

    overflow: hidden;

    background: #ddd;
}

.instagram-item img {
    display: block;

    width: 100%;

    aspect-ratio: 3 / 4;

    object-fit: cover;

    transition: transform .4s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}


/* =========================================================
   FOOTER
========================================================= */

.ms-footer,
.ms-footer * {
    box-sizing: border-box;
}

.ms-footer {
    width: 100%;

    background: #4E5D35;

    color: #fff;
}

.ms-footer__inner {
    display: flex;

    flex-wrap: wrap;

    align-items: flex-start;
    justify-content: space-between;

    gap: 60px;

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

    margin: 0 auto;

    padding: 90px 0 60px;
}


/* Footer Brand / Info */

.ms-footer__brand {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    max-width: 420px;
}

.ms-footer__logo {
    display: block;

    width: 160px;

    margin-bottom: 24px;

    line-height: 1;

    text-decoration: none;
}

.ms-footer__logo img {
    display: block;

    width: 100%;
    height: auto;
}

.ms-footer__address {
    margin: 0;

    color: #fff;

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

.ms-footer__note {
    margin: 0 0 22px;

    color: rgba(255, 255, 255, .75);

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

.ms-footer__info-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.ms-footer__info-item {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #fff;

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

    text-decoration: none;

    transition: color .3s ease;
}

.ms-footer__info-item i {
    width: 18px;

    color: #fae370;

    font-size: 15px;

    text-align: center;
}

.ms-footer__info-item:hover {
    color: #fae370;
}


/* Footer Navigation */

.ms-footer__nav-heading {
    margin: 0 0 24px;

    color: #fff;

    font-family: 'Prata', serif;

    font-size: 16px;
    font-weight: 500;

    letter-spacing: .1em;
}

.ms-footer__nav ul {
    display: flex;

    flex-direction: column;

    gap: 16px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ms-footer__nav ul li a {
    display: flex;

    align-items: baseline;

    gap: 8px;

    color: #fff;

    font-family: 'Prata', serif;

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

    letter-spacing: .03em;

    text-decoration: none;

    transition: color .3s ease;
}

.ms-footer__nav-mark {
    color: rgba(255, 255, 255, .6);

    font-weight: 400;
}

.ms-footer__nav-sub {
    margin-left: 4px;

    color: rgba(255, 255, 255, .6);

    font-family: 'Hind', sans-serif;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: .05em;
}

.ms-footer__nav ul li a:hover {
    color: #fae370;
}

.ms-footer__nav ul li a:hover .ms-footer__nav-mark,
.ms-footer__nav ul li a:hover .ms-footer__nav-sub {
    color: #fae370;
}


/* Footer Bottom / Copyright */

.ms-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.ms-footer__copyright {
    width: min(100% - 80px, 1200px);

    margin: 0 auto;

    padding: 22px 0;

    color: rgba(255, 255, 255, .7);

    font-size: 12px;
    letter-spacing: .05em;
    text-align: center;
}


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

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

    /* Header */

    .ms-header__nav {
        right: 30px;
    }

    .ms-header__nav ul {
        gap: 35px;
    }

    .ms-header__nav ul li a {
        font-size: 16px;
    }

    .ms-header__nav-sub {
        font-size: 9px;
    }


    /* FAQ */

    .container {
        width: min(100% - 60px, 1000px);
    }

}


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

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

    /* Header */

    .ms-header__nav {
        right: 20px;
    }

    .ms-header__nav ul {
        gap: 22px;
    }

    .ms-header__nav ul li a {
        font-size: 14px;
    }

    .ms-header__nav-sub {
        font-size: 8px;
    }

    .ms-header__logo,
    .ms-header__logo img {
        width: 125px;
        max-width: 125px;
    }


    /* Common Content */

    .content-section {
        width: min(100% - 60px, 1200px);
    }


    /* About */

    .about-section {
        grid-template-columns: 1fr;

        width: calc(100% - 100px);

        gap: 50px;
    }

    .about-content {
        padding-right: 0;

        min-width: 0;
    }

    .about-image {
        padding-left: 0;
    }


    /* Service */

    .service-content {
        width: min(100% - 60px, 1200px);
    }

    .article-list {
        width: min(100% - 60px, 1200px);
    }

    .article-item {
        grid-template-columns: 280px 1fr;

        gap: 30px;
    }

    .article-title {
        margin-bottom: 24px;
    }


    /* Access */

    .access-section {
        grid-template-columns: 1fr;

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

        gap: 60px;
    }

    .access-left {
        padding-right: 0;
        padding-bottom: 50px;
    }

    .access-left::after {
        display: block;

        top: auto;
        left: 0;
        right: 0;
        bottom: 0;

        width: auto;
        height: 1px;
    }

}


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

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

    /* Header */

    .ms-header {
        height: 74px;
    }

    .ms-header__inner {
        padding: 0 20px;
    }

    .ms-header__logo,
    .ms-header__logo img {
        width: 115px;
        max-width: 115px;
    }

    .ms-header__nav {
        display: none;
    }

    .ms-header__hamburger {
        display: block;
    }


    /* Fixed Header */

    body {
        padding-top: 74px;
    }

    html {
        scroll-padding-top: 74px;
    }


    /* KV */

    .kv-section {
        height: calc(100vh - 74px);
        min-height: 420px;
    }

    .kv-copy {
        bottom: 10%;

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

    .kv-copy-title {
        font-size: 26px;

        line-height: 1.7;

        letter-spacing: .05em;

        white-space: normal;
    }

    .kv-copy-lead {
        margin-top: 8px;
    }

    .kv-copy-en {
        font-size: 10px;

        letter-spacing: .1em;
    }


    /* Common Content */

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

    .content-section {
        width: calc(100% - 40px);

        padding: 40px 0 0px;
    }

    .content-en {
        font-size: 18px;
    }

    .content-ja {
        margin-bottom: 30px;

        font-size: 13px;
    }

    .content-title {
        margin-bottom: 30px;

        font-size: 20px;

        line-height: 1.35;
    }

    .content-text {
        font-size: 14px;

        line-height: 1.9;
    }

    .content-heading {
        font-size: 20px;
    }

    .content-heading_sub {
        width: calc(100% - 40px);

        margin-bottom: 30px;

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


    /* About */

    .about-section {
        width: calc(100% - 40px);

        padding: 40px 0 30px;

        gap: 0;

        grid-template-areas:
            "en"
            "ja"
            "title"
            "text"
            "image";
    }

    /* 画像とボタンの表示順を入れ替え、ボタンを画像の右下に
       重ねて配置するため、about-contentを解除して中の要素を
       直接about-sectionのグリッドアイテム（エリア指定）にする */

    .about-content {
        display: contents;
    }

    .about-section .content-en {
        grid-area: en;
    }

    .about-section .content-ja {
        grid-area: ja;
    }

    .about-section .content-title {
        grid-area: title;
    }

    .about-section .content-text {
        grid-area: text;
    }

    .about-section .about-image {
        grid-area: image;

        z-index: 1;
    }

    .about-section .farm-btn {
        grid-area: image;

        z-index: 2;

        align-self: end;
        justify-self: end;

        margin: 0 16px 16px 0;
    }

    .about-image {
        margin-top: 0;

        transform: translateY(0);
    }

    .about-section .content-en,
    .about-section .content-ja {
        margin-left: 0;

        text-align: center;
    }

    .about-section .content-title {
        min-width: 0;

        text-align: center;

        font-size: clamp(16px, 4.4vw, 19px);

        letter-spacing: 0;

        white-space: nowrap;
    }

    .about-section .farm-btn {
        width: 110px;
        height: 26px;
    }

    .about-section .farm-btn span {
        font-size: 11px;
    }

    .about-section .farm-btn span::after {
        right: 8px;

        font-size: 11px;
    }

    .about-section .farm-btn::before {
        left: 4px;
        top: 3px;

        border: 1px solid #D4D4D4;
    }

    .about-section .farm-btn:hover::before {
        left: 0;
        top: 0;
    }


    /* Service */

    .service-content {
        width: calc(100% - 40px);
    }

    .service-content .content-ja {
        margin-bottom: 30px;
    }

    .service-content .content-title {
        font-size: clamp(16px, 4.4vw, 19px);
    }

    .article-list {
        width: calc(100% - 40px);
    }

    .article-item {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 10px 0 50px;
    }

    .article-item + .article-item {
        padding-top: 30px;
    }

    /* PC用に .service-section .article-item の
       padding-bottom を広げているが、詳細度がSPの
       上のルールより高く効いてしまうため、SPでは
       元の値に戻す */

    .service-section .article-item {
        padding-bottom: 50px;
    }

    .article-item .farm-btn {
        position: absolute;

        right: 0;
        bottom: 10px;

        width: 110px;
        height: 26px;

        margin: 0;
    }

    .article-item .farm-btn span {
        font-size: 11px;
    }

    .article-item .farm-btn span::after {
        right: 8px;

        font-size: 11px;
    }

    .article-item .farm-btn::before {
        left: 4px;
        top: 3px;

        border: 1px solid #D4D4D4;
    }

    .article-item .farm-btn:hover::before {
        left: 0;
        top: 0;
    }

    .article-image {
        aspect-ratio: 16 / 10;
    }

    /* PC用に .service-section .article-image の aspect-ratio を
       上書きしているが、詳細度がこの上のルールより高く効いて
       しまうため、SPでは元の比率に戻す */

    .service-section .article-image {
        aspect-ratio: 16 / 10;
    }

    .article-content {
        padding-top: 0;
    }

    .article-title {
        margin-bottom: 12px;

        font-size: 17px;
    }

    .article-text {
        font-size: 14px;

        line-height: 1.8;
    }


    /* Animal */

    .content-animal-section {
        padding: 70px 0;
    }

    .content-animal-section .content-ja {
        margin-bottom: 30px;
    }

    .content-animal-section .content-title {
        width: calc(100% - 32px);

        max-width: none;

        font-size: clamp(16px, 4.4vw, 19px);
    }

    .content-animal-section .content-text {
        width: fit-content;
        max-width: calc(100% - 32px);

        margin: 0 auto;

        text-align: left;
    }


    /* Animal Slider */

    .animal-slider {
        margin-top: 36px;
    }

    .animal-slider__set {
        gap: 20px;

        padding-right: 20px;
    }

    .animal-slide {
        gap: 10px;
    }

    .animal-slide--lg .animal-slide__photo img {
        width: 140px;
        height: 140px;
    }

    .animal-slide--sm .animal-slide__photo img {
        width: 76px;
        height: 76px;
    }

    .animal-slide__num {
        left: -6px;
        bottom: 8px;

        padding: 1px 8px;

        font-size: 16px;
    }

    .animal-slide__caption {
        font-size: 11px;
    }


    /* FAQ */

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

    .accordion button {
        padding: 22px 0;

        font-size: 16px;
    }

    .accordion-content p {
        font-size: 14px;
    }


    /* Access Map */

    .access-map iframe {
        height: 350px;
    }


    /* Access */

    .access-section {
        width: calc(100% - 40px);

        padding: 70px 0;
    }

    .access-left {
        padding-bottom: 25px;
    }

    .access-logo {
        width: 150px;

        margin-bottom: 40px;
    }

    .access-address {
        font-size: 16px;
    }

    .access-note {
        margin-bottom: 20px;

        font-size: 14px;
    }

    .contact-item span {
        font-size: 16px;
    }

    .access-right {
        gap: 45px;
    }

    .route-title {
        font-size: 18px;
    }


    /* Instagram */

    /* .instagram-section .content-section は元々 width: auto; margin: 0;
       で左右の余白が無い状態（text-align: centerの時はセンター表示に
       見えるため気づきにくかった）。左寄せにすると画面端にくっついて
       しまうため、他のセクションと同じ左右の余白を持たせる。 */

    .instagram-section .content-section {
        width: calc(100% - 40px);

        margin: 0 auto;
    }

    .instagram-section .content-text {
        text-align: left;
    }

    /* SPでは3枚目・6枚目を非表示にして4枚だけ表示する */

    .instagram-grid .instagram-item:nth-child(3),
    .instagram-grid .instagram-item:nth-child(6) {
        display: none;
    }

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

        width: calc(100% - 40px);

        /* 1枚目・2枚目は元々1頭の馬を左右に割った写真のため、
           隙間が広いと繋がって見えず違和感が出る。PCと同じ
           3pxまで詰める。 */
        gap: 3px;

        margin: 0 auto 60px;
    }


    /* Footer */

    .ms-footer__inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 44px;

        width: calc(100% - 40px);

        padding: 50px 0 36px;

        text-align: left;
    }

    .ms-footer__brand {
        align-items: flex-start;

        max-width: 100%;
    }

    .ms-footer__logo {
        width: 120px;

        margin-bottom: 0;
    }

    .ms-footer__address,
    .ms-footer__note,
    .ms-footer__info-list {
        display: none;
    }

    .ms-footer__nav {
        width: 100%;
    }

    .ms-footer__nav-heading {
        margin-bottom: 18px;
    }

    .ms-footer__nav ul {
        gap: 14px;
    }

    .ms-footer__copyright {
        width: calc(100% - 40px);

        padding: 18px 0;

        font-size: 11px;
        text-align: center;
    }

}


/* =========================================================
   Back to Top Button
========================================================= */

.back-to-top {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 9990;

    width: 95px;
    height: 95px;

    padding: 0;

    background: none;
    border: none;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: opacity .4s ease, visibility .4s ease;
}

.back-to-top.is-visible {
    opacity: 1;

    visibility: visible;
}

.back-to-top__ring {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    animation: back-to-top-spin 12s linear infinite;
}

.back-to-top__icon {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 42%;
    height: auto;

    transform: translate(-50%, -50%);
}

@keyframes back-to-top-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@media (prefers-reduced-motion: reduce) {

    .back-to-top__ring {
        animation: none;
    }

}

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

    .back-to-top {
        right: 14px;
        bottom: 14px;

        width: 68px;
        height: 68px;
    }

}
