/* ハンバーガーメニュー（モバイル用） */
.menu-toggle {
	display: none;
	cursor: pointer;
	font-size: 24px;
}/* 基本スタイル */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
body {
	line-height: 1.6;
	color: #333;
	background-color: #f8f8f8;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
.space{
	margin-top:100px;
}
.space2{
	margin-top:50px;
}
.space3{
	margin-top:130px;
}

/* ヘッダー */
header {
	background-color: #5F7345;
	color: #fff;
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}
nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.logo {
	font-size: 24px;
	font-weight: bold;
}
.nav-links {
	display: flex;
	list-style: none;
}
.nav-links li {
	margin-left: 20px;
}
.nav-links a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	transition: 0.3s;
}
.nav-links a:hover {
	color: #a5a5a5;
}
/* セクション共通 */
section {
	padding: 60px 0;
}
.section-title {
	text-align: center;
	margin-bottom: 30px;
	font-size: 28px;
	font-weight: normal;
	color: #333;
}
/* About Us セクション */
.about-us {
	background-color: #f0f0f0;
}
.about-text {
	max-width: 800px;
	margin: 0 auto;
	font-size: 14px;
	text-align: justify;
	line-height: 1.8;
}
.about-image {
	margin: 40px auto;
	text-align: center;
}
.about-image img {
	max-width: 100%;
	height: auto;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.about-image2 {
    margin: 40px auto; /* 上下40px、左右autoで中央配置 */
    text-align: center;
    overflow: hidden;
    width: 60%;
    height: 60%;
    display: block; /* inline-block → block に変更 */
}
.about-image2 img {
	width: 100%; /* 親要素に合わせて100%に */
	height: 100%; /* 親要素に合わせて100%に */
	object-fit: cover;
	transition: transform 0.3s ease;
}
.about-image2:hover img {
	transform: scale(1.03);
}
.about-image3 {
    margin: 40px auto;
    text-align: center;
    width: 60%; /* 幅を少し広げる */
    display: flex; /* flexboxを使用して横並びに */
    justify-content: center; /* 中央揃え */
    align-items: center; /* 縦方向も中央揃え */
    gap: 20px; /* 画像間の間隔 */
}
.about-image3 img {
    width: calc(50% - 10px); /* 2つの画像で50%ずつ、gapを考慮 */
    height: auto; /* 高さは自動調整 */
    object-fit: cover;
    border-radius: 8px; /* 角を少し丸くする（オプション） */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* 軽い影を追加（オプション） */
}




/* ギャラリーセクション */
.gallery {
	background-color: #f8f8f8;
}
.gallery-2 {
	background-color: #fff;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 15px;
	margin-top: 40px;
}
.gallery-item {
	position: relative;
	overflow: hidden;
	height: 120px;
}
.gallery-item img {
	width: 100%;
	height: 70%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.gallery-item:hover img {
	transform: scale(1.05);
}
.gallery-caption {
	font-size: 12px;
	text-align: center;
	margin-top: 5px;
}
/* プロジェクトセクション */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 15px;
	margin-top: 40px;
}
.project-item {
	position: relative;
	overflow: hidden;
	height: 160px;
}
.project-item img {
	width: 100%;
	height: 70%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.project-item:hover img {
	transform: scale(1.05);
}

/* コンタクトフォーム */
.contact {
	background-color: #f0f0f0;
}
.contact-form {
	max-width: 600px;
	margin: 0 auto;
}

/*
.form-group {
	margin-bottom: 15px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
}
.form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	font-size: 14px;
}
*/

textarea.form-control {
	min-height: 150px;
	resize: vertical;
}
.submit-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background-color: #222;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
}
.submit-btn:hover {
	background-color: #444;
}


/* フォーム用追加スタイル */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-control:invalid {
    border-color: #f44336;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 20px auto;
}

.submit-btn:hover:not(:disabled) {
    background-color: #45a049;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.optional {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.form-notice {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}



/* フッター */
footer {
	background-color: #5F7345;
	color: #fff;
	padding: 20px 0;
	text-align: center;
	font-size: 12px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
.nav-links {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: #222;
	flex-direction: column;
	padding: 20px 0;
}
.nav-links.active {
	display: flex;
}
.nav-links li {
	margin: 10px 0;
	text-align: center;
}
.menu-toggle {
	display: block;
}
.gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
}
/* Floating menu styles */
.floating-menu {
	display: none;
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
.floating-menu {
	display: flex;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: white;
	justify-content: space-around;
	padding: 10px 0;
	box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
}
.menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: black;
}
.menu-item img {
	width: 24px;
	height: 24px;
	margin-bottom: 5px;
}
}

@media (max-width: 768px) {
    .about-image3 {
        width: 90%; /* モバイルでは幅を広げる */
        flex-direction: column; /* モバイルでは縦並びに */
        gap: 15px;
    }


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .thanks-container {
        padding: 40px 20px;
        margin: 0 15px;
    }
    
    .thanks-icon {
        font-size: 4rem;
    }
    
    .thanks-title {
        font-size: 2rem;
    }
    
    .thanks-message {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
    
    .info-links {
        flex-direction: column;
        align-items: center;
    }
    
    .info-links a {
        display: block;
        text-align: center;
        min-width: 200px;
    }
    
    .form-control {
       font-size: 16px; /* iOS Safari のズーム防止 */
    }
    
    .submit-btn {
        width: 100%;
        max-width: none;
    }
}


/* エラー・成功メッセージのスタイル */
.message-box {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.message-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.message-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}