@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* 設定値
-------------------------------------------------------- */
:root {
    /* #FFFFFF */
    --color-background: 255, 255, 255;
    /* #21272A */
    --color-base: 33, 39, 42;
    /* #697077 */
    --color-muted: 105, 112, 119;
    /* #0F62FE */
    --color-accent: 15, 98, 254;
    /* #F2F4F8 */
    --color-image-background: 242, 244, 248;

    --line-height: 1.5;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 16px;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --header-height: 70px;
}

/* base
-------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    font-size: var(--text-md);
    line-height: var(--line-height);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(var(--color-background));
    color: rgb(var(--color-base));
    font-family: "Roboto", "Noto Sans JP", sans-serif;
}

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

em {
    font-style: normal;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

dl, dt, dd {
    margin: 0;
    padding: 0;
}
dt {
    font-weight: 700;
}

h1 {
    font-size: var(--text-3xl);
}
h2 {
    font-size: var(--text-2xl);
}


/* 共通スタイル
-------------------------------------------------------- */
/* ラッパー */
.wrapper {
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 3.5rem auto;
}

/* ボタン */
.button {
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1.25rem;
    background-color: rgb(var(--color-accent));
    color: rgb(var(--color-background));
    border: solid 1px rgb(var(--color-accent));
    cursor: pointer;
}
.button-outline {
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1.25rem;
    color: rgb(var(--color-accent));
    border: solid 1px rgb(var(--color-accent));
    cursor: pointer;
}

/* スクリーンリーダー専用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 各デバイス専用 */
.pc-only {
    display: none;
}
.sp-only {
    display: block;
}
@media screen and (min-width: 1024px) {
    .sp-only {
        display: none;
    }
    .pc-only {
        display: block;
    }
}

/* ページヘッダー */
.heading {
    width: 100%;
    text-align: center;
    margin: 2rem 0;
    font-weight: 700;
    line-height: 1.25;
}
.heading > span {
    display: block;
}
.heading__en {
    font-size: max(0.4em, var(--text-xs));
}

/* アイキャッチ */
.eyecatch {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.eyecatch .heading {
    margin: 0;
}
.eyecatch__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    line-height: 1.25;
}
.eyecatch__content-en {
    display: none;
    font-size: var(--text-sm);
}
.eyecatch__content-footer {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    font-size: var(--text-md);
}
.eyecatch__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.eyecatch__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (min-width: 1024px) {
    .eyecatch {
        min-height: 500px;
        flex-direction: row;
    }
    .eyecatch__content,
    .eyecatch__image {
        width: 50%;
    }
    .eyecatch__content {
        gap: 3.5rem;
        padding: 2rem;
        font-size: var(--text-xl);
    }
    .eyecatch__content-en {
        display: block;
    }
}

/* アイテムギャラリー */
.gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.gallery__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: rgb(var(--color-image-background));
    border-radius: 0.75rem;
    overflow: hidden;
}
.gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery__title {
    font-weight: 700;
    font-size: var(--text-sm);
    margin: 0.5rem 0;
}
@media screen and (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 説明文エリア */
.description {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border: solid 1px rgb(var(--color-muted));
    padding: 1.5rem 1rem;
}
.description__title {
    margin: 0 0 0.5rem 0;
    font-size: var(--text-md);
    font-weight: 700;
}

/* データリスト */
dl.description-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    font-size: var(--text-sm);
}
dl.description-list dt {
    text-align: right;
}
@media screen and (min-width: 1024px) {
    dl.description-list {
        font-size: var(--text-md);
    }
}

/* TOPへ戻る */
.scroll-top {
    display: flex;
    align-items: center;
    justify-items: center;
    visibility: hidden;
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
    opacity: 0;
    background-color: rgb(var(--color-background));
    color: rgb(var(--color-muted));
    border: solid 1px rgb(var(--color-muted));
    border-radius: 100%;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    font-weight: 700;
    position: fixed;
    right: 1rem;
    bottom: 2rem;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.8s ease;
}
.scroll-top.visible {
    opacity: 0.8;
    visibility: visible;
}
@media screen and (min-width: 1024px) {
    .scroll-top {
        right: 2rem;
    }
}

