@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #13233a;
    --navy: #081b32;
    --red: #e52c3d;
    --muted: #647084;
    --line: #e4e9ef;
    --surface: #f4f7fa
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px
}

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

img {
    display: block;
    width: 100%;
    object-fit: cover
}

button, input, select, textarea {
    font: inherit
}

.shell {
    max-width: 1240px;
    margin: auto;
    padding: 0 38px
}

.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
    box-shadow: 0 2px 20px #07192a0c
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0
}

.brand-mark {
    position: relative;
    display: block;
    width: 45px;
    height: 36px;
    transform: skew(-18deg);
    overflow: hidden
}

.brand-mark span {
    position: absolute;
    width: 20px;
    height: 44px;
    top: -5px;
    transform: rotate(47deg);
    background: #2f9fce
}

.brand-mark span:nth-child(2) {
    left: 16px;
    background: #e52c3d
}

.brand-mark span:nth-child(3) {
    left: 29px;
    background: #172e64
}

.brand-name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .035em;
    line-height: 1.25;
    white-space: nowrap
}

.brand-name small {
    display: block;
    font: 700 9px 'Manrope', sans-serif;
    letter-spacing: .11em;
    margin-top: 5px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 12px;
    font-weight: 700
}

.nav-links > a:hover, .text-link:hover {
    color: var(--red)
}

.nav-links .nav-contact {
    color: #fff;
    background: var(--navy);
    padding: 15px 19px
}

.nav-contact span {
    margin-left: 10px
}

.menu-btn {
    display: none
}

.hero {
    min-height: 640px;
    height: min(760px, calc(100svh - 82px));
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('assets/p19_2.png');
    background-size: cover;
    background-position: center 56%;
    transform: scale(1.025)
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 36, .96) 0%, rgba(4, 18, 36, .86) 37%, rgba(4, 18, 36, .25) 83%), linear-gradient(0deg, rgba(4, 18, 36, .6), transparent 35%)
}

.hero-inner {
    position: relative;
    padding-top: 110px
}

.eyebrow, .section-label {
    font: 800 11px 'Manrope', sans-serif;
    letter-spacing: .2em;
    color: var(--red)
}

.eyebrow.light {
    color: #fff;
    font-size: 10px
}

.eyebrow span {
    display: inline-block;
    width: 35px;
    height: 1px;
    background: var(--red);
    vertical-align: middle;
    margin: 0 10px
}

.hero-tag {
    margin: 43px 0 12px;
    color: #d3dce7;
    font-size: 15px;
    letter-spacing: .18em
}

.hero h1 {
    font-size: clamp(57px, 6.4vw, 95px);
    line-height: 1.22;
    letter-spacing: .025em;
    margin: 0;
    font-weight: 900
}

.hero h1 em, .process h2 em, .contact h2 em {
    font-style: normal;
    color: #fa4253
}

.hero-lead {
    font-size: 17px;
    letter-spacing: .05em;
    line-height: 2.1;
    margin: 28px 0 32px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 16px 23px;
    min-width: 210px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s, background .2s;
    border: 1px solid transparent;
    cursor: pointer
}

.btn:hover {
    transform: translateY(-3px)
}

.btn-red {
    color: #fff;
    background: var(--red)
}

.btn-red:hover {
    background: #c81e31
}

.btn-outline {
    color: #fff;
    background: #ffffff11;
    border-color: #ffffff75
}

.hero-bottom {
    position: absolute;
    bottom: 30px;
    left: max(38px, calc((100vw - 1164px) / 2));
    right: max(38px, calc((100vw - 1164px) / 2));
    display: flex;
    align-items: center;
    gap: 15px;
    color: #c1cbd5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em
}

.scroll-line {
    height: 1px;
    background: #c1cbd5;
    flex: 1;
    opacity: .5
}

.proof {
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.proof-grid {
    display: grid;
    grid-template-columns:1.45fr repeat(4, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 32px;
    padding-bottom: 30px
}

.proof-lead {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.7
}

.proof-grid > div:not(:first-child) {
    padding-left: 25px;
    border-left: 1px solid var(--line)
}

.proof strong {
    display: block;
    font-size: 32px;
    letter-spacing: -.045em;
    color: var(--navy);
    line-height: 1.4
}

.proof strong span {
    font-size: 12px;
    letter-spacing: 0;
    margin-left: 3px
}

.proof small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700
}

.section {
    padding: 105px 0
}

.section-title {
    font-size: clamp(30px, 3.7vw, 49px);
    line-height: 1.55;
    letter-spacing: -.035em;
    margin: 23px 0 27px;
    font-weight: 900
}

.red {
    color: var(--red)
}

.para {
    color: #516074;
    font-size: 14px;
    line-height: 2.4;
    margin: 0 0 20px
}

.concept-grid {
    display: grid;
    grid-template-columns:1fr 1.04fr;
    align-items: center;
    gap: 9%
}

.concept-visual {
    position: relative
}

.concept-visual img {
    aspect-ratio: 1.24;
    object-fit: contain;
    background: #e5edf4;
    padding: 10%;
    border-radius: 3px
}

.concept-stamp {
    position: absolute;
    right: -15px;
    bottom: -19px;
    background: var(--red);
    color: #fff;
    padding: 20px 24px;
    font: 800 11px 'Manrope';
    letter-spacing: .13em
}

.text-link {
    display: inline-block;
    margin-top: 17px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 9px;
    font-size: 13px;
    font-weight: 800
}

.text-link span {
    margin-left: 30px
}

.product-section {
    background: var(--surface)
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 32px
}

.section-heading .section-title {
    margin-bottom: 0
}

.section-intro {
    max-width: 380px;
    color: #657186;
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 8px
}

.product-hero {
    background: #e1e9ef;
    position: relative;
    overflow: hidden
}

.product-hero > img {
    height: 390px;
    object-fit: contain;
    padding: 10px 4% 65px
}

.product-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 25px;
    background: #0c2037ee;
    color: #fff;
    display: flex;
    gap: 30px;
    align-items: center
}

