/* ============================================
   RESET & BASE
   ============================================ */
:root {
    --fall-distance: 300px;
    --char-height: 240px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    background-color: #f6cf46;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* --- Animations --- */
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.js-bounce-target { opacity: 0; }
.js-bounce-target.is-bounced {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Subtle Grid Background --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* --- sp-only line break (hidden on PC) --- */
.sp-only { display: none; }
.pc-only { display: inline; }

/* ============================================
   LAYOUT
   ============================================ */
#ritaline .container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
#ritaline .hero { padding: 90px 0 0; }

#ritaline .hero__layout {
    position: relative;
    min-height: 800px;
}

#ritaline .hero__heading {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 80px;
    color: #000;
    margin-bottom: 45px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
    opacity: 0;
    animation: fadeDown 0.8s ease-out forwards;
    background: none !important;
}

#ritaline .hero__heading--white { color: #ffffff; }

#ritaline .hero__descriptions {
    width: 496px;
    margin-left: 4px;
    opacity: 0;
    animation: fadeDown 0.8s ease-out 0.3s forwards;
}

#ritaline .hero__desc {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 32px;
    color: #000;
    margin-bottom: 9px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .hero__desc:last-child { margin-bottom: 0; }

#ritaline .hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 490px;
    height: 679px;
}

#ritaline .hero__visual-bg {
    position: absolute !important;
    left: 212px !important;
    top: 418px !important;
    width: 254px !important;
    height: 880px !important;
    background-color: #e0e0e0 !important;
    display: block !important;
    overflow: visible !important;
}

#ritaline .hero__phone-outer {
    position: absolute;
    left: 212px;
    top: 0;
    width: 254px;
    height: 436px;
    background-color: #ffffff;
    border-radius: 24px;
}

#ritaline .hero__phone-inner {
    position: absolute;
    left: 17px;
    top: 18px;
    width: 220px;
    height: 400px;
    /*background-color: #06c755;*/
    border-radius: 24px;
}

#ritaline .hero__phone-inner img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.hero__phone-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#ritaline .hero__illust-group {
    position: absolute;
    left: 0;
    top: 294px;
    width: 241px;
    height: 217px !important;
    object-fit: cover;
}

#ritaline .hero__illust-person-papers {
    position: absolute;
    left: 241px;
    top: 351px;
    height: 244px !important;
    object-fit: cover;
}

#ritaline .hero__illust-person-suit {
    position: absolute;
    left: 395px;
    top: 315px;
    height: 241px !important;
    object-fit: cover;
}

#ritaline .hero__cta {
    display: block;
    width: 436px;
    height: 57px;
    margin-top: 64px;
    background-color: #ffffff;
    border: 3px solid #f6cf46;
    border-radius: 29px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: 3.2px;
    text-align: center;
    line-height: 51px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
#ritaline .problems {
    position: relative;
    padding: 0 0 98px;
}

#ritaline .problems__bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1012px;
    height: 240px;
    background-color: #e0e0e0;
}

#ritaline .problems__heading {
    position: relative;
    font-family: 'Roboto Mono', 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    color: #000;
    letter-spacing: 7.68px;
    margin-bottom: 63px;
}

#ritaline .problems__cards {
    display: flex;
    justify-content: center;
    gap: 49px;
}

#ritaline .problems__card {
    position: relative;
    width: 265px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    padding: 48px 24px;
}

#ritaline .problems__card-illust { position: relative; }

#ritaline .problems__card-illust img {
    width: 64%;
    margin: 0 auto;
    display: block;
}

#ritaline .problems__card-title {
    text-align: center;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
    margin-top: 24px;
}

#ritaline .problems__card-desc {
    width: 223px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
    margin-top: 24px;
}

/* ============================================
   FALL-TRIGGER / CHARACTER ANIMATION
   ============================================ */
/* ============================================
   FALL-TRIGGER / CHARACTER ANIMATION
   ============================================ */
#ritaline .fall-trigger {
    position: relative !important;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible !important;
}

#ritaline .character {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: var(--char-height) !important;
    z-index: 10 !important;
    pointer-events: none;
    will-change: transform;
    overflow: visible !important;
}

#ritaline .character img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
    opacity: 0 !important;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
    max-width: none !important;
}

#ritaline .character img.active { opacity: 1 !important; }

#ritaline .target-heading {
    position: relative;
    padding-top: calc(var(--fall-distance) + var(--char-height) + 500px);
}

#ritaline .landing-row {
    display: flex;
    align-items: center;
    gap: 64px;
    border-bottom: 2px solid #fff;
    padding-bottom: 24px;
}

