/* Custom Styles for おそうじ本舗千川店 */

/* Base Reset & Typography */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Adjustment for Fixed Header */
section {
    scroll-margin-top: 80px;
}

/* Section Titles with Image Background */
.section-title-container {
    width: 100%;
    margin: 0 auto 3rem;
    padding-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    position: relative;
    z-index: 10;
}

.section-title-container.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title-text {
    display: inline-block;
    width: 100%;
}

.title-en {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.4em;
    margin-bottom: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.title-jp {
    display: block;
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 1.25rem;
    line-height: 1.4;
    background: linear-gradient(135deg, #0066CC 0%, #33CCCC 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

@media (max-width: 768px) {
    .section-title-container {
        margin-bottom: 2.5rem;
        padding-top: 1rem;
    }

    .title-jp {
        font-size: 1.875rem;
    }
}

@media (max-width: 640px) {
    .title-jp {
        font-size: 1.5rem;
    }
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #F4F9FC; /* クリアスカイホワイト */
    color: #2B333C; /* シャドーネイビー */
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 16px;
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
        text-align: left;
    }

    p,
    li {
        text-align: left !important;
    }
}

.section-margin {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .section-margin {
        margin-bottom: 0;
    }
}

/* Swiper FV Height fix */
.swiper-fv {
    width: 100%;
    height: 100%;
}

.bg-watercolor {
    background: linear-gradient(180deg, #F4F9FC 0%, #FFFFFF 100%);
    position: relative;
}

.swiper-fv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
}

/* Wave Gradient Animation */
.wave-gradient {
    background: linear-gradient(180deg, #0066CC, #4D99FF, #F4F9FC, #4D99FF, #0066CC);
    background-size: 100% 400%;
    animation: waveGradientMove 15s ease-in-out infinite;
}

@keyframes waveGradientMove {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 50% 0%;
    }
}

@media (max-width: 1023px) {
    .wave-gradient {
        background-size: 100% 400%;
        animation-duration: 10s;
    }
}

/* Flow Line Animation */
.flow-line {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 2.5s ease-out;
}

.flow-line.active {
    transform: scaleY(1);
}

/* Pulsing Animation for Step Numbers */
@keyframes pulse-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(51, 204, 204, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(51, 204, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(51, 204, 204, 0);
    }
}

.step-number {
    animation: pulse-accent 2s infinite;
}

/* top button visibility toggle handled in JS */

/* Floating SP CTA bottom safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .floating-cta {
        padding-bottom: env(safe-area-inset-bottom);
        background-color: white;
        /* to cover safe area */
    }
}



/* Bubble Animation for Worries Section */
.bubble-container {
    perspective: 1000px;
    background: radial-gradient(circle at center, rgba(51, 204, 204, 0.1) 0%, rgba(244, 249, 252, 0) 80%);
}

.bubble-icon {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    background: #FFFFFF;
    /* Double border effect for premium look */
    border: 4px solid #FFFFFF;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.2), 
        0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    /* Subtle clarity filter */
    filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Floating movement for a premium feel */
@keyframes bubbleFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
    50% { transform: translate(-50%, -50%) translateY(-15px) rotate(2deg); }
}

.bubble-container.active .bubble-icon {
    animation: bubbleFloat 8s ease-in-out infinite alternate;
}

/* Staggered animation for each bubble */
.bubble-container.active .bubble-1 { animation-delay: 0.2s; }
.bubble-container.active .bubble-2 { animation-delay: 1.4s; }
.bubble-container.active .bubble-3 { animation-delay: 0.8s; }
.bubble-container.active .bubble-4 { animation-delay: 2.0s; }
.bubble-container.active .bubble-5 { animation-delay: 1.1s; }

.bubble-container.active .bubble-1 { top: 15%; left: 15%; opacity: 1; }
.bubble-container.active .bubble-2 { top: 20%; left: 85%; opacity: 1; }
.bubble-container.active .bubble-3 { top: 80%; left: 12%; opacity: 1; }
.bubble-container.active .bubble-4 { top: 75%; left: 88%; opacity: 1; }
.bubble-container.active .bubble-5 { top: 10%; left: 68%; opacity: 1; }

