/* ==========================================================================
   LP Blueberries - Custom Styles
   ========================================================================== */

/* Uniform section spacing – all top-level sections and diagonal divs */
body.lp-blueberries main > section:not(.vimeo-embed-section) {
    padding-top: 4rem ;
    padding-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    body.lp-blueberries main > section:not(.vimeo-embed-section) {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
}

@media screen and (max-width: 576px) {
    body.lp-blueberries main > section:not(.vimeo-embed-section) {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Overhang compensation overrides the top padding only */
body.lp-blueberries .pt-overhang-compensate {
    padding-top: 120px !important;
}

/* Overhang section: no bottom padding – negative margin-bottom does the work */
body.lp-blueberries .svg-overhang-section {
    padding-bottom: 0 !important;
}

/* SVG link overlay – sits on top of <object> to capture clicks */
.svg-link-wrap {
    position: relative;
    display: block;
}

.svg-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* Vimeo Embed Section */
.vimeo-embed-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vimeo-embed-section div {
    width: 100%;
}

/* Latest Blog Info Bar */
.latest-blog-section {
    background-color: #f8f8f8;
}

.latest-blog-bar {
    display: flex;
    align-items: center;
    border: 3px solid #1e9fa7;
    padding: 1rem;
    background-color: #fff;
    border-radius: 4px;
}

.blog-date {
    color: #1e9fa7;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: "Noto Sans JP", sans-serif;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.blog-divider {
    width: 2px;
    height: 40px;
    background-color: #1e9fa7;
    margin: 0 1.5rem;
}

.blog-title {
    flex: 1;
}

.blog-title-link {
    color: #000;
    text-decoration: none;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: #1e9fa7;
}

/* Single Wide Image Section */
.wide-image-section {
    background-color: #fff;
    overflow: visible;
}

.wide-image-section img {
    display: block;
    border-radius: 8px;
}

.stacked-images-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stacked-image {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

/* Section Title Container */
.section-title-container {
    background-color: #fff;
}

.difference-title {
    background-color: #fff;
    border: 3px solid #1e9fa7;
    padding: 15px 45px;
    display: inline-block;
    border-radius: 4px;
    position: relative;
}


.difference-title h2 {
    color: #1e9fa7;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
    font-family: "Noto Sans JP", sans-serif;
}

.difference-title-wide {
    background-color: #fff;
    border: 3px solid #1e9fa7;
    padding: 15px 75px;
    display: inline-block;
    border-radius: 4px;
    position: relative;
}


.difference-title-wide h2 {
    color: #1e9fa7;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
    font-family: "Noto Sans JP", sans-serif;
}

/* Blue Background Section */
.blue-bg-section {
    background-color: rgba(98, 190, 217, 0.25);
}

/* 5.svg hangs below the blue background */
.svg-overhang-section {
    overflow: visible;
}

.svg-overhang {
    margin-bottom: -120px;
}

/* Compensate on the section immediately after the overhang + extra breathing room */
.pt-overhang-compensate {
    padding-top: 200px !important;
}

@media (max-width: 768px) {
    .svg-overhang {
        margin-bottom: -80px;
    }

    .pt-overhang-compensate {
        padding-top: 160px !important;
    }
}

@media (max-width: 576px) {
    .svg-overhang {
        margin-bottom: -50px;
    }

    .pt-overhang-compensate {
        padding-top: 110px !important;
    }
}

.blue-bg-section .row {
    align-items: flex-start;
}

/* Staggered margin for desktop */
@media (min-width: 992px) {
    .blue-bg-section .stagger-1 {
        margin-top: 0;
    }

    .blue-bg-section .stagger-2 {
        margin-top: 40px;
    }

    .blue-bg-section .stagger-3 {
        margin-top: 80px;
    }
}

.blue-bg-section img {
    border-radius: 8px;
}

/* Notice Section */
.notice-section {
    background-color: #fff;
}

.notice-bar {
    display: flex;
    align-items: flex-start;
    border: 3px solid #1e9fa7;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
}

.notice-label {
    color: #1e9fa7;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: "Noto Sans JP", sans-serif;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.notice-divider {
    width: 2px;
    min-height: 80px;
    background-color: #1e9fa7;
    margin: 0 1.5rem;
}

.notice-content {
    flex: 1;
    color: #1e9fa7;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

/* Map Section */
.map-section {
    background-color: rgba(98, 190, 217, 0.08);
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 45%;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #1e9fa7;
    box-shadow: 0 6px 24px rgba(30, 159, 167, 0.18);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 70%;
    }
}

/* Directions Section */
.directions-section {
    background-color: #1e9fa7;
}

.direction-card {
    background-color: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.direction-card .card-body {
    padding: 2rem;
}

.direction-title {
    color: #1e9fa7;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.direction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.direction-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
}

.direction-list li:last-child {
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #1e9fa7;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.95rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-number::before {
    content: counter(step-counter);
}

.step-text {
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .latest-blog-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .blog-date {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .blog-divider {
        width: 100%;
        height: 2px;
        margin: 0.75rem 0;
    }

    .blog-title {
        width: 100%;
    }

    .blog-title-link {
        font-size: 1rem;
    }

    .difference-title h2 {
        font-size: 1.5rem;
    }

    .notice-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .notice-label {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .notice-divider {
        width: 100%;
        height: 2px;
        min-height: 2px;
        margin: 0.75rem 0;
    }

    .notice-content {
        font-size: 0.95rem;
    }

    .direction-card .card-body {
        padding: 1.5rem;
    }

    .direction-title {
        font-size: 1.2rem;
    }

    .step-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .latest-blog-bar {
        padding: 0.75rem;
    }

    .blog-date {
        font-size: 1rem;
    }

    .blog-title-link {
        font-size: 0.95rem;
    }

    .difference-title {
        padding: 12px 20px;
    }

    .difference-title h2 {
        font-size: 1.3rem;
    }

    .notice-bar {
        padding: 0.75rem;
    }

    .notice-content {
        font-size: 0.9rem;
    }

    .direction-card .card-body {
        padding: 1rem;
    }

    .direction-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.9rem;
    }

    .step-text {
        font-size: 0.9rem;
    }
}

/* CTA Split Block */
.cta-split-block {
    display: flex;
    border: 4px solid #1e9fa7;
    border-radius: 4px;
    overflow: hidden;
}

.cta-split-img {
    flex: 1;
    min-height: 300px;
}

.cta-split-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-split-divider {
    width: 4px;
    background-color: #1e9fa7;
    flex-shrink: 0;
}

.cta-split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
}

.cta-split-btn {
    background-color: #1e9fa7;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.cta-split-btn:hover {
    background-color: #1e9fa7;
    color: #fff;
}

.cta-split-phone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #1e9fa7;
    text-decoration: none;
}

.cta-split-phone-icon {
    font-size: 2.6rem;
}

.cta-split-phone span {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.6rem;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.cta-split-form-link {
    color: #1e9fa7;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #1e9fa7;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.cta-split-form-link:hover {
    color: #1e9fa7;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .cta-split-block {
        flex-direction: column;
    }

    .cta-split-img {
        min-height: 220px;
    }

    .cta-split-divider {
        width: 100%;
        height: 4px;
    }

    .cta-split-phone-icon {
        font-size: 2rem;
    }

    .cta-split-phone span {
        font-size: 2rem;
    }
}

/* Blog Section */
.lp-blog-section {
    background-color: #fff;
}

.lp-blog-card {
    border: 3px solid #1e9fa7;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(98, 190, 217, 0.1);
}

.lp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(98, 190, 217, 0.2);
}

.lp-blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #1e9fa7;
}

.lp-blog-card .card-body {
    padding: 1.5rem;
}

.lp-blog-card .card-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 60px;
}

.lp-blog-card .card-title a {
    transition: color 0.3s ease;
}

.lp-blog-card .card-title a:hover {
    color: #1e9fa7 !important;
}

.lp-blog-card .text-muted {
    color: #1e9fa7 !important;
    font-weight: 500;
}

.lp-blog-card .card-text {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.lp-blog-card .card-footer {
    background-color: #fff;
    border-top: 3px solid rgba(98, 190, 217, 0.3);
    padding: 1rem 1.5rem;
}

.lp-blog-card .btn-outline-primary {
    border-color: #1e9fa7;
    border-width: 2px;
    color: #1e9fa7;
    font-weight: 600;
    padding: 0.55rem 1rem;
    transition: all 0.3s ease;
}

.lp-blog-card .btn-outline-primary:hover {
    background-color: #1e9fa7;
    border-color: #1e9fa7;
    color: #fff;
}

.btn-lp-blue {
    background-color: #1e9fa7;
    border: 2px solid #1e9fa7;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    padding: 0.75rem 3rem;
    transition: all 0.3s ease;
}

.btn-lp-blue:hover {
    background-color: #fff;
    color: #1e9fa7;
    border-color: #1e9fa7;
}

@media (max-width: 768px) {
    .lp-blog-card .card-img-top {
        height: 200px;
    }

    .lp-blog-card .card-title {
        font-size: 1.1rem;
        min-height: auto;
    }

    .lp-blog-card .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .lp-blog-card .card-body {
        padding: 1rem;
    }

    .lp-blog-card .card-footer {
        padding: 0.75rem 1rem;
    }

    .btn-lp-blue {
        padding: 0.65rem 2rem;
        font-size: 0.95rem;
    }
}
/* Floating Illustrations – Animations */
@keyframes jiggle-blueberries {
    0%   { transform: rotate(-8deg) translateY(0px); }
    25%  { transform: rotate(-11deg) translateY(-6px); }
    50%  { transform: rotate(-5deg) translateY(-10px); }
    75%  { transform: rotate(-11deg) translateY(-5px); }
    100% { transform: rotate(-8deg) translateY(0px); }
}

@keyframes float-gentle {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Floating Illustrations */
.floating-illustration {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    border-radius: 8px;
    will-change: transform;
}

/* Blueberries - wide image section, bottom-left area */
.floating-blueberries {
    width: 240px;
    bottom: -30px;
    left: -20px;
    animation: jiggle-blueberries 2.5s ease-in-out infinite;
}

/* Blueberry x3 - bottom right of "ここが違うよ" title */
.floating-blueberry-x3 {
    width: 110px;
    bottom: -30px;
    right: -40px;
    animation: float-gentle 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Car - bottom right of "アクセス" title */
.floating-car {
    width: 110px;
    bottom: -30px;
    right: -40px;
    animation: float-gentle 4s ease-in-out infinite;
    animation-delay: 1.2s;
}

@media (max-width: 992px) {
    .floating-blueberries {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .floating-blueberries {
        width: 130px;
        bottom: -20px;
        left: -10px;
    }

    .floating-blueberry-x3 {
        width: 75px;
        bottom: -20px;
        right: -10px;
    }

    .floating-car {
        width: 75px;
        bottom: -20px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .floating-blueberries {
        width: 90px;
        bottom: -15px;
        left: 0;
    }

    .floating-blueberry-x3 {
        width: 60px;
        bottom: -15px;
        right: 0;
    }

    .floating-car {
        width: 60px;
        bottom: -15px;
        right: 0;
    }
}

/* =============================================
   Scroll Fade-Up Animations
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delays */
.stagger-2.fade-up { transition-delay: 0.15s; }
.stagger-3.fade-up { transition-delay: 0.3s; }
.directions-section .row > div:nth-child(2).fade-up { transition-delay: 0.15s; }
.lp-blog-section .row > .col:nth-child(2).fade-up { transition-delay: 0.15s; }
.lp-blog-section .row > .col:nth-child(3).fade-up { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .floating-illustration {
        animation: none !important;
    }
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.diagonal-background {
    position: relative;
    background: transparent;
    overflow: visible;
}

/* triangle overlay from bottom-left up to top-right */
.diagonal-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(98, 190, 217, 0.25);
    -webkit-clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
    clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
    pointer-events: none;
    z-index: -1;
    margin-bottom: 0px;
}