#ritaline .landing-char-slot {
    width: 120px;
    min-height: var(--char-height);
    flex-shrink: 0;
}

#ritaline .landing-text {
    flex: 1;
    min-width: 0;
}

#ritaline .landing-text h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 4px;
}

#ritaline .landing-text h2 span { color: #fff; }

#ritaline .landing-text .sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.6;
    color: #fff;
}

#ritaline .landing-phone {
    flex-shrink: 0;
    width: 200px;
}

/* ============================================
   VOICE SECTION
   ============================================ */
#ritaline .voice {
    position: relative;
    padding: 100px 0 0;
    overflow: visible;
}

#ritaline .voice__illust-bottom {
    display: block;
    height: 262px !important;
    margin: 40px auto 0;
}

/* ============================================
   CAROUSEL — Custom Infinite
   ============================================ */
#ritaline .carousel-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    overflow: hidden;
    user-select: none;
}

#ritaline .carousel-viewport {
    width: 100%;
    position: relative;
    overflow: visible;
}

#ritaline .carousel-track {
    display: flex;
    will-change: transform;
}

#ritaline .slide {
    flex-shrink: 0;
    position: relative;
    padding-top: 68px;
}

#ritaline .number-label {
    position: absolute;
    top: 0;
    right: 12px;
    font-size: 62px;
    font-weight: lighter;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
    user-select: none;
    z-index: 2;
}

#ritaline .card {
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 30px rgba(0,0,0,.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -16px;
}

#ritaline .illustration-area {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 0 6px;
    height: 210px;
}

#ritaline .illustration-area img {
    display: block;
    max-width: 200px;
    max-height: 195px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#ritaline .card-title {
    flex-shrink: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.7;
    margin-bottom: 14px;
}

#ritaline .card-desc {
    flex-shrink: 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 400;
    color: #777;
    line-height: 1.9;
    padding: 0 34px;
}

#ritaline .card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#ritaline .semicircle {
    width: 128px;
    height: 48px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #EED065;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
}

#ritaline .semicircle-text {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
}

#ritaline .carousel-controls {
    display: flex;
    align-items: center;
    gap: 48px;
}

#ritaline .nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 3px 16px rgba(0,0,0,.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

#ritaline .nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 22px rgba(0,0,0,.16);
}

#ritaline .nav-btn:active { transform: scale(.93); }

#ritaline .nav-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #444;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   TRUST SECTION
   ============================================ */
#ritaline .trust { padding: 51px 0 0; }

#ritaline .trust__catch {
    text-align: center;
    margin-bottom: 48px;
}

#ritaline .trust__catch-illust {
    display: block;
    width: 104px;
    height: 22px;
    margin: 0 auto 16px;
}

#ritaline .trust__catch-pill {
    display: inline-block;
    width: 376px;
    height: 51px;
    line-height: 51px;
    background-color: #ffffff;
    border-radius: 36px;
}

#ritaline .trust__catch-text {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    letter-spacing: 5.76px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__label {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2.304px;
    padding-left: 22px;
    margin-bottom: 24px;
    font-variation-settings: 'wdth' 100;
}

#ritaline .trust__heading {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    padding-left: 22px;
    margin-bottom: 53px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__body {
    display: flex;
    align-items: flex-start;
    gap: 72px;
    padding-left: 25px;
    margin-bottom: 64px;
    justify-content: space-between;
}

#ritaline .trust__desc {
    width: 484px;
    flex-shrink: 0;
}

#ritaline .trust__desc p {
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__evaluation {
    position: relative;
    width: 442px;
    height: 110px;
    background-color: #ffffff;
    border-radius: 8px;
    flex-shrink: 0;
}

#ritaline .trust__evaluation-google {
    position: absolute;
    left: 24px;
    top: 20px;
    width: 169px;
    height: 71px;
}

#ritaline .trust__evaluation-rating {
    position: absolute;
    left: 209px;
    top: 8px;
    width: 225px;
    height: 94px;
    background-color: #f6cf46;
    border-radius: 8px;
}

#ritaline .trust__evaluation-stars {
    position: absolute;
    left: 25px;
    top: 11px;
    font-family: 'Noto Sans', 'Noto Sans Symbols', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 15.36px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__evaluation-stars .eval-star {
    display: inline-block;
    opacity: 0;
    transform: scale(0.3);
}

#ritaline .trust__evaluation-label {
    position: absolute;
    left: 38px;
    top: 60px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__evaluation-score {
    position: absolute;
    left: 132px;
    top: 41px;
    font-family: 'Roboto Mono', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #000;
    letter-spacing: -6.4px;
}

