/* Contact Form Styles - main-contentsクラス内に限定 */
.main-contents label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}
.main-contents input[type="text"],
.main-contents input[type="email"],
.main-contents input[type="tel"],
.main-contents textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.main-contents textarea {
    min-height: 100px;
    resize: vertical;
}
.main-contents button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.main-contents button:hover {
    background-color: #0056b3;
}
.error {
    color: #dc3545;
    padding: 15px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 45px;
    font-size: 15px;
    line-height: 1.5;
}
.error::before {
    content: "⚠";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #dc3545;
}
.success {
    color: #155724;
    padding: 15px 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 45px;
    font-size: 15px;
    line-height: 1.5;
}
.success::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #28a745;
    font-weight: bold;
}
.required {
    color: #dc3545;
}
.postal-input-group {
    display: flex;
    gap: 10px;
}
.postal-input-group input {
    flex: 1;
}
.btn-search {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.btn-search:hover {
    background-color: #5a6268;
}

/* main-contentsクラスのスタイル */
.main-contents {
    background-color: #ffffff;
    /* padding: 40px; */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07); */
}

/* デスクトップ表示の調整 */
@media screen and (min-width: 1280px) {
    .main-contents {
        /* flexレイアウト内での調整 */
        flex: 1;
        margin-right: 20px;
    }
}

/* タイトルのスタイル改善 */
.main-contents h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* フォームのスタイル改善 */
.main-contents form {
    margin-top: 10px;
}

/* フォームグループの余白調整 */
.main-contents .form-group {
    margin-bottom: 25px;
}

/* ラベルのスタイル（上部で定義済みのため削除） */

/* 入力フィールドのスタイル改善 */
.main-contents input[type="text"],
.main-contents input[type="email"],
.main-contents input[type="tel"],
.main-contents textarea {
    border: 2px solid #e1e8ed;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 15px;
}

/* フォーカス時のスタイル */
.main-contents input[type="text"]:focus,
.main-contents input[type="email"]:focus,
.main-contents input[type="tel"]:focus,
.main-contents textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* プレースホルダーのスタイル */
.main-contents input::placeholder,
.main-contents textarea::placeholder {
    color: #999;
    opacity: 1; /* Firefox 対策 */
    font-family: inherit; /* 入力値と同じフォントファミリー */
    font-size: inherit; /* 入力値と同じフォントサイズ */
    font-weight: inherit; /* 入力値と同じフォントウェイト */
}

/* ブラウザ互換性のためのベンダープレフィックス */
.main-contents input::-webkit-input-placeholder,
.main-contents textarea::-webkit-input-placeholder {
    color: #999;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.main-contents input::-moz-placeholder,
.main-contents textarea::-moz-placeholder {
    color: #999;
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.main-contents input:-ms-input-placeholder,
.main-contents textarea:-ms-input-placeholder {
    color: #999;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* 送信ボタンのスタイル改善 - ALFA-TECCS風デザイン */
.main-contents button[type="submit"] {
    display: block;
    width: 80%;
    margin: 40px auto 0;
    padding: 30px 60px;
    font-size: 16px;
    font-weight: bold;
    background-color: transparent;
    color: #118BE7;
    border: 1px solid #999;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    position: relative;
}

.main-contents button[type="submit"]::after {
    content: ">";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: all 0.3s ease;
}

.main-contents button[type="submit"]:hover {
    background: linear-gradient(to right, #0066cc, #66b3ff);
    color: white;
    border-color: #0066cc;
}

.main-contents button[type="submit"]:hover::after {
    right: 25px;
}

/* 郵便番号検索ボタンのスタイル調整 */
.main-contents .btn-search {
    background-color: #7f8c8d;
    font-weight: 500;
    transition: all 0.3s;
}

.main-contents .btn-search:hover {
    background-color: #6c7a7b;
    transform: translateY(-1px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-contents {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .main-contents h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .main-contents .form-group {
        margin-bottom: 20px;
    }
    
    .main-contents button[type="submit"] {
        width: 100%;
        padding: 25px 40px;
        font-size: 16px;
    }
}

/* h2タグのスタイル */
.main-contents h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

/* 注意事項のコンテナ */
.main-contents .notice-container {
    border: 1px solid #999;
    padding: 20px;
    margin-bottom: 30px;
    background-color: transparent;
}

/* 注意事項のリスト */
.main-contents .notice-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.main-contents .notice-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    position: relative;
    padding-left: 1em;
}

.main-contents .notice-list li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #555;
}

.main-contents .notice-list li:last-child {
    margin-bottom: 0;
}

/* 必須項目の注意書きのスタイル */
.main-contents .required-notice {
    margin-top: 40px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* cap_contactクラスのスタイル */
.main-contents .cap_contact {
    background-color: #e9f5ff;
    border: 1px solid #b8e0ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0066cc;
    line-height: 1.6;
    position: relative;
    padding-left: 45px;
}

.main-contents .cap_contact::before {
    content: "ℹ";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #0066cc;
}

/* btn_contactスタイル */
.main-contents #btn_contact {
    display: block;
    margin: 40px auto 0;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-contents #btn_contact:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.main-contents #btn_contact:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* レスポンシブデザイン - h2とボタン */
@media (max-width: 768px) {
    .main-contents h2 {
        font-size: 20px;
        margin-bottom: 25px;
        padding: 12px 15px;
    }
    
    .main-contents #btn_contact {
        width: 100%;
        padding: 16px 30px;
        font-size: 16px;
    }
    
}

/* 保守センター表示エリア */
.main-contents .maintenance-center-display {
	margin-bottom: 20px;
	min-height: 0;
	transition: all 0.3s ease;
}

.main-contents .center-result {
	background-color: #e8f5e8;
	border: 2px solid #28a745;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-contents .center-label {
	font-weight: bold;
	color: #155724;
	margin-right: 8px;
}

.main-contents .center-name {
	color: #155724;
	font-size: 18px;
	font-weight: bold;
}

/* スマホ画面用のレスポンシブデザイン */
@media (max-width: 768px) {
	.main-contents .center-result {
		padding: 10px;
		margin-bottom: 8px;
	}
	
	.main-contents .center-label {
		font-size: 14px;
		margin-right: 5px;
	}
	
	.main-contents .center-name {
		font-size: 15px;
	}
	
	.main-contents .center-loading {
		padding: 10px;
		font-size: 15px;
	}
	
	.main-contents .center-error {
		padding: 10px;
		font-size: 14px;
	}
}

.main-contents .center-loading {
	background-color: #fff3cd;
	border: 2px solid #ffc107;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	color: #856404;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: bold;
	animation: pulse 1.5s infinite;
}

.main-contents .center-error {
	background-color: #f8d7da;
	border: 2px solid #dc3545;
	border-radius: 8px;
	padding: 15px;
	color: #721c24;
	margin-bottom: 10px;
}

@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.7; }
	100% { opacity: 1; }
}

/* PC表示でpageBodyの幅を790pxに設定 */
@media screen and (min-width: 768px) {
    .pageBody {
        width: 790px;
        margin-left: auto;
        margin-right: auto;
    }
}