@charset "UTF-8";

html, body {
	margin: 0;
	padding: 0;
	font-size: 16px;
	cursor: url('../img/cursor.png') 0 0, auto;
	-webkit-text-size-adjust: 100%;
    font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* ヘッダー */
header {
	margin: 0 auto; /* 中央寄せ */
}
.main_menu {
	position: fixed; /* 固定する */
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: auto;
	max-height: 120px;
	background-color: white;
	z-index: 9999; /* ← 最前面に固定 */
	padding: 1% 0;
}
/* ロゴ */
.top_logo {
	width: 30%;
}
.top_logo img {
	max-width: 100%;
	height: auto;
}
/* メニュー */
.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin-top: 4%;
    width: 60%;
    justify-content: space-between; /* ← これが重要 */
}
.menu li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    background-color: #68a4d9;
    width: auto;
    height: auto;
    flex: 1;
    color: white;
    font-size: 1.5rem;
    flex: 1;
}
.menu > li:hover {
    background: #4496d3; /*シングルメニューオンマウス時の背景色*/
    -webkit-transition: all .5s;
    transition: all .5s;
}
.menu-link {
    display: flex;          /* 画像＋文字を横並びに */
    align-items: center;    /* 縦位置を揃える */
    width: 100%;            /* li 全体をカバー */
    height: auto;           /* li の高さをカバー */
    text-decoration: none;  /* 下線を消す */
    color: inherit;         /* 文字色を li に合わせる */
}
/* メニューアイコン */
.icon {
	width: 60px;
	/*height: 60px;*/
	max-width: 100%;
	height: auto;
}

/* リンク・ボタン全般 */
a, a:hover, a:active, a:visited, button:hover {
	text-decoration: none; /* 下線なし */
	color: inherit; /* 文字色変更なし */
	cursor: url('../img/point.png'), auto;
}

/* 採用募集バナー */
.recruit {
	margin: 25% auto 0 auto;
	width: 100%;
	height: 10%;
}

/* メインコンテンツ */
.mainbody {
	max-width: 1000px;
	margin: 0 auto; /* 中央寄せ */
	padding: 0 5%; /* 画面が狭いときの左右余白 */
}

/* メニュータイトル */
h1 {
	position: relative;
	text-align: center;
	font-size: 2rem;
	padding: 3% 0;
	color: #4496d3;
	margin-top: 10%;
}
h1::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1000px;
	height: 5px;
	background-color: #4496d3;
	bottom: 0;
}
.title {
	text-align: center;
	color: #4496d3;
	font-size: 1.5rem;
	margin: 0;
	padding: 0;
}
/* タイトルアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 商品紹介 */
.product {
	border: 1px solid black;
	padding: 0 3%;
	margin: 5%;
	line-height: 1.8;
	font-size: 1.2rem;
}
.pro_title {
	font-size: 1.5rem;
	position: relative;
	display: flex;
	align-items: center; /* ← これで縦方向の中央揃え */
	padding: 1%;
}
.pro_title::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 900px;
	height: 1px;
	background-color: black;
	bottom: 0;
}

/* 会社概要及び採用情報のテーブル */
table {
	padding: 2% 10%;
	line-height: 3;
	font-size: 1.2rem;
}
td {
	padding: 2% 0;
	vertical-align: top;
}
.left {
	width: 22%;
}
.right {
	width: 30%;
}

/* 採用情報ヘッダー共通 */
.imghead {
	margin-top: 3%;
}

/* その他 */
.sonota {
	font-size: 1.2rem;
	line-height: 5;
	margin-left: 10%;
}
/* お問い合わせフォーム */
.mailtext {
	margin: 3% 10% 0 10%;
	font-size: 0.9rem;
}
form {
	margin: 5% 0;
}
.frmtext {
	margin: 0 10%;
}
.frmtext input, .frmtext textarea {
	width: 100%;
	padding: 1%;
	font-size: 1.2rem;
}
.frmbtn {
	text-align: right;
}
.frmbtn button {
	width: auto;
	padding: 1% 3%;
	font-size: 1.2rem;
}

/* フッター */
footer {
	margin-top: 20px;
	color: #4496d3;
	text-align: center;
}

/* ページ内リンク */
[id] {
	scroll-margin-top: 120px; /* ヘッダーの高さに合わせる */
}

/* スマホサイズ対応 */
@media (max-width: 768px) {

	html {
		font-size: 13px; /* スマホでは少し小さめ */
	}

	/* 固定ヘッダーをロゴとメニューの2段に変更 */
    .main_menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
    }

    .top_logo {
        width: 270px;
        text-align: center;
    }

    .menu {
        width: 100%;
        display: flex;
        justify-content: space-between; /* ← 均等配置 */
        padding: 0;
        margin: 0;
    }

    .menu li {
        flex: 1;                    /* ← 4つを均等幅に */
        text-align: center;
        list-style: none;
        font-size: 1.1rem;
        padding: 1%;
    }

    .menu-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }

    .icon {
        width: 30px;
        height: auto;
    }

    /* 採用募集バナー */
	.recruit {
		margin: 35% auto 0 auto;
	}
}