.product-caption span {
    font-size: 10px;
    letter-spacing: .15em;
    color: #b9c6d2
}

.product-caption strong {
    font-size: 15px
}

.feature-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px
}

.feature {
    background: #fff;
    padding: 28px 24px 30px;
    min-height: 273px;
    border-top: 3px solid transparent;
    transition: border-color .2s
}

.feature:hover {
    border-color: var(--red)
}

.feature-no {
    font: 800 12px 'Manrope';
    color: #b6bdc7
}

.feature-icon {
    font-size: 43px;
    line-height: 1.2;
    color: var(--red);
    margin: 13px 0
}

.feature h3 {
    font-size: 17px;
    margin: 0 0 10px
}

.feature p {
    color: #647084;
    font-size: 12px;
    line-height: 2;
    margin: 0
}

.spec-bar {
    background: var(--navy);
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    margin-top: 22px;
    padding: 28px 22px;
    color: #fff
}

.spec-bar > div {
    padding-left: 30px;
    border-left: 1px solid #ffffff30
}

.spec-bar > div:first-child {
    border-left: 0
}

.spec-bar span {
    display: block;
    font-size: 11px;
    color: #b8c6d5
}

.spec-bar strong {
    display: block;
    font-size: 30px;
    line-height: 1.5
}

.spec-bar small {
    font-size: 13px
}

.spec-note {
    color: #7b8796;
    font-size: 10px;
    line-height: 1.8;
    margin: 13px 0 0
}

.align-left {
    max-width: none;
    margin-bottom: 25px
}

.application-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    grid-template-rows:290px 290px;
    gap: 18px
}

.app-card {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff
}

.app-card.large {
    grid-row: span 2
}

.app-card.wide {
    grid-column: span 2
}

.app-card > img {
    height: 100%;
    transition: transform .5s;
    filter: brightness(.84)
}

.app-card:hover img {
    transform: scale(1.07)
}

.app-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #061b32e6 0%, transparent 70%)
}

.app-overlay {
    position: absolute;
    z-index: 1;
    left: 26px;
    bottom: 22px;
    right: 20px
}

.app-overlay span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #ffc7ce
}

.app-overlay h3 {
    font-size: 22px;
    margin: 7px 0 3px
}

.app-overlay p {
    font-size: 12px;
    color: #e4eaf1;
    margin: 0
}

.projects {
    background: #fff
}

.project-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 32px 22px
}

.project-image {
    height: 265px;
    position: relative;
    overflow: hidden;
    background: #e9edf1
}

.project-image img {
    height: 100%;
    transition: transform .4s
}

.project-card:hover img {
    transform: scale(1.05)
}

.project-image span {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #fff;
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 7px 12px
}

.project-info {
    padding: 15px 2px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid var(--line)
}

.project-info p {
    font-size: 11px;
    color: #8b95a2;
    margin: 0
}

.project-info h3 {
    margin: 3px 0;
    font-size: 18px
}

.project-info strong {
    font-size: 28px;
    color: var(--red)
}

.project-info small {
    font-size: 13px
}

.process {
    background: var(--navy);
    color: #fff;
    padding: 98px 0
}

.process-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12%
}

.light-label {
    color: #ff6471
}

.process h2, .contact h2 {
    font-size: clamp(35px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.55;
    margin: 22px 0
}

.process p:not(.section-label), .contact > div > div > p:not(.section-label) {
    font-size: 14px;
    color: #bbc7d4;
    line-height: 2.4;
    max-width: 450px
}

.process .btn {
    margin-top: 16px
}

.steps {
    border-top: 1px solid #ffffff2b
}

.steps > div {
    display: grid;
    grid-template-columns:100px 1fr;
    column-gap: 15px;
    border-bottom: 1px solid #ffffff2b;
    padding: 21px 0
}

.steps span {
    font-size: 11px;
    color: #ff6471;
    font-weight: 800;
    grid-row: span 2
}

.steps h3 {
    font-size: 17px;
    margin: 0 0 5px
}

.steps p {
    margin: 0 !important;
    font-size: 12px !important
}

.company {
    background: #f6f8fb
}

.company-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 9%;
    align-items: start
}

.factory {
    aspect-ratio: 1.65;
    margin-top: 31px
}

.company-card {
    background: #fff;
    padding: 33px 38px;
    box-shadow: 0 8px 45px #10233b0a
}

.company-card h3 {
    font-size: 20px;
    margin: 0 0 20px
}

.company-card h3 small {
    font-size: 10px;
    color: var(--red);
    margin-left: 12px
}

.company-card dl {
    margin: 0
}

.company-card dl > div {
    display: grid;
    grid-template-columns:105px 1fr;
    border-top: 1px solid var(--line);
    padding: 13px 0;
    gap: 8px;
    font-size: 12px
}

.company-card dt {
    font-weight: 800;
    color: #8190a0
}

.company-card dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.8
}

.cert-note {
    font-size: 10px;
    color: #7a8798;
    background: #f5f7fa;
    padding: 14px;
    line-height: 2
}

.contact {
    background: #0b223b;
    color: #fff;
    padding: 100px 0
}

.contact-grid {
    display: grid;
    grid-template-columns:.9fr 1.1fr;
    gap: 9%
}

.contact h2 {
    margin-bottom: 22px
}

.contact-direct {
    display: flex;
    flex-direction: column;
    margin-top: 35px;
    gap: 8px
}