/* List Item Reveal */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1023px) {
    .bubble-icon {
        width: 80px;
        height: 80px;
    }

    .bubble-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .bubble-icon {
        width: 90px;
        height: 90px;
        box-shadow: 0 10px 25px rgba(10, 110, 192, 0.25);
    }

    .bubble-container.active .bubble-1 {
        left: 15%;
        top: 10%;
    }

    .bubble-container.active .bubble-2 {
        left: 85%;
        top: 12%;
    }

    .bubble-container.active .bubble-3 {
        left: 15%;
        top: 90%;
    }

    .bubble-container.active .bubble-4 {
        left: 85%;
        top: 88%;
    }

    .bubble-container.active .bubble-5 {
        left: 50%;
        top: 5%;
    }
}






/* ==========================================================================
   New FV Redesign (As per Image)
   ========================================================================== */

.main-fv-new {
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

@media (max-width: 1023px) {
    .main-fv-new {
        height: auto;
        min-height: 0;
    }
}

.swiper-fv .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Cards Style */
.feature-card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.text-accent-orange {
    color: #FF9900;
}


.bg-accent-orange {
    background-color: #FF9900;
}

/* Gradient Background (Static - White to Blue) */
.animate-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, #0066CC 100%);
}

/* Black & Yellow Construction Striped Border */
.striped-border {
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
}
.striped-border::after {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: -3px;
    right: -3px;
    background: repeating-linear-gradient(-45deg, #FFD700, #FFD700 4px, #343A40 4px, #343A40 8px);
    z-index: -1;
    border-radius: 1rem; /* rounded-2xl matches */
    opacity: 0.7;
}




/* Shining Glass CTA Background with Premium Reflections */
.shining-glass-cta {
    position: relative;
    overflow: hidden;
    /* ガラス感を出すために、鮮やかで深みのあるブルーグラデーションに、わずかに透明感と光沢感を表現 */
    background: linear-gradient(135deg, #0052a3 0%, #0077ee 50%, #0099ff 100%);
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4), /* 上部のハイライトライン */
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 82, 163, 0.35);
}

/* 光の筋（太いスウィープ光） */
.shining-glass-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    animation: shine-glass 5s cubic-bezier(0.43, 0.13, 0.15, 0.99) infinite;
}

/* 光の筋（細いシャープなスウィープ光） */
.shining-glass-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 25%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    animation: shine-glass 5s cubic-bezier(0.43, 0.13, 0.15, 0.99) infinite;
    animation-delay: 0.15s;
}

@keyframes shine-glass {
    0% {
        left: -150%;
    }
    35%, 100% {
        left: 200%;
    }
}

/* キラキラと輝く星のエフェクト */
.glass-sparkle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    /* 十字のシャープな星形を作成 */
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    animation: sparkle-blink 4s ease-in-out infinite;
}

.sparkle-pos-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0.5s;
}

.sparkle-pos-2 {
    bottom: 25%;
    right: 15%;
    animation-delay: 2.2s;
}

.sparkle-pos-3 {
    top: 35%;
    right: 30%;
    animation-delay: 1.1s;
    width: 10px;
    height: 10px;
}

@keyframes sparkle-blink {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    45%, 55% {
        transform: scale(1.3) rotate(90deg);
        opacity: 0.95;
    }
}

@media (max-width: 768px) {
    .shining-glass-cta {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .glass-sparkle {
        width: 12px;
        height: 12px;
    }
    .sparkle-pos-3 {
        width: 8px;
        height: 8px;
    }
}

/* Service Cards Staggered Animation */
.service-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Solid Yellow Background for Profile Section */
.profile-yellow-bg {
    background-color: #FFF9E6; /* 温かみのある明るいイエロー */
}

/* Soap Bubble Animation */
.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(135, 206, 250, 0.2) 60%, rgba(255, 255, 255, 0) 80%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.1);
    animation: float-bubble 12s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float-bubble {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-120vh) translateX(60px) scale(1.1);
        opacity: 0;
    }
}

