/* ================================================= */
/* 1. 基本設定とCSS変数 (styles.cssから移植) */
/* ================================================= */
:root {
  --primary-color: #333; /* ヘッダー背景 */
  --secondary-color: #fff; /* 文字色（ヘッダー内） */
  --accent-color: #27ae60; /* アクセント色（ボタンなど） */
  --background-color: #f4f4f4; /* ページ背景 */
  --text-color: #333; /* 本文の文字色 */
}

/* bodyのFlexbox設定を修正し、フォーム全体が表示されるようにする */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 100vh; を min-height に変更して、コンテンツが伸びるようにする */
  min-height: 100vh;
  overflow: auto;
}

.wrap_original {
  overflow: hidden;
  /* bodyがFlexコンテナであるため、width: 100% または max-width を設定することが望ましい */
  width: 100%; 
}

/* ================================================= */
/* 2. ヘッダー (index.htmlのスタイルを移植) */
/* ================================================= */

.container {
  width: auto;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 0;
  position: fixed; /* これによりヘッダーが固定される */
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

header .logo img {
  height: 50px; /* ロゴサイズ */

　/* ↓↓↓ この2行を追記または修正 ↓↓↓ */
  width: auto; /* 50pxの高さに合わせて幅を自動調整 */
  max-width: 100%; /* 親要素（.logo）をはみ出さないように制限 */
}

/* 補足: スタイルシートのどこかに以下の定義が漏れている可能性があります。*/
.logo img {
    max-width: 100%; /* 必ず親要素の幅を超えないようにする */
    height: auto; /* 高さが固定されていても、アスペクト比保持のために重要 */
}

/* ファーストビュー */

.hero {
  background: url('image/hero-bg.jpg') no-repeat center center/cover;
  color: var(--secondary-color);
  text-align: center;
  padding: 10px 0;
  position: relative;
  margin-top: 80px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* PCナビゲーション */
header nav {
  margin: 0 0 0 auto;
}

header nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0;
}

header nav ul li {
  margin-right: 20px;
}

header nav ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

nav ul li.colorchange a:hover{
	color: skyblue; /* ホバーエフェクト */
	font-size: 20px;
	font-weight: bold;
}

.sp-nav {
  display: none; /* 初期状態では非表示 */
}

/* ================================================= */
/* 3. フォームレイアウトのスタイル（元の styles3.css + 調整） */
/* ================================================= */

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  /* 固定ヘッダー（高さ約80px）の下にフォームを表示するための調整 */
  margin: 97px auto 20px auto; 
}

.contact-form .form-group {
    margin-bottom: 15px;
}
/* ... その他のフォーム詳細スタイル（省略） ... */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contact-form textarea {
    resize: vertical;
    height: 100px;
}

.contact-form button {
    background: #5bc8ac;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #4aa08d;
}

.required {
    background-color: red;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}

.optional {
    background-color: gray;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}
/*=================================================*/
/* submitボタンのレイアウト
/*=================================================*/

.contact-form button[type="submit"] {
    display: block;
    width: 300px;
    margin: 30px auto 0;
    padding: 15px 30px;
    
    /* 白抜きスタイル */
    background-color: transparent; /* 背景を透明にする */
    border: 2px solid #007bff;    /* 枠線（solid）を設定し、色を指定 */
    color: #007bff;               /* 文字色を枠線と同じ色にする */
    
    border-radius: 21px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 🖱️ マウスオーバー時は塗りつぶす */
.contact-form button[type="submit"]:hover {
    background-color: #007bff; /* 背景をアクセントカラーで塗りつぶし */
    color: white;              /* 文字色を白に戻す */
}

/* ================================================= */
/* 4. バリデーション/エラー用スタイル */
/* ================================================= */
.validation-error {
    color: #cc0000;
    font-size: 0.85em;
    margin-top: 5px;
    display: none; 
}
.validation-error.active {
    display: block; 
}
.input-error {
    border: 2px solid #cc0000 !important; 
    background-color: #fffafa; 
}
.error-messages {
    border: 1px solid #cc0000;
    padding: 10px;
    background-color: #fdd;
    margin-bottom: 20px;
}

/* ================================================= */
/* 5. フッター */
/* ================================================= */
<!-- footer {
    <!-- background-color: #5bc8ac;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0; -->
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 0;
    <!--position: fixed; /* これによりヘッダーが固定される */
    top: 0; -->
    width: 100%;
    z-index: 1000;
    margin-top: auto; /* Sticky Footerを実現 */
} -->
/* フッター全体のスタイル */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 0;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.company-logo {
  max-width: 100px;
  margin-right: 10px;
}

.company-info h2 {
  margin: 0;
  font-size: 1.5em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.company-details {
  text-align: left;
  flex: 1;
  margin: 2px 50px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-details p {
  margin: 5px 0;
  text-align: left;
}

.footer-nav {
  text-align: left;
  flex: 1;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin: 5px 0;
}

.footer-nav ul li a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
}

/* ================================================= */
/* 6. レスポンシブデザイン（ハンバーガーメニューを移植） */
/* ================================================= */
@media (max-width: 600px) {

    .pc-nav {
        display: none;
    }
    
    .sp-nav {
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        background: rgba(0, 0, 0, .8);
        opacity: 0;
        transform: translateY(-100%);
        transition: all .2s ease-in-out;
    }
    
    #hamburger {
        position: relative;
        display: block;
        width: 30px;
        height: 25px;
        margin: 0 0 0 auto;
    }
    #hamburger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transform: translateY(-50%);
    }
    #hamburger::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
    }
    #hamburger::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70%;
        height: 2px;
        background-color: #fff;
    }
    
    /*スマホメニュー*/
    .sp-nav ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    .sp-nav li {
        margin: 0;
        padding: 0;
    }
    .sp-nav li span {
        font-size: 15px;
        color: #fff;
    }
    .sp-nav li a, .sp-nav li span {
        display: block;
        padding: 20px 0;
    }
    /*-閉じるアイコンー*/
    .sp-nav .close {
        position: relative;
        padding-left: 20px;
    }
    .sp-nav .close::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: #fff;
        transform: rotate( 45deg );
    }
    .sp-nav .close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: #fff;
        transform: rotate( -45deg );
    }
    .toggle {
        transform: translateY( 0 );
        opacity: 1;
    }
}