.contact-direct a {
    font-size: 16px;
    font-weight: 800
}

.contact-direct a:hover {
    color: #ff7481
}

.contact-form {
    background: #fff;
    padding: 34px 37px;
    color: var(--ink)
}

.form-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 20px
}

.form-title small {
    font-size: 10px;
    color: var(--red);
    margin-left: 10px
}

.contact-form label {
    font-size: 12px;
    font-weight: 800;
    display: block;
    margin-bottom: 16px
}

.contact-form b {
    color: var(--red)
}

.contact-form input, .contact-form textarea, .contact-form select {
    background: #f4f6f8;
    border: 1px solid #e2e6eb;
    border-radius: 0;
    width: 100%;
    padding: 12px 13px;
    margin-top: 7px;
    outline: 0;
    color: var(--ink);
    font-size: 13px
}

.contact-form :is(input,textarea,select):focus {
    border-color: var(--red);
    background: #fff
}

.field-pair {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 15px
}

.form-notice {
    font-size: 11px;
    color: #7b8796;
    line-height: 1.8
}

.submit {
    width: 100%;
    margin-top: 4px
}

.footer {
    background: #061626;
    color: #fff
}

.footer-main {
    padding-top: 56px;
    padding-bottom: 49px;
    display: flex;
    justify-content: space-between;
    gap: 40px
}

.footer-brand .brand-name {
    font-size: 17px
}

.footer-main p {
    color: #a3b2bf;
    font-size: 12px;
    line-height: 2.2;
    margin-top: 25px
}

.footer-links {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px 25px;
    font-size: 12px;
    font-weight: 700;
    color: #bdc8d2
}

.footer-bottom {
    border-top: 1px solid #ffffff24;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    color: #8294a5;
    font-size: 10px;
    letter-spacing: .05em
}

@media (max-width: 1050px) {
    .nav-links {
        gap: 14px;
        font-size: 11px
    }

    .brand-name {
        font-size: 14px
    }

    .feature-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .proof strong {
        font-size: 25px
    }

    .proof-grid {
        grid-template-columns:repeat(4, 1fr)
    }

    .proof-lead {
        grid-column: 1/-1
    }

    .proof-grid > div:nth-child(2) {
        border-left: 0;
        padding-left: 0
    }
}

@media (max-width: 760px) {
    .shell {
        padding: 0 22px
    }

    .header .nav {
        min-height: 70px
    }

    .brand-mark {
        width: 34px;
        height: 29px
    }

    .brand-name {
        font-size: 13px
    }

    .brand-name small {
        font-size: 7px
    }

    .menu-btn {
        display: block;
        background: transparent;
        border: 0;
        width: 42px;
        height: 42px;
        padding: 9px;
        cursor: pointer
    }

    .menu-btn span {
        display: block;
        height: 2px;
        margin: 6px 0;
        background: var(--navy)
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        box-shadow: 0 12px 14px #0002;
        background: #fff;
        padding: 15px 23px 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 12px 7px;
        border-bottom: 1px solid var(--line)
    }

    .nav-links .nav-contact {
        text-align: center;
        margin-top: 12px
    }

    .hero {
        min-height: 630px;
        height: calc(100svh - 70px);
        max-height: 800px
    }

    .hero-photo {
        background-position: 56% center
    }

    .hero-shade {
        background: linear-gradient(90deg, #061629ed 0%, #061629b5 66%, #06162977 100%)
    }

    .hero-inner {
        padding-top: 95px
    }

    .eyebrow.light {
        font-size: 8px;
        line-height: 2
    }

    .eyebrow span {
        width: 16px;
        margin: 0 5px
    }

    .hero-tag {
        margin-top: 48px;
        font-size: 12px
    }

    .hero h1 {
        font-size: clamp(46px, 11vw, 70px)
    }

    .hero-lead {
        font-size: 13px;
        line-height: 2
    }

    .hero-actions {
        flex-direction: column;
        align-items: start
    }

    .btn {
        width: 100%;
        max-width: 360px
    }

    .hero-bottom {
        left: 22px;
        right: 22px
    }

    .proof-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 22px 6px
    }

    .proof-lead {
        grid-column: 1/-1
    }

    .proof-grid > div:nth-child(4) {
        border-left: 0;
        padding-left: 0
    }

    .proof strong {
        font-size: 29px
    }

    .section {
        padding: 67px 0
    }

    .section-title {
        font-size: 32px
    }

    .concept-grid, .company-grid, .process-grid, .contact-grid {
        grid-template-columns:1fr;
        gap: 33px
    }

    .concept-visual {
        margin-right: 10px
    }

    .section-heading {
        display: block
    }

    .section-intro {
        max-width: 100%;
        margin-top: 15px
    }

    .product-hero > img {
        height: 245px;
        padding: 5px 0 60px
    }

    .product-caption {
        display: block;
        padding: 10px 15px
    }

    .product-caption span {
        display: block;
        font-size: 8px
    }

    .product-caption strong {
        font-size: 11px
    }

    .feature-grid {
        gap: 10px
    }

    .feature {
        padding: 17px;
        min-height: 275px
    }

    .feature h3 {
        font-size: 14px
    }

    .feature p {
        font-size: 11px
    }

    .spec-bar {
        grid-template-columns:repeat(2, 1fr);
        gap: 20px 0
    }

    .spec-bar > div:nth-child(3) {
        border-left: 0
    }

    .spec-bar > div {
        padding-left: 15px
    }

    .spec-bar strong {
        font-size: 25px
    }

    .application-grid {
        grid-template-columns:repeat(2, 1fr);
        grid-template-rows:280px 220px 220px;
        gap: 12px
    }

    .app-card.large {
        grid-column: span 2;
        grid-row: auto
    }

    .app-card.wide {
        grid-column: span 2
    }

    .app-overlay {
        left: 17px;
        bottom: 14px
    }

    .app-overlay span {
        font-size: 8px
    }

    .app-overlay h3 {
        font-size: 17px
    }

    .app-overlay p {
        font-size: 10px
    }

    .project-grid {
        gap: 21px 12px
    }

    .project-image {
        height: 155px
    }

    .project-info {
        align-items: start;
        gap: 4px
    }

    .project-info h3 {
        font-size: 14px
    }

    .project-info strong {
        font-size: 18px;
        white-space: nowrap
    }

    .project-info small {
        font-size: 10px
    }

    .steps > div {
        grid-template-columns:80px 1fr
    }

    .process, .contact {
        padding: 68px 0
    }

    .company-card, .contact-form {
        padding: 23px 20px
    }

    .contact-grid {
        gap: 39px
    }

    .footer-main {
        flex-direction: column
    }

    .footer-links {
        grid-template-columns:repeat(2, 1fr)
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px
    }
}