/* header
-------------------------------------------------------- */
.header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 999;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header__logo > img {
    width: 3.5rem;
}
.header__logo-info {
    color: rgb(var(--color-muted));
    text-align: right;
}
.header__logo-info > span {
    display: block;
}

.header__menu-open {
    width: 40px;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    z-index: 99;
}
.header__menu-open > span {
    width: 100%;
    height: 2px;
    display: block;
    background-color: rgb(var(--color-muted));
    position: absolute;
}
.header__menu-open > span:nth-child(1) {
    top: 10%;
}
.header__menu-open > span:nth-child(2) {
    top: 50%;
    display: block;
    transform: translateY(-50%);
}
.header__menu-open > span:nth-child(3) {
    bottom: 10%;
}
.header__menu.visible .header__menu-open > span:nth-child(1) {
    top: 50%;
    transform: rotate(-45deg);
}
.header__menu.visible .header__menu-open > span:nth-child(2) {
    display: none;
}
.header__menu.visible .header__menu-open > span:nth-child(3) {
    top: 50%;
    transform: rotate(45deg);
}
@media screen and (min-width: 1200px) {
    .header__menu {
        font-size: var(--text-sm);
    }
    .header__menu-open {
        display: none;
    }
}

.header__menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;

    /* ドロップダウン */
    width: 98%;
    height: 0;
    background-color: rgb(var(--color-background));
    position: absolute;
    top: var(--header-height);
    left: 1%;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: height 0.8s ease;
}
@media screen and (min-width: 1200px) {
    .header__menu-content {
        flex-direction: row;

        width: auto;
        height: auto !important;
        background-color: none;
        position: relative;
        top: auto;
        left: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

.header__menu-nav {
    width: 100%;
    padding: 2rem 1rem;
}
.header__menu-nav ul {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.header__menu-nav li {
    width: 100%;
}
.header__menu-nav a {
    display: block;
    padding: 0.5rem;
    text-align: center;
    white-space: nowrap;
}
.header__menu-nav a.button {
    padding: 0.5rem 1.25rem;
}
.header__menu-tel {
    display: none;
    white-space: nowrap;
}
.header__menu-tel > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header__menu-tel img {
    width: 1em;
    aspect-ratio: 1 / 1;
}
@media screen and (min-width: 1200px) {
    .header__menu-nav {
        padding: 0;
    }
    .header__menu-nav ul {
        flex-direction: row;
    }
    .header__menu-tel {
        display: block;
    }
}


/* footer
-------------------------------------------------------- */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 5rem;
    text-align: center;
}
.footer__company img {
    width: 100px;
    margin-bottom: 1rem;
}
.footer__cert img {
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
}
.footer__sns ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.footer__sns li {
    width: 30px;
    aspect-ratio: 1 / 1;
}
.footer__sns li > img {
    width: 100%;
    height: 100%;
}
.footer__copy {
    font-size: var(--text-xs);
    background-color: rgb(var(--color-muted));
    color: rgb(var(--color-background));
    padding: 1rem 0;
}


/* TOP
-------------------------------------------------------- */
.top__slider {
    width: 100%;
    overflow: hidden;
    background-color: rgb(var(--color-image-background));
}
.top__slider ul {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform 0.5s ease;
}
.top__slider .eyecatch {
    flex-shrink: 0;
}
.top__slider .eyecatch__content {
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
.top__slider .heading {
    height: calc(var(--header-height) * 1em * 2);
    text-align: left;
    font-size: var(--text-xl);
}
@media screen and (min-width: 1024px) {
    .top__slider .heading {
        font-size: var(--text-3xl);
    }
}

.top__news {
    height: 150px;
    border: solid 1px rgb(var(--color-muted));
    overflow-y: scroll;
}
@media screen and (min-width: 1024px) {
    .top__news {
        height: 250px;
    }
}

.top__products {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media screen and (min-width: 1024px) {
    .top__products {
        grid-template-columns: repeat(4, 1fr);
    }
}
.top__products-card {
    display: flex;
    width: 100%;
    height: 6rem;
    gap: 0.5rem;
    position: relative;
}
.top__products-card-image {
    width: 35%;
    overflow: hidden;
}
.top__products-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top__products-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.top__products-card-category {
    font-size: var(--text-xs);
    font-weight: 700;
}
.top__products-card-title {
    margin: 0;
    font-weight: 700;
    font-size: var(--text-md);
}
.top__products-card-text {
    flex: 1;
    font-size: var(--text-xs);
}
.top__products-card-button {
    padding: 0 0.25rem;
    font-weight: 700;
    font-size: var(--text-sm);
    position: absolute;
    top: 0.25rem;
    right: 0;
}
@media screen and (min-width: 1024px) {
    .top__products-card {
        height: auto;
        flex-direction: column;
        border: solid 1px rgb(var(--color-muted));
    }
    .top__products-card-image {
        width: 100%;
        aspect-ratio: 3 / 2;
    }
    .top__products-card-content {
        padding: 0 0.5rem 0.5rem;
        gap: 0.25rem;
    }
    .top__products-card-button {
        position: relative;
        top: auto;
        right: auto;
        font-size: var(--text-md);
        margin-top: 3rem;
        padding: 0.25rem;
    }
}

.top__profile {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.top__profile .description-list {
    max-width: 500px;
    margin: 0 auto;
    grid-template-columns: clamp(6rem, 30%, 50%) 1fr;
}
.top__profile iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
}
@media screen and (min-width: 1024px) {
    .top__profile {
        grid-template-columns: repeat(2, 1fr);
    }
}

.top__history .description-list {
    max-width: 450px;
    margin: 0 auto;
    grid-template-columns: clamp(9rem, 30%, 50%) 1fr;
    column-gap: 0;
    row-gap: 0;
}
.top__history dt {
    border-right: solid 1px rgb(var(--color-muted));
    padding: 0.5rem 1rem 0.5rem 0;
}
.top__history dd {
    padding: 0.5rem 0 0.5rem 1rem;
}


/* 品質管理
-------------------------------------------------------- */
.quality__process ul {
    display: flex;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    flex-direction: column;
    padding-left: 1.5rem;
    counter-reset: process-no;
}
.quality__process ul li {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
    counter-increment: process-no;
    border-left: solid 1px rgb(var(--color-muted));
}
.quality__process ul li:last-child {
    border-left: none;
}
.quality__process ul li::before {
    content: counter(process-no);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: -1.5rem;
    background-color: rgb(var(--color-base));
    color: rgb(var(--color-background));
    font-weight: 700;
    font-size: var(--text-xl);
    border-radius: 100%;
}
.quality__process-title {
    font-weight: 700;
    font-size: var(--text-lg);
    margin: 0.5rem 0;
}


/* 設備・環境対策
-------------------------------------------------------- */
.equipment__table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: solid 2px rgba(var(--color-muted), 0.1);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}
.equipment__table table th,
.equipment__table table td {
    padding: 0.5rem;
}
.equipment__table table th {
    text-align: left;
    background-color: rgba(var(--color-muted), 0.1);
}
.equipment__table tbody tr:nth-child(even) {
    background-color: rgba(var(--color-muted), 0.05);
}

.equipment__sdgs ul {
    display: grid;
    grid-template-columns: repeat(5, min(15vw, 120px));
    justify-content: center;
    gap: 1rem;
}
.equipment__sdgs img {
    width: 100%;
}


/* ダイカストとは
-------------------------------------------------------- */
.diecasting__history-row {
    width: 100%;
    margin-bottom: 1rem;
}
.diecasting__history-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.diecasting__history-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media screen and (min-width: 1024px) {
    .diecasting__history-row {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1rem;
    }
}

.diecasting__history-row h4 {
    margin: 0.5rem 0;
}
.diecasting__history-row p {
    margin-bottom: 1rem;
}
.diecasting__history-row ul,
.diecasting__history-row ol {
    list-style: revert;
    padding-left: 1.5rem;
}
.diecasting__history-row li {
    margin-bottom: 0.25rem;
}
.diecasting__history-row dt,
.diecasting__history-row dd {
    margin-bottom: 0.25rem;
}
@media screen and (min-width: 1024px) {
    .diecasting__history-row dl {
        display: grid;
        grid-template-columns: 10rem 1fr;
        gap: 1rem;
    }
}


/* 求人情報
-------------------------------------------------------- */
@media screen and (min-width: 1024px) {
    .recruit__eyecatch .eyecatch__content {
        gap: 2.5rem;
        font-size: var(--text-lg);
    }
}

.recruit__content {
    max-width: 800px;
    margin: 0 auto;
}
.recruit__content .description-list {
    padding: 1rem;
    border: solid 1px rgb(var(--color-muted));
    grid-template-columns: minmax(6rem, 30%) 1fr;
}





/* 汎用スタイル
-------------------------------------------------------- */
.text-xs {
    font-size: var(--text-xs);
}
.text-sm {
    font-size: var(--text-sm);
}
.text-md {
    font-size: var(--text-md);
}
.text-lg {
    font-size: var(--text-lg);
}
.text-xl {
    font-size: var(--text-xl);
}
.text-2xl {
    font-size: var(--text-2xl);
}
.text-3xl {
    font-size: var(--text-3xl);
}

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.text-base {
    color: rgb(var(--color-base));
}
.text-muted {
    color: rgb(var(--color-muted));
}
.text-accent {
    color: rgb(var(--color-accent));
}

.w-full {
    width: 100%;
}
.h-full {
    height: 100%;
}

.m-2, .my-2, .mt-2 {
    margin-top: 0.5rem;
}
.m-2, .my-2, .mb-2 {
    margin-bottom: 0.5rem;
}
.m-2, .mx-2, .ml-2 {
    margin-left: 0.5rem;
}
.m-2, .mx-2, .mr-2 {
    margin-right: 0.5rem;
}
.m-4, .my-4, .mt-4 {
    margin-top: 1rem;
}
.m-4, .my-4, .mb-4 {
    margin-bottom: 1rem;
}
.m-4, .mx-4, .ml-4 {
    margin-left: 1rem;
}
.m-4, .mx-4, .mr-4 {
    margin-right: 1rem;
}
.m-8, .my-8, .mt-8 {
    margin-top: 2rem;
}
.m-8, .my-8, .mb-8 {
    margin-bottom: 2rem;
}
.m-8, .mx-8, .ml-8 {
    margin-left: 2rem;
}
.m-8, .mx-8, .mr-8 {
    margin-right: 2rem;
}

.p-2, .py-2, .pt-2 {
    padding-top: 0.5rem;
}
.p-2, .py-2, .pb-2 {
    padding-bottom: 0.5rem;
}
.p-2, .px-2, .pl-2 {
    padding-left: 0.5rem;
}
.p-2, .px-2, .pr-2 {
    padding-right: 0.5rem;
}
.p-4, .py-4, .pt-4 {
    padding-top: 1rem;
}
.p-4, .py-4, .pb-4 {
    padding-bottom: 1rem;
}
.p-4, .px-4, .pl-4 {
    padding-left: 1rem;
}
.p-4, .px-4, .pr-4 {
    padding-right: 1rem;
}
.p-8, .py-8, .pt-8 {
    padding-top: 2rem;
}
.p-8, .py-8, .pb-8 {
    padding-bottom: 2rem;
}
.p-8, .px-8, .pl-8 {
    padding-left: 2rem;
}
.p-8, .px-8, .pr-8 {
    padding-right: 2rem;
}