#ritaline .trust__reviews {
    display: flex;
    gap: 24px;
    padding-left: 0;
}

#ritaline .trust__review {
    position: relative;
    width: 247px;
    background-color: #f6f7f7;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 48px 24px;
}

/* --- Review Stars (merged) --- */
#ritaline .rev_stars {
    font-size: 0;
    margin-bottom: 16px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
}

#ritaline .rev_stars .star-filled {
    color: #f6cf46;
    font-size: 16px;
    letter-spacing: 4px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
}

#ritaline .rev_stars .star-empty {
    color: #d0d0d0;
    font-size: 16px;
    letter-spacing: 4px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
}

#ritaline .trust__review-person {
    left: 65px;
    top: 173px;
    width: 88px;
    height: 88px;
    margin: 24px auto 0;
}

#ritaline .trust__review-person--1 { left: 58px; }

#ritaline .trust__buttons {
    display: flex;
    gap: 75px;
    justify-content: center;
    margin-top: 64px;
}

#ritaline .trust__btn {
    display: block;
    width: 436px;
    height: 57px;
    border-radius: 29px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3.2px;
    text-align: center;
    line-height: 57px;
    flex-shrink: 0;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .trust__btn--soudan { background-color: #ffffff; color: #000; }
#ritaline .trust__btn--interview { background-color: #717071; color: #ffffff; }

/* --- Google Voice widget --- */
#ritaline .t_voice_wrap {
    width: 100%;
    margin-top: 64px;
}
#ritaline .t_voice_wrap .conts{
    float: none !important;
}

/* ============================================
   REASON SECTION
   ============================================ */
#ritaline .reason {
    position: relative;
    margin-top: 160px;
    padding-bottom: 80px;
}

#ritaline .reason__heading {
    position: absolute;
    top: 0;
    left: calc(50% - 500.8px);
    width: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#ritaline .reason__heading span {
    display: block;
    line-height: 40px;
}

#ritaline .reason__heading-first {
    font-family: 'Roboto Mono', 'Noto Sans JP', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4.608px;
    padding-bottom: 16px;
}

#ritaline .reason__heading span:not(.reason__heading-first) {
    font-family: 'Roboto Mono', 'Noto Sans JP', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #000;
    letter-spacing: 3.072px;
}

#ritaline .reason__illust {
    position: absolute;
    top: 394px;
    left: calc(50% - 542.5px);
    width: 84px;
    height: 204px;
}

#ritaline .reason__items {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-left: 137.5px;
}

#ritaline .reason__item {
    position: relative;
    width: 892px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#ritaline .reason__item:nth-child(1) { height: 204px; }
#ritaline .reason__item:nth-child(2) { height: 212px; }
#ritaline .reason__item:nth-child(3) { height: 210px; }

#ritaline .reason__item-titlebar {
    position: absolute;
    align-items: center;
    top: 31px;
    left: 0;
    height: 36px;
    background-color: #f6cf46;
    padding-left: 49px;
}

#ritaline .reason__item:nth-child(1) .reason__item-titlebar { width: 552px; }
#ritaline .reason__item:nth-child(2) .reason__item-titlebar { width: 579px; }
#ritaline .reason__item:nth-child(3) .reason__item-titlebar { width: 552px; }

#ritaline .reason__item-title {
    position: absolute;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

#ritaline .reason__item-desc {
    position: absolute;
    left: 51px;
    top: 93px;
    width: 803px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
}

/* ============================================
   CTA SECTION
   ============================================ */
#ritaline .cta {
    position: relative;
    margin-top: 80px;
    min-height: 656px;
    padding-bottom: 80px;
}

#ritaline .cta__illust {
    position: absolute;
    top: 0;
    left: calc(50% - 557.5px);
    width: 463px;
    height: 576px;
}

#ritaline .cta__phone-outer {
    position: absolute;
    left: 106px;
    top: 0;
    width: 254px;
    height: 436px;
    background-color: #ffffff;
    border-radius: 24px;
}

#ritaline .cta__phone-inner {
    position: absolute;
    left: 17px;
    top: 18px;
    width: 220px;
    height: 400px;
    background-color: #06c755;
    border-radius: 24px;
}

#ritaline .cta__qr {
    position: absolute;
    left: 37px;
    top: 127px;
    width: 147px;
    height: 147px;
}

#ritaline .cta__qr img { width: 147px; height: 147px; }

#ritaline .cta__qr-label {
    position: absolute;
    left: 54px;
    top: 60px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 29px;
    color: #000;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .cta__person { position: absolute; object-fit: cover; }
