/*****************************************/
/* GLOBAL NAV ANIMATION ******************/
/*****************************************/
.global-nav > li {
    opacity: 0;
    transform: translateX(16px);
    animation: globalNavFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.global-nav > li:nth-child(1) {
    animation-delay: 0.2s;
}

.global-nav > li:nth-child(2) {
    animation-delay: 0.32s;
}

.global-nav > li:nth-child(3) {
    animation-delay: 0.44s;
}

.global-nav > li:nth-child(4) {
    animation-delay: 0.56s;
}

.global-nav > li:nth-child(5) {
    animation-delay: 0.68s;
}

@keyframes globalNavFadeIn {
    0% {
        opacity: 0;
        transform: translateX(16px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
/*****************************************/
/* TOP ***********************************/
/*****************************************/
.site-header__toggle {
    display: none;
}

.top-h1 {
    font-size: clamp(2.8rem, 3.6vw, 4rem);
    font-weight: bold;
    line-height: 2;
}

.top-h2 {
    color: var(--color-text-lightgray);
    font-size: clamp(1.1rem, 3.6vw, 1.4rem);
    font-weight: bold;
    padding-bottom: 18px;
}

.main-visual {
    width: calc(100% - 180px);
    padding-top: clamp(180px, 28vw, 340px);
    position: relative;
}

.main-visual__catchcopy {
    width: min(400px, calc(100% - 40px));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    z-index: 2;
    top: clamp(40px, 8vw, 110px);
    left: 50%;
    transform: translateX(-50%);
}

.main-visual__catchcopy .top-h1,
.main-visual__catchcopy .top-h2 {
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
}

.main-visual__catchcopy .top-h1 {
    animation: mainVisualTextFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.main-visual__catchcopy .top-h2 {
    animation: mainVisualTextFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.main-visual__contact {
    position: absolute;
    z-index: 2;
    right: clamp(-90px, 3vw, -150px);
    bottom: clamp(20px, 5vw, 130px);
    width: clamp(80px, 18vw, 240px);
    opacity: 0;
    transform: translateY(24px) rotate(-18deg) scale(0.9);
    transform-origin: center center;
    transition: scale 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;

    & img {
        display: block;
        width: 100%;
        height: auto;
    }
}

.main-visual__contact.is-visible {
    animation: mainVisualContactBounce 0.5s cubic-bezier(0.2, 1.05, 0.35, 1) forwards;
}

.main-visual__contact.is-visible img {
    animation: mainVisualContactRotate 15s linear infinite;
}

.main-visual__contact:hover,
.main-visual__contact:focus-visible {
    scale: 1.12;
}

@keyframes mainVisualContactRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes mainVisualContactBounce {
    0% {
        opacity: 0;
        transform: translateY(24px) rotate(-18deg) scale(0.9);
    }

    55% {
        opacity: 1;
        transform: translateY(-8px) rotate(8deg) scale(1.08);
    }

    75% {
        opacity: 1;
        transform: translateY(4px) rotate(-3deg) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}
.main-visual__bg {
    width: 100%;
    position: relative;
    margin-top: 0;
    z-index: 1;
    overflow: hidden;

    & img {
        display: block;
        width: 100%;
        height: auto;
        margin-left: auto;
    }
}

.main-visual__image {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05);
    animation: mainVisualFadeIn 2.2s ease-out 0.15s forwards;
    will-change: opacity, filter, transform;
}

@keyframes mainVisualFadeIn {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.05);
    }

    60% {
        opacity: 0.85;
        filter: blur(8px);
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes mainVisualTextFadeIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}
/*****************************************/
/* WAVE ***********************************/
/*****************************************/
.about-wave {
    position: relative;
    color: #fff;
}

.about-wave__top,
.about-wave__bottom,
.about-wave__footer {
    line-height: 0;
    overflow: hidden;
}

.about-wave__footer {
    margin-bottom: -30px;
}

.about-wave__top img,
.about-wave__bottom img {
    display: block;
    width: calc(100% + 120px);
    max-width: none;
    height: auto;
    margin-left: -60px;
}

.about-wave__footer img {
    display: block;
    width: calc(100% + 120px);
    max-width: none;
    height: auto;
    margin-left: -60px;
    margin-bottom: -30px;
}

.about-wave__inner {
    width: 100%;
    margin-inline: auto;
    background: linear-gradient(180deg, #2d8bd3 0%, #025ca3 100%);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.about-wave__block {
    width: min(100% - 40px, var(--container));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-inline: auto;
    margin-bottom: 80px;
    flex-wrap: nowrap;
}
.about-wave__block_list {
    width: min(100% - 40px, var(--container));
    gap: 48px;
    margin-inline: auto;
}
.about-wave__heading {
    width: fit-content;
    width: -moz-fit-content;
    flex: 0 0 auto;

    & p {
        font-size: 1.4rem;
        font-weight: bold;
        text-align: right;
    }
    & h2 {
        font-size: 7.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
    }
}
.about-wave__heading_list {
    width: fit-content;
    width: -moz-fit-content;
    flex: 0 0 auto;

    & p {
        font-size: 1.4rem;
        text-align: right;
        font-weight: bold;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
    }
}
.about-wave__text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
    & p {
        font-size: 2.4rem;
    }
    & li {
        font-size: 1.8rem;
    }
}
.about-wave__block + .about-wave__block {
    margin-top: 100px;
}
/*****************************************/
/* WORK **********************************/
/*****************************************/
.work {
    margin-top: -50px;
    overflow: hidden;
}
.work__heading {
    width: fit-content;
    width: -moz-fit-content;
    color: var(--color-text-blue);
    flex: 0 0 auto;
    padding: 0 240px;
    text-align: right;

    & p {
        font-size: 1.6rem;
        text-align: right;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1;
        white-space: nowrap;
        text-align: right;
    }
}
.work__inner {
    width: 100%;
    padding: 18px 0 80px;
}
.work-carousel {
    --work-small-width: 453px;
    --work-small-height: 210px;
    --work-active-width: 768px;
    --work-active-height: 357px;
    --work-gap: 60px;
    --work-side-x: calc((var(--work-active-width) / 2) + var(--work-gap) + (var(--work-small-width) / 2));
    --work-outer-x: calc(var(--work-side-x) + var(--work-small-width) + var(--work-gap));
    width: 100%;
    position: relative;
    overflow: hidden;
}
.work-carousel__wrapper {
    width: 100%;
    height: var(--work-active-height);
    position: relative;
    margin-inline: auto;
}
.work-carousel__slide {
    width: var(--work-small-width);
    height: var(--work-small-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transition:
        width 0.68s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.68s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: width, height, opacity, transform;
}
.work-carousel__wrapper.is-resetting .work-carousel__slide {
    transition: none;
}
.work-carousel__slide--before {
    transform: translate(calc(-50% - var(--work-outer-x)), -50%);
    opacity: 0;
}
.work-carousel__slide--prev {
    transform: translate(calc(-50% - var(--work-side-x)), -50%);
    opacity: 1;
}
.work-carousel__slide--active {
    width: var(--work-active-width);
    height: var(--work-active-height);
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 2;
}
.work-carousel__slide--next {
    transform: translate(calc(-50% + var(--work-side-x)), -50%);
    opacity: 1;
}
.work-carousel__slide--upcoming {
    transform: translate(calc(-50% + var(--work-outer-x)), -50%);
    opacity: 0;
}
.work-card {
    width: var(--work-small-width);
    height: var(--work-small-height);
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 16px;
    margin-inline: auto;
    padding: 14px;
    border: 4px solid var(--color-text-blue);
    border-radius: 12px;
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 14px 32px rgba(3, 110, 192, 0.12);
    opacity: 0.58;
    transition:
        width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.work-carousel__slide--active .work-card {
    width: var(--work-active-width);
    height: var(--work-active-height);
    grid-template-columns: minmax(210px, 0.9fr) minmax(360px, 1.35fr);
    gap: 28px;
    padding: 24px;
    border-width: 6px;
    border-radius: 20px;
    opacity: 1;
}
.work-card__title {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 6px;
}
.work-carousel__slide--active .work-card__title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.work-card__excerpt {
    font-size: 1rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.work-carousel__slide--active .work-card__excerpt {
    font-size: 1.4rem;
    line-height: 1.8;
}
.work-card__button {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-text-blue);
    color: var(--color-text-white);
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
}
.work-carousel__slide--active .work-card__button {
    margin-top: 14px;
    padding: 5px 14px;
    font-size: 1.1rem;
}
.work-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f2f2;
}
.work-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.work-carousel__control {
    width: 52px;
    height: 52px;
    position: absolute;
    top: calc(var(--work-active-height) / 2);
    z-index: 5;
    border: 4px solid var(--color-text-blue);
    border-radius: 50%;
    background: var(--color-bg);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}
.work-carousel__control--prev {
    left: calc(50% - (var(--work-active-width) / 2) - 82px);
}
.work-carousel__control--next {
    right: calc(50% - (var(--work-active-width) / 2) - 82px);
}
.work-carousel__control::before {
    content: "";
    width: 13px;
    height: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 4px solid var(--color-text-blue);
    border-right: 4px solid var(--color-text-blue);
    transition: border-color 0.25s ease;
}
.work-carousel__control--prev::before {
    transform: translate(-36%, -50%) rotate(-135deg);
}
.work-carousel__control--next::before {
    transform: translate(-64%, -50%) rotate(45deg);
}
.work-carousel__control:hover {
    background: var(--color-text-blue);
    transform: translateY(-50%) scale(1.06);
}
.work-carousel__control:hover::before {
    border-color: var(--color-text-white);
}
.work__empty {
    width: min(100% - 40px, var(--container));
    margin: 24px auto 100px;
    font-size: 1.4rem;
    color: var(--color-text-gray);
}
/*****************************************/
/* WORK TOGETHER *************************/
/*****************************************/
.work-together {
    width: 100%;
    aspect-ratio: 1427 / 852;
    overflow: hidden;
    background-image: url(../img/work-together.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 80px;
}
.work-together__inner {
    width: min(100% - 40px, var(--container));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
    position: relative;
    margin-inline: auto;
    padding: 270px 0;
}
.work-together__heading {
    width: fit-content;
    width: -moz-fit-content;
    color: var(--color-text-white);
    flex: 0 0 auto;
    text-align: right;

    & p {
        font-size: 1.6rem;
        text-align: right;
    }
    & h2 {
        font-size: 6.2rem;
        font-weight: bold;
        line-height: 1.5;
        white-space: nowrap;
        text-align: right;
    }
}
.js-scroll-reveal .scroll-reveal__heading > p,
.js-scroll-reveal .scroll-reveal__heading > h2,
.js-scroll-reveal .scroll-reveal__body,
.js-scroll-reveal > p,
.js-scroll-reveal > h2 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-scroll-reveal .scroll-reveal__heading > p,
.js-scroll-reveal > p {
    transition-delay: 0.08s;
}

.js-scroll-reveal .scroll-reveal__heading > h2,
.js-scroll-reveal > h2 {
    transition-delay: 0.16s;
}

.js-scroll-reveal .scroll-reveal__body {
    transition-delay: 0.28s;
}

.scroll-reveal--about .scroll-reveal__heading > p {
    transform: translateY(14px);
    transition-duration: 0.75s;
}

.scroll-reveal--about .scroll-reveal__heading > h2 {
    transform: translateY(26px);
    transition-duration: 0.95s;
    transition-delay: 0.14s;
}

.scroll-reveal--about .scroll-reveal__body {
    transform: translateY(18px);
    transition-duration: 0.95s;
    transition-delay: 0.32s;
}

.scroll-reveal--work .scroll-reveal__heading > p {
    transform: translateX(42px);
    transition-duration: 0.85s;
}

.scroll-reveal--work .scroll-reveal__heading > h2 {
    transform: translateX(-56px);
    transition-duration: 1.05s;
    transition-delay: 0.18s;
}

.scroll-reveal--work .scroll-reveal__body {
    transform: translateY(46px) scale(0.94);
    transition-duration: 1.15s;
    transition-delay: 0.42s;
}

.scroll-reveal--recruit .scroll-reveal__heading > p {
    transform: translate(18px, 12px);
    transition-duration: 0.8s;
}

.scroll-reveal--recruit .scroll-reveal__heading > h2 {
    transform: translateY(54px) rotate(-2deg) scale(0.96);
    transition-duration: 1.2s;
    transition-delay: 0.18s;
}

.scroll-reveal--recruit .scroll-reveal__body {
    transform: translate(38px, 24px);
    transition-duration: 1.05s;
    transition-delay: 0.48s;
}

.scroll-reveal--recruit .scroll-reveal__accent {
    opacity: 0;
    scale: 1;
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        scale 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal--recruit .work-together__img1 {
    transform: translate(-18px, 24px) rotate(-4deg);
    transition-delay: 0.3s;
}

.scroll-reveal--recruit .work-together__img2 {
    transform: translate(20px, 28px) rotate(5deg);
    transition-delay: 0.42s;
}

.scroll-reveal--recruit .work-together__img3 {
    transform: translate(-10px, 34px) rotate(-3deg);
    transition-delay: 0.54s;
}

.js-scroll-reveal.is-visible .work-together__button {
    transition-delay: 0s;
}

.js-scroll-reveal.is-visible .scroll-reveal__heading > p,
.js-scroll-reveal.is-visible .scroll-reveal__heading > h2,
.js-scroll-reveal.is-visible .scroll-reveal__body,
.js-scroll-reveal.is-visible .scroll-reveal__accent,
.js-scroll-reveal.is-visible > p,
.js-scroll-reveal.is-visible > h2 {
    opacity: 1;
    transform: translateY(0);
}
.work-together__content {
    flex: 1;
    color: var(--color-text-white);
    & h3 {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

    & p {
        font-size: 1.4rem;
        line-height: 1.8;
    }
}

.work-together__content > * {
    flex: 1 1 0;
    min-width: 0;
}
.work-together__button {
    position: absolute;
    display: block;
    line-height: 0;
    cursor: pointer;
    transform-origin: center center;
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        scale 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, scale;
}

.work-together__button img {
    display: block;
    animation: workTogetherButtonRotate 15s linear infinite;
}

.work-together__button:hover,
.work-together__button:focus-visible {
    scale: 1.12;
}

.scroll-reveal--recruit .work-together__button:hover,
.scroll-reveal--recruit .work-together__button:focus-visible {
    scale: 1.12;
}

.work-together__img1 {
    bottom: 330px;
    left: 350px;
}
.work-together__img2 {
    bottom: 200px;
    left: 310px;
}
.work-together__img3 {
    bottom: 70px;
    left: 460px;
}

@keyframes workTogetherButtonRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/*****************************************/
/* PAGE **********************************/
/*****************************************/
.page-single {
    margin-bottom: 80px;
    padding-top: 130px;
}

/*****************************************/
/* SINGLE *******************************/
/*****************************************/
.single-page {
    margin-bottom: 100px;
    padding-top: 130px;
}
.single-page__inner {
    width: min(100% - 40px, 980px);
    margin-inline: auto;
}
.single-entry {
    width: 100%;
    padding-top: 100px;
}
.single-entry__header {
    margin-bottom: 40px;
    color: var(--color-text-blue);
}
.single-entry__title {
    font-size: 5.6rem;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 14px;
}
.single-entry__date {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.08em;
}
.single-entry__thumbnail {
    overflow: hidden;
    border-radius: 20px;
    background: #f2f2f2;
    margin-bottom: 40px;
}
.single-entry__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.single-entry__content {
    margin-top: 0;
    font-size: 1.6rem;
    line-height: 2;
}
.single-entry__content > *:first-child {
    margin-top: 0;
}
.single-entry__content h2,
.single-entry__content h3 {
    color: var(--color-text-blue);
    font-weight: bold;
    line-height: 1.45;
}
.single-entry__content h2 {
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-text-blue);
    font-size: 2.8rem;
}
.single-entry__content h3 {
    margin: 40px 0 16px;
    font-size: 2.2rem;
}
.single-entry__content p,
.single-entry__content ul,
.single-entry__content ol {
    margin-bottom: 1.6em;
}
.single-entry__content img {
    height: auto;
    border-radius: 12px;
}
.single-entry__nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.single-entry__nav-item {
    min-width: 0;
}
.single-entry__nav-item--next {
    margin-left: auto;
}
.single-entry__nav-item a {
    display: inline-block;
    color: var(--color-text-blue);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}
.single-entry__nav-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.single-entry__nav-item--next a {
    align-items: flex-end;
    text-align: right;
}
.single-entry__nav-item a:hover {
    transform: translateY(-2px);
}

/*****************************************/
/* CONTENT / ARCHIVE *********************/
/*****************************************/
.content-page {
    margin-bottom: 100px;
    padding-top: 130px;
}
.content-page__inner,
.archive-list-page__inner {
    width: min(100% - 40px, 980px);
    margin-inline: auto;
}
.content-entry {
    width: 100%;
    padding-top: 100px;
}
.content-entry__header,
.archive-list-page__header {
    margin-bottom: 40px;
    color: var(--color-text-blue);
}
.archive-list-page__header {
    padding-top: 100px;
}
.content-entry__title,
.archive-list-page__title {
    font-size: 5.6rem;
    font-weight: bold;
    line-height: 1.25;
}
.content-entry__content {
    margin-top: 0;
    font-size: 1.6rem;
    line-height: 2;
}
.content-entry__content > *:first-child {
    margin-top: 0;
}
.content-entry__content h2,
.content-entry__content h3 {
    color: var(--color-text-blue);
    font-weight: bold;
    line-height: 1.45;
}
.content-entry__content h2 {
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-text-blue);
    font-size: 2.8rem;
}
.content-entry__content h3 {
    margin: 40px 0 16px;
    font-size: 2.2rem;
}
.content-entry__content p,
.content-entry__content ul,
.content-entry__content ol {
    margin-bottom: 1.6em;
}
.content-entry__content img {
    height: auto;
    border-radius: 12px;
}
.archive-list-page {
    margin-bottom: 100px;
    padding-top: 130px;
}
.archive-list-page__description {
    margin-top: 16px;
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1.8;
}
.archive-list-page .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}
.archive-list-page .post-card,
.archive-list-page .search-card {
    border: none;
    border-top: 1px solid var(--color-border);
}
.archive-list-page .post-card__link {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
}
.post-card__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.archive-list-page .post-card__body {
    padding: 0;
}
.archive-list-page .post-card__title,
.archive-list-page .search-card__title {
    color: var(--color-text-blue);
    font-size: 2rem;
    font-weight: bold;
}
.archive-list-page .post-card__excerpt,
.archive-list-page .search-card__excerpt {
    font-size: 1.4rem;
    line-height: 1.8;
}
.search-card {
    padding-top: 20px;
}
.navigation.pagination {
    margin-top: 48px;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.page-numbers {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-blue);
    font-size: 1.4rem;
    font-weight: bold;
}
.page-numbers.current {
    border-bottom: 3px solid var(--color-text-blue);
}
.no-posts {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.no-posts h2 {
    color: var(--color-text-blue);
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 12px;
}

/*****************************************/
/* POST CONTENT **************************/
/*****************************************/
:where(.single-entry__content, .content-entry__content) {
    color: var(--color-text);
    word-break: normal;
    overflow-wrap: anywhere;
}
:where(.single-entry__content, .content-entry__content) > * + * {
    margin-top: 1.6em;
}
:where(.single-entry__content, .content-entry__content) h1,
:where(.single-entry__content, .content-entry__content) h2,
:where(.single-entry__content, .content-entry__content) h3,
:where(.single-entry__content, .content-entry__content) h4,
:where(.single-entry__content, .content-entry__content) h5,
:where(.single-entry__content, .content-entry__content) h6 {
    color: var(--color-text-blue);
    font-weight: bold;
    line-height: 1.45;
}
:where(.single-entry__content, .content-entry__content) h1 {
    margin-top: 2.4em;
    font-size: 3.6rem;
    line-height: 1.35;
}
:where(.single-entry__content, .content-entry__content) h2 {
    margin-top: 2.2em;
    padding-left: 16px;
    border-left: 5px solid var(--color-text-blue);
    font-size: 2.6rem;
}
:where(.single-entry__content, .content-entry__content) h3 {
    margin-top: 2em;
    font-size: 2.1rem;
}
:where(.single-entry__content, .content-entry__content) h4 {
    margin-top: 1.8em;
    font-size: 1.9rem;
}
:where(.single-entry__content, .content-entry__content) h5,
:where(.single-entry__content, .content-entry__content) h6 {
    margin-top: 1.6em;
    font-size: 1.6rem;
}
:where(.single-entry__content, .content-entry__content) p {
    margin-bottom: 1.5em;
}
:where(.single-entry__content, .content-entry__content) a {
    color: var(--color-text-blue);
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
:where(.single-entry__content, .content-entry__content) ul,
:where(.single-entry__content, .content-entry__content) ol {
    padding-left: 1.4em;
}
:where(.single-entry__content, .content-entry__content) li + li {
    margin-top: 0.45em;
}
:where(.single-entry__content, .content-entry__content) ul li::marker {
    color: var(--color-text-blue);
}
:where(.single-entry__content, .content-entry__content) ol li::marker {
    color: var(--color-text-blue);
    font-weight: bold;
}
:where(.single-entry__content, .content-entry__content) blockquote {
    margin: 2.2em 0;
    padding: 22px 26px;
    border-left: 6px solid var(--color-text-blue);
    background: rgba(3, 110, 192, 0.08);
    color: var(--color-text-gray);
    font-size: 1.5rem;
    line-height: 1.9;
}
:where(.single-entry__content, .content-entry__content) blockquote > *:last-child {
    margin-bottom: 0;
}
:where(.single-entry__content, .content-entry__content) figure {
    margin: 2.2em 0;
}
:where(.single-entry__content, .content-entry__content) img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
:where(.single-entry__content, .content-entry__content) figcaption,
:where(.single-entry__content, .content-entry__content) .wp-caption-text {
    margin-top: 8px;
    color: var(--color-text-lightgray);
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}
:where(.single-entry__content, .content-entry__content) table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 1.4rem;
}
:where(.single-entry__content, .content-entry__content) th,
:where(.single-entry__content, .content-entry__content) td {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
:where(.single-entry__content, .content-entry__content) th {
    background: rgba(3, 110, 192, 0.08);
    color: var(--color-text-blue);
    font-weight: bold;
}
:where(.single-entry__content, .content-entry__content) pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 12px;
    background: #f5f7f9;
    font-size: 1.4rem;
    line-height: 1.7;
}
:where(.single-entry__content, .content-entry__content) code {
    padding: 0.12em 0.35em;
    border-radius: 4px;
    background: #f5f7f9;
    color: var(--color-text-gray);
    font-size: 0.92em;
}
:where(.single-entry__content, .content-entry__content) pre code {
    padding: 0;
    background: transparent;
}
:where(.single-entry__content, .content-entry__content) hr,
:where(.single-entry__content, .content-entry__content) .wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3em 0;
}
:where(.single-entry__content, .content-entry__content) .wp-block-button__link {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid var(--color-text-blue);
    border-radius: 999px;
    background: var(--color-text-blue);
    color: var(--color-text-white);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}
:where(.single-entry__content, .content-entry__content) .wp-block-button__link:hover {
    background: var(--color-bg);
    color: var(--color-text-blue);
}
:where(.single-entry__content, .content-entry__content) .wp-block-embed iframe,
:where(.single-entry__content, .content-entry__content) iframe {
    max-width: 100%;
}

/*****************************************/
/* POST TABLE ***************************/
/*****************************************/
.post_table {
    width: 100%;
    border-collapse: collapse;
}

.post_table tr {
    border-top: 1px solid #ddd;
}

.post_table td {
    border: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

.post_table td:first-child {
    width: 280px;
}

.post_table td:last-child {
    padding-left: 20px;
}
/*****************************************/
/* CONTACT FORM7 *************************/
/*****************************************/
.wpcf7-form {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    & p {
        margin-bottom: 0;
    }
    & input[type="text"],
    & input[type="email"],
    & textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    & .wpcf7-submit {
        display: block;
        width: 320px;
        max-width: 100%;
        margin: 20px auto 0;
        padding: 14px 24px;
        border: 1px solid #414141;
        border-radius: 4px;
        background: #414141;
        color: #fff;
        font-size: 1.6rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        cursor: pointer;
        transition:
            background-color 0.3s ease,
            color 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease;
    }

    & .wpcf7-submit:hover {
        background: #fff;
        color: #414141;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    & .wpcf7-submit:active {
        transform: translateY(0);
        box-shadow: none;
    }
}
/*****************************************/
/* SP ************************************/
/*****************************************/
@media (max-width: 768px) {
    /*****************************************/
    /* HEADER / NAV *************************/
    /*****************************************/

    .global-nav {
        display: block;
    }

    .site-header__nav {
        position: fixed;
        top: 10px;
        right: 0;
        width: min(320px, 84vw);
        max-height: calc(100vh - 20px);
        height: auto;
        background: #fff;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        padding: 74px 22px 22px;
        overflow-y: auto;
    }

    body.is-menu-open .site-header__nav {
        transform: translateX(0);
    }

    .site-header__nav .global-nav {
        display: block;
    }

    .site-header__nav .global-nav ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-header__nav .global-nav li {
        border-bottom: 1px solid #ddd;
    }

    .site-header__nav .global-nav li:first-child {
        border-top: 1px solid #ddd;
    }

    .site-header__nav .global-nav li a {
        display: block;
        padding: 11px 0;
        font-size: 1.4rem;
        line-height: 1.45;
    }

    .site-header__toggle {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        position: fixed;
        top: 24px;
        right: 12px;
        z-index: 1100;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .site-header__toggle-line {
        display: block;
        width: 30px;
        height: 2px;
        margin-left: auto;
        background: #000;
        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    body.is-menu-open .site-header__toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.is-menu-open .site-header__toggle-line:nth-child(2) {
        opacity: 0;
    }

    body.is-menu-open .site-header__toggle-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-header__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    body.is-menu-open .site-header__overlay {
        opacity: 1;
        visibility: visible;
    }

    body.is-menu-open {
        overflow: hidden;
    }
    /*****************************************/
    /* TOP ***********************************/
    /*****************************************/
    .top-h1 {
        font-size: clamp(2.6rem, 3.6vw, 4rem);
        font-weight: bold;
        line-height: 1.2;
    }

    .top-h2 {
        font-size: clamp(1rem, 1.2vw, 1.4rem);
        line-height: 1.2;
        padding-bottom: 0;
    }

    .main-visual {
        width: 100%;
        padding-top: clamp(130px, 28vw, 340px);
        position: relative;
    }
    .main-visual__catchcopy {
        width: fit-content;
        display: block;
        z-index: 2;
        position: absolute;
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
    }
    .main-visual__contact {
        width: 80px;
        right: 10px;
        bottom: 10px;
        & img {
            width: 100%;
        }
    }
    /*****************************************/
    /* about *********************************/
    /*****************************************/
    .about-wave__top img,
    .about-wave__bottom img {
        width: calc(100% + 60px);
        margin-left: -30px;
    }

    .about-wave__footer img {
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-bottom: -30px;
    }

    .about-wave__inner {
        padding: 20px 0;
    }

    .about-wave__block {
        width: 100%;
        display: block;
        gap: 24px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    .about-wave__block_list {
        width: 100%;
        gap: 24px;
        padding: 0 20px;
    }
    .about-wave__heading {
        width: 100%;
        flex: initial;
        margin-bottom: 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
        }
    }
    .about-wave__heading_list {
        width: 100%;
        flex: initial;
        margin-bottom: 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
        }
    }
    .about-wave__text {
        flex: initial;
        padding: 0;
        & p {
            font-size: 1.6rem;
        }
        & li {
            font-size: 1.6rem;
        }
    }
    .about-wave__block + .about-wave__block {
        margin-top: 50px;
    }
    /*****************************************/
    /* WORK **********************************/
    /*****************************************/
    .work {
        margin-top: 40px;
    }
    .work__heading {
        width: 100%;
        padding: 0;
        text-align: left;
        padding: 0 20px;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3rem;
            text-align: left;
        }
    }
    .work__inner {
        width: 100%;
        height: auto;
        padding: 16px 0 56px;
    }
    .work-carousel {
        --work-small-width: min(260px, 68vw);
        --work-small-height: 150px;
        --work-active-width: calc(100vw - 40px);
        --work-active-height: auto;
        --work-gap: 20px;
        --work-side-x: calc((100vw - 40px) / 2 + var(--work-gap) + var(--work-small-width) / 2);
        --work-outer-x: calc(var(--work-side-x) + var(--work-small-width) + var(--work-gap));
    }
    .work-carousel__wrapper {
        width: 100%;
        height: 420px;
    }
    .work-carousel__control {
        width: 42px;
        height: 42px;
        top: 210px;
        border-width: 3px;
    }
    .work-carousel__control--prev {
        left: 12px;
    }
    .work-carousel__control--next {
        right: 12px;
    }
    .work-carousel__control::before {
        width: 10px;
        height: 10px;
        border-top-width: 3px;
        border-right-width: 3px;
    }
    .work-card {
        width: 100%;
        height: auto;
        min-height: initial;
        display: block;
        padding: 14px;
        border-width: 4px;
        border-radius: 14px;
    }
    .work-carousel__slide--active .work-card {
        width: 100%;
        height: auto;
        padding: 14px;
        border-width: 4px;
        border-radius: 14px;
    }
    .work-card__body {
        margin-bottom: 14px;
    }
    .work-card__title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .work-card__excerpt {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
    }
    .work-card__image {
        border-radius: 8px;
    }
    /*****************************************/
    /* WORK TOGETHER *************************/
    /*****************************************/
    .work-together {
        aspect-ratio: auto;
        overflow: visible;
        background-color: #0178c9;
        background-image: none;
        margin-bottom: 40px;
        padding: 56px 0;
    }
    .work-together__inner {
        width: 100%;
        display: block;
        position: static;
        padding: 0 20px;
    }
    .work-together__heading {
        width: 100%;
        margin-bottom: 28px;
        text-align: left;

        & p {
            font-size: 1.2rem;
            text-align: left;
        }
        & h2 {
            font-size: 3.4rem;
            line-height: 1.25;
            white-space: normal;
            text-align: left;
        }
    }
    .work-together__content {
        color: var(--color-text-white);

        & h3 {
            font-size: 1.8rem;
        }
        & p {
            font-size: 1.4rem;
        }
    }
    .work-together__content > * {
        min-width: initial;
    }
    .work-together__img1,
    .work-together__img2,
    .work-together__img3 {
        display: none;
        position: static;
    }
    /*****************************************/
    /* PAGE **********************************/
    /*****************************************/
    .page-single {
        margin-bottom: 40px;
        padding-top: 80px;
    }
    .single-page {
        margin-bottom: 56px;
        padding-top: 90px;
    }
    .single-page__inner {
        width: 100%;
        padding: 0 20px;
    }
    .single-entry__header {
        margin-bottom: 28px;
    }
    .single-entry__title {
        font-size: 3.4rem;
        line-height: 1.22;
        margin-bottom: 10px;
    }
    .single-entry__date {
        font-size: 1.2rem;
    }
    .single-entry__thumbnail {
        margin-bottom: 28px;
        border-radius: 14px;
    }
    .single-entry__content {
        font-size: 1.5rem;
        line-height: 1.9;
    }
    .single-entry__content h2 {
        margin: 40px 0 16px;
        font-size: 2.3rem;
    }
    .single-entry__content h3 {
        margin: 32px 0 12px;
        font-size: 1.9rem;
    }
    .single-entry__nav {
        display: flex;
        flex-wrap: wrap;
        margin-top: 24px;
        padding-top: 24px;
    }
    .single-entry__nav-item {
        width: 100%;
    }
    .single-entry__nav-item a {
        font-size: 1.3rem;
    }
    .single-entry__nav-item--next {
        margin-top: 14px;
    }
    .content-page,
    .archive-list-page {
        margin-bottom: 56px;
        padding-top: 90px;
    }
    .content-page__inner,
    .archive-list-page__inner {
        width: 100%;
        padding: 0 20px;
    }
    .content-entry {
        padding-top: 70px;
    }
    .content-entry__header,
    .archive-list-page__header {
        margin-bottom: 28px;
    }
    .archive-list-page__header {
        padding-top: 70px;
    }
    .content-entry__title,
    .archive-list-page__title {
        font-size: 3.4rem;
        line-height: 1.22;
    }
    .content-entry__content {
        font-size: 1.5rem;
        line-height: 1.9;
    }
    .content-entry__content h2 {
        margin: 40px 0 16px;
        font-size: 2.3rem;
    }
    .content-entry__content h3 {
        margin: 32px 0 12px;
        font-size: 1.9rem;
    }
    .archive-list-page__description {
        font-size: 1.4rem;
    }
    .archive-list-page .post-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .archive-list-page .post-card__link {
        display: block;
    }
    .post-card__thumb {
        margin-bottom: 14px;
    }
    .archive-list-page .post-card__title,
    .archive-list-page .search-card__title {
        font-size: 1.8rem;
    }
    .navigation.pagination {
        margin-top: 36px;
    }
    :where(.single-entry__content, .content-entry__content) h1 {
        margin-top: 2em;
        font-size: 2.8rem;
    }
    :where(.single-entry__content, .content-entry__content) h2 {
        margin-top: 2em;
        padding-left: 12px;
        border-left-width: 4px;
        font-size: 2.3rem;
    }
    :where(.single-entry__content, .content-entry__content) h3 {
        font-size: 1.9rem;
    }
    :where(.single-entry__content, .content-entry__content) h4 {
        font-size: 1.7rem;
    }
    :where(.single-entry__content, .content-entry__content) blockquote {
        padding: 18px 18px;
        font-size: 1.4rem;
    }
    :where(.single-entry__content, .content-entry__content) table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    :where(.single-entry__content, .content-entry__content) th,
    :where(.single-entry__content, .content-entry__content) td {
        padding: 11px 12px;
    }
    :where(.single-entry__content, .content-entry__content) pre {
        padding: 14px;
        font-size: 1.3rem;
    }
    /*****************************************/
    /* POST TABLE ***************************/
    /*****************************************/
    .post_table,
    .post_table tbody,
    .post_table tr,
    .post_table td {
        display: block;
        width: 100%;
    }

    .post_table {
        border-collapse: collapse;
    }

    .post_table tr {
        padding: 10px 0;
    }

    .post_table td {
        border: none;
        padding: 0;
    }

    .post_table td:first-child {
        width: 100%;
        margin-bottom: 6px;
        font-weight: bold;
    }

    .post_table td:last-child {
        padding-left: 0;
    }
}
