/* AvaTwin Chatbot - Custom CSS */
:root {
    --primary-color: #003CFF;
    --primary-dark: #0A1F8C;
    --accent-blue: #37B9FF;
    --dark-bg: #050505;
    --dark-card: #111827;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* 640px未満でフォントサイズを少し小さく */
@media (max-width: 639px) {
    html {
        font-size: 14px;
    }
}

/* Typography */
h1, h2, h3 {
    line-height: 1.3 !important;
}

h4, h5, h6 {
    line-height: 1.4 !important;
}

p {
    line-height: 1.7 !important;
}

li {
    line-height: 1.6 !important;
}

/* CTA button shine effect */
.header-cta-btn,
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.header-cta-btn:hover {
    background-color: #001F8C !important;
}

@media (max-width: 767px) {
    .header-logo {
        max-height: 22px !important;
    }
    .header-cta-btn {
        padding: 8px 18px !important;
    }
}

.header-cta-btn::after,
.cta-btn::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 30px;
    height: 30px;
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 90%);
    animation: shiny 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shiny {
    0% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(25deg);
        opacity: 1;
    }
    100% {
        transform: scale(50) rotate(25deg);
        opacity: 0;
    }
}

/* FAQ toggle animation */
.faq-icon-rotated {
    transform: rotate(180deg);
}

/* Hero
   ──────────────────────────────────────────────────────────────
   Figma基準値（1600px幅）を100%として、画面幅に応じて連続スケール。
   各値を clamp() で直接補間（var()内ネストclampはブラウザ非対応のため）。
   ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    aspect-ratio: 1600 / 634;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

/* Background slider (horizontal flex slide) */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.8s ease-in-out;
}

.hero-bg-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* Title slider (sync with bg via JS) */
.hero-title {
    position: relative;
    overflow: hidden;
}

.hero-title-track {
    display: flex;
    flex-direction: row;
    width: 300%;
    transition: transform 0.8s ease-in-out;
    transform: translateX(0%);
}

.hero-title-slide {
    flex: 0 0 33.3333%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Hero dots indicator (below image) */
.hero-dots {
    padding: 16px 0;
    background-color: #ffffff;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-dot.is-active {
    background-color: #050505;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .hero-dots {
        padding: 12px 0;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

.hero-content {
    padding-top: clamp(36px, 5vw, 112px);
}

.hero-text-block {
    margin-top: clamp(-44px, -2vw, -14px);
}

.hero-lockup {
    margin-bottom: clamp(-44px, -2vw, -14px);
}

.hero-lockup img {
    width: clamp(396px, 55vw, 1200px) !important;
    max-width: 95%;
    height: auto;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    max-width: 100%;
    margin-left: clamp(-10px, -0.4vw, -3px);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: clamp(25px, 3.5vw, 80px);
    line-height: 1.25;
    letter-spacing: clamp(0.9px, 0.13vw, 3px);
}

.hero-title-line {
    display: inline-block;
    background-color: #000000;
    padding: clamp(11px, 1.5vw, 34px) clamp(25px, 3.5vw, 80px);
    border-radius: clamp(4.5px, 0.62vw, 14px);
    width: fit-content;
    max-width: 100%;
}

.hero-title-line + .hero-title-line {
    margin-top: clamp(-40px, -1.8vw, -13px);
}

.hero-title-small {
    font-size: 0.85em;
}

.hero-cta {
    width: clamp(141px, 19.5vw, 440px);
    max-width: 100%;
    height: clamp(31px, 4.3vw, 96px);
    border-radius: clamp(7px, 1vw, 22px);
    gap: clamp(7px, 1vw, 22px);
    font-size: clamp(11px, 1vw, 22px);
    /* ロックアップ画像の中央よりやや左に揃える */
    margin-left: calc((clamp(396px, 55vw, 1200px) - clamp(141px, 19.5vw, 440px)) * 0.42);
}

/* Tablet (768-1023px): fixed height for content fit */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
        max-height: 70vh;
    }
    .hero-bg-img {
        position: absolute;
        inset: 0;
    }
    .hero-content {
        padding-top: 6%;
    }
    .hero-text-block {
        margin-top: 4%;
    }
    .hero-lockup {
        margin-bottom: 3%;
    }
    .hero-lockup img {
        width: clamp(280px, 60vw, 480px) !important;
    }
}