#ritaline .cta__person--center { left: 186px; top: 321px; height: 255px !important; }
#ritaline .cta__person--right  { left: 352px; top: 253px; height: 255px !important; }
#ritaline .cta__person--left   { left: 0;     top: 271px; height: 255px !important; }

#ritaline .cta__heading {
    position: absolute;
    top: 75px;
    left: calc(50% + 13.27px);
    width: 363px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .cta__heading--white { color: #ffffff; }
#ritaline .cta__heading--gray { color: #000; }

#ritaline .cta__desc {
    position: absolute;
    top: 160px;
    left: calc(50% - 141.5px);
    width: 641px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    text-align: center;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

#ritaline .cta__btn {
    position: absolute;
    top: 271px;
    left: calc(50% - 23.5px);
    width: 436px;
    height: 57px;
    background-color: #ffffff;
    border: 3px solid #f6cf46;
    border-radius: 29px;
    font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    letter-spacing: 3.2px;
    text-align: center;
    line-height: 51px;
    font-variation-settings: 'CTGR' 0, 'wdth' 100;
}

/* ============================================
   BASE.CSS OVERRIDES (scoped to #ritaline)
   ============================================ */
#ritaline .character img {
    height: 100% !important;
}

/* ============================================
   FADE-DOWN ANIMATION TARGETS
   ============================================ */
