/* ==========================================================================
   Page: About Us (会社について)
   ========================================================================== */

/* ---------- About Us Hero Photo Overrides ---------- */

body.page-template-template-about-us {
    overflow-x: clip;
}

.page-template-template-about-us .page-about-us-content {
    overflow-x: clip;
}

.page-template-template-about-us .page-hero__collage-photo--1,
.page-template-template-about-us .page-about-content__overlap-photo {
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transform: none;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.14));
}

.page-template-template-about-us .page-hero__collage-photo--1 {
    top: 0;
    right: 34%;
    width: 343px;
    height: 250px;
}

.page-template-template-about-us .page-about-content__overlap-photo {
    top: -190px;
    right: 2%;
    width: 356px;
    height: 274px;
}

.page-template-template-about-us .page-hero__collage-photo--1 img,
.page-template-template-about-us .page-about-content__overlap-photo img {
    object-fit: contain;
    object-position: center;
}

/* ---------- CEO Message Section ---------- */

.page-about-us-content {
    position: relative;
    background-color: #fff;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    padding: 5rem 4rem 4rem;
    z-index: 1;
}

.page-about-us-content__inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* Section header */
.page-about-us-content__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.page-about-us-content__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #d8c9c6;
}

.page-about-us-content__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Two column body */
.page-about-us-content__body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Left column: photo + name */
.page-about-us-content__left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-about-us-content__photo {
    border-radius: 12px;
    overflow: hidden;
    height: 435px;
}

.page-about-us-content__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
}

.page-about-us-content__name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-about-us-content__name-title {
    font-size: 1rem;
    color: #5a4e4e;
}

.page-about-us-content__name-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #5a4e4e;
}

/* Right column: message */
.page-about-us-content__right {
    background-color: #fdf6f4;
    border-radius: 12px;
    padding: 2.5rem;
}

.page-about-us-content__message-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.page-about-us-content__message-text p {
    font-size: 0.875rem;
    line-height: 2;
    color: #5a4e4e;
    margin: 0 0 1.25rem;
}

.page-about-us-content__message-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Photo Marquee (auto-scroll staggered slider)
   ========================================================================== */

.photo-marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    background-color: #fff;
}

.photo-marquee__track {
    display: flex;
    gap: 0.5rem;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.photo-marquee__item {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 0;
    background-color: #fdf6f4;
}

.photo-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Staggered positioning */
.photo-marquee__item--up {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.photo-marquee__item--down {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Philosophy Section (Mission / Vision / Value)
   ========================================================================== */

.philosophy-section__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1280px;
    padding-top: 4.75rem;
    margin: 0 auto 2.5rem;
}

.philosophy-section__header-label {
    color: #d8c9c6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.philosophy-section__heading {
    margin: 0;
    color: #5a4e4e;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.philosophy-section {
    background-color: #fdf6f4;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    border-radius: .5rem;
}

/* Vertical divider line running through the section */
.philosophy-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(25% - 198px);
    width: 5px;
    background-color: #fff;
}

.philosophy-section__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    height: 39vh;
}

.philosophy-section__item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background-color: #e8ddd8;
}

.philosophy-section__item:last-child::after {
    display: none;
}

/* Left: marker + label — top aligned */
.philosophy-section__left {
    display: flex;
    align-items: flex-start;
    align-self: start;
    gap: 0.75rem;
}

.philosophy-section__marker {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.philosophy-section__marker--red {
    background-color: #fc7a62;
}

.philosophy-section__marker--blue {
    background-color: #4875be;
}

.philosophy-section__marker--teal {
    background-color: #36B7C4;
}

.philosophy-section__label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.philosophy-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #888;
}

.philosophy-section__eyebrow--red {
    color: #fc7a62;
}

.philosophy-section__eyebrow--blue {
    color: #4875be;
}

.philosophy-section__eyebrow--teal {
    color: #36B7C4;
}

.philosophy-section__subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
}

/* Center: main text — center aligned */
.philosophy-section__center {
    text-align: center;
    align-self: center;
}

.philosophy-section__text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 2;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    margin: 0;
}

.philosophy-section__accent {
    color: #fc7a62;
    font-weight: 700;
}

.philosophy-section__accent--blue {
    color: #4875be;
}

.philosophy-section__item:nth-child(2) strong {
    color: #4875be;
    font-weight: 700;
}

/* ---------- Value section (YASURAGI acrostic) ---------- */

.philosophy-section__item--value {
    align-items: start;
    height: 60vh;
}

.philosophy-section__center--value {
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.philosophy-section__value-title {
    font-size: 1rem;
    font-weight: 700;
    color: #36B7C4;
    letter-spacing: 0.2em;
    margin: 0 0 0.75rem;
}

.philosophy-section__value-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: #5a4e4e;
    margin: 0 0 1.5rem;
}

