/* 基本スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ヘッダー */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
}

/* ナビゲーション */
nav {
    background-color: #34495e;
    text-align: center;
    padding: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
}

nav a:hover {
    background-color: #1abc9c;
}

/* モバイル用ハンバーガーメニュー */
.menu-toggle {
    display: none;
    background-color: #34495e;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    color: white;
}

.nav-links {
    display: inline-block;
}

.nav-links a {
    display: inline-block;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    nav {
        text-align: left;
        padding: 10px;
    }

    .nav-links {
        display: none;
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
        border-top: 1px solid #ccc;
    }

    /* ハンバーガーメニューを表示 */
    .menu-toggle {
        display: block;
    }

    /* メニューがアクティブな時に表示 */
    .nav-links.active {
        display: block;
    }
}


.hero {
    background-image: url('../images/home_back.png'); /* ここに実際の画像URLを指定 */
    background-size: cover; /* 画像を要素全体に広げる */
    background-position: center; /* 画像を中央に配置 */
    color: white;
    text-align: center;
    padding: 100px 20px; /* 画像上のテキストの位置調整 */
    height: 300px; /* デスクトップやタブレットでは画面の高さに合わせる */
    box-sizing: border-box;
}

.hero h2 {
    font-size: 3em;
    margin: 0;
}

.hero p {
    font-size: 1.5em;
    margin-top: 10px;
}



/* スマートフォン用の高さ調整 */
@media (max-width: 768px) {
    .hero {
        padding: 30px 20px; /* スマートフォン版のファーストビュー高さを縮める */
        height: 50vh; /* スマートフォン版では高さを画面の60%に調整 */
    }

    .hero h2 {
        font-size: 2.5em; /* スマートフォン版でフォントサイズを少し小さくする */
    }

    .hero p {
        font-size: 1.2em; /* スマートフォン版でフォントサイズを小さくする */
    }


}


/* 事業案内セクション */
.business-section {
    padding: 20px;
    background-color: #ffffff; /* 背景色を白に */
    color: #003366; /* 濃い青色のテキスト */
    text-align: center;
    width: 80%; /* PC版のセクション幅を80%に設定 */
    margin: 0 auto; /* セクションを中央に配置 */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* 画像の配置 */
.business-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.business-item {
    position: relative;
    height: 250px; /* 高さを250pxに設定 */
    overflow: hidden;
    border-radius: 10px;
}

.business-image {
    width: 100%;
    height: 100%;
    background-size: cover; /* 画像を要素にフィットさせる */
    background-position: center;
    position: relative;
    border-radius: 10px;
}

/* 黒い透明オーバーレイを画像全体に */
.business-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黒い透明オーバーレイ */
    border-radius: 10px;
}

/* 画像内に表示する文字 */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; /* 文字色を白に */
    width: 90%; /* 幅を90%に設定して文字のエリアを広げる */
}

.big-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.small-title {
    font-size: 1rem;
}



/* レスポンシブデザイン（スマホ版） */
@media (max-width: 768px) {
    .business-container {
        grid-template-columns: 1fr;
    }

    .business-item {
        height: 200px; /* スマホ版では画像の高さを少し小さく */
    }

    .section-title {
        font-size: 2rem;
    }

    .big-title {
        font-size: 1.5rem;
    }

    .small-title {
        font-size: 0.9rem;
    }
}


/* お問い合わせセクション */
.contact-section {
    padding: 20px;
    background-color: #ffffff; /* 背景色を白に */
    color: #003366; /* 濃い青色のテキスト */
    text-align: center;
    width: 80%; /* PC版のセクション幅を80%に設定 */
    margin: 0 auto; /* セクションを中央に配置 */
}

/* フォームの中央寄せとスタイリング */
form#OF_form1 {
    max-width: 1000px;
    background-color: #ffffff;
    margin: 40px auto;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 見出し行のスタイル */
form#OF_form1 table th[colspan="2"] {
    font-size: 20px;
    color: #003366;
    padding-bottom: 20px;
    text-align: center;
}

/* テーブルの構造調整 */
form#OF_form1 table {
    width: 100%;
    border-collapse: collapse;
}

