﻿/* UTF-8で保存してください */
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

body {
    /* font-family: Arial, sans-serif; */
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #FFF;
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    width: 200px;
    height: 50px;
}

header .logo img {
    max-width: 100%;
    height: auto;
}

.menu-button {
    display: none;
    background-color: green;
    color: white;
    padding: 5px 10px;
    margin-top: 5px;
	margin-right: 20px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 100px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 5px 10px;
}

nav.open {
    display: block;
}

main {
    padding: 0px;
    padding-top: 50px; /* ヘッダーの高さ分の余白を追加 */
}

section {
    margin-bottom: 40px;
}

.hero {
    padding: 0;
    margin: 0;
}

.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1; /* ← PC用。上3分の2くらい見せる */
    overflow: hidden;
    background-color: #000;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* ← PCでは枠いっぱいにトリミング */
    object-position: center top;
    flex-shrink: 0;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* セクションの背景色を交互に指定 */
.section-white {
    padding: 10px 0 20px;
    background-color: white;
}

.section-peach {
    padding: 10px 0 20px;
    background-color: #FFF8DC;
}

.section-green {
    padding: 10px 0 5px;
    background-color: green;
}

/* セクション内容の左側に余白を設定 */
.section-content {
    margin-left: 200px;
    margin-right: 200px;
    max-width: calc(100% - 400px);
}

/* セクションタイトルのスタイルを設定 */
.section-title {
    position: relative;
    text-align: center;
    font-size: 2em;
    margin: 40px 0;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 200px);
    height: 2px;
    background: black;
}

.section-title::before {
    left: 0;
}

.section-title::after {
    right: 0;
}

.section-product-title {
	color: white;
    font-size: 2em;
    margin: 40px 0;
    padding-right: 20px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    flex: 1 1 calc(16.60% - 20px);
    box-sizing: border-box;
    margin: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.contact-link {
    flex: 1 1 calc(16.60% - 20px);
    box-sizing: border-box;
    margin: 10px;
	border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recruit-link {
    display: flex;             /* 親をflexに */
    justify-content: center;   /* 水平方向中央揃え */
    align-items: center;       /* 高さ方向も中央揃え */
    margin: 10px 0;
    width: 100%;               /* 親幅を100%に */
}

.product-item:hover {
    transform: scale(1.05);
}

.product-image,
.contact-image {
    position: relative;
}

.recruit-image {
    display: block;            /* ブロック化 */
    max-width: 100%;            /* 画像の最大幅50% */
}

.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.contact-image img {
    width: 100%;
    height: auto;
    filter: brightness(70%);
    transition: filter 0.3s ease;
}

.recruit-image img {
    width: 100%;               /* 子に対して幅100% */
    height: auto;
    display: block;            /* 不要な隙間除去 */
}

.product-item:hover img {
    transform: scale(1.1);
}

.contact-link:hover img {
    filter: brightness(100%);
}

.arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}

.product-item h3 {
    margin: 10px 0;
    text-align: center;
}

.product-item p {
    padding: 0 10px 20px;
    text-align: center;
}

/* ニュースセクションのスタイル */
.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.news-date {
    background-color: green;
    color: white;
    padding: 5px 10px;
    margin-right: 20px;
    border-radius: 3px;
	white-space: nowrap; /* 折り返さないようにする */
    width: 135px; /* 固定幅を設定 */
    text-align: center; /* テキストを中央に揃える */
    box-sizing: border-box; /* パディングを含む幅に設定 */
}

.news-content {
    flex-grow: 1;
    position: relative;
    color: black;
    text-decoration: none;
    padding-right: 40px;
    transition: color 0.3s ease;
}

.news-content:hover {
    color: green;
}

.news-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: black;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-arrow:hover {
    background-color: green;
}

/* 会社情報セクションのスタイル */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 2;
    padding-right: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
}

.more-link {
    display: inline-block;
    background-color: green;
    color: white;
    padding: 5px 10px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.more-link:hover {
    background-color: black;
    color: white;
}

.product-d-text {
    flex: 2;
    padding-right: 20px;
	color: white;
}

.product-d-item {
    margin-bottom: 40px;
}

.product-d-item h3 {
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
    font-size: 1.5em;
    position: relative;
}

.product-d-details {
    display: flex;
    align-items: flex-start;
}

.product-d-image {
    flex: 1;
    margin-right: 20px;
}

.product-d-image img {
    max-width: 100%;
    height: auto;
}

.product-d-description {
    margin-left: 80px;
    flex: 2;
    line-height: 1.5;
}

footer {
    background: green;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
}

/* お問い合わせフォームのスタイル */
.form-input {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-input label {
    margin-top: 10px;
    font-weight: bold;
}

.form-input input, textarea, button {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
}

.required {
    color: red;
    margin-left: 5px;
}

.optional {
    color: gray;
    margin-left: 5px;
}

.form-confirm {
	border-collapse: collapse;
	margin: 1em 0;
    text-align: center;
}

.form-confirm button:first-of-type{
	margin-right: 30px;
}

.form-confirm button{
	width: 200px;
}

.table-container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
	overflow: auto; /* 追加 */
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
	table-layout: fixed; /* 追加 */
}

.table-container th, td {
    border: 1px solid #ddd;
    padding: 8px;
    word-wrap: break-word;
    word-break: break-all;
}

.table-container th {
    background-color: #FFF8DC;
    text-align: left;
	width: 30%; /* 追加 */
}

.contact-msg {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 0 20px 0;

}
.required-text {
    color: red;
}


.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.contact-top-left {
    flex: 1;
    padding: 0 20px;
    text-align: right;
}

.contact-top-left .txt {
    display: inline-block;
    text-align: left;
}

.contact-top-right {
    flex: 1;
    padding: 0 20px;
}

.contact-top::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-1px);
    width: 2px;
    background: gray;
}