/* Mobile (〜767px): use a taller aspect so content fits inside the hero */
@media (max-width: 767px) {
    .hero {
        aspect-ratio: 3 / 2;
        height: auto;
        min-height: 0;
    }
    .hero-bg-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
    }
    .hero-content {
        padding-top: 10%;
        align-items: stretch;
    }
    .hero-title {
        align-self: flex-start;
    }
    .hero-text-block {
        margin-top: -4%;
        padding: 0 16px;
        text-align: center !important;
    }
    .hero-title {
        font-size: clamp(20px, 6vw, 32px);
        letter-spacing: 0.5px;
    }
    .hero-title-line {
        padding: 10px 18px;
        border-radius: 8px;
    }
    .hero-title-line + .hero-title-line {
        margin-top: -12px;
    }
    .hero-lockup {
        margin: 0 0 -12px;
        display: flex;
        justify-content: center;
    }
    .hero-lockup img {
        width: 80vw !important;
        max-width: 380px;
    }
    .hero-cta {
        margin-left: auto;
        margin-right: auto;
        width: clamp(150px, 42vw, 200px);
        height: 44px;
        font-size: 13px;
        border-radius: 12px;
        display: flex;
    }
}


/* About section: white background with centered black card */
.about-card {
    background-color: #050505;
    border-radius: clamp(16px, 1.6vw, 28px);
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 72px);
    max-width: 1100px;
}

.about-logo {
    width: clamp(220px, 28vw, 440px);
    max-width: 85%;
    margin-bottom: clamp(16px, 1.8vw, 32px);
}

.about-text {
    font-weight: 400;
    font-size: clamp(16px, 2.2vw, 28px);
    line-height: 1.6;
    margin-bottom: clamp(20px, 2.4vw, 40px);
}

.about-workflow {
    padding: 0;
}

@media (max-width: 767px) {
    .about-card {
        padding: 28px 20px;
    }
    .about-text {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 20px;
    }
    .about-workflow {
        padding: 0;
    }
}

/* CTA Banner section (月々14,500円〜) */
.cta-banner-tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 9999px;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 400;
    color: #CEFAFE;
    background-color: rgba(255, 255, 255, 0.15);
}

.cta-banner-title {
    font-size: clamp(24px, 3vw, 48px);
    letter-spacing: 0.5px;
}

.cta-banner-desc {
    font-size: clamp(13px, 1.1vw, 18px);
    font-weight: 400;
    opacity: 0.9;
}

.cta-banner-actions {
    margin-top: clamp(20px, 2.5vw, 40px);
}

.cta-banner-logo {
    width: clamp(180px, 22vw, 360px);
    height: auto;
}

.cta-banner-btn {
    padding: clamp(12px, 1.2vw, 20px) clamp(28px, 3vw, 48px);
    font-size: clamp(14px, 1vw, 18px);
    color: #ffffff;
    background-color: #26B3D1;
    transition: background-color 0.2s ease;
}

.cta-banner-btn:hover {
    background-color: #0C7A8E;
}

@media (max-width: 767px) {
    .cta-banner-tag {
        padding: 6px 14px;
        font-size: 12px;
    }
    .cta-banner-title {
        font-size: 22px;
    }
    .cta-banner-desc {
        font-size: 13px;
    }
    .cta-banner-logo {
        width: 220px;
    }
    .cta-banner-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}

/* Client logo marquee */
.logo-marquee {
    overflow: hidden;
    width: 100%;
}