/* 各ラベル（左側） */
form#OF_form1 table th {
    text-align: left;
    padding: 10px;
    width: 30%;
    vertical-align: top;
    font-weight: bold;
    color: #333;
}

/* 入力欄（右側） */
form#OF_form1 table td {
    padding: 10px;
    width: 70%;
}

/* 入力フォーム共通スタイル */
form#OF_form1 input[type="text"],
form#OF_form1 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fafafa;
}

/* テキストエリアサイズ */
form#OF_form1 textarea {
    resize: vertical;
    min-height: 100px;
}

/* 必須マークのスタイル */
form#OF_form1 th span {
    color: #d33;
    font-size: 12px;
    margin-left: 5px;
}

/* 確認ボタン */
form#OF_form1 input[type="button"] {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 20px auto 10px;
    transition: background-color 0.3s ease;
}

form#OF_form1 input[type="button"]:hover {
    background-color: #005599;
}

/* Powered by リンク */
form#OF_form1 div {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

/* スマホ対応（レスポンシブ） */
@media screen and (max-width: 600px) {
    form#OF_form1 {
        margin: 20px auto;
        padding: 20px 15px;
    }

    form#OF_form1 table th,
    form#OF_form1 table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    form#OF_form1 table th {
        font-size: 15px;
        margin-top: 15px;
    }

    form#OF_form1 input[type="text"],
    form#OF_form1 textarea {
        font-size: 16px;
        padding: 14px;
    }

    form#OF_form1 input[type="button"] {
        font-size: 18px;
        padding: 18px 0;
        width: 100%;
    }
}


/* ===== フッタースタイル（共通） ===== */
#footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px 10px;
    font-size: 14px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== 会社情報エリア ===== */
.footer-info {
    flex: 1 1 300px;
    text-align: left;
}

.footer-info p {
    margin: 5px 0;
    color: white;
}

/* ===== フッターナビ全体ラッパー ===== */
.footer-links-wrapper {
    flex: 1 1 600px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 40px;
}

/* ===== 各リンクグループ ===== */
.footer-links {
    text-align: left;
}

.footer-links p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1abc9c;
}

/* ===== コピーライト部分 ===== */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-size: 13px;
}

/* アイコンの色（Font Awesome想定） */
.footer-info i,
.footer-links i {
    margin-right: 8px;
    color: #1abc9c;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .footer-links-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        display: block;
        margin: 5px 0;
    }

    .footer-bottom {
        margin-top: 20px;
        font-size: 12px;
    }
}



/* ===== 会社紹介ページ専用 ===== */
.company-section {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  color: #003366;
  font-family: Arial, sans-serif;
}

.company-header {
  text-align: center;
  margin-bottom: 40px;
}

.company-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.company-header p {
  font-size: 1.2rem;
  color: #555;
}

/* 会社概要 */
.company-info h3,
.company-message h3,
.company-history h3,
.company-mission h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: 6px solid #1abc9c;
  padding-left: 10px;
}

.company-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.company-info th,
.company-info td {
  padding: 15px;
  border: 1px solid #ccc;
  text-align: left;
  font-size: 16px;
}

.company-info th {
  background-color: #f5f5f5;
  width: 30%;
}

/* 代表者紹介 */
.company-message .message-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.ceo-photo {
  width: 180px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.message-text {
  flex: 1;
  min-width: 250px;
}

.message-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 1em;
}

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

/* 沿革 */
.company-history ul {
  list-style-type: none;
  padding: 0;
}

.company-history li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

/* ミッション・ビジョン */
.mission-vision {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.mission,
.vision {
  flex: 1 1 45%;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
}

.mission h4,
.vision h4 {
  font-size: 1.5rem;
  color: #1abc9c;
  margin-bottom: 10px;
}

.mission p,
.vision p {
  font-size: 1rem;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .company-header h2 {
    font-size: 2rem;
  }

  .company-header p {
    font-size: 1rem;
  }

  .company-info th,
  .company-info td {
    font-size: 15px;
    padding: 10px;
  }

  .message-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ceo-photo {
    width: 150px;
  }

  .mission-vision {
    flex-direction: column;
  }

  .mission,
  .vision {
    flex: 1 1 100%;
  }
}