#ritaline .problems__heading,
#ritaline .problems__cards,
#ritaline .landing-text,
#ritaline .landing-phone,
#ritaline .trust__catch,
#ritaline .trust__label,
#ritaline .trust__heading,
#ritaline .trust__desc,
#ritaline .trust__evaluation,
#ritaline .trust__reviews,
#ritaline .trust__buttons,
#ritaline .reason__heading,
#ritaline .reason__item,
#ritaline .cta__phone-outer,
#ritaline .cta__heading,
#ritaline .cta__desc,
#ritaline .cta__btn {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#ritaline .problems__heading.is-visible,
#ritaline .problems__cards.is-visible,
#ritaline .landing-text.is-visible,
#ritaline .landing-phone.is-visible,
#ritaline .trust__catch.is-visible,
#ritaline .trust__label.is-visible,
#ritaline .trust__heading.is-visible,
#ritaline .trust__desc.is-visible,
#ritaline .trust__evaluation.is-visible,
#ritaline .trust__reviews.is-visible,
#ritaline .trust__buttons.is-visible,
#ritaline .reason__heading.is-visible,
#ritaline .reason__item.is-visible,
#ritaline .cta__phone-outer.is-visible,
#ritaline .cta__heading.is-visible,
#ritaline .cta__desc.is-visible,
#ritaline .cta__btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — FALL-TRIGGER (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
    #ritaline .landing-row {
        flex-wrap: wrap;
        padding: 24px 16px;
        gap: 16px;
    }
    #ritaline .landing-char-slot { width: 90px; }
    #ritaline .landing-phone { width: 120px; margin-left: auto; }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- sp-only line break visible --- */
    .sp-only { display: inline; }
    .pc-only { display: none; }

    /* --- Layout --- */
    #ritaline .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px;
        padding-bottom: 80px;
        box-sizing: border-box;
        overflow: visible !important;
    }

    /* --- Hero --- */
    #ritaline .hero { padding: 48px 0 0; }

    #ritaline .hero__layout {
        position: relative;
        min-height: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    #ritaline .hero__text {
        overflow: visible;
        max-width: 100%;
    }

    /* ★ UPDATE 1: Hero heading — clamp(32px, 12vw, 48px) for high-impact mobile */
    #ritaline .hero__heading {
        font-size: clamp(32px, 12vw, 48px);
        line-height: 1.4;
        margin-bottom: 24px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: auto-phrase;
        white-space: normal !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    /* Hide the PC <br> tags but keep .sp-only visible */
    #ritaline .hero__heading br:not(.sp-only) { display: none; }

    #ritaline .hero__descriptions { width: 100%; margin-left: 0; }
    #ritaline .hero__desc { font-size: 14px; line-height: 26px; margin-bottom: 8px; }
    #ritaline .hero__desc br { display: none; }

    #ritaline .hero__cta {
        width: 100%;
        max-width: 340px;
        height: 50px;
        margin: 36px auto 0;
        font-size: 16px;
        letter-spacing: 2px;
        line-height: 44px;
    }

    #ritaline .hero__visual {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        margin-top: 40px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-height: 320px;
    }

    #ritaline .hero__visual-bg { display: none !important; }

    #ritaline .hero__phone-outer {
        position: relative;
        left: auto;
        top: auto;
        width: 160px;
        height: 275px;
        border-radius: 18px;
        z-index: 2;
        margin: 0 auto;
    }

    #ritaline .hero__phone-inner { left: 11px; top: 11px; width: 138px; height: 253px; border-radius: 18px; }
    #ritaline .hero__phone-inner img { width: 70px; height: 70px; }

    #ritaline .hero__illust-group {
        position: absolute;
        left: -10px;
        top: auto;
        bottom: 0;
        height: 160px !important;
    }

    #ritaline .hero__illust-person-papers {
        position: absolute;
        left: auto;
        right: 50%;
        top: 200px;
        bottom: 0;
        height: 160px !important;
        z-index: 3;
    }

    #ritaline .hero__illust-person-suit {
        position: absolute;
        left: auto;
        right: 6%;
        top: auto;
        bottom: 0;
        height: 160px !important;
        z-index: 3;
    }

    /* --- Problems --- */
    #ritaline .problems { padding: 60px 0 60px; }
    #ritaline .hero__visual-bg_2nd { display: none; }
    #ritaline .problems__bg { width: 100%; height: 100%; }

    #ritaline .problems__heading {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: 2px;
        margin-bottom: 32px;
        text-align: center;
    }

    #ritaline .problems__cards { flex-direction: column; align-items: center; gap: 24px; }
    #ritaline .problems__card { width: 100%; max-width: 320px; padding: 32px 20px; }
    #ritaline .problems__card-illust img { width: 50%; }
    #ritaline .problems__card-title { font-size: 18px; line-height: 26px; }
    #ritaline .problems__card-desc { width: 100%; font-size: 14px; line-height: 22px; }

    /* --- Fall-Trigger / Character --- */
    #ritaline .fall-trigger { padding: 0 16px; }
    /*#ritaline .fall-sticky-wrapper { top: 20%; }*/
    #ritaline .character { height: 160px !important; }
    #ritaline .target-heading { padding-top: calc(var(--fall-distance) + 160px + 300px); }
    #ritaline .landing-row { flex-direction: column; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 0; }
    #ritaline .landing-char-slot { order: 0; width: 80px; min-height: 160px; margin: 0 auto; }
    #ritaline .landing-text { order: 1; width: 100%; text-align: center; }

    /* ★ UPDATE 3: Landing text h2 — 32px on mobile */
    #ritaline .landing-text h2 { font-size: 32px; line-height: 1.5; }

    /* ★ UPDATE 4: "相談だ！" span — black bg, white text, bold, padding */
    #ritaline .landing-text h2 span {
        color: #fff;
        background-color: #000;
        font-weight: 900;
        padding: 2px 8px;
        display: inline;
        line-height: 1.6;
    }

    #ritaline .landing-text .sub { font-size: 18px; line-height: 1.5; }
    #ritaline .landing-phone { order: 2; width: 160px; margin: 24px auto 0; }

    /* --- Voice / Carousel --- */
    #ritaline .voice { padding: 60px 0 0; }

    /* ★ UPDATE 2: Hide voice illust-bottom on mobile */
    #ritaline .voice__illust-bottom { display: none !important; }

    #ritaline .carousel-section { gap: 24px; }
    #ritaline .card { width: 280px; height: 400px; }
    #ritaline .number-label { font-size: 48px; }
    #ritaline .card-title { font-size: 17px; }
    #ritaline .card-desc { font-size: 12px; padding: 0 20px; }
    #ritaline .carousel-controls { gap: 32px; }
    #ritaline .nav-btn { width: 48px; height: 48px; }

    /* --- Trust --- */
    #ritaline .trust { padding: 40px 0 0; }
    #ritaline .trust__catch { margin-bottom: 32px; }

    /* ★ UPDATE 2: Hide trust__catch-pill on mobile */
    #ritaline .trust__catch-illust,
    #ritaline .trust__catch-pill { display: none !important; }

    #ritaline .trust__catch-text { font-size: 18px; letter-spacing: 3px; }
    #ritaline .trust__label { font-size: 20px; padding-left: 8px; margin-bottom: 16px; }

    /* ★ UPDATE 3: Trust heading — 32px on mobile */
    #ritaline .trust__heading {
        font-size: 40px;
        line-height: 1.25;
        white-space: normal;
        padding-left: 8px;
        margin-bottom: 32px;
    }

    #ritaline .trust__heading span {
        font-size: 25px;
        font-weight: bold;
        letter-spacing: 0;
    }
    #ritaline .trust__heading .trust_hsub {
        display: block;
        line-height: 1.25;
        margin-top: 16px;
    }

    #ritaline .trust__body { flex-direction: column; gap: 24px; padding-left: 8px; margin-bottom: 40px; }
    #ritaline .trust__desc { width: 100%; }
    #ritaline .trust__desc p { font-size: 14px; line-height: 24px; }

    #ritaline .trust__evaluation { width: 100%; max-width: 360px; height: 90px; margin: 0 auto; }
    #ritaline .trust__evaluation-google { left: 16px; top: 16px; width: 130px; height: auto; }
    #ritaline .trust__evaluation-rating { left: auto; right: 8px; top: 6px; width: 160px; height: 78px; }
    #ritaline .trust__evaluation-stars { left: 14px; top: 8px; font-size: 18px; letter-spacing: 10px; }
    #ritaline .trust__evaluation-label { left: 24px; top: 48px; font-size: 13px; }
    #ritaline .trust__evaluation-score { left: 105px; top: 32px; font-size: 32px; }

    #ritaline .trust__reviews {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-left: 0;
    }

    #ritaline .trust__review { width: 100%; max-width: 320px; }
    #ritaline .trust__review span { display: block; padding: 12px 10px 0; font-size: 16px; line-height: 24px; }
    #ritaline .trust__review-person { left: 50%; transform: translateX(-50%); top: auto; bottom: 12px; width: 70px; height: 70px; }
    #ritaline .trust__review-person--1 { left: 50%; }

    #ritaline .trust__review .rev_stars .star-filled,
    #ritaline .trust__review .rev_stars .star-empty {
        white-space: nowrap !important;
        display: inline-block;
    }

    /* ★ UPDATE 2: Hide trust__buttons on mobile */
    #ritaline .trust__buttons { display: none !important; }

    #ritaline .trust__btn {
        width: 100%;
        max-width: 320px;
        height: 50px;
        font-size: 16px;
        letter-spacing: 2px;
        line-height: 50px;
    }

    /* --- Reason --- */
    #ritaline .reason { margin-top: 0px; padding-bottom: 48px; }

    /* ★ UPDATE 3: Reason heading — 32px on mobile */
    #ritaline .reason__heading {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        margin-bottom: 24px;
        padding-left: 8px;
        justify-content: center;
        text-align: center;
        gap: unset;
    }

    #ritaline .reason__heading span { display: inline; line-height: normal; }
    #ritaline .reason__heading-first { font-size: 32px; padding-bottom: unset; }
    #ritaline .reason__heading span:not(.reason__heading-first) { font-size: 32px; }

    /* ★ UPDATE 2: Hide reason__illust on mobile */
    #ritaline .reason__illust { display: none !important; }

    #ritaline .reason__items { padding-left: 0; gap: 24px; }
    #ritaline .reason__item { width: 100%; height: auto !important; padding: 24px 16px 20px; }

    #ritaline .reason__item-titlebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100% !important;
        height: auto;
        padding: 8px 16px;
        margin-bottom: 16px;
    }

    #ritaline .reason__item-title { position: relative; font-size: 16px; white-space: normal; line-height: 24px; }
    #ritaline .reason__item-desc { position: relative; left: auto; top: auto; width: 100%; font-size: 14px; line-height: 22px; }

    /* --- CTA --- */
    #ritaline .cta { margin-top: 48px; min-height: auto; padding-bottom: 48px; }
    #ritaline .cta > .container { display: flex; flex-direction: column; align-items: center; }

    #ritaline .cta__illust {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 340px;
        height: 380px;
        margin: 0 auto 32px;
        transform: translateX(-10px);
    }

    #ritaline .cta__phone-outer {
        left: 32%;
        top: 0;
        transform: translateX(-50%);
        width: 160px;
        height: 275px;
        border-radius: 18px;
        z-index: 2;
    }

    #ritaline .cta__phone-inner {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 138px;
        height: 253px;
        border-radius: 18px;
    }

    #ritaline .cta__qr {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 70px;
        height: 70px;
    }

    #ritaline .cta__qr img {
        width: 70px !important;
        height: 70px !important;
    }

    #ritaline .cta__qr-label {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
    }

    #ritaline .cta__person--left  { left: 0; top: auto; bottom: 0; height: 180px !important; z-index: 3; }
    #ritaline .cta__person--center { left: 50%; transform: translateX(-50%); top: auto; bottom: 0; height: 190px !important; z-index: 3; }
    #ritaline .cta__person--right  { left: auto; right: 0; top: auto; bottom: 0; height: 180px !important; z-index: 3; }

    #ritaline .cta__heading { position: relative; top: auto; left: auto; width: 100%; font-size: 24px; text-align: center; margin-bottom: 16px; }

    #ritaline .cta__desc {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        font-size: 14px;
        line-height: 22px;
        text-align: center;
        margin-bottom: 24px;
    }

    #ritaline .cta__desc br { display: none; }

    #ritaline .cta__btn {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 320px;
        height: 50px;
        font-size: 16px;
        letter-spacing: 2px;
        line-height: 44px;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

    /* --- Hero --- */
    #ritaline .hero__heading { word-break: keep-all; overflow-wrap: break-word; }
    #ritaline .hero__desc { font-size: 13px; line-height: 24px; }
    #ritaline .hero__visual { min-height: 280px; }
    #ritaline .hero__phone-outer { width: 140px; height: 240px; }
    #ritaline .hero__phone-inner { width: 120px; height: 220px; }
    #ritaline .hero__phone-inner img { width: 60px; height: 60px; }
    #ritaline .hero__illust-group { width: 110px; }
    #ritaline .hero__illust-person-papers { height: 120px; }
    #ritaline .hero__illust-person-suit { height: 120px; }

    /* --- Problems --- */
    #ritaline .problems__heading { font-size: 24px; letter-spacing: 1px; }

    /* --- Trust --- */
    /*#ritaline .trust__heading { font-size: clamp(24px, 8vw, 40px); }*/
    #ritaline .trust__review { width: 100%; max-width: 320px; padding: 24px; font-size: 16px !important; }
    #ritaline .trust__review span { padding: 10px 8px 0; }
    #ritaline .trust__review-person { width: 60px; height: 60px; bottom: 8px; }

    /* --- Carousel --- */
    #ritaline .card { width: 260px; height: 380px; }

    /* --- Reason --- */
    #ritaline .reason__heading-first { font-size: 40px; }
    #ritaline .reason__heading span:not(.reason__heading-first) { font-size: 40px; }

    /* --- CTA --- */
    #ritaline .cta__illust { width: 100%; max-width: 300px; height: 340px; }
    #ritaline .cta__phone-outer { width: 140px; height: 240px; }
    #ritaline .cta__phone-inner { width: 120px; height: 220px; }
    #ritaline .cta__person--center { height: 160px !important; }
    #ritaline .cta__person--right { height: 150px !important; }
    #ritaline .cta__person--left { height: 150px !important; }
    #ritaline .cta__heading { font-size: 20px; }
    #ritaline .cta__qr { width: 60px; height: 60px; }
    #ritaline .cta__qr img { width: 60px !important; height: 60px !important; }

    /* --- Character center on mobile --- */
    #ritaline .character { left: 0 !important; }
    #ritaline .character {
    height: 200px !important;
  }
  #ritaline .landing-char-slot {
    min-height: 200px;
  }
  #ritaline .target-heading {
    padding-top: calc(var(--fall-distance) + 200px + 300px);
  }
}