.contact-tel {
    display: block;
    padding-left: 80px;
    background: url("../contact/images/tel.jpg") no-repeat left center/60px;
    color: #005aff;
    text-decoration: none;
}

.contact-tel .number {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
}

.contact-tel .business_hour {
    font-size: 1rem;
    color: #000;
}

.contact-top-msg {
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-top {
        flex-direction: column;
        max-width: 100%;
        padding: 0;
    }

    .contact-top-left,
    .contact-top-right {
        padding: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-top::before {
        display: none;
    }
}

/* 会社情報セクション */
.company-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* セクションタイトル - 緑背景、左寄せ、余白調整 */
.company-section-title {
    background-color: #28a745; /* 緑色 */
    color: #fff;
    font-size: 24px;
    text-align: left;
    padding: 10px 20px; /* タイトル内の余白 */
    margin-top: 0; /* 上の余白なし */
    margin-bottom: 20px; /* 下だけ余白 */
    border-radius: 5px;
    border-bottom: none; /* 下線削除 */
}

/* 表形式の基本スタイル */
.company-table, .history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-table th, .company-table td,
.history-table th, .history-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.company-table th, .history-table th {
    background-color: #f9f9f9;
    width: 15%;
    white-space: nowrap; /* 折り返し禁止 */
}

/* アクセス情報 */
.access-info {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Googleマップ */
.map-container {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

/* ごあいさつメッセージ */
.greeting {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    line-height: 1.8;
    text-align: center;
}

.ceo-name {
    margin-top: 20px;
    font-weight: bold;
}

/* コンテナ全体 */
.container {
/*
    max-width: 900px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
*/
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ページタイトル */
.page-title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
}

/* ニュースアイテム */
.news-item-d {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

/* 日付部分 */
.news-date-d {
    padding: 5px 10px;
    font-size: 14px;
    margin-right: 15px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ニュース内容 */
.news-content-d {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* リンクのスタイル */
.news-content-d a {
    color: #007bff;
    text-decoration: none;
}

.news-content-d a:hover {
    text-decoration: underline;
}

/* 画像部分（必要時のみ表示） */
.news-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 画像のスタイル */
.news-images img {
    width: calc(33.33% - 10px);
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 画像が2枚以下のときは自動調整 */
.news-images img:nth-child(2):last-child {
    width: calc(50% - 5px);
}


/* メディアクエリ */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    header {
        flex-direction: column;
        align-items: center;
        height: auto;
    	padding: 5px 10px;
    }

    header .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    header .logo {
        width: 117.5px;
        height: 35px;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 45px;
        left: 0;
        width: 100%;
        background: green;
    }

    nav ul {
        flex-direction: column;
        align-items: center; /* 追加: リストアイテムを中央揃えにする */
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        width: 100%; /* 追加: リストアイテムを幅いっぱいにする */
        text-align: center; /* 追加: テキストを中央揃えにする */
    }

    nav ul li a {
        padding: 15px 0;
		color: white;
    }

    nav.open {
        display: flex;
    }

    .product-category {
        flex-direction: column;
    }
    
    .contact-info .map iframe {
        width: 100%;
    }

    .section-content {
        margin-left: 10px;
        margin-right: 10px;
        max-width: 100%;
    }

    .product-gallery {
        flex-direction: column;
    }

    .product-item,
    .contact-link,
    .recruit-link {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding-right: 0;
        padding-bottom: 20px;
    }

	.section-title {
	    position: relative;
	    text-align: center;
	    font-size: 1em;
	    margin: 40px 0;
	}

    .section-title::before,
    .section-title::after {
        width: 25%;
    }

	.product-d-details {
		flex-direction: column;
	}

	.product-d-description {
	    margin-left: 20px;
	}

	/* お問い合わせフォームのスタイル */
    .table-container {
        padding: 20px 40px 20px 20px;
	    justify-content: center;
    }

    .table-container table, tbody, tr, th, td {
        display: block;
        width: 100%;
    }

    .table-container th, td {
        text-align: left;
        padding: 10px;
		word-wrap: break-word;
		word-break: break-all;
    }

    .table-container th {
		width: 100%;
    }

    .company-table th, .company-table td,
    .history-table th, .history-table td {
        width: auto;
        white-space: nowrap; /* スマホでも折り返さない */
    }

    /* 表全体の幅を保持してスクロール可能に */
    .company-table, .history-table {
        overflow-x: auto;
        display: block;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        margin-bottom: 10px;
        display: inline-block;
    }

}