/* ==========================================================================
   Page: About Company (会社を知る)
   ========================================================================== */

/* ---------- Page Hero ---------- */

.page-hero--about-company {
    position: relative;
    min-height: 360px;
    background: url('../images/main-hero-bg-2.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 4rem 4rem;
    width: 100%;
}

.page-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Collage photos on right side of hero */
.page-hero__collage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    pointer-events: none;
}

.page-hero__collage-photo {
    position: absolute;
    border: 6px solid #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.page-hero__collage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero__collage-photo--1 {
    top: 10%;
    right: 41%;
    width: 260px;
    height: 220px;
    transform: rotate(9deg);
}

.page-hero__collage-photo--2 {
    top: 40%;
    right: 25%;
    width: 260px;
    height: 200px;
    transform: rotate(-3deg);
    z-index: 10;
}

/* ---------- About Content Section ---------- */

.page-about-content {
    position: relative;
    background-color: #fff;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    padding: 5rem 4rem 4rem;
    z-index: 1;
}

/* Overlap photo that sits on top of this section, extending upward */
.page-about-content__overlap-photo {
    position: absolute;
    top: -180px;
    right: 2%;
    width: 260px;
    height: 200px;
    border: 6px solid #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: rotate(347deg);
    z-index: 10;
}

.page-about-content__overlap-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-about-content__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Left column: text */

.page-about-content__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #888;
    margin-bottom: 1.5rem;
}

.page-about-content__heading {
    margin: 0 0 2rem;
    line-height: 0;
}

.page-about-content__heading-image {
    display: block;
    width: min(100%, 438px);
    height: auto;
}

.page-about-content__description {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #333;
    margin: 0;
}

/* Right column: image layout (2 columns, each stacked vertically) */
.page-about-content__images {
    display: flex;
    gap: 1rem;
}

.page-about-content__images-col {
    display: flex;
    flex-direction: column;
}

.page-about-content__images-col--left {
    flex: 1;
    align-items: flex-end;
    gap: 2rem;
}

.page-about-content__images-col--right {
    flex: 1;
    align-items: flex-end;
    padding-right: 1rem;
    max-width: 180px;
}

.page-about-content__img {
    overflow: hidden;
    border-radius: 12px;
}

.page-about-content__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Grandma: smaller square */
.page-about-content__img--grandma {
    max-width: 180px;
}

.page-about-content__img--grandma img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Cartoon: even smaller, right aligned */
.page-about-content__img--cartoon {
    max-width: 130px;
    border-radius: 0;
}

.page-about-content__img--cartoon img {
    object-fit: contain;
}

/* Logo: smaller, right aligned with padding */
.page-about-content__img--logo {
    max-width: 70px;
    border-radius: 0;
}

.page-about-content__img--logo img {
    object-fit: contain;
    padding-right: 1rem;
}

/* Hallway: slightly smaller portrait, clip white space */
.page-about-content__img--hallway {
    height: 240px;
}

.page-about-content__img--hallway img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   About Contents Section
   ========================================================================== */

.about-contents-section {
    background-color: #fdf6f4;
    padding: 5rem 4rem;
}

.about-contents-section__header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.about-contents-section__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #e8a090;
    margin-bottom: 0.5rem;
}

.about-contents-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0.75rem 0 1.5rem;
}

.about-contents-section__description {
    font-size: 0.875rem;
    line-height: 1.9;
    color: #555;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards grid */
.about-contents-section__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-contents-section__card {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.about-contents-section__card:hover {
    opacity: 0.85;
}

/* Card top: eyebrow + title (left) + arrow (right) */
.about-contents-section__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
}

.about-contents-section__card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-contents-section__card-eyebrow {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-contents-section__card-eyebrow--coral {
    color: #fc7a62;
}

.about-contents-section__card-eyebrow--blue {
    color: #4875be;
}

.about-contents-section__card-eyebrow--teal {
    color: #36B7C4;
}

.about-contents-section__card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Card photo */
.about-contents-section__card-photo {
    padding: 0 1.5rem 1.5rem;
}

.about-contents-section__card-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .page-hero__inner {
        padding: 5rem 2rem 3rem;
    }

    .page-about-content {
        padding: 4rem 2rem 3rem;
    }

    .page-hero__collage-photo--1 {
        width: 220px;
        height: 170px;
    }

    .page-hero__collage-photo--2 {
        width: 200px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .page-hero--about-company {
        min-height: 240px;
    }

    .page-hero__collage {
        width: 45%;
        opacity: 0.5;
    }

    .page-about-content__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-about-content {
        border-radius: 24px 24px 0 0;
    }

    .about-contents-section {
        padding: 4rem 2rem;
    }

    .about-contents-section__cards {
        grid-template-columns: 1fr;
    }
}


/* Override profile section bg for about company page */
.page-about-company .profile-section,
body.page-template-page-about-company .profile-section {
    background-color: #fdf6f4;
}