@media (max-width: 410px) {
    .field-pair {
        grid-template-columns:1fr;
        gap: 0
    }

    .feature-grid {
        grid-template-columns:1fr
    }

    .feature {
        min-height: auto
    }

    .app-overlay p {
        display: none
    }

    .hero h1 {
        font-size: 47px
    }
}

/* Specialist brand / patents update */
.hero h1 {
    font-size: clamp(48px, 5.4vw, 79px);
    line-height: 1.28
}

.hero-tag {
    font-weight: 800;
    color: #fff
}

.hero-concept {
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 800;
    line-height: 1.65;
    margin: 18px 0 12px;
    letter-spacing: .02em
}

.hero-lead {
    margin: 12px 0 28px;
    font-size: 14px;
    line-height: 1.95
}

.concept-claim {
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.8;
    font-weight: 900;
    margin: 0 0 20px;
    color: var(--navy);
    border-left: 4px solid var(--red);
    padding-left: 17px
}

.patents {
    background: #fff
}

.patent-layout {
    display: grid;
    grid-template-columns:.85fr 1.15fr;
    gap: 20px
}

.patent-highlight {
    background: var(--navy);
    color: #fff;
    padding: 42px
}

.patent-highlight > span {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em
}

.patent-highlight > strong {
    display: block;
    color: #fff;
    font-size: 96px;
    line-height: 1.3;
    letter-spacing: -.06em
}

.patent-highlight > strong small {
    font-size: 20px;
    letter-spacing: 0;
    margin-left: 12px
}

.patent-highlight > p {
    color: #c4d0dd;
    font-size: 13px;
    line-height: 2
}

.patent-meta {
    border-top: 1px solid #ffffff40;
    padding-top: 24px;
    margin-top: 27px;
    display: flex;
    gap: 35px
}

.patent-meta div {
    display: flex;
    flex-direction: column
}

.patent-meta strong {
    font-size: 24px
}

.patent-meta span {
    font-size: 11px;
    color: #b9c8d9
}

.patent-details {
    background: #f3f6f9;
    padding: 42px
}

.patent-details h3 {
    font-size: 22px;
    margin: 0 0 23px
}

.patent-details ul {
    padding-left: 22px;
    line-height: 2.3;
    font-size: 15px;
    font-weight: 700
}

.patent-details li::marker {
    color: var(--red)
}

.patent-details > p {
    color: #6b7888;
    font-size: 11px;
    line-height: 2;
    margin-top: 22px
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: clamp(37px, 9vw, 59px)
    }

    .hero-concept {
        font-size: 17px
    }

    .hero-lead {
        font-size: 12px
    }

    .patent-layout {
        grid-template-columns:1fr
    }

    .patent-highlight, .patent-details {
        padding: 27px
    }

    .patent-highlight > strong {
        font-size: 75px
    }

    .patent-meta {
        gap: 20px
    }
}

/* Roof-integrated BIPV explanation and 6-component system */
.roof-explainer {
    margin: 52px 0 0;
    padding: 50px;
    background: #fff;
    border: 1px solid #dde6ee;
    scroll-margin-top: 90px
}

.roof-explainer-head {
    max-width: 860px
}

.roof-explainer-head h3, .parts-head h3 {
    font-size: clamp(25px, 3.1vw, 39px);
    line-height: 1.55;
    color: #10243c;
    margin: 15px 0 17px;
    font-weight: 900
}

.roof-explainer-head h3 em {
    font-style: normal;
    color: #e52c3d
}

.roof-explainer-head > p, .parts-head > p {
    color: #53647a;
    font-size: 14px;
    line-height: 2.15
}

.roof-comparison {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px;
    margin: 30px 0 22px
}

.roof-compare-card {
    border: 1px solid #dce4eb;
    padding: 28px;
    background: #f7f9fb
}

.roof-compare-card.integrated {
    background: #edf4fa;
    border-color: #b9cfdf;
    border-top: 4px solid #e52c3d
}

.compare-label {
    font-size: 12px;
    letter-spacing: .07em;
    font-weight: 900;
    color: #52667b
}

.integrated .compare-label {
    color: #c52235
}

.roof-compare-card h4 {
    font-size: 17px;
    margin: 16px 0 6px
}

.roof-compare-card > p {
    font-size: 12px;
    line-height: 2;
    color: #687688;
    margin: 0
}

.roof-mini {
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 18px auto 0;
    transform: perspective(650px) rotateX(8deg)
}

