/* =====================================================================
   自遊のさと LP — オリジナルデザイン（緑ポップ進化型）
   vita-lp.css（共通LPベース）の後に読み込み、このページ専用に上書きする。
   テーマ色: #48C872（緑）／#2E7A48（濃緑・見出し）／#F0F9F3（淡緑地）
   構成: 実写ヒーロー／ピルメニュー／特色3カード／写真入りジグザグ
         タイムライン／横スクロールギャラリー／控えめスクロール演出
   ===================================================================== */

#vita-lp.lp-jiyunosato { background: #fff; }

/* ---------- HERO（実写＋緑グラデ＋ゆっくりズーム） ---------- */
#vita-lp .jiyu-hero {
    position: relative;
    height: 72vh;
    min-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#vita-lp .jiyu-hero__bg,
#vita-lp .jiyu-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#vita-lp .jiyu-hero__bg img {
    object-fit: cover;
    animation: jiyu-zoom 20s ease-in-out infinite alternate;
}
@keyframes jiyu-zoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.1); }
}
#vita-lp .jiyu-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(37, 99, 57, .78) 0%, rgba(46, 122, 72, .55) 45%, rgba(72, 200, 114, .35) 100%);
}
#vita-lp .jiyu-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 6%;
    animation: jiyu-hero-in 1.1s ease-out both;
}
@keyframes jiyu-hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
#vita-lp .jiyu-hero__tag {
    display: inline-block;
    background: rgba(255, 255, 255, .92);
    color: #256339;
    font-size: 82%;
    font-weight: 700;
    letter-spacing: .18em;
    border-radius: 999px;
    padding: 6px 22px;
    margin: 0 0 18px;
}
#vita-lp .jiyu-hero__title {
    font-family: inherit;
    font-weight: 700;
    font-size: 340%;
    letter-spacing: .12em;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
#vita-lp .jiyu-hero__lead {
    font-size: 108%;
    letter-spacing: .1em;
    line-height: 2;
    margin: 20px 0 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
#vita-lp .jiyu-hero__scroll {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 62%;
    letter-spacing: .3em;
    text-align: center;
    opacity: .85;
}
#vita-lp .jiyu-hero__scroll span {
    display: block;
    width: 1px;
    height: 34px;
    margin: 0 auto 6px;
    background: rgba(255, 255, 255, .7);
    overflow: hidden;
    position: relative;
}
#vita-lp .jiyu-hero__scroll span:after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: jiyu-scroll-line 1.8s ease-in-out infinite;
}
@keyframes jiyu-scroll-line {
    0%   { top: -100%; }
    60%  { top: 100%; }
    100% { top: 100%; }
}

/* ---------- アンカーメニュー（ピル型・ヒーローに少し重ねる） ---------- */
#vita-lp .jiyu-menu {
    position: relative;
    z-index: 5;
    max-width: 960px;
    margin: -1.9em auto 0;
    padding: 0 4%;
}
#vita-lp .jiyu-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin: 0;
    padding: 0;
}
#vita-lp .jiyu-menu ul li a {
    display: block;
    background: #fff;
    color: #256339;
    font-weight: 700;
    font-size: 88%;
    letter-spacing: .06em;
    line-height: 1;
    padding: 15px 24px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(46, 122, 72, .16);
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
#vita-lp .jiyu-menu ul li a:hover {
    background: #48c872;
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(46, 122, 72, .28);
}

/* ---------- 本文共通 ---------- */
#vita-lp.lp-jiyunosato .jiyu-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1em 4% 5em;
}
#vita-lp .jiyu-section { padding: 3.5em 0; }
#vita-lp .jiyu-section__head { text-align: center; margin-bottom: 2.5em; }
#vita-lp .jiyu-eyebrow {
    display: inline-block;
    color: #48c872;
    font-weight: 700;
    font-size: 78%;
    letter-spacing: .3em;
    margin-bottom: 10px;
}
#vita-lp.lp-jiyunosato .jiyu-section h3 {
    font-family: inherit;
    color: #2e7a48;
    font-size: 170%;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .06em;
    margin: 0;
}
#vita-lp .jiyu-section__note {
    color: #666;
    font-size: 88%;
    margin: 14px 0 0;
}

/* ---------- ABOUT（テキスト＋外観写真） ---------- */
#vita-lp .jiyu-about {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
}
#vita-lp .jiyu-about__photo {
    margin: 0;
}
#vita-lp .jiyu-about__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(46, 122, 72, .16);
}
#vita-lp .jiyu-about__photo figcaption {
    text-align: center;
    color: #666;
    font-size: 80%;
    margin-top: 10px;
}

