/* Custom CSS for Ludoa theme */

/* Service archive: uniform image height across all cards */
.card-list .card-item img {
    width: 100%;
    height: 190px;
    max-height: none;
    object-fit: cover;
}

.p-top-customer__image {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* CASE STUDY: a lone case shouldn't stretch — keep it to one 3-col card width */
.p-top-customer__wrap .p-top-customer__block:only-child {
    width: calc((100% - 60px) / 3); /* 60px = 2 column-gaps */
    max-width: 380px;
    align-self: flex-start;
}

.p-top-customer__wrap .p-top-customer__block:only-child .p-top-customer__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

@media screen and (max-width: 900px) {
    .p-top-customer__wrap .p-top-customer__block:only-child {
        width: calc((100% - 30px) / 2);
        max-width: none;
    }
}

@media screen and (max-width: 575.98px) {
    .p-top-customer__wrap .p-top-customer__block:only-child {
        width: 100%;
    }
}

/* Breadcrumb: show full text with horizontal scroll, no ellipsis */
.breadcrumb {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    display: block !important;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb.multiline-ellipsis {
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: initial !important;
    display: block !important;
    overflow: visible !important;
}

.breadcrumb ol {
    white-space: nowrap !important;
    overflow-x: auto !important;
    /* display: inline-flex !important; */
    margin: 0 !important;
    padding: 0 !important;
}

.breadcrumb li {
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Scrollbar styling for breadcrumb */
.breadcrumb::-webkit-scrollbar,
.breadcrumb ol::-webkit-scrollbar {
    height: 4px;
}

.breadcrumb::-webkit-scrollbar-track,
.breadcrumb ol::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb::-webkit-scrollbar-thumb,
.breadcrumb ol::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.breadcrumb::-webkit-scrollbar-thumb:hover,
.breadcrumb ol::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.p-page-fv.bg-bd:before {
    background-image: url('../images/pages/bg-bd.png') !important;
}

.p-page-fv.bg-wt:before {
    background-image: url('../images/pages/bg-wt.png') !important;
}


.board-img {
    height: auto !important;
}

img {
    object-fit: cover !important;
}

.contact-form button {
    font-size: 1.3rem!important;
}

.p-top-customer {
    background-image: url('../images/top/bg-customer.png') !important;
}

/* =====================
   Homepage loader
   ===================== */
#ludoa-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    pointer-events: all;
    transition: opacity 0.55s ease;
}

#ludoa-loader.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.ludoa-loader__logo-wrap {
    position: relative;
    overflow: hidden;
    width: 200px;
    max-width: 55vw;
}

.ludoa-loader__logo-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    animation: loaderShine 0.65s ease 1.05s forwards;
}