/* ── ロゴ→動画フェード演出 ── */
#ritaline .hero__phone-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#ritaline .hero__phone-logo.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#ritaline .hero__phone-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
}

#ritaline .hero__phone-video.is-visible {
  opacity: 1;
}
#ritaline .hero__phone-outer {
  z-index: 1;
}

#ritaline .hero__illust-group,
#ritaline .hero__illust-person-papers,
#ritaline .hero__illust-person-suit {
  z-index: 2;
}

/* モバイル対応 */
@media (max-width: 768px) {
  #ritaline .hero__phone-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  #ritaline .hero__phone-logo {
    width: 60px;
    height: 60px;
  }
}


.line_fixed {
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 600;
}
.line_fixed a {
    display: block;
}
.line_fixed a img {
    vertical-align: bottom;
    transition: all .3s;
    width: 210px;
}

/* ============================================
   FALL BUBBLES
   ============================================ */
#ritaline .fall-bubble {
  position: absolute;
  left: 240px;
  top: 0;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: #fff;
  border-radius: 20px;
  padding: 20px 28px;
  max-width: 800px;
  min-width: 280px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
  pointer-events: none;
}

#ritaline .fall-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #fff;
}

#ritaline .fall-bubble p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

#ritaline .fall-bubble.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  #ritaline .fall-bubble {
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    max-width: 640px;
    min-width: 4800px;
    padding: 14px 20px;
    margin-top: 0px;
  }
  #ritaline .fall-bubble::before {
    left: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: transparent;
  }
  #ritaline .fall-bubble p {
    font-size: 18px;
    text-align: center;
  }
  #ritaline .fall-bubble.is-active {
    transform: translateX(-50%) scale(1);
  }
  .office-info img{
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  #ritaline .fall-bubble {
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    max-width: 400px;
    min-width: 320px;
    padding: 14px 20px;
    margin-top: 0px;
  }
  #ritaline .fall-bubble::before {
    left: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(-50%) rotate(0);
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: transparent;
  }
  #ritaline .fall-bubble p {
    font-size: 16px;
    text-align: center;
  }
  #ritaline .fall-bubble.is-active {
    transform: translateX(-50%) scale(1);
  }
}