.philosophy-section__value-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.philosophy-section__value-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.philosophy-section__value-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: #36B7C4;
    letter-spacing: 0.2em;
    background-color: #fff;
    border-radius: 4px;
    padding: 0.5rem 0.2rem;
    min-width: 2rem;
    text-align: center;
}

.philosophy-section__value-desc {
    font-size: 1rem;
    font-weight: 700;
    color: #5a4e4e;
    background-color: #fff;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    flex: 1;
    text-align: left;
}

/* Value illustration — positioned lower-right */
.philosophy-section__right--value {
    width: 160px;
    align-self: end;
}

/* Right: illustration — bottom aligned */
.philosophy-section__right {
    width: 170px;
    flex-shrink: 0;
    align-self: end;
}

.philosophy-section__right img {
    width: 100%;
    height: auto;
    display: block;
    padding-bottom: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .philosophy-section__item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
        min-height: 0;
    }

    .philosophy-section__right {
        width: 80px;
        margin: 0 auto;
    }

    .philosophy-section {
        padding: 3rem 2rem;
    }

    .philosophy-section__text {
        font-size: clamp(0.9375rem, 2vw, 1rem);
        line-height: 2;
    }

    .philosophy-section__value-subtitle {
        font-size: clamp(0.9375rem, 2vw, 1rem);
        line-height: 2;
    }

    .philosophy-section__center {
        text-align: left;
    }

    .philosophy-section__center--value {
        text-align: center;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .page-about-us-content {
        padding: 4rem 2rem 3rem;
    }

    .page-about-us-content__body {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-about-us-content {
        border-radius: 24px 24px 0 0;
    }

    .page-about-us-content__body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-about-us-content__right {
        padding: 1.5rem;
    }
}


/* ==========================================================================
   Workstyle Section
   ========================================================================== */

.workstyle-section {
    background-color: #ffa38d;
    padding: 0 4rem 4rem;
}

.workstyle-section__wave-top {
    line-height: 0;
    margin: 0 -4rem 2.5rem;
    background-color: #ffffff;
}

.workstyle-section__wave-top-image {
    width: 100%;
    height: clamp(42.666px, 5.5555vw, 80px);
    display: block;
    object-fit: fill;
}

.workstyle-section__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1280px;
    margin: 0 auto 2.5rem;
}

.workstyle-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
}

.workstyle-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    margin: 0;
}

.workstyle-section .icon-plus--coral {
    color: #fff;
}

