/* Page-specific styles only. Header, menu, page-top and footer are in common.css. */
.page-hero {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, #edf5ee, #fff 58%, #d8eadc)
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    text-align: center
}

.page-hero p,
.eyebrow {
    margin: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em
}

.page-hero h1 {
    margin: 10px 0 0;
    font-size: 42px;
    line-height: 1.25;
    letter-spacing: .08em
}

.hero-word {
    position: absolute;
    right: -.04em;
    bottom: -.33em;
    color: #13722d0d;
    font-weight: 900;
    font-size: clamp(90px, 17vw, 260px);
    line-height: 1;
    letter-spacing: -.07em;
    pointer-events: none
}

.section-inner {
    box-sizing: border-box;
    max-width: 1020px;
    margin: auto;
    padding: 88px 24px
}

.intro {
    padding-top: 68px;
    text-align: center
}

.intro h2,
.section-heading h2,
.philosophy h2,
.textile-section h2 {
    margin: 8px 0 18px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: .04em
}

.intro>p:last-child {
    max-width: 720px;
    margin: auto;
    color: var(--muted);
    font-size: 1.1em;
    line-height: 2
}

.intro .corporate-headquarters-image {
    margin: 42px 0 0
}

.profile {
    padding-top: 46px
}

.section-heading {
    margin-bottom: 34px
}

.profile-list,
.history-list {
    margin: 0;
    border-top: 2px solid var(--green)
}

.profile-list>div,
.history-list>div {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border-bottom: 1px solid var(--line)
}

.profile-list dt,
.profile-list dd,
.history-list dt,
.history-list dd {
    box-sizing: border-box;
    margin: 0;
    padding: 22px 28px;
    font-size: 1.1em;
    line-height: 1.8
}

.profile-list dt,
.history-list dt {
    background: #f1f6f2;
    font-size: 1.05em;
    font-weight: 800
}

.profile-list dd,
.history-list dd {
    overflow-wrap: anywhere
}

.profile-list dd a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px
}

[href*="tel:"] {
    color: #333;
    text-decoration: none;
    pointer-events: none
}

.history {
    padding-top: 1.1em
}

.history-list dt {
    color: var(--green)
}

.corporate-feature-image {
    display: block;
    width: 100%;
    max-height: 400px;
    margin: 0 0 42px;
    object-fit: cover
}

.philosophy {
    max-width: 900px;
    padding-top: 78px;
    text-align: center
}

.philosophy h2 {
    margin-bottom: 42px
}

.philosophy h2 span,
.philosophy-message {
    color: var(--green)
}

.philosophy-copy {
    padding: 54px 64px;
    background: #f3f7f3;
    text-align: left
}

.philosophy-copy p,
p {
    margin: 0 0 28px;
    font-size: 1.1em;
    line-height: 2
}

.philosophy-copy p:last-child {
    margin-bottom: 0
}

.philosophy-question {
    padding: 28px 0;
    border-top: 1px solid #c8d7ca;
    border-bottom: 1px solid #c8d7ca;
    color: var(--green);
    font-size: 19px;
    font-weight: 800;
    line-height: 2
}

.philosophy-message {
    font-size: 25px !important;
    font-weight: 800;
    letter-spacing: .06em
}

.textile-section {
    max-width: 940px;
    padding-top: 78px;
    text-align: center
}

.textile-section h2 {
    margin-bottom: 42px
}

.textile-lead {
    margin: 0 auto 44px;
    text-align: left;
    font-size: 1.1em;
    line-height: 2
}

.textile-factory-image {
    max-height: 320px;
    object-position: bottom center;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1em;
    text-align: left
}

.policy-grid article {
    padding: 30px;
    background: #f3f7f3
}

.policy-grid b {
    display: block;
    color: var(--green);
    font-size: 26px;
    font-weight: 800;
    line-height: 1
}

.policy-grid h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.5
}

.policy-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 1.1em;
    line-height: 1.9
}

