html, body {
    overflow-x: hidden;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.985);
    transition:
        opacity 0.76s ease var(--reveal-delay, 0s),
        transform 0.76s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

.reveal-on-scroll.reveal-from-left {
    transform: translate3d(-34px, 0, 0) scale(0.985);
}

.reveal-on-scroll.reveal-from-right {
    transform: translate3d(34px, 0, 0) scale(0.985);
}

.reveal-on-scroll.reveal-from-scale {
    transform: translate3d(0, 20px, 0) scale(0.94);
}

.reveal-on-scroll.reveal-visible {
    opacity: 1;
    transform: none;
}

.lower-page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(14.25rem, 25vw, 18.5rem);
    padding: clamp(6.55rem, 8.5vw, 7.7rem) 0 clamp(3.15rem, 5.2vw, 4.15rem);
    border-bottom: 1px solid rgba(0, 107, 143, 0.12);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 58%, rgba(230, 244, 248, 0.86) 100%),
        linear-gradient(135deg, #ffffff 0%, #E6F4F8 100%);
}

.lower-page-hero::before {
    content: '';
    position: absolute;
    right: clamp(-4rem, 2vw, 2rem);
    top: 48%;
    z-index: -1;
    width: min(52rem, 58vw);
    height: min(15rem, 22vw);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 980 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2342B9D3' stroke-opacity='0.24' stroke-width='1.55' stroke-linecap='round'%3E%3Cpath d='M-80 132 C92 42 244 36 418 118 S740 238 1060 94'/%3E%3Cpath d='M-80 148 C92 58 244 52 418 134 S740 254 1060 110'/%3E%3Cpath d='M-80 164 C92 74 244 68 418 150 S740 270 1060 126'/%3E%3Cpath d='M-80 180 C92 90 244 84 418 166 S740 286 1060 142'/%3E%3Cpath d='M-80 196 C92 106 244 100 418 182 S740 302 1060 158'/%3E%3Cpath d='M-80 212 C92 122 244 116 418 198 S740 318 1060 174'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-46%) rotate(1deg);
    --lower-page-line-opacity: 0.9;
    opacity: var(--lower-page-line-opacity);
    transform-origin: center;
    will-change: clip-path, opacity, transform;
    animation:
        lowerPageLineReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
        lowerPageLineDrift 9s ease-in-out 2.1s infinite;
    pointer-events: none;
}

.lower-page-hero::after {
    content: '';
    position: absolute;
    right: -7rem;
    bottom: -10rem;
    z-index: -2;
    width: clamp(20rem, 36vw, 34rem);
    height: clamp(20rem, 36vw, 34rem);
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(66, 185, 211, 0.18), rgba(66, 185, 211, 0) 68%);
    pointer-events: none;
}

.lower-page-hero__inner {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
}

.lower-page-breadcrumb-wrap {
    border-bottom: 1px solid rgba(0, 107, 143, 0.1);
    background: rgba(255, 255, 255, 0.92);
}

.lower-page-breadcrumb-wrap__inner {
    width: min(100% - 2rem, 1120px);
    margin: 0 auto;
    padding: 0.78rem 0;
}

@keyframes lowerPageLineReveal {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translate3d(-1.2rem, 0.55rem, 0) translateY(-46%) rotate(-1deg);
    }
    60% {
        opacity: var(--lower-page-line-opacity);
    }
    100% {
        opacity: var(--lower-page-line-opacity);
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0) translateY(-46%) rotate(1deg);
    }
}

@keyframes lowerPageLineDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) translateY(-46%) rotate(1deg);
    }
    50% {
        transform: translate3d(0.55rem, -0.35rem, 0) translateY(-46%) rotate(1.8deg);
    }
}

.lower-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lower-page-breadcrumb a {
    color: inherit;
    transition: color 0.2s ease;
}

.lower-page-breadcrumb a:hover {
    color: #006B8F;
}

.lower-page-breadcrumb span {
    color: #64748b;
}

.lower-page-heading {
    margin-top: clamp(1.85rem, 3.5vw, 3rem);
}

.lower-page-heading__en {
    color: #006B8F;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(2.65rem, 6.2vw, 4.45rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
}

.lower-page-heading__ja {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.45rem;
    color: #26333a;
    font-size: clamp(0.82rem, 1.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lower-page-heading__ja::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #42B9D3;
}

.lower-page-main {
    position: relative;
    isolation: isolate;
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(5rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 12% 20%, rgba(66, 185, 211, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
}

.about-page-main {
    padding-bottom: 0;
}

.about-detail-profile {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(100%, 22.5rem);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 9999px;
    box-shadow: 0 30px 70px rgba(23, 73, 125, 0.18);
}

.about-detail-profile::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 12px solid rgba(255, 255, 255, 0.5);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 107, 143, 0.12);
    pointer-events: none;
}

.about-detail-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.92) contrast(0.98);
}

.lower-page-intro {
    max-width: 780px;
    margin: 0 auto clamp(2.8rem, 4.8vw, 4rem);
    text-align: center;
}

