@charset "UTF-8";

* {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ヘッダー・ロゴエリア */
header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 2px solid #f4f4f4;
}

.logo {
    background-image: url('factory2.jpg');
    background-size: contain; /* 画像全体が見切れないように収める */
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 1200px;
    height: 100px;
    margin: 0 auto; /* 中央寄せ */
    /* 文字を画像で隠す場合（SEO対策しつつ画像を見せる） */
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

/* メイン画像エリア */
.hero {
    height: 500px;
    background-image: url('factory.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* 文字がより読みやすいよう少し濃く調整 */
}

.hero-text {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ボタン設定 */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-primary {
    background: #ff6600;
}

.btn-secondary {
    background: #222;
    border: 1px solid #555;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* 4列のカードリンク */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 50px 20px;
    max-width: 1040px;
    margin: auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 12px;
    background: #fff;
    border: 2px solid #ddd;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.link-card small {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    font-size: 0.85rem;
    color: #666;
}

.link-card:hover {
    border-color: #ff6600;
    background: #fdf5f0;
    transform: translateY(-3px);
}

/* 画像バナーを使う場合のスタイル */
.banner-card {
    padding: 0;
    overflow: hidden;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* フッター */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer nav {
    margin-top: 15px;
}

footer nav a {
    margin: 0 10px;
    color: #ff6600;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .logo {
        height: 60px; /* スマホでは高さを抑える */
    }
    .hero {
        height: auto;
        min-height: 360px;
        padding: 40px 20px;
    }
    .hero-text h2 {
        font-size: 1.4rem;
    }
    .hero-buttons {
        flex-direction: column; /* スマホではボタンを縦並びに */
        gap: 10px;
    }
    /* スマホでは2列×2段でコンパクトに表示（縦1列にしたい場合は 1fr に変更） */
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
        gap: 12px;
    }
}
/* ==========================================
   会社概要ページ（about.html）用スタイル
========================================== */
.logo-link {
    display: block;
    text-decoration: none;
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h2 {
    font-size: 2.2rem;
    color: #222;
    margin: 0;
    letter-spacing: 2px;
}

.page-header h2 span {
    display: block;
    font-size: 1rem;
    color: #ff6600;
    margin-top: 5px;
    letter-spacing: 0;
}

.about-section {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    color: #222;
    border-left: 5px solid #ff6600;
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 25px;
}

.concept-text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
}

/* 事業内容グリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.service-item h4 {
    margin: 0 0 10px 0;
    color: #ff6600;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 1rem;
}

.company-table th {
    width: 28%;
    background: #fdf5f0;
    color: #222;
    font-weight: bold;
}

.company-table td a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

.company-table td a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 40px;
}

.sp-only {
    display: none;
}

/* スマホ対応（会社概要ページ） */
@media (max-width: 768px) {
    .about-section {
        padding: 25px 20px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }
    .sp-only {
        display: inline;
    }
}

/* ==========================================
   プライバシーポリシー（policy.html）用スタイル
========================================== */
.policy-content p {
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.policy-lead {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.policy-list {
    margin-top: -15px;
    margin-bottom: 30px;
    padding-left: 22px;
    line-height: 1.8;
}

.policy-list li {
    margin-bottom: 8px;
}

.policy-contact {
    background: #fdf5f0;
    border: 1px solid #f5dccb;
    border-radius: 8px;
    padding: 20px 25px;
    margin-top: 15px;
}

.policy-contact p {
    margin-bottom: 6px;
}

.policy-contact p:last-child {
    margin-bottom: 0;
}

.policy-contact a {
    color: #ff6600;
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================
   Googleマップ2列レイアウト用スタイル
========================================== */
.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.map-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.map-item h4 {
    margin: 0 0 10px 0;
    color: #222;
    font-size: 1.15rem;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 8px;
}

.map-item h4 span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-top: 3px;
}

.map-address {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: bold;
}

.map-frame {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.map-frame iframe {
    display: block;
}

.map-link {
    display: inline-block;
    margin-top: auto;
    text-align: right;
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

/* スマホ対応（マップを縦積みに変更） */
@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .map-item {
        padding: 15px;
    }
}
/* ==========================================
   トップページ（サービス一覧・アクセス導線）用スタイル
========================================== */
.home-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.home-header {
    text-align: center;
    margin-bottom: 35px;
}

.home-header h2 {
    font-size: 2rem;
    color: #222;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
}

.home-header h2 span {
    display: block;
    font-size: 0.95rem;
    color: #ff6600;
    margin-top: 4px;
    letter-spacing: 0;
}

.home-header p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* 6つの事業内容（PCでは3列×2段） */
.top-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.top-service-grid .service-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* アクセス＆会社概要への導線ボックス */
.access-box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #ff6600;
}

.access-locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.location-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.location-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.location-card h3 {
    margin: 0 0 8px 0;
    color: #ff6600;
    font-size: 1.2rem;
}

.location-card p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

.access-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tel-guide {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.tel-guide a {
    color: #ff6600;
    font-size: 1.4rem;
    text-decoration: none;
}

.tel-guide a:hover {
    text-decoration: underline;
}

.access-actions .btn-primary {
    display: inline-block;
}

/* スマホ・タブレット対応 */
@media (max-width: 768px) {
    .top-service-grid {
        grid-template-columns: 1fr;
    }
    .access-box {
        padding: 25px 20px;
    }
    .access-locations {
        grid-template-columns: 1fr;
    }
    .access-actions .btn-primary {
        display: block;
        width: 100%;
    }
}