@media (max-width:820px) {
    .page-hero {
        min-height: 240px
    }

    .page-hero-inner {
        box-sizing: border-box;
        width: 100%;
        padding: 28px 20px
    }

    .page-hero h1 {
        font-size: 34px;
        line-height: 1.35;
        letter-spacing: .05em
    }

    .hero-word {
        right: -.1em;
        font-size: 31vw
    }

    .section-inner {
        width: 100%;
        max-width: 100%;
        padding: 64px 20px
    }

    .intro {
        padding-top: 56px
    }

    .intro h2,
    .section-heading h2,
    .philosophy h2,
    .textile-section h2 {
        max-width: 100%;
        font-size: 28px;
        line-height: 1.5;
        letter-spacing: .02em;
        overflow-wrap: anywhere
    }

    .intro>p:last-child,
    .textile-lead,
    .philosophy-copy,
    .philosophy-copy p,
    .policy-grid p {
        font-size: 1.1em;
        line-height: 2
    }

    .profile {
        padding-top: 26px
    }

    .section-heading {
        margin-bottom: 26px
    }

    .profile-list>div,
    .history-list>div {
        grid-template-columns: 1fr;
        min-width: 0
    }

    .profile-list dt,
    .profile-list dd,
    .history-list dt,
    .history-list dd {
        min-width: 0;
        padding: 14px 18px;
        font-size: 1.1em;
        line-height: 1.8;
        overflow-wrap: anywhere
    }

    .profile-list dt,
    .history-list dt {
        font-size: 15px
    }

    .corporate-feature-image {
        height: 210px;
        max-height: none;
        margin-bottom: 28px;
        object-position: center
    }

    .intro .corporate-headquarters-image {
        margin-top: 30px
    }

    .philosophy {
        padding-top: 58px
    }

    .philosophy h2 {
        margin-bottom: 30px
    }

    .philosophy-copy {
        padding: 32px 22px
    }

    .philosophy-question {
        padding: 24px 0;
        font-size: 18px;
        line-height: 1.9
    }

    .philosophy-message {
        font-size: 23px !important
    }

    .philosophy .corporate-feature-image {
        object-position: 64% center
    }

    .textile-section {
        padding-top: 58px
    }

    .textile-section h2 {
        margin-bottom: 30px
    }

    .textile-section .corporate-feature-image {
        object-position: 70% center
    }

    .textile-factory-image {
        margin-bottom: 32px;
        object-position: center;
    }

    .policy-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .policy-grid article {
        padding: 24px
    }

    .policy-grid h3 {
        font-size: 19px
    }

}

@media (max-width:640px) {
    [href*="tel:"] {
        color: #0000ff;
        text-decoration: underline;
        pointer-events: auto
    }
}

/* Corporate page layout refinement */
.corporate-story .philosophy,
.corporate-story .textile-section {
    background-color: #fbfdfb;
    background-repeat: repeat;
}

@media (min-width:821px) {
    .corporate-story main {
        overflow: hidden;
    }

    .corporate-story .philosophy,
    .corporate-story .textile-section {
        max-width: 1120px;
        margin: 0 auto;
        padding: 78px 76px 88px;
    }

    .corporate-story .philosophy-copy {
        max-width: 880px;
        margin: 0 auto;
        border-left: 1px solid #cbdacf;
        background: linear-gradient(135deg, rgba(242, 247, 243, .96), rgba(255, 255, 255, .92));
    }

    .corporate-story .textile-lead {
        max-width: 880px;
        padding: 34px 40px;
        border-left: 3px solid var(--green);
        background: rgba(243, 247, 243, .94);
    }

    .corporate-overview .history {
        padding-bottom: 48px
    }

    .corporate-overview .offices {
        padding-top: 68px;
        border-top: 1px solid #cbd8cf;
        background:
            linear-gradient(180deg, rgba(19, 114, 45, .035), transparent 180px),
            #eef2ef
    }
}
/* SP: show the full factory photo without cropping. */
.textile-factory-picture { display: block; }
@media (max-width:820px) {
    .textile-section .textile-factory-image {
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center;
    }
}
