/* ==========================================================================
   Page: About Us (会社について)
   ========================================================================== */

/* ---------- About Us Hero Photo Overrides ---------- */

.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: 1100px;
    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: 600;
    letter-spacing: 0.15em;
    color: #888;
}

.page-about-us-content__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    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: 0.75rem;
    color: #666;
}

.page-about-us-content__name-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* 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: #333;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.page-about-us-content__message-text p {
    font-size: 0.875rem;
    line-height: 2;
    color: #444;
    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: 3rem 0;
    background-color: #fff;
}

.photo-marquee__track {
    display: flex;
    gap: 1.5rem;
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
}

.photo-marquee__item {
    flex-shrink: 0;
    width: 240px;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
    border: 10px solid #eaddd4;
}

.photo-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Staggered positioning */
.photo-marquee__item--up {
    margin-top: 0;
    margin-bottom: 2rem;
}

.photo-marquee__item--down {
    margin-top: 2rem;
    margin-bottom: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Philosophy Section (Mission / Vision / Value)
   ========================================================================== */

.philosophy-section {
    background-color: #fdf6f4;
    padding: 1rem;
    max-width: 1100px;
    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.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    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.8125rem;
    font-weight: 700;
    color: #333;
}

/* Center: main text — center aligned */
.philosophy-section__center {
    text-align: center;
    align-self: center;
}

.philosophy-section__text {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 2;
    color: #333;
    margin: 0;
}

.philosophy-section__accent {
    color: #fc7a62;
    font-weight: 700;
}

.philosophy-section__accent--blue {
    color: #4875be;
}

/* ---------- 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: 1.25rem;
    font-weight: 700;
    color: #36B7C4;
    margin: 0 0 0.75rem;
}

.philosophy-section__value-subtitle {
    font-size: 0.875rem;
    color: #333;
    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: 1rem;
    font-weight: 700;
    color: #36B7C4;
    background-color: #fff;
    border-radius: 4px;
    padding: 0.5rem 0.2rem;
    min-width: 2rem;
    text-align: center;
}

.philosophy-section__value-desc {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #333;
    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;
    }

    .philosophy-section__right {
        width: 80px;
        margin: 0 auto;
    }

    .philosophy-section {
        padding: 3rem 2rem;
    }
}

/* ---------- 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: #fc7a62;
    padding: 0 4rem 4rem;
}

.workstyle-section__wave-top {
    line-height: 0;
    margin: 0 -4rem 2rem;
    background-color: #ffffff;
}

.workstyle-section__wave-top svg {
    width: 100%;
    height: 100px;
    display: block;
}

.workstyle-section__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.workstyle-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
}

.workstyle-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.workstyle-section .icon-plus--coral {
    color: #fff;
}

/* Cards */
.workstyle-section__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    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: 2rem;
}

.workstyle-section__card--3 {
    margin-top: 4rem;
}

.workstyle-section__card-inner {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

.workstyle-section__card-photo {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.workstyle-section__card-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.workstyle-section__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem;
}

.workstyle-section__card-dots {
    display: block;
    text-align: center;
    color: #fc7a62;
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 0.75rem;
}

.workstyle-section__card-text {
    font-size: 0.8125rem;
    line-height: 1.9;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .workstyle-section {
        padding: 3rem 2rem;
    }

    .workstyle-section__cards {
        grid-template-columns: 1fr;
    }

    .workstyle-section__card--2,
    .workstyle-section__card--3 {
        margin-top: 0;
    }
}


/* Override photo banner arc color on about-us page */
.page-template-template-about-us .photo-banner__arc svg path {
    fill: #fc7a62;
}


/* ==========================================================================
   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: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Left column */
.wellness-section__left {
    display: flex;
    flex-direction: column;
}

.wellness-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fc7a62;
    margin-bottom: 0.5rem;
}

.wellness-section__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2rem;
}

/* Photos — overlapping/tilted collage */
.wellness-section__photos {
    position: relative;
    height: 280px;
}

.wellness-section__photo {
    position: absolute;
    border: 5px solid #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wellness-section__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wellness-section__photo--1 {
    top: 65px;
    left: 0;
    width: 208px;
    height: 140px;
    transform: rotate(7deg);
    z-index: 2;
}

.wellness-section__photo--2 {
    top: 21px;
    left: 221px;
    width: 200px;
    height: 160px;
    transform: rotate(355deg);
    z-index: 1;
}

/* Right column */
.wellness-section__right {
    display: flex;
    flex-direction: column;
}

.wellness-section__text {
    font-size: 0.875rem;
    line-height: 2;
    color: #444;
    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;
    }

    .wellness-section__photos {
        height: 220px;
    }
}


/* Wave transition (wellness to footer) */
.wellness-wave {
    background-color: #fff;
    line-height: 0;
}

.wellness-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}


/* ==========================================================================
   About Us Contents Section (reuses jobs card styling)
   ========================================================================== */

.aboutus-contents-section {
    background-color: #fdf6f4;
    padding: 3rem 4rem 5rem;
}

.aboutus-contents-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.aboutus-contents-section__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #e8a090;
    margin-bottom: 0.5rem;
}

.aboutus-contents-section__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    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;
}

@media (max-width: 768px) {
    .aboutus-contents-section {
        padding: 3rem 2rem 4rem;
    }

    .aboutus-contents-section__cards {
        grid-template-columns: 1fr;
    }
}
