/* ==========================================================================
   Page: About Company (会社を知る)
   ========================================================================== */

/* ---------- Page Hero ---------- */

.page-hero--about-company {
    position: relative;
    min-height: 480px;
    background: url('../images/about-company/about-company-hero-background.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 4rem 4rem;
    width: 100%;
}

.page-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    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: 6.25rem 4rem 6.5rem;
    z-index: 1;
    overflow: hidden;
}

/* 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;
}

/* Exported hero assets already include their white frame and rotation. */
body.page-template-page-about-company .page-hero__collage-photo--1,
body.page-template-page-about-company .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));
}

body.page-template-page-about-company .page-hero__collage {
    overflow: visible;
}

body.page-template-page-about-company .page-hero__collage-photo--1 {
    top: 0;
    right: 36%;
    width: 320px;
    height: auto;
}

body.page-template-page-about-company .page-about-content__overlap-photo {
    top: 19%;
    right: 5%;
    width: 350px;
    height: auto;
}

body.page-template-page-about-company .page-hero__collage-photo--1 img,
body.page-template-page-about-company .page-about-content__overlap-photo img {
    height: auto;
    object-fit: contain;
}

.page-about-content__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 550px;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

/* Left column: text */

.page-about-content__copy {
    padding-left: 0;
}

.page-about-content__eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #5a4e4e;
    margin-bottom: 2.5rem;
}

.page-about-content__heading {
    position: relative;
    width: min(100%, 438px);
    margin: 0 0 2rem;
    line-height: 0;
}

.page-about-content__heading::after {
    content: "";
    position: absolute;
    top: -3.75rem;
    left: calc(100% - 0.75rem);
    width: 200px;
    height: 200px;
    background: url("../images/about/about-plus-raster.png") center / contain no-repeat;
    pointer-events: none;
}

.page-about-content__heading-image {
    display: block;
    width: 100%;
    height: auto;
}

.page-about-content__descriptions {
    display: grid;
    gap: 2.8125rem;
    max-width: 500px;
}

.page-about-content__description {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 2.5;
    color: #5a4e4e;
    margin: 0;
}

/* Right column: image layout (2 columns, each stacked vertically) */
.page-about-content__images {
    position: relative;
    width: 550px;
    height: 419px;
}

.page-about-content__images-col {
    position: static;
}

.page-about-content__images-col--left {
    position: static;
}

.page-about-content__images-col--right {
    position: static;
}

.page-about-content__img {
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
}

.page-about-content__img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Grandma: smaller square */
.page-about-content__img--grandma {
    top: 0;
    left: 0;
    width: 220px;
    height: 200px;
}

.page-about-content__img--grandma img {
    height: 100%;
    object-fit: cover;
}

/* Cartoon: even smaller, right aligned */
.page-about-content__img--cartoon {
    bottom: 0;
    left: 4.375rem;
    width: 175px;
    border-radius: 0;
}

.page-about-content__img--cartoon img {
    object-fit: contain;
}

/* Logo: smaller, right aligned with padding */
.page-about-content__img--logo {
    top: 1.25rem;
    right: 3.75rem;
    width: 100px;
    border-radius: 0;
}

.page-about-content__img--logo img {
    object-fit: contain;
}

/* Hallway: slightly smaller portrait, clip white space */
.page-about-content__img--hallway {
    top: 7.4375rem;
    right: 0;
    width: 300px;
    height: 300px;
}

.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: 1280px;
    margin: 0 auto 3rem;
}

.about-contents-section__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #d8c9c6;
    margin-bottom: 0.5rem;
}

.about-contents-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    margin: 0.75rem 0 1.5rem;
}

.about-contents-section__description {
    font-size: 0.875rem;
    line-height: 1.9;
    color: #5a4e4e;
    margin: 0;
    max-width: 840px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

/* Cards grid */
.about-contents-section__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1280px;
    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.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    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.25rem;
    font-weight: 700;
    color: #5a4e4e;
    letter-spacing: 0.1em;
    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-about-content__inner {
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 2rem;
    }

    .page-about-content__copy {
        padding-left: 0;
    }

    .page-about-content__images {
        width: 430px;
        transform: scale(0.78);
        transform-origin: top right;
    }

    body.page-template-page-about-company .page-hero__collage-photo--1 {
        right: 36%;
        width: 280px;
    }

    body.page-template-page-about-company .page-about-content__overlap-photo {
        right: 2%;
        width: 310px;
    }
}