/* ============================================
   LINE CTA BUTTON (shared style)
   ============================================ */
@keyframes shine {
    100% { left: 125%; }
}

#ritaline .line-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #06C755;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(6, 199, 85, .35);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background .4s cubic-bezier(.25,.8,.25,1), transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
    position: relative;
    border: none;
}

#ritaline .line-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,.25);
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

#ritaline .line-cta-btn:hover {
    background: #05a848;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(6, 199, 85, .45);
}

#ritaline .line-cta-btn svg {
    display: block;
    flex-shrink: 0;
}

#ritaline .line-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: #06C755;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(6, 199, 85, .35);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background .4s cubic-bezier(.25,.8,.25,1), transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
    position: relative;
    border: none;
    white-space: nowrap;
}

/* --- Hero内のCTA位置調整 --- */
#ritaline .hero__descriptions .line-cta-btn {
    margin-top: 64px;
    min-width: 436px;
    padding: 1rem 3.5rem;
}

/* --- CTA section内の位置調整（既存のcta__btnの位置を継承） --- */
#ritaline .line-cta-btn.cta__btn {
    background: #06C755;
    color: #ffffff;
    border: none;
    line-height: normal;
    height: auto;
    padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
    #ritaline .hero__descriptions .line-cta-btn {
        margin: 36px auto 0;
        display: flex;
        width: 100%;
        max-width: 300px;
        min-width: unset;
        padding: 16px;
        font-size: 18rem;
    }
    #ritaline .line-cta-btn.cta__btn {
        width: auto;
        max-width: 320px;
        min-width: 280px;
        padding: 16px;
        font-size: 18rem;
        display: inline-flex;
    }
}
@media (max-width: 480px) {
    #ritaline .hero__descriptions .line-cta-btn {
        min-width: unset;
        width: 100%;
        max-width: 300px;
        padding: 16px;
    }
}

