/* 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;
}

/* ==================== 料金プラン一覧（比較テーブル） ==================== */
.plan-lead {
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.02em;
}

.plan-tblshell {
    background-color: #ffffff;
    border-radius: clamp(14px, 1.8vw, 24px);
    /* 表を枠いっぱいに広げるため、角丸ではみ出す分を切り抜く */
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(5, 5, 5, 0.04), 0 10px 30px rgba(5, 5, 5, 0.06);
}

.plan-scroll-area {
    position: relative;
}

.plan-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.plan-scroll::-webkit-scrollbar {
    height: 5px;
}

.plan-scroll::-webkit-scrollbar-thumb {
    background-color: #cfd4dc;
    border-radius: 99px;
}

.plan-scroll::-webkit-scrollbar-track {
    background-color: transparent;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.plan-table th,
.plan-table td {
    padding: clamp(15px, 2vw, 26px) clamp(8px, 1.3vw, 18px);
    text-align: center;
}

.plan-table th:last-child,
.plan-table td:last-child {
    padding-right: clamp(16px, 2vw, 30px);
}

.plan-lbl {
    text-align: left !important;
    font-size: clamp(10.5px, 1.1vw, 12.5px);
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: clamp(126px, 14vw, 180px);
    line-height: 1.6 !important;
    padding-left: clamp(16px, 2vw, 30px) !important;
}

.plan-table thead th {
    vertical-align: bottom;
    background-color: #EAF1FF;
    border-bottom: 1px solid #d3e0fb;
    padding-bottom: clamp(15px, 1.9vw, 21px);
    padding-top: clamp(36px, 3.6vw, 48px);
}

.plan-table thead th.plan-lbl {
    color: #8a94a6;
}

.plan-table tbody td {
    border-bottom: 1px solid #e2e5ea;
}

.plan-table tbody tr:last-child td {
    border-bottom: none;
}

/* おすすめ列は塗りつぶさず、左右の青い縦線と薄いグラデで示す */
.plan-col-f {
    background: linear-gradient(180deg, rgba(0, 60, 255, 0.055), rgba(0, 60, 255, 0.012));
    box-shadow: inset 2px 0 0 #003CFF, inset -2px 0 0 #003CFF;
    position: relative;
}

.plan-table thead th.plan-col-f {
    background: linear-gradient(180deg, #003CFF, #0A1F8C);
    border-bottom: none;
}

.plan-table thead th.plan-col-f .plan-tname {
    color: #ffffff;
}

.plan-tname {
    font-size: clamp(15px, 1.8vw, 21px);
    font-weight: 700;
    line-height: 1.4 !important;
}

.plan-col-f .plan-tname {
    color: #003CFF;
}

.plan-star {
    position: absolute;
    top: clamp(9px, 1.1vw, 13px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
    background-color: #003CFF;
    padding: 4px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-tnum {
    font-size: clamp(23px, 2.9vw, 35px);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
    line-height: 1 !important;
}

.plan-tnum small {
    font-size: clamp(10px, 1.05vw, 12.5px);
    font-weight: 700;
    color: #6b7280;
    margin-left: 3px;
}

.plan-col-f .plan-tnum {
    color: #003CFF;
}

.plan-yes {
    display: inline-grid;
    place-items: center;
    width: clamp(26px, 2.4vw, 30px);
    height: clamp(26px, 2.4vw, 30px);
    border-radius: 50%;
    background-color: #003CFF;
    color: #ffffff;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 700;
}

.plan-no {
    color: #98a0ab;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1 !important;
}

/* ==================== 料金プラン（スマホ用 2列グリッド） ====================
   表は min-width:700px が必要で375px幅に収まらないため、
   900px未満では表を隠してカード2列に切り替える */
.plan-sp {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.plan-sp-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(5, 5, 5, 0.04), 0 6px 18px rgba(5, 5, 5, 0.06);
}

.plan-sp-head {
    background-color: #EAF1FF;
    padding: 24px 10px 11px;
    text-align: center;
    position: relative;
    min-height: 70px;
    display: grid;
    align-content: center;
}

.plan-sp-card--f .plan-sp-head {
    background: linear-gradient(180deg, #003CFF, #0A1F8C);
}

.plan-sp-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35 !important;
}

.plan-sp-card--f .plan-sp-name {
    color: #ffffff;
}

.plan-sp-star {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #003CFF;
    background-color: #ffffff;
    padding: 2.5px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-sp-body {
    padding: 2px 10px 10px;
}

/* 項目名を右揃え・数値を左揃えの固定幅にして、カード間で縦のラインを通す */
.plan-sp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f3f6;
}

.plan-sp-row:last-child {
    border-bottom: none;
}

.plan-sp-lbl {
    width: 46px;
    flex-shrink: 0;
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
}

.plan-sp-val,
.plan-sp-mark {
    width: 52px;
    flex-shrink: 0;
    text-align: left;
    line-height: 1 !important;
}

.plan-sp-val {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-sp-val small {
    font-size: 9.5px;
    font-weight: 700;
    color: #6b7280;
    margin-left: 1px;
}

.plan-sp-card--f .plan-sp-val {
    color: #003CFF;
}

.plan-sp .plan-yes {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.plan-sp .plan-no {
    font-size: 19px;
}

@media (max-width: 767px) {
    .plan-tblshell {
        display: none;
    }
    .plan-sp {
        display: grid;
    }
}

/* ==================== 想定問答オプション ==================== */
.option-block {
    margin-top: 48px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 32px 22px;
}

@media (min-width: 768px) {
    .option-block {
        margin-top: 64px;
        padding: 48px 52px;
    }
}

.option-head {
    text-align: center;
    margin-bottom: 30px;
}

.option-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    background-color: #003CFF;
    color: #ffffff;
    margin-bottom: 14px;
}

.option-title {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.option-sub {
    display: inline;
    white-space: nowrap;
}

.option-desc {
    font-size: clamp(12.5px, 1.15vw, 15px);
    font-weight: 400;
    color: #4b5563;
    line-height: 1.8 !important;
    margin-top: 14px;
}

/* 3指標：区切り罫線でつなげて一体の表として見せる */
.option-stats {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

@media (min-width: 768px) {
    .option-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.option-stat {
    text-align: center;
    padding: 24px 12px;
    border-bottom: 1px solid #eceff3;
}

.option-stat:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .option-stat {
        border-bottom: none;
        border-right: 1px solid #eceff3;
    }
    .option-stat:last-child {
        border-right: none;
    }
}

.option-stat-value {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    color: #003CFF;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    white-space: nowrap;
}

.option-stat-unit {
    font-size: 0.5em;
    font-weight: 500;
    margin-left: 1px;
}

.option-stat-x {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.5;
    margin: 0 2px;
}

.option-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.option-notes {
    list-style: none;
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .option-notes {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 32px;
    }
}

.option-notes li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 400;
    color: #333333;
    line-height: 1.65 !important;
}

/* チェックマーク */
/* 提案資料と同じ「丸チェック」「稲妻」アイコンを行頭に置く */
.option-note-icon {
    flex-shrink: 0;
    width: 19px;
    font-size: 19px;
    color: #003CFF;
    text-align: center;
    /* アイコンの光学中心をテキスト1行目の中心に合わせる */
    position: relative;
    top: 1.5px;
}

.option-caution {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6 !important;
}

/* ==================== トライアル特典 + ASK（統合ブロック） ==================== */
.ask-block {
    background-color: #050505;
    border-radius: clamp(14px, 1.8vw, 24px);
    padding: clamp(30px, 3.6vw, 52px) clamp(24px, 3vw, 44px);
    position: relative;
    overflow: hidden;
}

.ask-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(560px 300px at 12% 110%, rgba(0, 60, 255, 0.34), transparent 60%);
}

.ask-block > * {
    position: relative;
    z-index: 1;
}



/* オプションボックス内に置くため、白背景向けの配色にする。
   PPTX提案書のレイアウトに合わせ、左に丸アイコン・右にテキストを並べる */
.trial-bonus {
    margin-top: clamp(22px, 2.6vw, 32px);
    border: 1px solid #cfdefb;
    background-color: #F2F6FF;
    border-radius: 14px;
    padding: clamp(18px, 2.2vw, 26px);
    display: flex;
    align-items: center;
    gap: clamp(13px, 1.5vw, 18px);
}

.trial-bonus-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(38px, 3.6vw, 46px);
    height: clamp(38px, 3.6vw, 46px);
    border-radius: 50%;
    background-color: #003CFF;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1 !important;
}

.trial-bonus-body {
    flex: 1;
    min-width: 0;
}

.trial-bonus-head {
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #003CFF;
    margin-bottom: 6px;
}

.trial-bonus-text {
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 400;
    color: #374151;
    line-height: 1.95 !important;
}

.trial-bonus-text strong {
    font-weight: 700;
    color: #003CFF;
}

.ask-side {
    text-align: center;
    display: grid;
    align-content: center;
}

.ask-value {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1 !important;
    letter-spacing: -0.02em;
}

.ask-tilde {
    font-size: 0.7em;
    opacity: 0.8;
}

.ask-text {
    font-size: clamp(12px, 1.25vw, 14.5px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.95 !important;
    margin-top: 14px;
}

.ask-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: center;
    margin-top: clamp(18px, 2.2vw, 26px);
    padding: clamp(13px, 1.5vw, 17px) clamp(26px, 3vw, 40px);
    border-radius: 9999px;
    font-size: clamp(13px, 1.35vw, 15px);
    font-weight: 700;
    color: #ffffff;
    background-color: #003CFF;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ask-cta:hover {
    background-color: #0030CC;
    transform: translateY(-2px);
}