.ludoa-loader__logo {
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateY(14px) scale(0.92);
    filter: blur(8px);
    animation: loaderLogoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.ludoa-loader__bar-wrap {
    width: 140px;
    max-width: 40vw;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.ludoa-loader__bar {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    animation: loaderBarFill 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

@keyframes loaderLogoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes loaderShine {
    from { left: -60%; }
    to   { left: 160%; }
}

@keyframes loaderBarFill {
    to { width: 100%; }
}

/* Mobile nav toggle icon — larger tap area */
.nav__item[data-toggle]::after {
    display: none !important;
}

.nav__toggle-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.nav__toggle-icon::after {
    content: "+";
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 300;
    color: #fff;
}

.nav__item.open .nav__toggle-icon::after {
    content: "−";
}

.nav__item[data-toggle] .nav__link {
    width: calc(100% - 54px) !important;
}

/* Fix: slider toggle button icon vertical centering */
.fv .fv__controls {
    width: 40% !important;
}

.fv .fv__controls #sliderToggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* Fix: FV progress gauge sometimes invisible — overlay had no right boundary so width:100% on track collapsed */
.fv .fv__overlay {
    right: 100px;
    min-width: 180px;
}

.fv .fv__controls .fv__progress {
    height: 4px !important;
    background-color: rgba(255,255,255,0.3) !important;
    min-width: 100px;
}

.fv .fv__controls .fv__progress .fv__progress-bar {
    background-color: #fff !important;
}

@media screen and (max-width: 700px) {
    .fv .fv__overlay {
        right: 40px;
        min-width: 120px;
    }
    /* SP: progress bar full width (not the narrow PC layout) */
    .fv .fv__controls {
        width: 100% !important;
    }
    .fv .fv__controls .fv__progress {
        flex: 1 1 auto;
    }
}

/* ============================================================
   取引実績 / ACHIEVEMENT — 2-row logo marquee
   ============================================================ */
.p-top-jisseki {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.p-top-jisseki .c-section-title {
    margin-bottom: 20px;
}

.p-top-jisseki__lead {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 36px;
}

@media screen and (max-width: 700px) {
    .p-top-jisseki__lead {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 28px;
        padding: 0 20px;
    }
}

.p-top-jisseki__marquee {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* Each row is a viewport that clips the moving track */
.p-top-jisseki__row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

/* Track holds the logos twice; translateX -50% loops seamlessly */
.p-top-jisseki__track {
    display: flex;
    width: max-content;
    gap: 36px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.p-top-jisseki__row--ltr .p-top-jisseki__track {
    animation: jisseki-scroll-ltr 40s linear infinite;
}

.p-top-jisseki__row--rtl .p-top-jisseki__track {
    animation: jisseki-scroll-rtl 40s linear infinite;
}

.p-top-jisseki__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-top-jisseki__logo {
    height: 50px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

/* ana logo renders large (no built-in padding) — shrink it */
.p-top-jisseki__logo--ana {
    height: 30px;
}

@keyframes jisseki-scroll-ltr {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes jisseki-scroll-rtl {
    from { transform: translate3d(-50%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .p-top-jisseki__track {
        animation: none !important;
    }
}

/* ---- SP ---- */
@media screen and (max-width: 700px) {
    .p-top-jisseki {
        padding: 50px 0;
    }

    .p-top-jisseki .c-section-title {
        margin-bottom: 30px;
    }

    .p-top-jisseki__marquee {
        gap: 16px;
    }

    .p-top-jisseki__track {
        gap: 28px;
    }

    .p-top-jisseki__logo {
        height: 28px;
    }

    .p-top-jisseki__logo--ana {
        height: 21px;
    }

    .p-top-jisseki__row--ltr .p-top-jisseki__track,
    .p-top-jisseki__row--rtl .p-top-jisseki__track {
        animation-duration: 28s;
    }
}

/* ============================================================
   支援領域 / SERVICE — 3-column grid on TOP (dynamic from DB)
   ============================================================ */
.p-top-service--grid {
    position: relative;
    background: #212229;
    padding: min(8vw, 100px) 0;
    overflow: hidden;
}

/* Blurred background image */
.p-top-service--grid::before {
    content: '';
    position: absolute;
    inset: -30px; /* bleed so blurred edges never show gaps */
    background: url(../images/top/top-service-left.png) center / cover no-repeat;
    filter: blur(16px);
    transform: scale(1.08) translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    z-index: 0;
}

/* Dark overlay keeps text readable over the image */
.p-top-service--grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 19, 25, 0.8);
    z-index: 0;
}

.p-top-service--grid .inner {
    position: relative;
    z-index: 1;
}

.p-top-service--grid .c-section-title {
    margin-bottom: min(4vw, 48px);
}

.p-top-service__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(16px, 2.5vw, 36px);
    row-gap: clamp(10px, 1.4vw, 20px);
}

/* Reset stacked-list margin from base .p-top-service__item for grid layout */
.p-top-service__grid .p-top-service__item {
    margin-top: 0;
}

/* Shrink text 2px from base caps (title 27→25, subTitle 14→12); floor keeps it readable on SP */
.p-top-service__grid .p-top-service__title {
    font-size: clamp(15px, 2.4vw, 25px);
}

.p-top-service__grid .p-top-service__subTitle {
    font-size: clamp(10px, 1.1vw, 12px);
}

/* Arrow, nudged right */
.p-top-service__grid .p-top-service__item:before {
    width: 28px;
    height: 28px;
    right: 0;
}

@media screen and (max-width: 900px) {
    .p-top-service__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .p-top-service--grid {
        padding: 56px 0;
    }
    .p-top-service__grid {
        grid-template-columns: 1fr;
    }
    .p-top-service__grid .p-top-service__item {
        margin-top: 6vw;
    }
    .p-top-service__grid .p-top-service__title {
        font-size: 19px;
    }
    .p-top-service__grid .p-top-service__subTitle {
        font-size: 13px;
    }
}

/* COMPANY INFORMATION LIST — left-align cards when they wrap */
.card-list {
    justify-content: flex-start;
}

/* SERVICE — list-page button spacing */
.p-top-service__btn {
    margin-top: min(7vw, 80px);
    text-align: center;
}
@media screen and (max-width: 768px) {
    .p-top-service__btn {
        margin-top: 64px;
    }
}

/* FEATURE — keep all 5 items on one row (desktop) */
@media (min-width: 769px) {
    .p-top-feature__wrap {
        flex-wrap: nowrap;
    }
    .p-top-feature__blcok {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* TOP COMPANY — items below the title (not side-by-side) */
.p-top-company__wrap {
    flex-direction: column;
    align-items: stretch;
}
.p-top-company__right {
    margin-left: 0;
    margin-top: 30px;
    justify-content: flex-start;
}
/* 3 columns per row on desktop (mirrors page-company card-list) */
@media (min-width: 769px) {
    .p-top-company__block {
        width: calc(33.333% - 20px);
    }
}
@media (max-width: 768px) {
    .p-top-company__block {
        width: 100%;
    }
}
/* Equal-height card images (mirrors page-company card-list) */
.p-top-company__block .p-top-company__img {
    height: 190px;
}
.p-top-company__block img {
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   事業内容 / BUSINESS — card grid on TOP (mirrors page-product.php)
   ============================================================ */
.p-top-business {
    background: #0c0c12;
    padding: min(5.5vw, 72px) 0;
}

.p-top-business .c-section-title {
    margin-bottom: min(2.5vw, 28px);
}

/* ---- Split layout: left visual + right hover menu ---- */
.p-top-business__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(5vw, 64px);
    align-items: stretch;
}

.p-top-business__visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* All images absolute so none drives the row height — visual is sized by the
   right column via grid stretch; images just fill that box. */
.p-top-business__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.5s ease;
}

.p-top-business__img:not(.is-active) {
    opacity: 0;
    pointer-events: none;
}

.p-top-business__img.is-active {
    opacity: 1;
}

.p-top-business__menu {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 14px);
}

/* Dim non-active items so the hovered one stands out */
.p-top-business__menu:hover .p-top-business__item:not(:hover) {
    opacity: 0.45;
}

.p-top-business__item {
    transition: opacity 0.3s ease;
}

/* Smaller text than SERVICE base; floor keeps it readable on SP */
.p-top-business__item .p-top-service__title {
    font-size: clamp(14px, 1.9vw, 19px);
}

.p-top-business__item .p-top-service__subTitle {
    font-size: clamp(9px, 0.95vw, 11px);
}

/* Arrow */
.p-top-business__item:before {
    width: 30px;
    height: 30px;
}

/* Active arrow/underline state mirrors SERVICE hover */
.p-top-business__item.is-active:before { right: 0; }
.p-top-business__item.is-active:after  { transform: scaleX(5); }

/* legacy grid kept for safety */
.p-top-business__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.p-top-business__card {
    --card-accent: #5b8dee;
    background: #13131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #f0f0f5;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.p-top-business__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.p-top-business__card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.p-top-business__card:hover::before { opacity: 0.07; }

.p-top-business__card.card-1 { --card-accent: #5b8dee; }
.p-top-business__card.card-2 { --card-accent: #a78bfa; }
.p-top-business__card.card-3 { --card-accent: #f472b6; }
.p-top-business__card.card-4 { --card-accent: #2dd4bf; }

.p-top-business__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0c12;
}

.p-top-business__thumb.is-navy  { background: #0f172a; }
.p-top-business__thumb.is-black { background: #000; }

.p-top-business__thumb img.is-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-top-business__thumb img.is-logo {
    max-width: 62%;
    max-height: 62%;
    object-fit: contain;
    display: block;
}

.p-top-business__thumb img.is-invert { filter: invert(1); }

.p-top-business__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #f0f0f5;
    margin: 4px 0 0;
    position: relative;
    z-index: 1;
}

.p-top-business__desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: #8888aa;
    flex: 1;
    margin: 0;
    position: relative;
    z-index: 1;
}

.p-top-business__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    transition: gap 0.2s ease;
}

.p-top-business__card:hover .p-top-business__link { gap: 10px; }

.p-top-business__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.p-top-business__card:hover .p-top-business__link svg { transform: translateX(3px); }

.p-top-business__btn {
    margin-top: min(4vw, 48px);
    display: flex;
    justify-content: center;
}

.p-top-business__btn .c-btn-black__link {
    width: auto;
    display: inline-block;
}

@media screen and (max-width: 900px) {
    /* No image on SP — just the menu list (SERVICE-style items) */
    .p-top-business__split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .p-top-business__visual {
        display: none;
    }
    /* No hover on touch — keep items at full opacity */
    .p-top-business__menu:hover .p-top-business__item:not(:hover) {
        opacity: 1;
    }
    /* Reset the desktop active arrow/underline so the first item isn't stuck-on */
    .p-top-business__item.is-active:before { right: 10px; }
    .p-top-business__item.is-active:after  { transform: none; }

    .p-top-business__item .p-top-service__title {
        font-size: clamp(15px, 4.4vw, 20px);
    }
    .p-top-business__item .p-top-service__subTitle {
        font-size: clamp(10px, 3vw, 13px);
    }
}

@media screen and (max-width: 600px) {
    .p-top-business {
        padding: 56px 0;
    }
}

/* ============================================================
   採用情報 / RECRUIT — job detail table
   ============================================================ */

/* Anchor nav — jump to each job */
.p-recruit-nav {
    list-style: none;
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.p-recruit-nav a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #14151b;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.p-recruit-nav a:hover {
    background: #14151b;
    color: #fff;
    border-color: #14151b;
}

/* Offset so anchored job clears the top edge when scrolled to */
.p-recruit-item {
    scroll-margin-top: 24px;
}

html {
    scroll-behavior: smooth;
}

@media screen and (max-width: 700px) {
    .p-recruit-nav {
        gap: 8px;
        margin-bottom: 30px;
    }
    .p-recruit-nav a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.p-recruit-detail {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.p-recruit-detail__title {
    font-size: 22px;
    font-weight: 700;
    color: #14151b;
    margin-bottom: 20px;
}

.p-recruit-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e3e3e3;
}

.p-recruit-table th,
.p-recruit-table td {
    border: 1px solid #e3e3e3;
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.8;
}

.p-recruit-table th {
    width: 180px;
    background: #f5f5f5;
    font-weight: 700;
    color: #14151b;
    white-space: nowrap;
}

.p-recruit-table td {
    color: #333;
}

.p-recruit-table__head {
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 4px;
}

.p-recruit-table__head:first-child {
    margin-top: 0;
}

.p-recruit-table__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-recruit-table__list li {
    position: relative;
    padding-left: 16px;
}

.p-recruit-table__list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.p-recruit-detail__btn {
    margin-top: 30px;
}

.p-recruit-apply {
    display: inline-block;
    background: #14151b;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 60px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.p-recruit-apply:hover {
    opacity: 0.8;
}

.p-recruit-item + .p-recruit-hr {
    border: none;
    border-top: 1px solid #d8d8d8;
    margin: 60px 0;
}

@media screen and (max-width: 700px) {
    .p-recruit-detail__title {
        font-size: 19px;
    }

    .p-recruit-table th,
    .p-recruit-table td {
        display: block;
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .p-recruit-table th {
        white-space: normal;
        border-bottom: none;
    }
}

/* ============================================================
   支援実績 / ACHIEVEMENT — 3-column card list + detail
   ============================================================ */
.p-achievement,
.p-achievement-detail {
    padding-bottom: min(10vw, 120px);
}

.p-achievement__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.p-achievement__head .c-section-title {
    margin-bottom: 0;
}

.p-achievement__select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 11px 42px 11px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    min-width: 220px;
    transition: border-color 0.2s ease;
}

.p-achievement__select:hover,
.p-achievement__select:focus {
    border-color: #14151b;
    outline: none;
}

.p-achievement__empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.p-achievement__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.p-achievement__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.p-achievement__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.p-achievement__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.p-achievement__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-achievement__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
}

.p-achievement__customer {
    font-size: 13px;
    font-weight: 700;
    color: #14151b;
    margin: 0 0 4px;
}

.p-achievement__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: #14151b;
    margin: 0 0 12px;
}

.p-achievement__tag {
    display: inline-block;
    background: #555;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}

.p-achievement__thumb .p-achievement__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.p-achievement__meta {
    margin: 0;
}

.p-achievement__meta > div {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.p-achievement__meta dt {
    flex: 0 0 70px;
    color: #999;
    font-size: 13px;
    margin: 0;
}

.p-achievement__meta dd {
    flex: 1;
    color: #333;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

@media screen and (max-width: 1024px) {
    .p-achievement__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 700px) {
    .p-achievement__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .p-achievement__title {
        font-size: 17px;
    }
    .p-achievement__filter {
        width: 100%;
    }
    .p-achievement__select {
        width: 100%;
    }
}

/* ---- detail ---- */
.p-achievement-detail {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.p-achievement-detail__customer {
    font-size: 14px;
    font-weight: 700;
    color: #14151b;
    margin: 0 0 8px;
}

.p-achievement-detail__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #14151b;
    margin: 0 0 14px;
}

.p-achievement-detail__thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.p-achievement-detail__meta {
    border-top: 1px solid #e3e3e3;
}

.p-achievement-detail__meta > div {
    display: flex;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid #e3e3e3;
}

.p-achievement-detail__meta dt {
    flex: 0 0 120px;
    color: #888;
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

.p-achievement-detail__meta dd {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.p-achievement-detail__content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.p-achievement-detail__content img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 700px) {
    .p-achievement-detail__title {
        font-size: 22px;
    }
    .p-achievement-detail__meta dt {
        flex-basis: 90px;
        font-size: 14px;
    }
    .p-achievement-detail__content {
        font-size: 15px;
    }
}

/* SERVICE detail page — 概要タイトル spacing on SP only */
@media screen and (max-width: 700px) {
    body.single-service .h2.text_bold.text_15 {
        margin-bottom: 10px;
        font-size: 20px;
    }
}
