@charset "UTF-8";
#rosen .cls-1, #rosen .cls-2, #rosen .cls-3, #rosen .cls-4 {
    fill: #e4ebf0;
}
#rosen .cls-1, #rosen .cls-2, #rosen .cls-5, #rosen .cls-6, #rosen .cls-7, #rosen .cls-4 {
    stroke-miterlimit: 10;
}
#rosen .cls-1, #rosen .cls-2, #rosen .cls-4 {
    stroke-width: 7px;
}
#rosen .cls-1, #rosen .cls-6 {
    stroke: #1ba15a;
}
#rosen .cls-2, #rosen .cls-5 {
    stroke: #eaa313;
}
#rosen .cls-3, #rosen .cls-5, #rosen .cls-6, #rosen .cls-7, #rosen .cls-8 {
    stroke-width: 8px;
}
#rosen .cls-3, #rosen .cls-8 {
    stroke: #8d7aaf;
    stroke-linejoin: round;
}
#rosen .cls-5, #rosen .cls-6, #rosen .cls-7, #rosen .cls-8 {
    fill: none;
}
#rosen .cls-7, #rosen .cls-4 {
    stroke: #d6211b;
}
#rosen .pin {
    stroke-linecap: round;
}

/* rosen はJSが動く場合のみ、開始直前に隠してから描画 */
#hero svg#rosen.pre-draw {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-out;
}

#hero svg#rosen.draw {
    opacity: 1;
    visibility: visible;
}
 /* 線（route）は JS で dash をセット。 .draw が付いた瞬間に描画開始 */
svg.draw .route {
    animation: draw var(--route-duration, 1.0s) ease-out forwards var(--route-delay, 0s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* pin（丸印）は到達時に輪郭を一周で描きつつフェードイン */
.pin {
    opacity: 0;
}
svg.draw .pin {
    animation:
        ring   var(--pin-ring, 0.35s) ease-out forwards var(--pin-delay, 0s),
        fadein 0.20s                 linear  forwards var(--pin-delay, 0s);
}
@keyframes ring   { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* 低視力・酔い対策（必要なら残す） */
@media (prefers-reduced-motion: reduce) {
svg.draw .route, svg.draw .pin { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* 丸い画像 */
#hero .hero-zoom {
    display: block;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    opacity: 0;
    transform: scale(var(--zoom-from, 0.85));
    animation: hero-zoom var(--zoom-duration, 1s) ease-out var(--zoom-delay, 0s) forwards;
}
@keyframes hero-zoom {
    to { opacity: 1; transform: scale(1); }
}
#hero_img_01 {
    --zoom-duration: 0.6s;
    --zoom-delay: 2.4s;
    --zoom-from: 0.8;
}
#hero_img_02 {
    --zoom-duration: 0.3s;
    --zoom-delay: 2.7s;
    --zoom-from: 0.8;
}
#hero_img_03 {
    --zoom-duration: 0.4s;
    --zoom-delay: 2.5s;
    --zoom-from: 0.8;
}
#hero_img_04 {
    --zoom-duration: 0.2s;
    --zoom-delay: 2.6s;
    --zoom-from: 0.8;
}




/* メッセージ */
#hero_txt .cls-1 {
    fill: #fff;
}
#hero_txt .cls-2 {
    fill: none;
    stroke: #221714;
    stroke-linejoin: bevel;
    stroke-width: 4px;
}
#hero_txt .cls-3 {
    fill: #040000;
}

/* =========================
   hero_txt SVG 全体
   ========================= */

#hero_txt svg {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    animation: heroTxtFadeUp 0.5s ease-out 1.0s forwards;
}

/* 全体ふわっと表示 */
@keyframes heroTxtFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ECG線：最初は非表示 → 左から描画
   ========================= */

#hero_txt #ecg {
    opacity: 1; /* 線そのものは存在させる */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ecgDraw 0.7s ease-out 1.7s forwards;
}

@keyframes ecgDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* =========================
   白矩形：最初は非表示 → 左から同時に伸ばす
   ========================= */

#hero_txt #white_1,
#hero_txt #white_2,
#hero_txt #white_3 {
    opacity: 1;
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0);
    animation: whiteReveal 0.7s ease-out 2.4s forwards;
}

@keyframes whiteReveal {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* =========================
   鼓動
   ========================= */
#kodou {
    --kodou-duration: 0.5s;
    --kodou-delay: 3.1s;
    --kodou-delay: 1.9s;
    display: inline-block;
    transform-box: fill-box;
    transform-origin: 50% 55%;
    will-change: transform, opacity;
    animation: kodou var(--kodou-duration, 0.5s) var(--kodou-ease, cubic-bezier(.2,.9,.2,1)) var(--kodou-delay, 0s) both;
}
@keyframes kodou {
    0%   { transform: scale(1); }
    10%  { transform: scale(1); }
    18%  { transform: scale(1.12); }
    28%  { transform: scale(0.98); }
    42%  { transform: scale(1.06); }
    55%  { transform: scale(1); }
    100% { transform: scale(1); }
}