@media (max-width: 768px) {
    .page-hero--about-company {
        min-height: 280px;
    }

    body.page-template-page-about-company .page-hero__inner {
        position: absolute;
        right: 0;
        bottom: 2.25rem;
        left: 0;
        box-sizing: border-box;
        width: 100%;
        padding: 0 1rem;
    }

    body.page-template-page-about-company .page-hero__collage {
        width: 100%;
        opacity: 1;
    }

    body.page-template-page-about-company .page-hero__collage-photo--1 {
        display: none;
    }

    body.page-template-page-about-company .page-about-content__overlap-photo {
        top: 3rem;
        right: -1.25rem;
        width: 300px;
    }

    .page-about-content__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-about-content {
        padding: 3.5rem 1.5rem 3.75rem;
        border-radius: 24px 24px 0 0;
    }

    .page-about-content__heading::after {
        top: -3.625rem;
        left: calc(100% - 6.25rem);
        width: 80px;
        height: 80px;
    }

    .page-about-content__descriptions {
        gap: 1.5rem;
        max-width: none;
    }

    .page-about-content__images {
        width: 327px;
        height: 270px;
        transform: none;
    }

    .page-about-content__img--grandma {
        width: 130px;
        height: 120px;
    }

    .page-about-content__img--hallway {
        top: 4.375rem;
        right: 0;
        width: 178px;
        height: 180px;
    }

    .page-about-content__img--logo {
        top: 0.75rem;
        right: 2.1875rem;
        width: 60px;
    }

    .page-about-content__img--cartoon {
        bottom: 0;
        left: 1.875rem;
        width: 105px;
    }

    .about-contents-section {
        padding: 4rem 2rem;
    }

    .about-contents-section__cards {
        grid-template-columns: 1fr;
    }

    .page-about-content__description {
        font-size: clamp(1rem, 2vw, 1.0625rem);
        line-height: 2;
    }

    .about-contents-section__heading {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }

    .about-contents-section__card-title {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    }
}


/* Override profile section bg for about company page */
.page-about-company .profile-section,
body.page-template-page-about-company .profile-section {
    background-color: #fdf6f4;
    padding-top: 5.25rem;
}

@media (min-width: 769px) {
    .page-about-company .profile-section,
    body.page-template-page-about-company .profile-section {
        padding-top: 0;
    }
}

/* Tablet interpolation: preserve the PC composition without 375px-only sizing. */
@media (min-width: 601px) and (max-width: 820px) {
    body.page-template-page-about-company .page-hero--about-company { min-height: 360px; }
    body.page-template-page-about-company .page-hero__inner { padding: 4.5rem 2rem 3rem; }
    body.page-template-page-about-company .page-hero__collage { width: 48%; }
    body.page-template-page-about-company .page-hero__collage-photo--1 { display: block; top: 0; right: 30%; width: clamp(180px, 28vw, 230px); }
    body.page-template-page-about-company .page-about-content__overlap-photo { top: 43%; right: 2%; width: clamp(190px, 30vw, 240px); }

    body.page-template-page-about-company .page-about-content { padding: 4rem 2rem 4.5rem; }
    body.page-template-page-about-company .page-about-content__inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 640px; }
    body.page-template-page-about-company .page-about-content__descriptions { max-width: none; gap: 1.75rem; }
    body.page-template-page-about-company .page-about-content__images { width: min(100%, 520px); height: 340px; margin: 0 auto; transform: none; }

    body.page-template-page-about-company .page-about-content__img--grandma { width: 42%; height: 52%; }
    body.page-template-page-about-company .page-about-content__img--cartoon { left: 9%; width: 33%; }
    body.page-template-page-about-company .page-about-content__img--logo { top: 4%; right: 11%; width: 18%; }
    body.page-template-page-about-company .page-about-content__img--hallway { top: 24%; width: 56%; height: 72%; }

    body.page-template-page-about-company .about-contents-section { padding: 4.5rem 2rem; }
    body.page-template-page-about-company .about-contents-section__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    body.page-template-page-about-company .about-contents-section__card-photo img { height: clamp(180px, 30vw, 230px); }

}

@media (min-width: 821px) and (max-width: 1024px) {
    body.page-template-page-about-company .page-hero--about-company { min-height: 420px; }
    body.page-template-page-about-company .page-hero__collage { width: 52%; }
    body.page-template-page-about-company .page-about-content { padding: 4.5rem 2rem 5rem; }
    body.page-template-page-about-company .page-about-content__inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: clamp(2rem, 4vw, 3rem); }
    body.page-template-page-about-company .page-about-content__images { width: 100%; height: 360px; transform: none; }

    body.page-template-page-about-company .page-about-content__img--grandma { width: 42%; height: 52%; }
    body.page-template-page-about-company .page-about-content__img--cartoon { left: 9%; width: 33%; }
    body.page-template-page-about-company .page-about-content__img--logo { top: 4%; right: 11%; width: 18%; }
    body.page-template-page-about-company .page-about-content__img--hallway { top: 24%; width: 56%; height: 72%; }

    body.page-template-page-about-company .about-contents-section { padding: 5rem 2rem; }
    body.page-template-page-about-company .about-contents-section__cards { gap: clamp(1.5rem, 3vw, 2rem); }
    body.page-template-page-about-company .about-contents-section__card-photo img { height: clamp(210px, 26vw, 270px); }

}
