#ai-chat {
    padding: 120px 16px;
    background: #e3f6ff;
    display: flex;
    justify-content: center;
}
#ai-chat .container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ai-chat-title {
    position: relative;
    text-align: center;
    width: fit-content;
    align-self: center;
}
.ai-chat-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1A469D;
    z-index: 1;
}
.ai-chat-title::before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 31px;
    height: 3px;
    background: #e3f6ff;
    z-index: 2;
    transform: translateX(-50%);
}
.ai-chat-title .title {
    font-weight: 700;
    font-size: 24px;
    color: #1A469D;
    position: relative;
}
.ai-chat-title .title::before {
    content: '';
    position: absolute;
    bottom: -33px;
    left: calc(50% - 11px);
    width: 25px;
    height: 3px;
    background: #1A469D;
    transform: rotate(45deg) translateX(-50%);
    z-index: 3;
    border-radius: 2px;
}
.ai-chat-title .title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: calc(50% - 30px);
    width: 25px;
    height: 3px;
    background: #1A469D;
    transform: rotate(-45deg) translateX(-50%);
    z-index: 3;
    border-radius: 2px;
}
.ai-chat-title .title b {
    font-size: 30px;
    font-weight: 900;
    margin-right: 4px;
}
.ai-chat-title .title b:last-child {
    margin-left: 4px;
}
.ai-chat-subtitle {
    margin-top: 55px;
    display: flex;
    gap: 12px;
}
.ai-chat-subtitle-content {
    font-weight: 700;
    color: #1A469D;
    font-size: 32px;
    text-align: center;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.ai-chat-subtitle-content.hide-pc {
    display: none;
}
.ai-chat-subtitle-content .hightline {
    padding: 4px 14px;
    background: #ffd700;
    font-size: 40px;
    border-radius: 10px;
    height: 66px;
    display: flex;
    align-items: center;
}
.ai-chat-combine-text {
    display: flex;
    align-items: center;
}
.ai-chat-list-card {
    display: flex;
    justify-content: center;
    gap: 36px;
    position: relative;
    margin-top: 71px;
}
.ai-chat-card {
    border: 4px solid #1a469d;
    border-radius: 20px;
    position: relative;
    padding: 38px 10px 37px 10px;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 18px);
}
.ai-chat-card::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 250px;
    top: 50%;
    transform: translateY(-50%);
    background: #e3f6ff;
    z-index: 1;
}
.ai-chat-card:first-child::before {
    left: 100%;
}
.ai-chat-card:last-child::before {
    right: 100%;
}
.ai-chat-card:first-child .ai-chat-box-image {
    padding: 0 52px;
}
.ai-chat-card:last-child .ai-chat-box-image {
    padding: 0 70px;
}
.ai-chat-box-image {
    position: relative;
    min-height: 250px;
    display: flex;
    gap: 10px;
}
.ai-chat-card-zoom {
    position: absolute;
    background: rgba(9, 10, 10, 0.6);
    padding: 4px 8px;
    color: white;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    cursor: pointer;
}
.ai-chat-card-zoom:hover {
    background: rgba(9, 10, 10, 0.7);
}
.ai-chat-card-zoom span {
    font-size: 14px;
    font-weight: bold;
}
.ai-chat-card-zoom img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.ai-chat-card:first-child .ai-chat-card-zoom {
    top: 30px;
    right: 52px;
}
.ai-chat-card:last-child .ai-chat-card-zoom {
    top: 30px;
    right: 60px;
}
.ai-chat-card-label {
    position: absolute;
    left: 50%;
    top: -21px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a469d;
    height: 42px;
    padding: 4px 100px;
    gap: 16px;
    border-radius: 10px;
}
.ai-chat-card-label h3 {
    font-weight: 700;
    font-size: 24px;
    color: white;
    white-space: nowrap;
}
.ai-chat-logo {
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.ai-chat-card-content {
    display: flex;
    gap: 24px;
    flex-direction: column;
}
.ai-chat-card-title {
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    color: #090a0a;
}
.ai-chat-card-title .underline {
    position: relative;
}
.ai-chat-card-title .underline span {
    z-index: 2;
    position: relative;
}
.ai-chat-card-title .underline::after {
    content: '';
    width: 100%;
    height: 10px;
    background: #ffee96;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
}
.ai-chat-card:last-child .ai-chat-card-title .underline::after {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
.ai-chat-card-sub {
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    text-align: center;
}
.ai-chat-card-sub .hide-sp {
    display: unset;
}
.ai-chat-card-example {
    font-size: 14px;
    font-weight: 700;
    color: #0c82bc;
    margin: 0 0 12px 0;
}
.ai-chat-note {
    border: 3px solid #0c82bc;
    background: #f2fbff;
    padding: 16px;
    border-radius: 4px;
    color: #0c82bc;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    line-height: 1.5;
}
.ai-chat-card:first-child .ai-chat-note {
    margin: 0 52px;
}
.ai-chat-card:last-child .ai-chat-note {
    margin: 0 60px;
}
.ai-chat-card:last-child .ai-chat-card-example {
    text-align: center;
}
#ai-chat .behind.last {
    padding-top: 60px;
}
#gallery .gallery-wrapper {
    background: #f2fbff;
    border: 5px solid #0c82bc;
    border-radius: 20px;
    max-width: 800px;
    padding: 56px 40px 0 40px;
}
#gallery .title-gallery {
    color: #0c82bc;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}