/* Cards */
.workstyle-section__cards {
    display: grid;
    /* Keep the 408px design width at full size, while preventing the three
       columns from overflowing the section gutter on narrower PC screens. */
    grid-template-columns: repeat(3, minmax(0, 408px));
    width: 100%;
    justify-content: center;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

.workstyle-section__card {
    position: relative;
    padding-top: 1.5rem;
}

/* Descending staircase offset */
.workstyle-section__card--1 {
    margin-top: 0;
}

.workstyle-section__card--2 {
    margin-top: 2.5rem;
}

.workstyle-section__card--3 {
    margin-top: 5rem;
}

.workstyle-section__card-inner {
    box-sizing: border-box;
    height: 504px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2.5rem;
}

.workstyle-section__card-photo {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.workstyle-section__card-photo img {
    width: 100%;
    height: 219px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.workstyle-section__card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #5a4e4e;
    letter-spacing: normal;
    margin: 0 0 0.75rem;
}

.workstyle-section__card-dots {
    display: block;
    width: 20px;
    height: 4px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 0;
    background:
        linear-gradient(
            to right,
            rgba(252, 122, 98, 0.8) 0 4px,
            transparent 4px 8px,
            rgba(252, 122, 98, 0.6) 8px 12px,
            transparent 12px 16px,
            rgba(252, 122, 98, 0.4) 16px 20px
        );
    box-shadow: none;
    color: #fc7a62;
    font-size: 0;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.workstyle-section__card-text {
    font-size: 1rem;
    line-height: 2;
    color: #5a4e4e;
    margin: 0;
}

.workstyle-section__pagination {
    display: none;
}

@media (max-width: 768px) {
    .workstyle-section {
        padding: 3rem 2rem;
    }

    .workstyle-section__wave-top {
        margin-right: -2rem;
        margin-left: -2rem;
    }

    .workstyle-section__cards {
        display: flex;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .workstyle-section__cards::-webkit-scrollbar {
        display: none;
    }

    .workstyle-section__card {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .workstyle-section__card-inner {
        height: auto;
        padding: 2.5rem 1.25rem;
    }

    .workstyle-section__card-photo img {
        height: auto;
        aspect-ratio: 328 / 219;
    }

    .workstyle-section__card-text {
        font-size: 0.9375rem;
    }

    .workstyle-section__card--2,
    .workstyle-section__card--3 {
        margin-top: 0;
    }

    .workstyle-section__pagination {
        display: flex;
        width: max-content;
        flex-direction: column;
        gap: 0.5rem;
        margin: 1.5rem auto 0;
    }

    .workstyle-section__pagination-dot {
        width: 1rem;
        height: 1rem;
        border: 0;
        border-radius: 50%;
        padding: 0;
        background-color: rgba(252, 122, 98, 0.4);
        cursor: pointer;
    }

    .workstyle-section__pagination-dot.is-active {
        background-color: #fc7a62;
    }

    .workstyle-section__heading {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }

    .workstyle-section__card-title {
        font-size: clamp(1rem, 2.25vw, 1.125rem);
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .workstyle-section__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .workstyle-section__card--2 {
        margin-top: 1.5rem;
    }

    .workstyle-section__card--3 {
        margin-top: 3rem;
    }

    .workstyle-section__card-inner {
        height: auto;
        min-height: 100%;
        padding: 1.5rem;
    }

    .workstyle-section__card-photo img {
        height: auto;
        aspect-ratio: 328 / 219;
    }

    .workstyle-section__card-text {
        font-size: 0.9375rem;
    }
}


/* Override photo banner arc color on about-us page */
.page-template-template-about-us .photo-banner__arc svg path {
    fill: #ffa38d;
}

.page-template-template-about-us .photo-banner {
    margin-top: 0;
}


/* ==========================================================================
   Wellness Section
   ========================================================================== */

.wellness-section {
    background-color: #fff;
    padding: 5rem 4rem;
}

.wellness-section__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* Left column */
.wellness-section__left {
    display: flex;
    flex-direction: column;
}

.wellness-section__label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #d8c9c6;
    margin-bottom: 0.5rem;
}

.wellness-section__label-mark {
    width: 8px;
    height: 2px;
    flex: 0 0 8px;
    background-color: #fc7a62;
}

.wellness-section__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    margin: 0 0 2rem;
}

/*
 * The image assets already include the tilted, rounded white frames.  Keep
 * their transparent canvases intact and position the two SVG-exported
 * bounding boxes inside the 465 x 285px collage coordinate system.
 */
.wellness-section__photos-wrap {
    width: min(100%, 465px);
    display: flow-root;
    container-type: inline-size;
}

.wellness-section__photos {
    position: relative;
    width: 100%;
    aspect-ratio: 465 / 285;
    height: auto;
    margin-top: 0;
}

.wellness-section__photo {
    position: absolute;
    box-sizing: border-box;
}

.wellness-section__photo img {
    width: 100%;
    height: auto;
    display: block;
}

.wellness-section__photo--1 {
    top: 28.772%;
    left: 0;
    width: 56.559%;
    z-index: 2;
}

.wellness-section__photo--2 {
    top: 7.719%;
    left: 43.871%;
    width: 56.129%;
    z-index: 1;
}

/* Right column */
.wellness-section__right {
    display: flex;
    flex-direction: column;
}

.wellness-section__text {
    font-size: 1rem;
    line-height: 2;
    color: #5a4e4e;
    margin: 0 0 2rem;
}

.wellness-section__illustration {
    align-self: flex-end;
    width: 160px;
}

.wellness-section__illustration img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .wellness-section {
        padding: 4rem 2rem;
    }

    .wellness-section__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

@media (max-width: 600px) {
    .wellness-section__heading {
        margin-bottom: 0;
    }

    .wellness-section__photos {
        /* Offset the exported canvas's transparent top inset so the visible
           collage begins exactly 2rem below the heading. */
        margin-top: calc(2rem - 4.731cqw);
    }

}


/* Wave transition (wellness to footer) */
.wellness-wave {
    background-color: #fff;
    line-height: 0;
}

.wellness-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wellness-wave .wellness-wave__svg--sp {
    display: none;
}


/* ==========================================================================
   About Us Contents Section (reuses jobs card styling)
   ========================================================================== */

.aboutus-contents-section {
    background-color: #fdf6f4;
    padding: 2rem 4rem 5rem;
}

.aboutus-contents-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.aboutus-contents-section__label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fc7a62;
    margin-bottom: 0.5rem;
}

.aboutus-contents-section__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.aboutus-contents-section__cards .jobs-section__card {
    height: 100%;
}

.aboutus-contents-section__cards .jobs-section__card-inner {
    height: 78%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aboutus-contents-section__cards .jobs-section__card-arrow {
    margin-top: auto;
}

.aboutus-contents-section__illustration {
    width: 100%;
    height: 160px;
    overflow: visible;
    background-color: transparent;
}

.aboutus-contents-section__illustration img {
    object-fit: contain;
}

@media (max-width: 768px) {
    .aboutus-contents-section {
        padding: 3rem 2rem 4rem;
    }

    .aboutus-contents-section__header {
        margin-bottom: 1.25rem;
    }

    .aboutus-contents-section__cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .philosophy-section__header {
        /* Match the desktop section gutter without affecting the SP header. */
        width: min(1280px, calc(100% - 8rem));
    }

    .philosophy-section {
        box-sizing: border-box;
        padding: 0;
    }

    .philosophy-section::before {
        left: 113px;
        width: 8px;
    }

    .philosophy-section__item {
        grid-template-columns: 151px minmax(0, 1fr) 170px;
        gap: 2rem;
        box-sizing: border-box;
        height: 323px;
        padding: 0 4rem;
    }

    /*
     * PC SVG (1440px) coordinates:
     * section y=1616..2997, separators y=1979 / 2302.
     * The first row is 363px, the second 323px and VALUE is 695px.
     */
    .philosophy-section__item:first-child {
        height: 367px;
    }

    .philosophy-section__item--value {
        height: 691px;
    }

    .philosophy-section__left {
        position: absolute;
        top: 40px;
        left: 109px;
        display: block;
        z-index: 2;
    }

    .philosophy-section__item:first-child .philosophy-section__left {
        top: 84px;
    }

    .philosophy-section__marker {
        position: absolute;
        top: 0;
        left: 0;
        margin-top: 0;
        border-radius: 1px;
    }

    .philosophy-section__label {
        margin-left: 109px;
    }

    .philosophy-section__center {
        grid-column: 2;
    }

    .philosophy-section__right {
        grid-column: 3;
    }

    .philosophy-section__item::after {
        right: 110px;
        left: 218px;
        width: auto;
        transform: none;
        background: repeating-linear-gradient(
            to right,
            #d8c9c6 0 2px,
            transparent 2px 4px
        );
    }

    .workstyle-section {
        margin-top: 6.25rem;
        padding-bottom: 5rem;
    }

    .page-template-template-about-us .workstyle-section__card-title {
        font-size: 1.125rem;
        font-weight: 500;
        letter-spacing: normal;
    }

    .page-template-template-about-us .wellness-section {
        padding-top: 2.5rem;
        padding-bottom: 6.25rem;
    }

    .page-template-template-about-us .wellness-section__text {
        margin-bottom: 4rem;
    }

    .page-template-template-about-us .wellness-section__illustration {
        width: 299px;
    }

    .page-template-template-about-us .aboutus-contents-section {
        padding-top: 2.5rem;
    }

    .page-template-template-about-us .aboutus-contents-section__header {
        margin-bottom: 1.25rem;
    }

    .page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card {
        /* These cards have no overlapping badge, so the shared jobs offset is unnecessary. */
        padding-top: 0;
    }

    .page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card-title {
        display: flex;
        min-height: 3.625rem;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    /*
     * Keep the central copy and illustrations attached to each philosophy row.
     * These values reproduce the 1440px SVG coordinates within the 1280px box.
     */
    .philosophy-section__center {
        position: absolute;
        grid-column: auto;
        top: 123px;
        left: 50%;
        width: 760px;
        transform: translateX(-50%);
    }

    .philosophy-section__item:first-child .philosophy-section__center {
        top: 163px;
    }

    .philosophy-section__center--value {
        top: 121px;
        width: 625px;
    }

    .philosophy-section__right {
        position: absolute;
        top: 123px;
        right: 110px;
        width: 190px;
    }

    .philosophy-section__item:first-child .philosophy-section__right {
        top: 167px;
    }

    .philosophy-section__right--value {
        top: 455px;
    }

    .philosophy-section__right img {
        padding-bottom: 0;
    }

    .philosophy-section__value-list {
        gap: 8px;
    }

    .philosophy-section__value-row {
        height: 44px;
        gap: 4px;
        align-items: stretch;
    }

    .philosophy-section__value-letter {
        display: flex;
        box-sizing: border-box;
        width: 48px;
        height: 44px;
        min-width: 48px;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }

    .philosophy-section__value-desc {
        display: flex;
        box-sizing: border-box;
        min-height: 44px;
        align-items: center;
        padding: 0 12px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    /*
     * Preserve the SVG's vertical rhythm on tablet widths while allowing the
     * center copy to reflow without colliding with the labels or illustration.
     */
    .philosophy-section__item {
        grid-template-columns: 151px minmax(0, 1fr) 150px;
        gap: 1rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .philosophy-section__center {
        align-self: start;
        margin-top: 123px;
    }

    .philosophy-section__item:first-child .philosophy-section__center {
        margin-top: 163px;
    }

    .philosophy-section__center--value {
        margin-top: 120px;
    }

    .philosophy-section__right {
        width: 150px;
        align-self: start;
        margin-top: 140px;
    }

    .philosophy-section__item:first-child .philosophy-section__right {
        margin-top: 163px;
    }

    .philosophy-section__right--value {
        margin-top: 472px;
    }

    .philosophy-section__right img {
        padding-bottom: 0;
    }

    .philosophy-section__item::after {
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .philosophy-section__header {
        margin-right: 1.5rem;
        margin-bottom: 2rem;
        margin-left: 1.5rem;
        padding-top: 2rem;
    }

    .philosophy-section {
        padding: 0 1.5rem 3rem;
        border-radius: 0;
    }

    .philosophy-section::before {
        display: none;
    }

    .philosophy-section__item {
        padding: 2.5rem 0;
    }

    .philosophy-section__item::after {
        right: 0;
        left: 0;
        width: auto;
        transform: none;
    }

    .philosophy-section__right {
        width: 180px;
    }

    .philosophy-section__right--value {
        width: min(220px, 70vw);
    }
}

/* SP layout from the page-specific XD composition. */
@media (max-width: 768px) {
    .page-about-us-content {
        border-radius: 20px 20px 0 0;
    }

    .page-about-us-content__right {
        padding: 2rem 1.5rem;
    }

    .page-about-us-content__message-title {
        margin: 0 0 1rem;
    }

    .page-about-us-content__message-text p {
        margin-bottom: 1.25rem;
    }

    .philosophy-section__item {
        row-gap: 2.5rem;
    }

    .philosophy-section__marker {
        display: none;
    }

    .philosophy-section__break--sp-hidden {
        display: none;
    }

    body.page-template-template-about-us .philosophy-section__text,
    body.page-template-template-about-us .philosophy-section__value-subtitle {
        font-size: 16px;
    }

    .philosophy-section__right {
        width: min(190px, 60vw);
    }

    .philosophy-section__right--value {
        width: min(190px, 60vw);
    }

    .workstyle-section {
        padding: 0 1.5rem 3rem;
        background-color: #ffa38d;
    }

    .workstyle-section__wave-top {
        margin: 0 -1.5rem;
        background-color: #fff;
    }

    .workstyle-section__wave-top-image {
        width: 100%;
        height: 80px;
    }

    .workstyle-section__header {
        flex-wrap: wrap;
        margin: 2rem auto 1.5rem;
    }

    .workstyle-section__heading {
        flex-basis: 100%;
    }

    .page-template-template-about-us .photo-banner__arc {
        height: 80px;
        background: url("../images/about-us/about-us-workstyle-wave-bottom.svg") center top / 100% 80px no-repeat;
    }

    .page-template-template-about-us .photo-banner__arc svg {
        visibility: hidden;
    }

    .page-template-template-about-us .wellness-wave svg {
        height: 40px;
    }

    .page-template-template-benefits-career .wellness-wave svg {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .page-about-us-content__header {
        margin-bottom: 1.25rem;
    }

    /*
     * SP philosophy geometry from the supplied 375px SVG:
     * 448px MISSION + 451px VISION + 909px VALUE = 1808px.
     */
    body.page-template-template-about-us .philosophy-section__header {
        margin-bottom: 25px;
    }

    body.page-template-template-about-us .philosophy-section {
        box-sizing: border-box;
        padding: 0 24px;
        border-radius: 8px;
    }

    body.page-template-template-about-us .philosophy-section__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        box-sizing: border-box;
        height: auto;
        padding: 40px 0;
    }

    body.page-template-template-about-us .philosophy-section__center {
        margin-top: 41px;
        text-align: left;
    }

    body.page-template-template-about-us .philosophy-section__item:nth-child(2) .philosophy-section__center {
        margin-top: 44px;
    }

    body.page-template-template-about-us .philosophy-section__right {
        width: 190px;
        margin-top: 32px;
        margin-right: 20px;
        margin-left: auto;
    }

    body.page-template-template-about-us .philosophy-section__item:nth-child(2) .philosophy-section__right {
        margin-right: 0;
    }

    body.page-template-template-about-us .philosophy-section__right img {
        padding-bottom: 0;
    }

    body.page-template-template-about-us .philosophy-section__item--value {
        row-gap: 40px;
    }

    body.page-template-template-about-us .philosophy-section__center--value {
        margin-top: 0;
        text-align: center;
    }

    body.page-template-template-about-us .philosophy-section__value-title {
        margin-bottom: 8px;
    }

    body.page-template-template-about-us .philosophy-section__value-subtitle {
        margin-bottom: 14px;
        font-size: 18px;
        line-height: 2;
    }

    body.page-template-template-about-us .philosophy-section__value-list {
        gap: 8px;
    }

    body.page-template-template-about-us .philosophy-section__value-row {
        gap: 4px;
        align-items: stretch;
    }

    body.page-template-template-about-us .philosophy-section__value-letter {
        display: flex;
        box-sizing: border-box;
        width: 40px;
        height: 44px;
        min-width: 40px;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 20px;
        line-height: 1;
    }

    body.page-template-template-about-us .philosophy-section__value-desc {
        display: flex;
        box-sizing: border-box;
        min-height: 44px;
        align-items: center;
        padding: 0 20px;
        font-size: 15px;
        line-height: 1.5;
    }

    body.page-template-template-about-us .philosophy-section__value-row:nth-child(3) .philosophy-section__value-desc {
        min-height: 68px;
    }

    body.page-template-template-about-us .philosophy-section__right--value {
        width: 190px;
        margin-top: 0;
        margin-right: 0;
    }

    /*
     * SP workstyle geometry from the supplied 375 x 1086 SVG. The top and
     * bottom waves belong to the adjoining sections so they cannot drift away.
     */
    body.page-template-template-about-us .workstyle-section {
        box-sizing: border-box;
        margin-top: 32px;
        padding: 0 24px 40px;
    }

    body.page-template-template-about-us .workstyle-section__wave-top {
        height: 32px;
        margin: 0 -24px;
    }

    body.page-template-template-about-us .workstyle-section__wave-top picture {
        display: block;
        width: 100%;
        height: 32px;
    }

    body.page-template-template-about-us .workstyle-section__wave-top-image {
        width: 100%;
        height: 32px;
    }

    body.page-template-template-about-us .workstyle-section__header {
        gap: 8px;
        margin: 60px 0 24px;
    }

    body.page-template-template-about-us .workstyle-section__heading {
        font-size: 20px;
    }

    body.page-template-template-about-us .workstyle-section__cards {
        gap: 24px;
    }

    body.page-template-template-about-us .workstyle-section__card {
        box-sizing: border-box;
        padding-top: 27px;
    }

    body.page-template-template-about-us .workstyle-section__card-inner {
        box-sizing: border-box;
        height: 505px;
        padding: 40px 20px 32px;
        border-radius: 8px;
    }

    body.page-template-template-about-us .workstyle-section__card > .jobs-section__badge {
        top: 0;
        left: 20px;
    }

    body.page-template-template-about-us .workstyle-section__card .jobs-section__badge-number {
        box-sizing: border-box;
        width: 80px;
        height: 50px;
        border-radius: 20px;
        font-weight: 800;
    }

    body.page-template-template-about-us .workstyle-section__card .jobs-section__badge-arrow {
        border-top-width: 5px;
        border-right-width: 4px;
        border-left-width: 4px;
    }

    body.page-template-template-about-us .workstyle-section__card-photo {
        margin-bottom: 16px;
        border-radius: 4px;
    }

    body.page-template-template-about-us .workstyle-section__card-photo img {
        height: 192px;
        aspect-ratio: auto;
    }

    body.page-template-template-about-us .workstyle-section__card-title {
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.5;
    }

    body.page-template-template-about-us .workstyle-section__card-dots {
        margin-bottom: 16px;
    }

    body.page-template-template-about-us .workstyle-section__card-text {
        font-size: 16px;
        line-height: 2;
        letter-spacing: 0.5px;
    }

    body.page-template-template-about-us .workstyle-section__pagination {
        gap: 5px;
        margin-top: 24px;
    }

    body.page-template-template-about-us .workstyle-section__pagination-dot,
    body.page-template-template-about-us .workstyle-section__pagination-dot.is-active {
        width: 16px;
        height: 16px;
        background-color: #f00;
    }

    body.page-template-template-about-us .photo-banner {
        margin-top: 0;
    }

    body.page-template-template-about-us .photo-banner__arc {
        height: 40px;
        background: none;
    }

    body.page-template-template-about-us .photo-banner__arc svg {
        visibility: visible;
    }
}

/* Compact tablet layout: preserve the PC hierarchy without phone-only stacking. */
@media (min-width: 601px) and (max-width: 768px) {
    body.page-template-template-about-us .page-about-us-content { border-radius: 32px 32px 0 0; padding: 4.5rem 2rem 4rem; }
    body.page-template-template-about-us .page-about-us-content__body { grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr); gap: 2rem; }
    body.page-template-template-about-us .page-about-us-content__photo { height: 360px; }
    body.page-template-template-about-us .page-about-us-content__right { padding: 2rem; }

    body.page-template-template-about-us .photo-marquee { padding: 2rem 0; }
    body.page-template-template-about-us .photo-marquee__item { width: 240px; height: 160px; }

    body.page-template-template-about-us .philosophy-section__header { width: auto; margin: 0 2rem 2rem; padding-top: 4rem; }
    body.page-template-template-about-us .philosophy-section { max-width: none; margin: 0; padding: 0 2rem 3rem; border-radius: 0; }
    body.page-template-template-about-us .philosophy-section::before { display: block; left: 5.5rem; width: 6px; }
    body.page-template-template-about-us .philosophy-section__item,
    body.page-template-template-about-us .philosophy-section__item:first-child,
    body.page-template-template-about-us .philosophy-section__item--value { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px; gap: 1.25rem; height: auto; min-height: 250px; padding: 2.5rem 0; }
    body.page-template-template-about-us .philosophy-section__item--value { min-height: 0; }
    body.page-template-template-about-us .philosophy-section__left { position: relative; top: auto; left: auto; display: flex; align-self: start; }
    body.page-template-template-about-us .philosophy-section__marker { display: block; position: relative; top: auto; left: auto; }
    body.page-template-template-about-us .philosophy-section__label { margin-left: 0; }
    body.page-template-template-about-us .philosophy-section__center,
    body.page-template-template-about-us .philosophy-section__center--value { grid-column: 2; align-self: center; margin-top: 0; text-align: center; }
    body.page-template-template-about-us .philosophy-section__right,
    body.page-template-template-about-us .philosophy-section__right--value { grid-column: 3; width: 110px; align-self: center; margin-top: 0; }
    body.page-template-template-about-us .philosophy-section__item::after { right: 0; left: 120px; width: auto; }

    body.page-template-template-about-us .workstyle-section { margin-top: 0; padding: 0 2rem 4rem; }
    body.page-template-template-about-us .workstyle-section__wave-top { margin-right: -2rem; margin-left: -2rem; }
    body.page-template-template-about-us .workstyle-section__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; overflow: visible; }
    body.page-template-template-about-us .workstyle-section__card { flex: initial; margin-top: 0; }
    body.page-template-template-about-us .workstyle-section__card--3 { grid-column: 1 / -1; width: calc((100% - 1.5rem) / 2); justify-self: center; }
    body.page-template-template-about-us .workstyle-section__card-inner { height: 100%; padding: 1.5rem; }
    body.page-template-template-about-us .workstyle-section__card-photo img { height: auto; aspect-ratio: 328 / 219; }
    body.page-template-template-about-us .workstyle-section__pagination { display: none; }

    body.page-template-template-about-us .wellness-section { padding: 4.5rem 2rem; }
    body.page-template-template-about-us .wellness-section__inner { grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr); gap: 2rem; }
    body.page-template-template-about-us .wellness-section__text { margin-bottom: 1.5rem; }

    body.page-template-template-about-us .aboutus-contents-section { padding: 3rem 2rem 4.5rem; }
    body.page-template-template-about-us .aboutus-contents-section__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card {
        height: 100%;
        padding-top: 0;
    }
    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card-inner {
        box-sizing: border-box;
        height: 100%;
    }
    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card:last-child {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }
}

/*
 * The PC three-column card groups fall below a readable card width on iPad
 * Air. Keep the page-specific card groups together as two columns instead of
 * inheriting the shared jobs grid or the small-PC staircase.
 */
@media (min-width: 769px) and (max-width: 1024px) {
    body.page-template-template-about-us .workstyle-section {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    body.page-template-template-about-us .workstyle-section__wave-top {
        margin-right: -2rem;
        margin-left: -2rem;
    }

    body.page-template-template-about-us .workstyle-section__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    body.page-template-template-about-us .aboutus-contents-section__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    body.page-template-template-about-us .workstyle-section__card,
    body.page-template-template-about-us .workstyle-section__card--2,
    body.page-template-template-about-us .workstyle-section__card--3 {
        height: 100%;
        margin-top: 0;
    }

    body.page-template-template-about-us .workstyle-section__card--3 {
        grid-column: 1 / -1;
        width: calc((100% - 1.5rem) / 2);
        justify-self: center;
    }

    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card:last-child {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    body.page-template-template-about-us .workstyle-section__card-inner,
    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card-inner {
        height: 100%;
    }

    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card-inner {
        box-sizing: border-box;
    }

    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card-title {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    body.page-template-template-about-us .aboutus-contents-section__cards .jobs-section__card,
    body.page-template-template-benefits-career .aboutus-contents-section__cards .jobs-section__card {
        /* These cards do not use the shared jobs badge overlap on mobile. */
        min-width: 0;
        padding-top: 0;
    }

    body.page-template-template-about-us .wellness-wave__svg--pc {
        display: none;
    }

    body.page-template-template-about-us .wellness-wave__svg--sp {
        display: block;
        height: 32px;
    }
}

/*
 * Tablet layout (601px–1024px)
 *
 * Keep each philosophy label attached to its row, then give the copy and
 * illustration their own columns. This avoids the desktop absolute positions
 * and the narrow three-column label wrapping around the 768px breakpoint.
 */
@media (min-width: 601px) and (max-width: 1024px) {
    body.page-template-template-about-us .philosophy-section__header {
        width: auto;
        margin-right: clamp(32px, 4vw, 48px);
        margin-bottom: 32px;
        margin-left: clamp(32px, 4vw, 48px);
        padding-top: clamp(48px, 6.25vw, 64px);
    }

    body.page-template-template-about-us .philosophy-section {
        box-sizing: border-box;
        max-width: none;
        margin: 0;
        padding: 0 clamp(32px, 4vw, 48px);
        border-radius: 0;
    }

    body.page-template-template-about-us .philosophy-section::before {
        display: none;
    }

    body.page-template-template-about-us .philosophy-section__item,
    body.page-template-template-about-us .philosophy-section__item:first-child,
    body.page-template-template-about-us .philosophy-section__item--value {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(140px, 20vw, 190px);
        grid-template-areas:
            "label label"
            "copy art";
        column-gap: clamp(24px, 4vw, 40px);
        row-gap: 24px;
        box-sizing: border-box;
        height: auto;
        min-height: 0;
        padding: clamp(40px, 5vw, 52px) 0;
    }

    body.page-template-template-about-us .philosophy-section__left {
        position: relative;
        top: auto;
        left: auto;
        display: flex;
        grid-area: label;
        align-items: flex-start;
        align-self: auto;
        gap: 12px;
    }

    body.page-template-template-about-us .philosophy-section__item:first-child .philosophy-section__left {
        top: auto;
    }

    body.page-template-template-about-us .philosophy-section__marker {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        width: 12px;
        height: 12px;
        margin-top: 3px;
    }

    body.page-template-template-about-us .philosophy-section__label {
        margin-left: 0;
    }

    body.page-template-template-about-us .philosophy-section__center,
    body.page-template-template-about-us .philosophy-section__center--value {
        position: relative;
        top: auto;
        left: auto;
        grid-area: copy;
        width: auto;
        align-self: center;
        margin-top: 0;
        transform: none;
    }

    body.page-template-template-about-us .philosophy-section__center {
        text-align: left;
    }

    body.page-template-template-about-us .philosophy-section__center--value {
        text-align: center;
    }

    body.page-template-template-about-us .philosophy-section__item:first-child .philosophy-section__center {
        margin-top: 0;
    }

    body.page-template-template-about-us .philosophy-section__text,
    body.page-template-template-about-us .philosophy-section__value-subtitle {
        font-size: clamp(16px, 2vw, 18px);
        line-height: 2;
    }

    body.page-template-template-about-us .philosophy-section__right,
    body.page-template-template-about-us .philosophy-section__right--value,
    body.page-template-template-about-us .philosophy-section__item:first-child .philosophy-section__right {
        position: relative;
        top: auto;
        right: auto;
        grid-area: art;
        width: clamp(140px, 20vw, 190px);
        align-self: center;
        margin: 0;
    }

    body.page-template-template-about-us .philosophy-section__right--value {
        align-self: end;
    }

    body.page-template-template-about-us .philosophy-section__right img {
        padding-bottom: 0;
    }

    body.page-template-template-about-us .philosophy-section__item::after {
        right: 0;
        left: 0;
        width: auto;
        transform: none;
    }

    body.page-template-template-about-us .workstyle-section {
        box-sizing: border-box;
        margin-top: clamp(48px, 6.25vw, 64px);
        padding: 0 clamp(32px, 4vw, 48px) 64px;
    }

    body.page-template-template-about-us .workstyle-section__wave-top {
        height: clamp(48px, 8vw, 64px);
        margin: 0 calc(clamp(32px, 4vw, 48px) * -1);
    }

    body.page-template-template-about-us .workstyle-section__wave-top picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    body.page-template-template-about-us .workstyle-section__wave-top-image {
        width: 100%;
        height: 100%;
    }

    body.page-template-template-about-us .workstyle-section__header {
        margin: 32px 0;
    }

    body.page-template-template-about-us .workstyle-section__cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
        align-items: stretch;
        overflow: visible;
    }

    body.page-template-template-about-us .workstyle-section__card,
    body.page-template-template-about-us .workstyle-section__card--2,
    body.page-template-template-about-us .workstyle-section__card--3 {
        height: 100%;
        flex: initial;
        margin-top: 0;
    }

    body.page-template-template-about-us .workstyle-section__card--3 {
        grid-column: 1 / -1;
        width: calc((100% - 24px) / 2);
        justify-self: center;
    }

    body.page-template-template-about-us .workstyle-section__card-inner {
        height: 100%;
        padding: clamp(20px, 3vw, 32px);
    }

    body.page-template-template-about-us .workstyle-section__card-photo img {
        height: auto;
        aspect-ratio: 328 / 219;
    }

    body.page-template-template-about-us .workstyle-section__pagination {
        display: none;
    }

    body.page-template-template-about-us .photo-banner {
        margin-top: 0;
    }

    body.page-template-template-about-us .photo-banner__arc {
        height: auto;
        background: none;
    }

    body.page-template-template-about-us .photo-banner__arc svg {
        visibility: visible;
    }

    body.page-template-template-about-us .photo-banner__arc-svg--sp {
        height: clamp(40px, 6.67vw, 56px);
    }

    body.page-template-template-about-us .photo-banner__arc-svg--pc {
        height: clamp(56px, 7.8125vw, 80px);
    }
}