.client-logos-note {
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .client-logos-note {
        font-size: 12px;
    }
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.logo-marquee-track img {
    height: 26px;
    width: auto;
    flex-shrink: 0;
    margin-right: 20px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-marquee-track img {
        height: 40px;
        margin-right: 40px;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Security section subtitle */
.security-subtitle {
    font-size: 28px;
}

@media (max-width: 767px) {
    .security-subtitle {
        font-size: 20px;
    }
}

/* Voice card audio box - match video card height */
@media (min-width: 768px) {
    .voice-audio-box {
        aspect-ratio: 16 / 9 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }
}

/* Feature section image size and box */
.feature-image-box {
    min-height: 200px;
}

@media (min-width: 768px) {
    .feature-image-box {
        min-height: 340px;
    }
}

.feature-image {
    max-width: 220px;
}

.feature-image-sm {
    max-width: 130px !important;
}

@media (min-width: 768px) {
    .feature-image-sm {
        max-width: 180px !important;
    }
}

.feature-image-xs {
    max-width: 100px !important;
}

@media (min-width: 768px) {
    .feature-image-xs {
        max-width: 140px !important;
    }
}

@media (min-width: 768px) {
    .feature-image {
        max-width: 300px;
    }
}

/* Use case Card 3 image zoom (cut left woman face) */
.usecase-img-wrapper {
    overflow: hidden;
    height: 16rem; /* h-64 */
}

.usecase-img-zoom {
    transform: scale(1.5);
    transform-origin: 55% 75%;
}

/* Use case section text styles */
.usecase-container {
    max-width: clamp(1152px, 80vw, 1320px);
}

@media (max-width: 1151px) {
    .usecase-container {
        max-width: 100%;
    }
}

.usecase-lead {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 400;
}

.usecase-item-desc {
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 300;
}

/* Contact form (native HTML, submits to Google Forms) */
.contact-form {
    background-color: #F0F0F0;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .contact-form {
        padding: 48px 56px;
    }
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field label,
.contact-field .contact-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contact-required {
    color: #E33;
    margin-left: 2px;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #ffffff;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #003CFF;
    box-shadow: 0 0 0 3px rgba(0, 60, 255, 0.15);
}

.contact-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.contact-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1f2937;
    font-weight: 400;
    cursor: pointer;
}

.contact-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #003CFF;
    flex-shrink: 0;
}

.contact-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #1f2937;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.contact-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #003CFF;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-link {
    color: #003CFF;
    text-decoration: underline;
}

.contact-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background-color: #003CFF;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-submit:hover {
    background-color: #001F8C;
}

.contact-success {
    background-color: #E6F4EA;
    border: 1px solid #1E8E3E;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #1E5631;
    font-size: 15px;
    font-weight: 500;
}

/* FAQ items */
#faq .rounded-xl {
    transition: all 0.2s ease;
}

#faq .rounded-xl:hover {
    background-color: #E7E7E7 !important;
}

#faq .hidden {
    display: none;
}

/* Brightness/invert utility for dark sections */
.brightness-0 {
    filter: brightness(0);
}

.invert {
    filter: invert(1);
}

.brightness-0.invert {
    filter: brightness(0) invert(1);
}

/* Final CTA section content sizing */
.final-cta-title {
    font-size: clamp(20px, 3.5vw, 40px);
}

.final-cta-actions {
    max-width: min(95%, 900px);
    margin-left: -110px;
}

.final-cta-lockup {
    width: 100%;
    height: auto;
}

.final-cta-btn {
    padding: 20px 56px;
    font-size: 16px;
    margin-top: -45px;
}

@media (min-width: 768px) {
    .final-cta-btn {
        padding: 28px 80px;
        font-size: 20px;
    }
}

/* Tablet (768-1023px): scale down content */
@media (min-width: 768px) and (max-width: 1023px) {
    .final-cta-title {
        font-size: 26px;
    }
    .final-cta-actions {
        max-width: 560px;
        margin-left: -70px;
    }
    .final-cta-btn {
        padding: 16px 48px;
        font-size: 15px;
        margin-top: -28px;
    }
}

/* Mobile (〜767px): center align, hide bubbles */
@media (max-width: 767px) {
    .final-cta-title {
        font-size: 20px;
        text-align: center;
    }
    .final-cta-actions {
        max-width: 100%;
        margin-left: 0;
        align-items: center;
    }
    .final-cta-lockup {
        margin-left: 0 !important;
    }
    .final-cta-btn {
        padding: 12px 36px;
        font-size: 13px;
        margin-top: -16px;
    }
    /* Center the entire content block */
    section.relative.overflow-hidden > .relative {
        text-align: center;
    }
    .final-cta-bubbles-wrapper {
        display: none !important;
    }
}

/* Final CTA - chat bubbles decoration (right side image) */
.final-cta-bubbles {
    max-width: 28%;
    opacity: 0.95;
    margin-right: 12%;
}

@media (max-width: 767px) {
    .final-cta-bubbles {
        max-width: 35%;
        opacity: 0.4;
        margin-right: 3%;
    }
}


/* 埋め込みチャットボットの位置調整（下端の浮きを詰める） */
#gc-chat-container {
    bottom: 24px !important;
}