.mini-panel {
    background: repeating-linear-gradient(90deg, #173a65 0, #173a65 31px, #6383a5 32px, #6383a5 34px);
    width: 93%;
    min-height: 61px;
    border: 4px solid #9aaab9;
    color: #fff;
    text-align: center;
    padding: 15px 5px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 5px 10px #0b254130
}

.mini-gap {
    height: 23px;
    width: 80%;
    border-left: 5px solid #8c9bab;
    border-right: 5px solid #8c9bab
}

.mini-roof {
    width: 100%;
    background: #879baa;
    color: #fff;
    min-height: 27px;
    text-align: center;
    font-size: 11px;
    font-weight: 800
}

.roof-integrated .mini-panel {
    width: 100%;
    min-height: 73px;
    border-bottom: 5px solid #e52c3d
}

.mini-rails {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.mini-rails span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    background: #b9c9d4;
    color: #18344d;
    padding: 7px 0;
    border-bottom: 3px solid #e52c3d
}

.roof-scope {
    border-left: 4px solid #e52c3d;
    background: #f7f9fb;
    padding: 18px 24px
}

.roof-scope strong {
    font-size: 15px
}

.roof-scope p {
    margin: 7px 0 0;
    color: #586b7e;
    font-size: 12px;
    line-height: 2
}

.parts-section {
    padding-top: 62px
}

.parts-head {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 45px;
    align-items: end
}

.parts-head h3 {
    margin-bottom: 0
}

.parts-photo {
    position: relative;
    margin-top: 29px;
    background: #e6edf3
}

.parts-photo img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    padding: 15px 45px 46px
}

.parts-photo span {
    position: absolute;
    bottom: 13px;
    left: 24px;
    color: #53697d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em
}

.parts-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px
}

.part-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-top: 3px solid #19364e;
    padding: 24px 20px 23px;
    min-height: 210px
}

.part-number {
    font-size: 26px;
    color: #e52c3d;
    font-weight: 900;
    line-height: 1
}

.part-card h4 {
    font-size: 16px;
    margin: 0 0 11px
}

.part-function {
    font-size: 13px;
    color: #34485b;
    font-weight: 700;
    line-height: 1.75;
    margin: 0 0 11px
}

.part-material {
    font-size: 11px;
    color: #718092;
    line-height: 1.9;
    margin: 0
}

.parts-footnote {
    font-size: 11px;
    color: #768697;
    margin: 13px 0 0
}

@media (max-width: 760px) {
    .roof-explainer {
        padding: 26px 18px;
        margin-top: 34px
    }

    .roof-comparison, .parts-head {
        grid-template-columns:1fr;
        gap: 14px
    }

    .roof-compare-card {
        padding: 18px
    }

    .roof-mini {
        height: 130px
    }

    .parts-section {
        padding-top: 46px
    }

    .parts-photo img {
        height: 250px;
        padding: 10px 5px 37px
    }

    .parts-grid {
        grid-template-columns:1fr 1fr;
        gap: 10px
    }

    .part-card {
        padding: 18px 14px;
        gap: 10px;
        min-height: 215px
    }

    .part-number {
        font-size: 19px
    }

    .part-card h4 {
        font-size: 14px
    }

    .part-function {
        font-size: 12px
    }

    .part-material {
        font-size: 10px
    }
}

@media (max-width: 480px) {
    .parts-grid {
        grid-template-columns:1fr
    }

    .part-card {
        min-height: auto
    }

    .roof-explainer-head h3, .parts-head h3 {
        font-size: 25px
    }
}

/* Actual product photo gallery */
.part-card .part-product-image {
    width: 100%;
    height: 135px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8ecf2;
    padding: 8px;
    margin: 0 0 14px;
    display: block
}

.part-source-link {
    margin: 18px 0 0;
    font-size: 14px
}

.part-source-link a {
    color: #c91e2d;
    text-decoration: underline;
    text-underline-offset: 4px
}

/* Multiple-image hero with manual controls */
.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.045);
    transition: opacity 1s ease, transform 7s ease
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1)
}

.hero-slider-ui {
    position: absolute;
    z-index: 4;
    right: max(38px, calc((100vw - 1164px) / 2));
    bottom: 60px;
    display: flex;
    gap: 10px;
    align-items: center
}

.slide-arrow, .slide-pause, .slide-dots button {
    border: 1px solid #ffffff70;
    color: white;
    background: #0b213c90;
    cursor: pointer
}

.slide-arrow {
    width: 33px;
    height: 33px;
    font-size: 23px;
    line-height: 1
}

.slide-pause {
    min-height: 33px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800
}

.slide-dots {
    display: flex;
    gap: 9px
}

.slide-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    padding: 0
}

.slide-dots button.active {
    background: #ef3346;
    border-color: #ef3346
}

.hero-slider-ui button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px
}

.drainage-explain {
    background: #fff;
    padding: 45px 38px;
    margin: 55px 0 0;
    border: 1px solid #dfe6ed
}

.drainage-intro h3 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.55;
    margin: 12px 0
}

.drainage-intro p {
    font-size: 14px;
    line-height: 2;
    color: #526378;
    max-width: 900px
}

.drainage-cards {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    margin-top: 25px
}

.drainage-card {
    background: #f3f6fa;
    border-top: 4px solid #e52c3d;
    padding: 25px
}

.drainage-card-blue {
    border-top-color: #276992;
    background: #eaf2f9
}

.drainage-step {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #c42d3f
}

.drainage-card-blue .drainage-step {
    color: #276992
}

.drainage-card h4 {
    font-size: 20px;
    margin: 10px 0
}

.drainage-card p, .layout-description p {
    font-size: 13px;
    line-height: 2;
    color: #526378
}

.flowline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 18px
}

.flowline span {
    font-size: 11px;
    font-weight: 800;
    background: white;
    padding: 8px 10px;
    border: 1px solid #d5e2ed
}