/* ---------- FEATURE（特色3カード） ---------- */
#vita-lp .jiyu-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
#vita-lp .jiyu-card {
    background: #f0f9f3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(46, 122, 72, .1);
    transition: transform .3s ease, box-shadow .3s ease;
}
#vita-lp .jiyu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(46, 122, 72, .2);
}
#vita-lp .jiyu-card figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
#vita-lp .jiyu-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
#vita-lp .jiyu-card:hover figure img { transform: scale(1.05); }
#vita-lp .jiyu-card__body { padding: 1.4em 1.5em 1.7em; }
#vita-lp .jiyu-card__en {
    display: inline-block;
    color: #48c872;
    font-weight: 700;
    font-size: 72%;
    letter-spacing: .28em;
    margin-bottom: 8px;
}
#vita-lp .jiyu-card__body h4 {
    font-family: inherit;
    color: #2e7a48;
    font-size: 112%;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.6;
    margin: 0 0 12px;
}
#vita-lp .jiyu-card__body p {
    font-size: 92%;
    line-height: 1.9;
    margin: 0;
}

/* ---------- SCHEDULE（写真入りジグザグタイムライン） ---------- */
#vita-lp .jiyu-timeline { position: relative; padding: 1.5em 0 0; }
#vita-lp .jiyu-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    background: #dff2e6;
    border-radius: 2px;
}
#vita-lp .jiyu-timeline__progress {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #48c872, #2e7a48);
    border-radius: 2px;
    transition: height .25s ease-out;
}
#vita-lp .jiyu-tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    margin-bottom: 3em;
}
#vita-lp .jiyu-tl-item:last-child { margin-bottom: 0; }
#vita-lp .jiyu-tl-item__time {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    background: #48c872;
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(46, 122, 72, .25);
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}
#vita-lp .jiyu-tl-item__photo {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 22px rgba(46, 122, 72, .22);
    margin: 0;
    position: relative;
    z-index: 1;
}
#vita-lp .jiyu-tl-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#vita-lp .jiyu-tl-item__card {
    grid-row: 1 / span 2;
    align-self: center;
    background: #fff;
    border: 1px solid #dff2e6;
    border-radius: 20px;
    padding: 1.3em 1.5em;
    box-shadow: 0 8px 24px rgba(46, 122, 72, .1);
}
/* 子要素1つ目は縦線（nth-child(1)）なので、項目は2から数える */
#vita-lp .jiyu-tl-item:nth-child(even) .jiyu-tl-item__card { grid-column: 3; margin-left: 8px; }
#vita-lp .jiyu-tl-item:nth-child(odd)  .jiyu-tl-item__card { grid-column: 1; grid-row: 1 / span 2; margin-right: 8px; }
#vita-lp .jiyu-tl-item__card strong {
    display: block;
    color: #2e7a48;
    font-size: 104%;
    margin-bottom: 4px;
}
#vita-lp .jiyu-tl-item__card p {
    font-size: 90%;
    line-height: 1.85;
    margin: 0 0 0.9em;
}
#vita-lp .jiyu-tl-item__card p:last-child { margin-bottom: 0; }

/* ---------- GALLERY（横スクロール） ---------- */
#vita-lp .jiyu-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
#vita-lp .jiyu-gallery::-webkit-scrollbar { height: 8px; }
#vita-lp .jiyu-gallery::-webkit-scrollbar-track { background: #eef6f0; border-radius: 4px; }
#vita-lp .jiyu-gallery::-webkit-scrollbar-thumb { background: #a5e3bd; border-radius: 4px; }
#vita-lp .jiyu-gallery figure {
    flex: 0 0 300px;
    margin: 0;
    scroll-snap-align: start;
}
#vita-lp .jiyu-gallery figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(46, 122, 72, .14);
    transition: transform .3s ease;
}
#vita-lp .jiyu-gallery figure:hover img { transform: translateY(-4px); }
#vita-lp .jiyu-gallery figcaption {
    text-align: center;
    color: #666;
    font-size: 80%;
    margin-top: 8px;
}

/* ---------- ACCESS ---------- */
#vita-lp.lp-jiyunosato .map_embed iframe { border-radius: 20px; }

/* ---------- 1文字だけの改行（泣き別れ）防止 ---------- */
#vita-lp .nb { display: inline-block; }
#vita-lp.lp-jiyunosato .jiyu-section h3,
#vita-lp .jiyu-card__body h4,
#vita-lp .jiyu-card__body p,
#vita-lp .jiyu-tl-item__card strong,
#vita-lp .jiyu-gallery figcaption,
#vita-lp .jiyu-hero__lead {
    text-wrap: balance;
}