#gallery .gallery-wrapper .icon-close {
    background: #667075;
}
#gallery .gallery-wrapper .icon-close:hover {
    background: #788085;
}
#gallery {
    background: #191b1c66;
}
#gallery .gallery-wrapper .preview {
    border-radius: 0;
}
#gallery .gallery-wrapper {
    padding: 56px 40px 40px 40px;
}
@media (min-width: 993px) and (max-width: 1200px) {
    #ai-chat {
        padding: 56px 16px;
    }
    .ai-chat-title::before {
        height: 6px;
        bottom: -18px;
    }
    .ai-chat-title .title b {
        font-size: 24px;
    }
    .ai-chat-title .title {
        font-size: 18px;
    }
    .ai-chat-subtitle-content .hightline {
        font-size: 30px;
        height: 48px;
    }
    .ai-chat-subtitle-content {
        font-size: 24px;
    }
    .ai-chat-card-title {
        font-size: 18px;
        line-height: 26px;
    }
    .ai-chat-card-sub {
        font-size: 14px;
        line-height: 20px;
    }
    .ai-chat-logo {
        width: 200px;
        height: 200px;
    }
    .ai-chat-subtitle {
        margin-top: 48px;
    }
    .ai-chat-list-card {
        margin-top: 42px;
    }
    #ai-chat .behind.last {
        padding-top: 32px;
    }
    .ai-chat-card::before {
        width: 6px;
    }
    .ai-chat-card:first-child::before {
        left: calc(100% - 1px);
    }
    .ai-chat-card:last-child::before {
        right: calc(100% - 1px);
    }
    .ai-chat-card:first-child .ai-chat-box-image {
        padding: 0 34px;
    }
    .ai-chat-card:first-child .ai-chat-card-zoom {
        top: 26px;
        right: 58px;
    }
    .ai-chat-card-content {
        gap: 14px;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    #ai-chat {
        padding: 64px 16px;
    }
    .ai-chat-title::before {
        height: 6px;
        bottom: -17px;
    }
    .ai-chat-subtitle-content {
        font-size: 28px;
    }
    .ai-chat-subtitle-content .hightline {
        font-size: 32px;
        height: 43px;
    }
    .ai-chat-card-content {
        gap: 18px;
    }
    .ai-chat-subtitle {
        flex-direction: column;
        margin-top: 10px;
    }
    .logo-mobile {
        display: block;
        margin-top: 42px;
        width: 230px;
        height: 230px;
        object-fit: contain;
    }
    .ai-chat-list-card {
        flex-direction: column;
    }
    .ai-chat-card {
        max-width: 580px;
    }
    .ai-chat-card::before,
    .ai-chat-card::after {
        content: none;
    }
    .ai-chat-logo {
        display: none;
    }
    #gallery .gallery-wrapper[data-id='chat'] {
        padding: 56px 0 0 0;
    }
}
@media (max-width: 767px) {
    #ai-chat {
        padding: 76px 16px 40px 16px;
    }
    .ai-chat-list-card {
        display: block;
        margin-top: 52px;
    }
    .ai-chat-card-label h3 {
        font-size: 20px;
    }
    .ai-chat-card::before {
        content: none;
    }
    .ai-chat-card-label {
        width: 284px;
        height: 34px;
        top: -19px;
    }
    .ai-chat-title .title {
        font-size: 20px;
    }
    .ai-chat-title .title b {
        font-size: 24px;
    }
    .ai-chat-title .title b:last-child {
        margin-left: 0;
    }
    .logo-mobile {
        width: 120px;
        height: 120px;
        object-fit: contain;
        margin-top: 32px;
    }
    .ai-chat-title::before {
        width: 16px;
        bottom: -10px;
        height: 6px;
    }
    .ai-chat-title::after {
        bottom: -8px;
        height: 2px;
    }
    .ai-chat-title .title::before {
        transform: rotate(64deg) translateX(-50%);
        width: 20px;
        left: calc(50% - 10px);
        bottom: -25px;
        height: 2px;
    }
    .ai-chat-title .title::after {
        transform: rotate(-64deg) translateX(-50%);
        width: 20px;
        right: calc(50% - 18px);
        bottom: -7px;
        height: 2px;
    }
    .ai-chat-subtitle {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
        gap: 8px;
    }
    .ai-chat-subtitle-content .hightline {
        font-size: 27px;
        height: 43px;
    }
    .ai-chat-subtitle-content {
        font-size: 23px;
        gap: 8px;
        flex-direction: column;
    }
    .ai-chat-subtitle-content.hide-pc {
        display: block;
    }
    .ai-chat-card:last-child {
        margin-top: 50px;
    }
    .ai-chat-card {
        padding: 34px 0 0 0;
        border: 2px solid #1a469d;
    }
    .ai-chat-card:first-child .ai-chat-image {
        margin-top: -16px;
    }
    .ai-chat-card-title {
        font-size: 24px;
        line-height: 35px;
    }
    .ai-chat-card-title .underline::after {
        height: 6px;
        bottom: 2px;
    }
    .ai-chat-card-sub {
        font-size: 16px;
        line-height: 24px;
    }
    .ai-chat-card-sub .hide-sp {
        display: none;
    }
    .ai-chat-box-image {
        padding: 0 24px;
        min-height: auto;
    }
    .ai-chat-card-content {
        gap: 24px;
        padding: 0 16px;
    }
    #ai-chat .behind.last {
        padding-top: 60px;
    }
    .ai-chat-card-zoom {
        visibility: visible;
        opacity: 1;
    }
    .ai-chat-card:first-child .ai-chat-card-zoom {
        top: 30px;
        right: 6px;
    }
    .ai-chat-card:last-child .ai-chat-card-zoom {
        right: 15px;
        top: 30px;
    }
    .ai-chat-card:first-child .ai-chat-box-image {
        padding: 0 6px 0 6px;
    }
    .ai-chat-card:last-child .ai-chat-box-image {
        padding: 0 15px;
    }
    .ai-chat-card-zoom span {
        font-size: 14px;
    }
    .ai-chat-card-label img {
        width: 20px;
        object-fit: contain;
    }
    .ai-chat-card-zoom img {
        width: 14px;
        height: 14px;
        object-fit: contain;
    }
    .ai-chat-card:first-child .ai-chat-note,
    .ai-chat-card:last-child .ai-chat-note {
        margin: 0 0 15px;
    }
    .ai-chat-note {
        font-size: 11px;
        padding: 8px;
    }
    #gallery .title-gallery {
        font-size: 20px;
        margin-bottom: 24px;
    }
    #gallery .gallery-wrapper {
        padding: 32px 12px 12px 12px;
    }
    #gallery .gallery-wrapper .preview {
        max-width: 100%;
        width: 100% !important;
    }
}