.flowline b {
    color: #2673a5
}

.drainage-layout {
    display: grid;
    grid-template-columns:1.07fr .93fr;
    gap: 35px;
    margin-top: 35px;
    align-items: start
}

.layout-description h4 {
    font-size: 21px;
    margin: 0 0 15px
}

.diagram-text {
    background: #0d2a45;
    color: white;
    padding: 25px
}

.diagram-title {
    font-size: 12px;
    font-weight: 900;
    color: #b7d6ea;
    letter-spacing: .04em;
    margin-bottom: 17px
}

.diagram-row {
    display: grid;
    grid-template-columns:1fr auto 1.35fr;
    gap: 9px;
    align-items: center;
    margin: 8px 0;
    padding-bottom: 9px;
    border-bottom: 1px solid #ffffff29;
    font-size: 12px
}

.diagram-row i {
    font-style: normal;
    color: #82c7ea
}

.diagram-route {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px
}

.diagram-route span, .diagram-route strong {
    padding: 8px 14px;
    background: #ffffff14;
    width: 100%;
    text-align: center;
    font-size: 12px
}

.diagram-route strong {
    background: #2b709b
}

.diagram-route b {
    line-height: 1;
    color: #80ccea
}

.drainage-note {
    font-size: 11px;
    color: #768597;
    line-height: 1.8;
    margin: 19px 0 0
}

@media (max-width: 760px) {
    .hero-slider-ui {
        right: 22px;
        bottom: 56px
    }

    .hero-slide {
        background-position: center
    }

    .drainage-explain {
        padding: 26px 17px;
        margin-top: 30px
    }

    .drainage-cards, .drainage-layout {
        grid-template-columns:1fr;
        gap: 12px
    }

    .drainage-card {
        padding: 19px
    }

    .flowline span {
        font-size: 10px;
        padding: 7px
    }

    .drainage-layout {
        margin-top: 25px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
        transform: none !important
    }
}

/* Module compatibility section */
.module-flex {
    background: #f5f8fb
}

.module-flex-highlight {
    display: grid;
    grid-template-columns:.86fr 1.14fr;
    gap: 42px;
    align-items: center;
    padding: 42px;
    background: #0d2945;
    color: white;
    margin: 36px 0 48px
}

.module-flex-symbol {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 190px
}

.module-flex-symbol span {
    display: grid;
    place-items: center;
    flex: 1;
    aspect-ratio: 1.05;
    background: linear-gradient(145deg, #f5f9fd, #bed3e4);
    border: 5px solid white;
    border-radius: 9px;
    color: #0e2f51;
    font-weight: 900;
    font-size: clamp(18px, 2.8vw, 32px);
    box-shadow: 0 18px 25px #0003
}

.module-flex-symbol span:nth-child(2) {
    transform: translateY(-18px);
    background: linear-gradient(145deg, #fce6e8, #eeb2bb);
    color: #a51e33
}

.module-flex-kicker, .module-type-index {
    font-size: 11px;
    letter-spacing: .15em;
    font-weight: 800;
    color: #ed7581
}

.module-flex-highlight h3 {
    font-size: clamp(27px, 3vw, 44px);
    line-height: 1.35;
    margin: 13px 0
}

.module-flex-highlight p {
    line-height: 2;
    color: #d2dfe9;
    font-size: 14px
}

.module-flex-subhead {
    margin: 16px 0 24px
}

.module-flex-subhead h3 {
    font-size: clamp(22px, 2.6vw, 31px);
    margin: 0 0 9px
}

.module-flex-subhead p {
    color: #576a7c;
    font-size: 14px
}

.module-type-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px
}

.module-type {
    background: white;
    border: 1px solid #dbe4ed;
    border-top: 4px solid #d5253c;
    padding: 28px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px
}

.module-type h4 {
    font-size: 23px;
    color: #102943;
    margin: 5px 0
}

.module-type p {
    font-size: 13px;
    line-height: 1.95;
    color: #586a7b;
    margin: 0;
    flex: 1
}

.module-type-tag {
    font-size: 11px;
    font-weight: 800;
    color: #265a7c;
    background: #eaf1f7;
    align-self: flex-start;
    padding: 7px 10px
}

.module-flex-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid #d5e0e9;
    margin-top: 35px;
    padding-top: 29px
}

.module-flex-foot > div {
    max-width: 710px
}

.module-flex-foot strong {
    font-size: 17px
}

.module-flex-foot p {
    color: #67788a;
    font-size: 12px;
    line-height: 1.9
}

.module-flex-foot .btn {
    white-space: nowrap
}

@media (max-width: 850px) {
    .module-flex-highlight {
        grid-template-columns:1fr;
        gap: 15px;
        padding: 28px
    }

    .module-flex-symbol {
        max-width: 440px;
        min-height: 150px
    }

    .module-type-grid {
        grid-template-columns:1fr
    }

    .module-type {
        min-height: auto
    }

    .module-flex-foot {
        flex-direction: column;
        align-items: flex-start
    }

    .module-flex-foot .btn {
        white-space: normal
    }
}

@media (max-width: 450px) {
    .module-flex-highlight {
        padding: 22px
    }

    .module-flex-symbol {
        min-height: 100px
    }

    .module-flex-symbol span {
        border-width: 3px
    }

    .module-type {
        padding: 22px
    }
}

/* Maker and size thumbnails, replacing plain letter boxes */
.module-flex-visuals {
    display: grid;
    gap: 16px;
    min-width: 0
}

.module-thumb-group {
    background: #ffffff0e;
    border: 1px solid #ffffff35;
    border-radius: 8px;
    padding: 15px 14px 12px
}

.module-thumb-heading {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 11px
}

.module-thumb-row {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 9px
}