/* ---------- スクロールフェードイン ---------- */
#vita-lp .fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
#vita-lp .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* カードは少し時間差で */
#vita-lp .jiyu-cards .jiyu-card:nth-child(2) { transition-delay: .12s; }
#vita-lp .jiyu-cards .jiyu-card:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    #vita-lp .jiyu-hero__bg img,
    #vita-lp .jiyu-hero__inner,
    #vita-lp .jiyu-hero__scroll span:after { animation: none; }
    #vita-lp .fade-up { opacity: 1; transform: none; transition: none; }
    #vita-lp .jiyu-card,
    #vita-lp .jiyu-card figure img,
    #vita-lp .jiyu-menu ul li a,
    #vita-lp .jiyu-gallery figure img { transition: none; }
}

/* =====================================================================
   このページ限定：ヘッダー／フッター（バナー）を緑系に
   ===================================================================== */
.theme-green .site-brand__mark { background: linear-gradient(135deg, #2e7a48 0%, #48c872 100%); }
.theme-green .site-brand { color: #2e7a48; }
.theme-green .site-nav .nav-list a { color: #2e7a48; }
.theme-green .site-nav .nav-list a::after { background: #48c872; }
.theme-green .site-nav .nav-list a:hover { color: #256339; }
.theme-green .nav-drawer .nav-list a { color: #2e7a48; }
.theme-green .nav-toggle span { background: #2e7a48; }
.theme-green .site-header.is-scrolled { box-shadow: 0 4px 16px rgba(46, 122, 72, .08); }
.theme-green .chip { color: #2e7a48; }
.theme-green .chip:hover { border-color: #256339; color: #256339; background: #ecf8f0; }
.theme-green .chip--primary { background: #2e7a48; border-color: #2e7a48; color: #fff; }
.theme-green .chip--primary:hover { background: #256339; border-color: #256339; color: #fff; }

.theme-green .site-footer { background: #2e7a48; }
.theme-green .site-footer__cta {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(72, 200, 114, .25) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(240, 250, 255, .15) 0%, transparent 55%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.theme-green .section-title--light { color: #fff; }
.theme-green .section-title--light::after { background: #a5e3bd; }
.theme-green .eyebrow--light { color: #a5e3bd; }
.theme-green .btn--primary { background: #256339; border-color: #256339; }
.theme-green .btn--primary:hover { background: #48c872; border-color: #48c872; color: #fff; }
.theme-green .site-footer__heading { color: #a5e3bd; }
.theme-green .site-footer__cols ul a:hover { color: #a5e3bd; }
.theme-green a:hover { color: #256339; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 900px) {
    #vita-lp .jiyu-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    #vita-lp .jiyu-about { grid-template-columns: 1fr; gap: 28px; }
    #vita-lp .jiyu-about__photo { max-width: 560px; margin: 0 auto; }
}
@media screen and (max-width: 767px) {
    #vita-lp .jiyu-hero { height: 62vh; min-height: 380px; }
    #vita-lp .jiyu-hero__title { font-size: 230%; }
    #vita-lp .jiyu-hero__lead { font-size: 96%; }
    #vita-lp .jiyu-menu { margin-top: -1.5em; }
    #vita-lp .jiyu-menu ul li a { font-size: 80%; padding: 12px 16px; }
    #vita-lp.lp-jiyunosato .jiyu-section h3 { font-size: 132%; }

    /* タイムラインを左寄せ1カラムに */
    #vita-lp .jiyu-timeline__line { left: 44px; margin-left: 0; }
    #vita-lp .jiyu-tl-item {
        grid-template-columns: 88px 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        margin-bottom: 2.2em;
    }
    #vita-lp .jiyu-tl-item__time {
        grid-column: 1 / span 2;
        grid-row: 1;
        justify-self: start;
        font-size: 88%;
        margin: 0 0 10px;
    }
    #vita-lp .jiyu-tl-item__photo {
        grid-column: 1;
        grid-row: 2;
        width: 88px;
        height: 88px;
        border-width: 4px;
        align-self: start;
    }
    #vita-lp .jiyu-tl-item:nth-child(even) .jiyu-tl-item__card,
    #vita-lp .jiyu-tl-item:nth-child(odd)  .jiyu-tl-item__card {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }
    #vita-lp .jiyu-gallery figure { flex-basis: 240px; }
}