/* ============================================
   SCROLL HINT (fall animation area)
   ============================================ */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

#ritaline .fall-scroll-hint {
    position: absolute;
    right: 40px;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#ritaline .fall-scroll-hint.is-visible {
    opacity: 1;
}

#ritaline .fall-scroll-hint__text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
}

#ritaline .fall-scroll-hint__arrow svg path {
    stroke: #fff;
}

#ritaline .fall-scroll-hint__arrow {
    animation: scrollBounce 1.5s ease-in-out infinite;
}

#ritaline .fall-scroll-hint__arrow svg {
    display: block;
    width: 22px;
    height: 32px;
}

@media (max-width: 768px) {
    #ritaline .fall-scroll-hint {
        right: 20px;
    }
}

@media (max-width: 480px) {
    #ritaline .fall-scroll-hint {
        right: 16px;
    }
    #ritaline .fall-scroll-hint__text {
        font-size: 12px;
    }
    #ritaline .fall-scroll-hint__arrow svg {
        width: 18px;
        height: 26px;
    }
}

/* ============================================
   STICKY CTA BAR
   — Mobile only (max-width: 768px)
   — No effect on PC layout
   ============================================ */

/* PC default: hidden, zero layout impact */
#ritaline .sticky-cta-bar {
    display: none;
}

/* Mobile: fixed bottom bar */
@media (max-width: 768px) {
    #ritaline .sticky-cta-bar {
        display: block;
        position: fixed;
        bottom: 56px;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.18) 0%, transparent 100%);
        pointer-events: none;

        /* Hidden below viewport by default */
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Visible state — toggled by ScrollTrigger JS */
    #ritaline .sticky-cta-bar.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #ritaline .sticky-cta-bar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 14px 24px;
        background: #06C755;
        color: #ffffff !important;
        border: none;
        border-radius: 60px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-decoration: none;
        box-shadow: 0 4px 24px rgba(6, 199, 85, 0.45),
                    0 2px 8px rgba(0, 0, 0, 0.12);
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.3s ease, transform 0.2s ease;
    }

    #ritaline .sticky-cta-bar__btn:active {
        transform: scale(0.97);
        background: #05a848;
    }

    /* Reuse existing @keyframes shine */
    #ritaline .sticky-cta-bar__btn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20%;
        height: 200%;
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(30deg);
        animation: shine 4s infinite;
    }

    #ritaline .sticky-cta-bar__btn svg {
        display: block;
        flex-shrink: 0;
    }
}

footer{
    background-color: #fff;
}