.module-thumb {
    min-width: 0;
    text-align: center
}

.module-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 144/92;
    object-fit: contain;
    border-radius: 5px;
    background: #eaf1f7
}

.module-thumb span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #e6edf5;
    margin-top: 6px
}

.parts-grid .part-card {
    min-height: 170px
}

.parts-grid .part-card > div {
    min-width: 0
}

.parts-grid .part-card h4 {
    margin-top: 1px
}

@media (max-width: 850px) {
    .module-flex-visuals {
        max-width: 560px
    }
}

@media (max-width: 480px) {
    .module-thumb-group {
        padding: 12px 9px
    }

    .module-thumb-row {
        gap: 6px
    }

    .module-thumb span {
        font-size: 10px
    }

    .parts-grid .part-card {
        min-height: 0
    }
}

/* ===== 2026.10.19 additions: News, roof-material replacement, Careers ===== */
.news-section {
    background: #fff;
    padding-top: 78px;
    padding-bottom: 90px
}

.news-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px
}

.news-heading .section-title {
    margin-bottom: 0
}

.news-heading > p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 7px
}

.news-list {
    border-top: 2px solid var(--navy)
}

.news-item {
    display: grid;
    grid-template-columns:125px 90px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 25px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background .2s
}

.news-item:hover, .news-item:focus-visible {
    background: #f3f7fa
}

.news-item:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px
}

.news-item time {
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #566579
}

.news-category {
    display: inline-block;
    justify-self: start;
    background: #eaf1f7;
    color: #214e71;
    padding: 5px 11px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 800;
    white-space: nowrap
}

.news-category-event {
    background: #fff0f1;
    color: #b92336
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0
}

.news-content strong {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.65
}

.news-content small {
    font-size: 12px;
    line-height: 1.8;
    color: #677789
}

.news-arrow {
    font-size: 20px;
    color: var(--red);
    justify-self: center;
    transition: transform .2s
}

.news-item:hover .news-arrow {
    transform: translate(3px, -3px)
}

/* Roof replacement section sits in the Product & Technology chapter */
.roof-cost-section {
    padding: 54px 45px 40px;
    margin-top: 28px;
    background: #fff;
    border: 1px solid #dde6ee;
    scroll-margin-top: 95px
}

.roof-cost-header h3 {
    font-size: clamp(30px, 3.7vw, 48px);
    font-weight: 900;
    line-height: 1.5;
    margin: 14px 0 7px;
    letter-spacing: -.03em
}

.roof-cost-lead {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 800;
    color: var(--navy);
    margin: 14px 0 21px
}

.roof-cost-description {
    max-width: 1010px
}

.roof-cost-description p {
    color: #526176;
    font-size: 14px;
    line-height: 2.2;
    margin: 0 0 15px
}

.roof-cost-benefits {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    margin-top: 31px
}

.roof-cost-benefits article {
    position: relative;
    border-top: 3px solid var(--red);
    background: #f4f7fa;
    padding: 23px 22px;
    min-height: 154px
}

.roof-cost-benefit-number {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: .12em;
    margin-bottom: 12px
}

.roof-cost-benefits h4 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.5
}

.roof-cost-benefits p {
    margin: 0;
    color: #647488;
    font-size: 12px;
    font-weight: 600
}

.roof-cost-design {
    display: grid;
    grid-template-columns:.85fr 1.15fr;
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    margin-top: 19px;
    background: #0d263f;
    color: #fff
}

.roof-cost-design .section-label {
    color: #f86f7b
}

.roof-cost-design h4 {
    font-size: 20px;
    margin: 9px 0 0;
    line-height: 1.6
}

.roof-cost-design p {
    font-size: 13px;
    line-height: 2.05;
    color: #d1dce6;
    margin: 0
}

.roof-cost-note {
    font-size: 11px;
    color: #758294;
    line-height: 1.9;
    margin: 17px 0 0
}

.careers-section {
    background: #f5f8fa
}

.careers-heading {
    display: flex;
    gap: 22px;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 20px 0 13px;
    border-bottom: 2px solid var(--navy)
}

.careers-heading h3 {
    font-size: 23px;
    margin: 0
}

.careers-heading p {
    font-size: 12px;
    color: #728092;
    margin: 0
}

.careers-cards {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px
}

.careers-cards article {
    background: #fff;
    border: 1px solid #e1e8ee;
    border-top: 3px solid #e52c3d;
    padding: 28px 24px;
    min-height: 242px
}

.careers-cards article > span {
    font-size: 10px;
    color: #c92439;
    font-weight: 800;
    letter-spacing: .1em
}

.careers-cards h4 {
    font-size: 19px;
    margin: 17px 0 13px;
    line-height: 1.5
}

.careers-cards p {
    color: #667589;
    font-size: 13px;
    line-height: 2;
    margin: 0
}

.careers-cta {
    margin-top: 24px;
    padding: 32px 36px;
    background: #0d263f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #fff
}

.careers-cta h3 {
    font-size: 22px;
    margin: 0 0 8px
}

.careers-cta p {
    color: #d0dbe6;
    font-size: 13px;
    line-height: 2;
    margin: 0;
    max-width: 700px
}

.careers-cta .btn {
    flex-shrink: 0
}

/* Native modal dialog: accessible focus, Escape to close, scrollable body */
.news-dialog {
    border: 0;
    border-radius: 3px;
    padding: 0;
    width: min(630px, calc(100vw - 40px));
    max-height: min(82vh, 850px);
    box-shadow: 0 28px 90px #06192c60;
    color: var(--ink);
    background: #fff;
    overflow: auto
}

.news-dialog::backdrop {
    background: rgba(6, 23, 42, .74);
    backdrop-filter: blur(3px)
}

