* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    color: #13294b;
    background: #fff;
}


/* =========================
   HEADER
========================= */

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #010e21;
    color: #fff;
}

.header-inner {
    height: 100px;
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 10px 28px;
    gap: 55px;
}

.brand {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand img {
    width: 190px;
    height: auto;
    display: block;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    flex: 1;
    white-space: nowrap;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.contact-btn {
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 10px 15px;
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    font-size: 24px;
    padding: 4px 10px;
}


/* =========================
   HERO
========================= */

.hero {
    background: #061c39;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    line-height: 0;
    background: #061c39;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
}


/* =========================
   COMMON SECTION
========================= */

.section {
    max-width: 1180px;
    margin: auto;
    padding: 25px 30px 20px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 11px;
}

.section-title:before,
.section-title:after {
    content: "";
    height: 1px;
    background: #8d939d;
    flex: 1;
}

.section-title span {
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.section-title small {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================
   OUR SERVICES
========================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.service-grid article {
    padding: 0 15px;
    border-right: 1px solid #ccd1d8;
}

.service-grid article:last-child {
    border-right: 0;
}

.num {
    display: inline-block;
    background: #09264d;
    color: #fff;
    padding: 5px 8px;
    font-weight: 700;
}

.service-grid .service-icon {
    display: block;
    width: 100%;
    height: 82px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.service-grid h3 {
    font-size: 14px;
    text-align: center;
    margin: 7px 0;
}

.service-grid p {
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
}


/* =========================
   INDUSTRIAL PRODUCTS
========================= */

.products {
    padding-top: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #d5d8dc;
}

.product-grid article {
    border-right: 1px solid #d5d8dc;
    text-align: center;
    min-width: 0;
}

.product-grid article:last-child {
    border-right: 0;
}

.product-grid h3 {
    font-size: 13px;
    margin: 9px 2px 1px;
}

.product-grid small {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    min-height: 30px;
}

.product-grid img {
    width: 100%;
    height: 145px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.note {
    text-align: center;
    font-size: 11px;
    margin: 6px 0;
}


/* =========================
   OUR STRENGTH
========================= */

.strength {
    background: #031337;
    color: #fff;
    padding: 12px 30px 20px;
}

.section-title.dark:before,
.section-title.dark:after {
    background: #72839b;
}

.strength .section-title {
    max-width: 1180px;
    margin: 0 auto 10px;
}

.strength-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.strength-grid article {
    display: flex;
    gap: 18px;
    padding: 8px 28px;
    border-right: 1px solid #8492a5;
    align-items: center;
}

.strength-grid article:last-child {
    border-right: 0;
}

.strength-grid img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.strength h3 {
    font-size: 15px;
    margin: 0 0 5px;
}

.strength p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}


/* =========================
   FOR BUSINESS
========================= */

.business {
    position: relative;
    max-width: 1180px;
    margin: auto;
    padding: 18px 30px 45px;
    min-height: 215px;
}

.business-copy {
    position: relative;
    z-index: 2;
    width: 62%;
}

.section-title.left {
    justify-content: flex-start;
}

.section-title.left:before {
    display: none;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.checks p {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
}

html[lang="en"] .checks p {
    font-size: 11px;
}

.business-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 215px;
    background: url("images/business-photo.jpg") center / cover no-repeat;
}

.business-lead {
    position: absolute;
    bottom: 8px;
    left: 30px;
    right: 30px;
    text-align: left;
    font-family: serif;
    font-size: 17px;
    font-weight: 700;
}

html[lang="en"] .business-lead {
    position: absolute;
    bottom: 15px;
    left: 30px;
    right: 30px;
    text-align: left;
    font-family: serif;
    font-size: 15px;
    font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #061743;
    color: #fff;
    display: grid;
    grid-template-columns: 240px 1fr 1.5fr;
    gap: 30px;
    padding: 28px max(30px, calc((100% - 1180px) / 2));
    align-items: center;
}

.footer-brand img {
    width: 210px;
    mix-blend-mode: lighten;
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
}

.footer-info {
    border-left: 1px solid #8290a5;
    padding-left: 25px;
    font-size: 12px;
}

.footer-info p {
    margin: 8px 0;
    border-bottom: 1px solid #445b78;
    padding-bottom: 5px;
}

.footer-info p:last-child {
    border-bottom: 0;
}


/* =========================
   PC ONLY
========================= */

@media (min-width: 901px) {

    .site-header {
        background: #010e21;
    }

    .strength {
        background: #031337;
    }

    .footer {
        background: #061743;
    }

    .footer-brand img {
        mix-blend-mode: lighten;
    }

    .business-photo {
        width: 50%;
        height: 215px;
    }

    .business-photo::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 35%;
        height: 100%;
        background: linear-gradient(
            to right,
            #fff 0%,
            rgba(255, 255, 255, 0.85) 20%,
            rgba(255, 255, 255, 0.4) 55%,
            rgba(255, 255, 255, 0) 100%
        );
        pointer-events: none;
    }

}


/* =========================
   SMARTPHONE
========================= */

@media (max-width: 900px) {

    .header-inner {
        height: 80px;
        padding: 10px 18px;
        gap: 0;
        justify-content: space-between;
    }

    .brand img {
        width: 150px;
    }

    .site-header nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: #010e21;
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }

    .site-header nav.open {
        display: flex;
    }

    .site-header nav a {
        padding: 12px;
        border-bottom: 1px solid #2d4667;
        width: 100%;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }


    /* HERO */

    .hero-image img {
        max-height: none;
        min-height: 0;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center top;
    }


    /* COMMON */

    .section {
        padding: 24px 16px;
    }


    /* SERVICES */

    .service-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid article:nth-child(2n) {
        border-right: 0;
    }

    .service-grid article {
        border-bottom: 1px solid #ccd1d8;
        padding: 12px;
    }


    /* PRODUCTS */

    .product-grid article:nth-child(2n) {
        border-right: 0;
    }

    .product-grid article {
        border-bottom: 1px solid #d5d8dc;
    }


    /* STRENGTH */

    .strength {
        background: #031337;
        color: #fff;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }

    .strength-grid article {
        border-right: 0;
        border-bottom: 1px solid #50647f;
        padding: 14px;
    }


    /* BUSINESS */

    .business {
        padding: 20px 16px 70px;
    }

    .business-copy {
        width: 100%;
    }

    .business-photo {
        position: relative;
        width: 100%;
        height: 160px;
        margin-top: 15px;
        background: url("images/business-photo.jpg") center / cover no-repeat;
    }

    /*
       スマホでは画像を白グラデーションなしで表示
       元のスマホレイアウトを優先
    */

    .business-photo::before {
        display: none;
    }

    .checks {
        grid-template-columns: 1fr;
    }

    html[lang="en"] .business-lead {
        left: 16px;
        right: 16px;
        font-size: 14px;
        bottom: 5px;
    }

    html[lang="en"] .section-title {
        display: block;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 11px;
        text-align: center;
    }

    html[lang="en"] .section-title span {
        font-size: 17px;
        display: block;
    }


    /* FOOTER */

    .footer {
        background: #061743;
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .footer-brand img {
        mix-blend-mode: lighten;
    }

    .footer-info {
        border-left: 0;
        border-top: 1px solid #8290a5;
        padding: 15px 0 0;
    }


    /* SECTION TITLE */

    .section-title span {
        font-size: 17px;
    }

    .section-title small {
        font-size: 11px;
    }

}


/* =========================
   COMPANY PAGE
========================= */

.company-page {
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: #111827;
}

.company-section {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.company-hero {
    width: 100%;
    line-height: 0;
}

.company-hero img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.company-greeting {
    padding: 32px 0 22px;
}

.company-greeting h1,
.company-overview h2 {
    margin: 0 0 12px;
    font-size: 31px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .03em;
}

.company-greeting-text {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .02em;
}

.company-greeting-text p {
    margin: 0 0 4px;
}

.company-overview {
    padding: 10px 0 34px;
}

.company-overview h2 {
    margin-bottom: 12px;
}

.company-table {
    width: 100%;
    border: 1px solid #b8bec7;
}

.company-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 48px;
    border-bottom: 1px solid #b8bec7;
}

.company-row:last-child {
    border-bottom: 0;
}

.company-label {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    background: #3477b9;
    color: #fff;
    border-right: 1px solid #b8bec7;
    font-size: 20px;
    font-weight: 500;
}

.company-value {
    display: flex;
    align-items: center;
    padding: 8px 28px;
    background: #fff;
    font-size: 19px;
    font-weight: 600;
}

.company-value a {
    color: #174c9b;
    text-decoration: underline;
}

.company-business-row {
    min-height: 155px !important;
}

.company-business-row .company-value {
    align-items: flex-start;
    padding-top: 9px;
}

.company-business-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.company-business-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-business-list li {
    position: relative;
    margin: 0 0 2px;
    padding-left: 18px;
}

.company-business-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.company-philosophy {
    padding: 0 0 40px;
}

.company-philosophy-inner {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 28px 34px;
    background: #0e1f57;
}

.company-philosophy-copy {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 58%;
}

.company-philosophy-copy h2 {
    margin: 0 0 14px;
    font-size: 27px;
    font-weight: 500;
}

.company-philosophy-copy p {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 25px;
    line-height: 1.65;
    letter-spacing: .04em;
}

.company-philosophy-image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("images/company-philosophy.jpg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}

@media (max-width: 900px) {

    .company-section {
        width: calc(100% - 32px);
    }

    .company-hero img {
        height: 180px;
    }

    .company-greeting {
        padding: 24px 0 18px;
    }

    .company-greeting h1,
    .company-overview h2 {
        font-size: 25px;
    }

    .company-greeting-text {
        font-size: 16px;
        line-height: 1.85;
    }

    .company-pc {
        display: none;
    }

    .company-overview {
        padding-bottom: 26px;
    }

    .company-row {
        grid-template-columns: 105px 1fr;
    }

    .company-label {
        padding: 7px 10px;
        font-size: 15px;
    }

    .company-value {
        padding: 7px 12px;
        font-size: 15px;
        line-height: 1.55;
    }

    .company-business-row {
        min-height: 0 !important;
    }

    .company-business-row .company-value {
        padding-top: 8px;
    }

    .company-business-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .company-business-list li {
        margin-bottom: 3px;
    }

    .company-philosophy {
        padding-bottom: 25px;
    }

    .company-philosophy-inner {
        min-height: 190px;
        padding: 24px 20px;
    }

    .company-philosophy-copy h2 {
        font-size: 22px;
    }

    .company-philosophy-copy p {
        font-size: 21px;
        line-height: 1.7;
    }

    .company-philosophy-image {
        width: 50%;
        background-position: right bottom;
        background-size: 130%;
    }

}

@media (max-width: 520px) {

    .company-hero img {
        height: 145px;
    }

    .company-greeting h1,
    .company-overview h2 {
        font-size: 22px;
    }

    .company-greeting-text {
        font-size: 14px;
    }

    .company-row {
        grid-template-columns: 88px 1fr;
    }

    .company-label {
        font-size: 13px;
        padding: 7px;
    }

    .company-value {
        font-size: 13px;
        padding: 7px 9px;
    }

    .company-philosophy-copy p {
        font-size: 15px;
    }

}


/* =========================
   ENGLISH PAGE TYPOGRAPHY
========================= */

body:has(.language-switch) {
    letter-spacing: 0;
}

body:has(.language-switch) .service-grid article h3 {
    line-height: 1.35;
}

body:has(.language-switch) .service-grid article p {
    line-height: 1.7;
}

body:has(.language-switch) .product-grid article small {
    line-height: 1.5;
}

body:has(.language-switch) .strength-grid article h3 {
    line-height: 1.35;
}

body:has(.language-switch) .strength-grid article p {
    line-height: 1.7;
}

body:has(.language-switch) .checks p {
    line-height: 1.5;
}


/* =========================
   LANGUAGE SWITCH
========================= */

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: 14px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 28px;
    padding: 0 10px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    border-radius: 999px;
    transition: .2s ease;
}

.language-switch a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.language-switch a.active {
    color: #061743;
    background: #fff;
    font-weight: 700;
}

.language-switch span {
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    user-select: none;
}


/* LANGUAGE SWITCH / DESKTOP */
@media (min-width: 901px) {
    .site-header .language-switch {
        flex: 0 0 auto;
        margin-left: 14px;
    }
}

/* =========================
   LANGUAGE SWITCH / MOBILE
========================= */

@media (max-width: 900px) {

    .site-header .header-inner {
        position: relative;
    }

    /*
       スイッチャーをハンバーガーとは完全に独立させる
       ハンバーガーの左側に固定
    */
    .site-header .language-switch {
        position: absolute;
        right: 72px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 1003;
        padding: 3px;
        background: rgba(1, 14, 33, .96);
    }

    .site-header .language-switch a {
        min-width: 55px;
        height: 25px;
        padding: 0 7px;
        font-size: 10px;
    }

    /*
       ハンバーガー自体もabsolute化
       これでスイッチャーがハンバーガーの中に入り込まない
    */
    .site-header .menu-btn {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1004;
        margin: 0;
    }

}