/* Bubble Specific Sizes and Delays */
.bubble-1 { width: 40px; height: 40px; left: 10%; animation-duration: 14s; animation-delay: 0s; }
.bubble-2 { width: 60px; height: 60px; left: 25%; animation-duration: 18s; animation-delay: 2.5s; }
.bubble-3 { width: 30px; height: 30px; left: 40%; animation-duration: 12s; animation-delay: 5s; }
.bubble-4 { width: 85px; height: 85px; left: 55%; animation-duration: 22s; animation-delay: 1s; }
.bubble-5 { width: 50px; height: 50px; left: 70%; animation-duration: 16s; animation-delay: 6s; }
.bubble-6 { width: 70px; height: 70px; left: 85%; animation-duration: 20s; animation-delay: 3.5s; }
.bubble-7 { width: 35px; height: 35px; left: 18%; animation-duration: 13s; animation-delay: 7s; }
.bubble-8 { width: 45px; height: 45px; left: 65%; animation-duration: 15s; animation-delay: 8.5s; }

/* Aqua Gradient Background for Service Section */
@keyframes service-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-gradient-bg {
    background: linear-gradient(135deg, #f0fdfa, #e6fffa, #e0f2fe, #f0fdfa);
    background-size: 300% 300%;
    animation: service-gradient 10s ease infinite;
}

/* Micro Sparkle/Bubble Particles */
.sparkle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: float-sparkle 8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float-sparkle {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-160px) translateX(25px) scale(1.3);
        opacity: 0;
    }
}

/* Sparkle Specific Sizes, Positions and Delays */
.sparkle-1 { width: 8px; height: 8px; left: 15%; top: 20%; animation-duration: 6s; animation-delay: 0s; }
.sparkle-2 { width: 12px; height: 12px; left: 35%; top: 40%; animation-duration: 9s; animation-delay: 2s; }
.sparkle-3 { width: 6px; height: 6px; left: 55%; top: 15%; animation-duration: 5s; animation-delay: 4s; }
.sparkle-4 { width: 15px; height: 15px; left: 75%; top: 60%; animation-duration: 11s; animation-delay: 1s; }
.sparkle-5 { width: 10px; height: 10px; left: 90%; top: 30%; animation-duration: 8s; animation-delay: 3s; }
.sparkle-6 { width: 14px; height: 14px; left: 20%; top: 70%; animation-duration: 10s; animation-delay: 5s; }
.sparkle-7 { width: 7px; height: 7px; left: 45%; top: 80%; animation-duration: 7s; animation-delay: 1.5s; }
.sparkle-8 { width: 11px; height: 11px; left: 65%; top: 25%; animation-duration: 9s; animation-delay: 3.5s; }
.sparkle-9 { width: 9px; height: 9px; left: 80%; top: 75%; animation-duration: 8s; animation-delay: 0.5s; }
.sparkle-10 { width: 13px; height: 13px; left: 10%; top: 50%; animation-duration: 10s; animation-delay: 2.5s; }

/* Worries Section Background (Responsive) */
.worries-bg {
    background-image: url('../img/spproblemsbg.jpg');
    background-size: cover;
}

@media (min-width: 768px) {
    .worries-bg {
        background-image: url('../img/problemsbg.jpg');
        background-size: 100% 100%;
    }
}

/* アピールタグの輝きアニメーション */
.shining-tag {
    position: relative;
    overflow: hidden;
}

.shining-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: tag-shine 5s infinite ease-in-out;
}

/* 各タグのアニメーション遅延設定（キランと順番に走らせる） */
.shining-tag-1::after { animation-delay: 0s; }
.shining-tag-2::after { animation-delay: 0.6s; }
.shining-tag-3::after { animation-delay: 1.2s; }

@keyframes tag-shine {
    0% {
        left: -150%;
    }
    15% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* コピー対策：テキスト選択とドラッグの禁止 */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 入力要素などはユーザー操作を妨げないように許可 */
input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