.news-dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 20px 29px
}

.news-dialog-close {
    border: 1px solid #dbe4ed;
    background: #fff;
    width: 38px;
    height: 38px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink)
}

.news-dialog-close:hover, .news-dialog-bottom-close:hover {
    background: #f0f4f7
}

.news-dialog-meta {
    padding: 31px 35px 0;
    display: flex;
    align-items: center;
    gap: 17px
}

.news-dialog-meta time {
    font-size: 12px;
    font-family: Manrope, sans-serif;
    color: #657587;
    font-weight: 800
}

.news-dialog > h2 {
    margin: 14px 35px 18px;
    font-size: clamp(21px, 2.8vw, 28px);
    line-height: 1.55
}

.news-dialog-body {
    padding: 0 35px 23px;
    color: #4f6073;
    font-size: 14px;
    line-height: 2.15
}

.news-dialog-body p {
    margin: 0 0 16px
}

.news-dialog-info {
    background: #f3f6f9;
    padding: 19px 22px;
    margin: 22px 0;
    font-size: 13px
}

.news-dialog-info dl {
    margin: 0
}

.news-dialog-info div {
    display: grid;
    grid-template-columns:110px 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #dae2ea
}

.news-dialog-info div:last-child {
    border-bottom: none
}

.news-dialog-info dt {
    font-weight: 800;
    color: #1c344f
}

.news-dialog-info dd {
    margin: 0
}

.news-dialog-bottom {
    border-top: 1px solid var(--line);
    text-align: right;
    padding: 16px 29px
}

.news-dialog-bottom-close {
    padding: 8px 30px;
    background: #fff;
    border: 1px solid #cbd7e1;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer
}

/* At widths where the extended menu cannot fit, use the original mobile menu */
@media (max-width: 1300px) {
    .menu-btn {
        display: block;
        background: transparent;
        border: 0;
        width: 42px;
        height: 42px;
        padding: 9px;
        cursor: pointer;
        flex-shrink: 0
    }

    .menu-btn span {
        display: block;
        height: 2px;
        margin: 6px 0;
        background: var(--navy)
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        box-shadow: 0 12px 14px #0002;
        background: #fff;
        padding: 15px 38px 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100svh - 82px);
        overflow-y: auto
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 11px 7px;
        border-bottom: 1px solid var(--line);
        font-size: 13px
    }

    .nav-links .nav-contact {
        text-align: center;
        margin-top: 12px
    }
}

@media (max-width: 760px) {
    .nav-links {
        top: 70px;
        max-height: calc(100svh - 70px);
        padding: 14px 23px 24px
    }

    .news-section {
        padding-top: 60px;
        padding-bottom: 64px
    }

    .news-heading {
        display: block
    }

    .news-heading > p {
        margin-top: 9px
    }

    .news-item {
        grid-template-columns:104px minmax(0, 1fr) 18px;
        gap: 11px;
        padding: 20px 3px
    }

    .news-item .news-category {
        grid-column: 1;
        grid-row: 2;
        align-self: start
    }

    .news-item time {
        grid-column: 1;
        grid-row: 1
    }

    .news-content {
        grid-column: 2;
        grid-row: 1 / 3
    }

    .news-content strong {
        font-size: 14px
    }

    .news-content small {
        font-size: 11px
    }

    .news-arrow {
        grid-column: 3;
        grid-row: 1 / 3
    }

    .roof-cost-section {
        padding: 28px 19px;
        margin-top: 19px
    }

    .roof-cost-benefits {
        grid-template-columns:1fr;
        gap: 10px
    }

    .roof-cost-benefits article {
        min-height: auto;
        padding: 19px
    }

    .roof-cost-design {
        grid-template-columns:1fr;
        gap: 13px;
        padding: 23px
    }

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

    .careers-cards article {
        min-height: auto;
        padding: 23px 20px
    }

    .careers-cta {
        display: block;
        padding: 26px 22px
    }

    .careers-cta .btn {
        margin-top: 20px
    }

    .news-dialog-top {
        padding: 17px 20px
    }

    .news-dialog-meta {
        padding: 25px 22px 0
    }

    .news-dialog > h2 {
        margin: 12px 22px 16px
    }

    .news-dialog-body {
        padding: 0 22px 18px
    }

    .news-dialog-info {
        padding: 14px
    }

    .news-dialog-info div {
        grid-template-columns:80px 1fr;
        gap: 8px
    }

    .news-dialog-bottom {
        padding: 14px 22px
    }
}

/* Keep a concise primary desktop navigation while retaining all links in the mobile menu. */
@media (min-width: 1301px) {
    .nav-links a[href="#roof-bipv"], .nav-links a[href="#module-flex"], .nav-links a[href="#patents"] {
        display: none
    }
}

/* Reordered: place roof material replacement first, news after recruitment */
.roof-cost-standalone {
    background: #f4f7fa;
    padding-top: 80px;
    padding-bottom: 88px
}

.roof-cost-standalone .roof-cost-section {
    margin-top: 0
}

.careers-section + .news-section {
    border-top: 1px solid #e3e9ef
}

@media (max-width: 760px) {
    .roof-cost-standalone {
        padding-top: 54px;
        padding-bottom: 58px
    }
}

/* News dialog improvements */
.news-dialog[open] {
    z-index: 1000
}

.news-dialog.dialog-fallback-open {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

.news-item {
    cursor: pointer
}

.news-item:focus-visible {
    outline: 3px solid #e52c3d;
    outline-offset: 3px
}

/* スマホ以外（768px以上） */
@media screen and (min-width: 768px) {
    .company-card {
        margin-top: 60px;
    }
}

.logo {
    width: 245px!important;
}

.logo_f {
    width: 60px!important;
}