.lower-page-intro p {
    color: #4d5962;
    font-size: clamp(0.9rem, 1.12vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 2;
}

.lower-section-heading {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.lower-section-heading__brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(4.3rem, 7vw, 6.25rem);
    margin-bottom: 0.15rem;
    pointer-events: none;
}

.lower-section-heading__brand::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 107, 143, 0.08);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(3.6rem, 8vw, 6.4rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.lower-section-heading__label {
    position: relative;
    z-index: 1;
    color: #006B8F;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.55;
}

.lower-section-heading--message .lower-section-heading__brand::before {
    content: 'MESSAGE';
}

.lower-section-heading--message {
    margin-bottom: clamp(2.6rem, 4.5vw, 4rem);
}

.lower-section-heading--sns {
    margin-bottom: 0.25rem;
}

.lower-section-heading--sns .lower-section-heading__brand::before {
    content: 'SNS';
    font-size: clamp(4.2rem, 8vw, 7rem);
}

.sns-section {
    position: relative;
    isolation: isolate;
}

.sns-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, rgba(73, 131, 187, 0.94) 0%, rgba(89, 146, 204, 0.9) 45%, rgba(102, 160, 216, 0.94) 100%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 30%);
}

.sns-section .lower-section-heading__brand::before {
    color: rgba(255, 255, 255, 0.12);
}

.sns-section .lower-section-heading__label {
    color: #fff;
}

.sns-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-width: min(100%, 15.5rem);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 9999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 253, 0.92));
    padding: 0.85rem 1.45rem;
    color: #006B8F;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 34px rgba(18, 67, 112, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sns-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(18, 67, 112, 0.22);
}

.sns-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #020817;
    color: #fff;
    flex: 0 0 auto;
}

.sns-button__icon--youtube {
    background: #ff0033;
}

.sns-button__icon svg {
    width: 1.12rem;
    height: 1.12rem;
}

.contact-line-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5.5rem, 8vw, 7.5rem) 0;
    background: linear-gradient(135deg, #fbfdfe 0%, #f5fbfd 46%, #fff 100%);
}

.contact-line-section::before,
.contact-line-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.contact-line-section::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(230, 244, 248, 0.18)),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80') center / cover no-repeat;
    opacity: 0.86;
    filter: saturate(0.96);
}

.contact-line-section::after {
    left: 50%;
    bottom: 0.9rem;
    width: 120vw;
    height: clamp(8rem, 16vw, 14rem);
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(-50%) rotate(-17deg);
    box-shadow: 0 -24px 80px rgba(0, 107, 143, 0.05);
}

.contact-line-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.contact-line-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(4.3rem, 7vw, 6.25rem);
    margin-bottom: 0.15rem;
}

.contact-line-heading::before {
    content: 'CONTACT';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 107, 143, 0.08);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(3.6rem, 8vw, 6.4rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

.contact-line-heading__label {
    position: relative;
    z-index: 1;
    color: #006B8F;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.55;
}

.contact-line-card {
    margin-top: clamp(2.2rem, 4vw, 3rem);
    padding: clamp(2rem, 4.5vw, 3rem);
    border: 1px solid rgba(0, 107, 143, 0.12);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(0, 107, 143, 0.1);
    backdrop-filter: blur(10px);
}

.contact-line-lead {
    color: #006B8F;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.7;
}

.contact-line-copy {
    margin-top: 1.3rem;
    color: #354044;
    font-size: clamp(0.92rem, 1.18vw, 1.02rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 2.05;
}

.contact-line-actions {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: min(100%, 18.2rem);
    padding: 1rem 1.55rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.5;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-line-button:hover {
    transform: translateY(-3px);
}

.contact-line-button--primary {
    background: linear-gradient(90deg, #006B8F, #42B9D3);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 107, 143, 0.22);
}

.contact-line-button--primary:hover {
    box-shadow: 0 20px 42px rgba(0, 107, 143, 0.28);
}

.contact-line-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.86);
    color: #006B8F;
    flex: 0 0 auto;
}

.faq-page,
.price-page {
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(5rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 12% 20%, rgba(66, 185, 211, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
}

.faq-page::before,
.price-page::before {
    content: none;
}

@media (max-width: 768px) {
    .about-detail-profile {
        width: min(100%, 15.5rem);
    }

    .about-page-main article .space-y-7 {
        line-height: 1.8;
    }

    .about-page-main article .space-y-7 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.85rem;
    }

    .lower-page-hero {
        min-height: 13.5rem;
        padding-top: 6rem;
        padding-bottom: 3.1rem;
    }

    .lower-page-hero::before {
        right: -15rem;
        width: 39rem;
        height: 13rem;
        --lower-page-line-opacity: 0.62;
    }

    .lower-page-heading {
        margin-top: 2.4rem;
    }

    .lower-page-heading__en {
        font-size: clamp(2.35rem, 12vw, 3.55rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-on-scroll.reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .lower-page-hero::before {
        animation: none;
        clip-path: inset(0 0 0 0);
        will-change: auto;
    }
}
