/* AI Omakase Plan page styles (follows the pricing page design) */

/* Base */
section.atc-page {
    background: #fff;
    padding: 0px 0 0;
    font-family: 'Hiragino Sans', sans-serif;
}

.atc-page * {
    box-sizing: border-box;
}

.atc-intro {
    position: relative;
    isolation: isolate;
    padding-bottom: 100px;
}

.atc-intro::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    background: linear-gradient(#fff, #ededf3);
}

.atc-intro::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 120px;
    height: 40px;
    transform: translateX(-50%);
    background: #ededf3;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

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

/* Header */
.atc-header {
    text-align: center;
    margin-bottom: 24px;
}

.atc-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container.container_topicpath_ai-test-center {
    display: none;
}

/* Shared section */
.atc-section {
    max-width: 960px;
    margin: 100px auto;
}

.section-title {
    font-size: 27px;
    font-weight: 700;
    color: #2a3037;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 32px;
}

/* Highlighter-style emphasis; keep the product name from breaking mid-word */
.atc-highlight {
    --atc-marker: rgba(11, 163, 96, 0.3);
    background: linear-gradient(transparent 60%, var(--atc-marker) 60%) no-repeat;
    background-size: 100% 100%;
    white-space: nowrap;
}

.atc-highlight--gray {
    --atc-marker: #d2d2db;
}

.fade-in-up .atc-highlight {
    background-size: 0% 100%;
    transition: background-size 0.8s ease-out 0.5s;
}

.fade-in-up.visible .atc-highlight {
    background-size: 100% 100%;
}

/* Challenges */
.atc-issues {
    display: flex;
    gap: 24px;
}

.atc-issue-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.atc-issue-img {
    display: block;
    margin: 0 auto 16px;
    max-width: 150px;
    height: auto;
    /* Monochrome: the accent colours competed with the green reserved for actions. */
    filter: grayscale(1);
}

.atc-issue-card p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Reasons to choose */
.atc-reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.atc-reason-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 10px;
    align-items: center;
    background: #fafafa;
    border-radius: 12px;
    padding: 24px;
}

.atc-reason-num {
    width: 40px;
    height: 40px;
    background: var(--main-color-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.atc-reason-card h3 {
    grid-column: 2;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Span the full width so the text isn't indented by the number column */
.atc-reason-card p {
    grid-column: 1 / -1;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Q&A */
.faq-section {
    max-width: 960px;
    margin: 0 auto;
}

.faq-list {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 24px 32px;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.faq-icon {
    flex-shrink: 0;
    width: 39px;
    padding: 4px 10px;
    background: var(--main-color-1);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 16px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out, margin-top 0.4s ease-out;
}

.faq-item.is-open .faq-answer {
    max-height: 1000px;
    margin-top: 16px;
    padding: 16px;
    opacity: 1;
}

.faq-answer p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 1.5em;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.atc-br-sp {
    display: none;
}

/* ==========================================
   Responsive
   ========================================== */

/* Tablet (<= 959px) */
@media screen and (max-width: 959px) {
    .atc-page {
        padding: 75px 0;
    }

    .atc-br-sp {
        display: block;
    }

    /* Q&A */
    .faq-list {
        padding: 24px 16px;
    }

    .faq-question {
        gap: 8px;
    }

    .faq-icon {
        font-size: 16px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* Smartphone (<= 767px) */
@media screen and (max-width: 767px) {
    .section-title {
        font-size: 19px;
    }

    .atc-issues {
        flex-direction: column;
        gap: 12px;
    }

    .atc-reasons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .atc-reason-card {
        padding: 20px 16px;
    }

    .atc-reason-card h3 {
        font-size: 16px;
    }
}


/* ============================================================
   Enterprise restyle, matching the top, pricing and features pages.
   This file is only loaded when %{CCD}/eq/ai-test-center, so no scoping
   is needed. Kept at the end of the file to override the rules above.
   Green drops from base colour to accent and is kept for the CTA only.
   ============================================================ */

.atc-page h1,
.atc-page h2,
.atc-page h3 {
    color: #2a3037;
}

/* Cards: the blue-grey surface and 8px radius used across the site,
   replacing the warm #FAFAFA / #eee and 12px corners. */

.atc-reason-card,
.faq-list {
    background: #f8f8fc;
    border-radius: 8px;
}

/* Numbered badges. Green now means "act", so decorative numbers go
   near-black like the top page section labels. */
.atc-reason-num {
    background: #2a3037;
}

/* Q&A. The Q badge was green; the rest matches the pricing page Q&A. */
.faq-icon {
    background: #2a3037;
    /* Q has a descender and sits low, so the padding is flipped to offset it */
    padding: 3px 10px 5px;
}

.faq-question h3 {
    color: #2a3037;
}

.faq-answer {
    border-radius: 3px;
}

/* Primary CTA, matching the top page CTA band button
   (a.btn-common.btn-common202512): flat green, 3px radius, 17px/600 and a white
   arrow circle. The markup here is a plain <a class="btn"> with no .allow-box
   element, so the circle is drawn with ::after. */
.atc-page a.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 57px;
    padding: 15px 65px 15px 40px;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
}

.atc-page a.btn::after {
    content: "\f061";
    /* font shorthand resets font-size, so the size is set after it */
    font: var(--fa-font-solid);
    font-size: 17px;
    color: var(--main-color-d1);
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .3s;
}

@media (any-hover:hover) {
    .atc-page a.btn:hover::after {
        transform: translateY(-50%) translateX(4px);
    }
}


/* 100vw includes the classic scrollbar, so the full-bleed band below would overflow
   by its width. Clip rather than hide: clip does not make these a scroll container,
   so sticky and fixed descendants still behave. Scoped to this page. */
html:has(body.ai-test-center__body),
body.ai-test-center__body {
    overflow-x: clip;
}

.atc-hero-visual {
    box-sizing: border-box;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-top: 24px;
    padding-bottom: 16px;
}

.atc-hero-img {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
    animation: atc-hero-in 0.6s ease-out both;
}

@keyframes atc-hero-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .atc-hero-img {
        animation: none;
    }

    .fade-in-up .atc-highlight {
        background-size: 100% 100%;
        transition: none;
    }
}

/* The flow is one illustration rather than per-phase panels. */
.atc-flow-img {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    margin: 0 auto;
}

@media screen and (max-width: 767px) {
    .atc-hero-img {
        max-width: 100%;
    }
}
